2021-07-03
01:15yeoldetoast has joined #asahi
01:19quarkyalice has quit [Remote host closed the connection]
01:20Emantor has quit [Quit: ZNC - http://znc.in]
01:20quarkyalice has joined #asahi
01:20Emantor has joined #asahi
01:34amwFirst I haven't gotten the linux USB serial working. You might want to try the dart/dev branch of the Asahi Linux which appears to have the most recent dwc3 (USB) controller work
01:37kfischerYeah, I built that and enabled dwc3 support in the .config, which enumerates the USB controller, but doesn’t detect a USB HID keyboard yet
01:44amwI don't think it does under run_guest.py (from memory) - I'll have to try again and update the Wiki
01:46amwThat's strange I think as long as the HV is running it should be keeping the USB gadget's going?
01:48kfischerTo close the loop on the Linux gadget, it complains “couldn't find an available UDC”, no idea what that is, but it didn’t work
01:53kfischerHmm, managed to get the g_serial driver to load by forcing the dwc3 into gadget mode, but it doesn’t actually show up on the host
01:57amwkfischer: I've loaded linux under the HV and the other ttyACM1 is still there and printing kernel messages for me....
02:02amwI'll upload a dump of the console text output - https://paste.debian.net/?show=1203205;lines=0
02:03amwIt looks horrible because the console output has lots of spaces at the start - don't know why
02:05amwIf I strip the leading blanks with this sed script: sed '/^ */s///' ttyACM1-serial-output.txt - I get the much more readable: https://paste.debian.net/1203206/
02:07amwThe latest marcan rev I am using is commit e00e8f1 hv/trace_dcp.py: Fix stuff - of course I have to chainload that m1n1 first because my booting m1n1 is much older
02:10kfischerAlright, that’s the rev I’m using (no chainload, that’s the booting one), so something is off :/
02:17kfischeramw: I get the same output on the other serial, but that’s all m1n1, not Linux, as soon as Linux actually boots, both serials die (as in your output)
02:26amwkfischer: From the "Starting Shell: Still running ..." is most definitely from my initrd shell that I put in there.
02:27amwThe stuff above that is m1n1 HV output - but below that is from the initrd - sorry I see how confusing that would be.
02:29amwSure: I'm going back to studying the page tables - I think I just understand the 3 layers under the HV...
02:31amwFor what it's worth here's the init script in the initramfs - https://paste.debian.net/1203207/
02:32amwFor some reason it locks up when it's printing a 3 digit count, i.e. after 99 goes :"Still running 10"
02:39amwI'm thinking it just loads the initrd (combined in the m1n1-payload.macho as per https://github.com/AsahiLinux/docs/wiki/Developer-Quickstart#direct-payload-booting) and normal kernels just run the /init program/script by default
02:41amwThere is also a built in command line kernel CONFIG_CMDLINE="...." you can build into the kernel...
02:45marcankfischer: you need to hack the devicetree to disable the usb if running under the hypervisor
02:46kfischermarcan: yeah, I reached that conclusion. Do you have a recommended config for getting a working linux shell while using the usb gadget serial?
02:47kfischerfair enough. I was hoping to run some fairly standalone userspace code to see if some oddities I’m seeing are a chip artifact or an os artifact :)
02:48marcanbut yes we have a bit of a gap right now, the people bringing up I/O in the kernel have physical serial cables
02:49PhilippvK has joined #asahi
02:49kfischerOn sven’s branch I managed to get it to recognize the USB controller, but no luck on getting any input or enabling the USB g_serial gadget
02:52phiologe has quit [Ping timeout: 480 seconds]
02:55ihaveamac has quit [Quit: fail]
02:57ihaveamac has joined #asahi
03:01kfischer has quit [Quit: kfischer]
03:54bgb has joined #asahi
04:00marvin24_ has joined #asahi
04:03marvin24 has quit [Ping timeout: 480 seconds]
04:17bgb has quit [Ping timeout: 480 seconds]
04:44bgb has joined #asahi
04:52bgb has quit [Ping timeout: 480 seconds]
05:29robinp_ has joined #asahi
05:36robinp has quit [Ping timeout: 480 seconds]
06:23bgb has joined #asahi
06:37bgb has quit [Ping timeout: 480 seconds]
06:43tertu has quit [Ping timeout: 480 seconds]
06:48yuyichao has joined #asahi
07:02bgb has joined #asahi
07:10bgb has quit [Ping timeout: 480 seconds]
08:07tsida has quit [Remote host closed the connection]
09:00thunfisch has quit [Read error: Connection reset by peer]
09:02tsida has joined #asahi
09:05thunfisch has joined #asahi
10:32sventhe dart/dev branch should give you usb-c. i've only been using it in host mode though because i have a serial cable
10:33sventhere's also https://github.com/svenpeter42/linux/tree/pcie/hack (need to push that to asahi as well) which will give you pcie if you go through u-boot
10:34sventhis will all become a little bit easier once the DART driver has been merged upsream (https://lore.kernel.org/linux-iommu/20210627143405.77298-1-sven@svenpeter.dev/T/#m2d7976f4a0f4b0a80a94e85824495ec5289e90b8)
10:35svenonce that's done both pcie and usb-c should be a rather simple patchset that (hopefully) will make it upstream rather quickly as well
11:00amwAlso marcan suggested you need to disable a USB entry if you run the kernel under the HV (run_guest.py) to avoid a clash. Does it matter which one? I guess I can nut it out by trial and error
11:02svenand ofc there's the annoying quirk that only the first device you plug into the ports works
11:13aleasto has joined #asahi
11:40rustylerp has joined #asahi
11:48amwsven: Not sure if you can help on this - but I'm getting a panic 'Attempted to kill init!' line 796 kernel/exit.c and this on the console - https://paste.debian.net/?show=1203231;lines=0
13:14amwsven: ok - got initrd working - was building using screwy cpio -o -c instructions - only this works : cpio -o -H newc
13:16amwNow it hangs - looks like when the output hits 16 characters output - possibly bug in vuart?
13:17minecrell has quit [Quit: :( ]
13:19rustylerp has quit [Ping timeout: 480 seconds]
13:25minecrell has joined #asahi
13:59nsklaus has quit [Quit: WeeChat 3.2]
14:00bgb has joined #asahi
14:01trollface has joined #asahi
14:03trollface has quit [Remote host closed the connection]
14:06rustylerp has joined #asahi
14:07trollface has joined #asahi
14:08trollface has quit []
14:10choozy has joined #asahi
14:11ae86 has joined #asahi
14:16ae86 has quit [Remote host closed the connection]
15:03ae86 has joined #asahi
15:06ae86 has quit [Remote host closed the connection]
15:11bgb has quit [Ping timeout: 480 seconds]
15:22rustylerp has quit [Quit: ...]
15:26ae86 has joined #asahi
15:26ae86 has quit [Remote host closed the connection]
15:27ae86 has joined #asahi
15:35ae86 has quit [Ping timeout: 480 seconds]
16:08bps has quit [Ping timeout: 480 seconds]
16:15ae86 has joined #asahi
16:23ae86 has quit [Ping timeout: 480 seconds]
16:30x56 has quit [Remote host closed the connection]
16:30x56 has joined #asahi
17:01yeoldetoast has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
17:12yuyichao has quit [Remote host closed the connection]
17:42thunfisch has quit [Read error: Connection reset by peer]
17:43thunfisch has joined #asahi
19:39happy-dude[m] has joined #asahi
20:22bps has joined #asahi
20:45quarkyalice has quit [Remote host closed the connection]
20:46quarkyalice has joined #asahi
20:52pugguu has joined #asahi
21:02pugguu has quit [Read error: Connection reset by peer]
21:03pugguu has joined #asahi
21:20pugguu has quit [Read error: Connection reset by peer]
21:21pugguu has joined #asahi
21:30Tom__ has joined #asahi
21:36choozy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
21:37StupidYui has quit [Ping timeout: 480 seconds]
21:46pugguu has quit [Read error: Connection reset by peer]
21:46pugguu has joined #asahi
22:05pugguu has quit [Ping timeout: 480 seconds]
22:05pugguu has joined #asahi
22:15pugguu has quit [Ping timeout: 480 seconds]
22:19aleasto has quit [Quit: Konversation terminated!]
23:32kfischer has joined #asahi
23:35quarkyalice_ has joined #asahi
23:39quarkyalice has quit [Ping timeout: 480 seconds]
23:57Stary_ has quit []