ChanServ changed the topic of #asahi-dev to: Asahi Linux: porting Linux to Apple Silicon macs | General development | GitHub: https://alx.sh/g | Wiki: https://alx.sh/w | Logs: https://alx.sh/l/asahi-dev
jhweruyuw has quit [Remote host closed the connection]
riker77_ has joined #asahi-dev
riker77 has quit [Ping timeout: 480 seconds]
riker77_ is now known as riker77
yuyichao_ has quit [Ping timeout: 480 seconds]
yuyichao_ has joined #asahi-dev
phiologe has joined #asahi-dev
PhilippvK has quit [Ping timeout: 480 seconds]
FireFox317 has joined #asahi-dev
yuyichao_ has quit [Ping timeout: 480 seconds]
yuyichao_ has joined #asahi-dev
sjg1 has joined #asahi-dev
<sjg1> Hi,
<roxfan> lo
<sjg1> I am new here, trying to get the UART going on a mini / air and am getting no output
<sven> what cable are you using?
<sjg1> macvdmtool seems to succeed though
<sjg1> SS cable which I think meets the requirements
<sven> hm.. so that looks like it successfully talked to the other side and if the cable supports usb 3.0 that should also be enough
<sven> is the baudrate setup correctly? can't think of any other issue right now
<sjg1> No, what is the baudrate?
<sven> no idea what uboot uses by default. i think the default in m1n1 is 115200
<j_ey> you could try boot linux directly too, see if that works>
<sjg1> Hmm so what are you using as a serial console program on MacOS?
<sjg1> I tried: screen /dev/cu.debug-console 115200
<sjg1> But I get invalid argument, as if it cannot set the serial rate. Also it seems odd to set that on a USB-C port which presumably goes faster
<sjg1> Do you have the UART working in m1n1?
<sjg1> Will try that
<sven> i think the UART goes up to 1500000 or so
<sven> last time i had to look at the uart i used "picocom -b 115200 /dev/cu.debug-console" fwiw
aleasto has joined #asahi-dev
<FireFox317> sjg1: i think it actually uses 2 pins in the usb-c cable and actually transmits the uart signal over that, so then setting the baudrate does make sense
<FireFox317> but I might be incorrect tho
<sjg1> Thank you, I suppose it was something wrong with 'screen'. picocom works:
<sjg1> sudo picocom -q --omap crlf --imap lfcrlf -b 115200 /dev/tty.debug-console
<j_ey> sjg1: awesome
<sven> yeah, it uses the SBU1/2 pins for the UART signal
<sjg1> Yes it is awesome thanks again!
<j_ey> sjg1: and thanks for reviewing the uboot code!
<sjg1> j_ey: :-) Interesting to do some ARM work for a change
<j_ey> sjg1: I can't disagree ;)
<sjg1> So how does one get one of these? - "Flexible USB-PD Debug Interface (project name TBD)"
<j_ey> I dont think you need that if you have vdmtool?
<sven> i don't think that was ever finished (or, well, i guess it wasn't even started). most of us just use another m1 machine and the few who have a real serial interface built something themselves
povik has quit [Quit: Page closed]
<kettenis> openssl speed
<sjg1> sven: OK ta. The breakout board seems to be out of stock but will see if it comes back. I would prefer USB serial as I don't generally use Mac for development. I suppose I can use ssh to help
<j_ey> you can also run u-boot under the hypervisor, which means you can use a non-mac to conenct to the vUART
<sven> hrm, i guess i should also look into exposing that USB PD chip to linux userspace so that we can eventually also use linux running on the m1 for this
<j_ey> you mean connecting m1linux <-> m1linux?
<sven> yeah. or m1linux <-> m1n1/uboot/whatever-else
<sjg1> j_ey: Do you have instructions for the hypervisor? I'm not even quite sure what it is
<j_ey> sjg1: are you using linux.py?
<j_ey> sjg1: something like python3 linux.py --compression=none u-boot-nodtb.bin t8103-j274.dtb right?
<sjg1> j_ey: Ah OK yes I see. Will try it
<j_ey> sjg1: https://paste.gg/p/anonymous/87fe66db44d447f0a7aeeaf31d0ed7a0 something like this should work
<j_ey> linux.py isnt using the hypervisor, but my link ^ will, and will give you uart (over a normal usb cable to a linux machine)
<kettenis> question is whether the emulation of the s5l uart meets u-boot's expectations
<j_ey> it works for me *shrug*
FireFox317 has quit [Quit: Page closed]
<kettenis> good enough for me ;)
<sjg1> j_ey: It sort-of works but seems to crash somewhere
<sjg1> j_ey: Oh, sorry, that was the mini image. It boots fine, thank you
<j_ey> sjg1: awesome!
<j_ey> sjg1: so now, in another terminal you can use picocom with ttyAMA1
<j_ey> (and in the original terminal where you used run_guest you can use ctrl+c to stop it running, and type reboot to.. reboot)
<j_ey> sorry ttyACM1
psykose has quit [Remote host closed the connection]
psykose has joined #asahi-dev
<sjg1> j_ey: Having problems with that. Once U-Boot starts I see:
<sjg1> [2724541.082113] usb 1-6: USB disconnect, device number 92
<sjg1> [2724541.085569] xhci_hcd 0000:01:00.0: WARN Set TR Deq Ptr cmd failed due to incorrect slot or ep state.
<kettenis> probably need to remove the usb controller used by the hypervisor from the device tree
<kettenis> otherwise u-boot will try to take control and mess things up
<j_ey> oh yes, I forgot about that. I stripped the dts of a lot of stuff
<j_ey> all the pcie stuff, all the dwc3 stuff
<kettenis> u-boot isn not going to be very useful if you remove all hardware devices ;)
<j_ey> i just wanted to try get it booting at all :P
<j_ey> https://termbin.com/q4dc is what I deleted, but as kettenis said, maybe just work out which dw3 node you need to delete
<j_ey> kettenis: I also did a weird thing and appended my linux kernel to the uboot image, so I didnt have to use the nvme code to load the kernel lol
<kettenis> does that work?
<j_ey> not without some m1n1 changes
psykose has quit [Read error: No route to host]
psykose has joined #asahi-dev
<sjg1> j_ey: kettenis: I don't get a console when I leave the USB and dart USB nodes as 'disabled'. It waits for several seconds, appears to connect, but I see no output
<kettenis> i've not tried using the hypervisor myself
<j_ey> Im not sure about that either, I always managed to get the serial output
jbowen has joined #asahi-dev
aleasto has quit [Ping timeout: 480 seconds]
jbowen has quit [Ping timeout: 480 seconds]
nevexo has joined #asahi-dev
cfleming has quit [Ping timeout: 480 seconds]
aleasto has joined #asahi-dev
jbowen has joined #asahi-dev
jbowen has quit [Ping timeout: 480 seconds]
jhweruyuw has joined #asahi-dev
jbowen has joined #asahi-dev
jbowen has quit [Ping timeout: 480 seconds]
jbowen has joined #asahi-dev
FireFox317 has joined #asahi-dev
yuyichao has joined #asahi-dev
yuyichao_ has quit [Ping timeout: 480 seconds]
FireFox317 has left #asahi-dev [Leaving]
FireFox317 has joined #asahi-dev
FireFox317 has left #asahi-dev [#asahi-dev]
FireFox317 has joined #asahi-dev
jbowen has quit [Quit: leaving]
aleasto has quit [Quit: Konversation terminated!]
yuyichao_ has joined #asahi-dev
yuyichao has quit [Ping timeout: 480 seconds]
yuyichao_ has quit [Ping timeout: 480 seconds]