#
…

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:27amwkfischer: Which python proxy client did you use? run_guest.py (under HV) or linux.py?
01:28kfischeramw: I tried both
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:37kfischercurrently trying to see if the gadget console will work
01:41amwDid you get the console=ttySAC0,1500000 output on the 2nd serial interface on other PC?
01:43kfischerno, both serials disappear as soon as Linux takes over
01:44amwI don't think it does under run_guest.py (from memory) - I'll have to try again and update the Wiki
01:44kfischerlet me try again and make sure
01:45kfischerYeah, they’re both gone, even with run_guest.py
01:46amwThat's strange I think as long as the HV is running it should be keeping the USB gadget's going?
01:47kfischer:shrug: that’s that I expected, but they’re definitely gone
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....
01:58kfischeramw: Hmm, ok, which version of m1n1 are you using?
02:00amwI've got a compile date of 22 June
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:19kfischerAnyway, I think I’m done for the day
02:26amwkfischer: From the "Starting Shell: Still running ..." is most definitely from my initrd shell that I put in there.
02:26kfischeramw: Oh, I see. I was expecting linux console syslog spew :)
02:27kfischeramw: Anyway, for me that doesn’t happen, it just dies
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:27kfischermaybe I should go back to the kernel without dwc3 driver
02:28kfischerperhaps it’s tearing that down when the kernel starts up
02:28kfischernot sure if I ever tried that configuration
02:28kfischeralright, let’s call that the last experiment of the night :)
02:29amwSure: I'm going back to studying the page tables - I think I just understand the 3 layers under the HV...
02:29kfischerthanks for your help
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:36kfischerOk, that’s doing something. How do I pass boot cmdline to the kernel?
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:44kfischerAlright, I might try that at some point
02:45marcankfischer: you need to hack the devicetree to disable the usb if running under the hypervisor
02:45marcanotherwise it collides and fails
02:45marcanthe HV only does it for the ADT, and m1n1 does not currently forward that into the DT
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:46marcanactually input isn't supported yet in the hypervisor vserial... :)
02:46marcanit's on my todo list
02:47marcanI currently mostly expect people to use the HV for very low level debug
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:48marcanthough you should be able to get USB to work with sven's branch
02:48marcanvia the type C ports at least
02:48amwIt sounded like some people were getting something via m1n1 -> uboot -> linux
02:48marcando note that hotplug doesn't work though
02:48marcanyeah, that's the expected path
02:49PhilippvK has joined #asahi
02:49amwI don't think there are any posted / official binaries only dev trees in various states...
02:49marcanyeah... it's a bit chaotic right now
02:49marcansven can probably give you pointers as to what works exactly
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:49marcanI've been meaning to collate this all into a branch with known good instructions
02:50marcankfischer: have you tried usb host mode?
02:50marcanjust plug in a keyboard and use the screen
02:50marcanAIUI that works
02:50marcanhotplug should work on a hub (just not on the root port)
02:50kfischeryes, tried that
02:50marcanon the type C ports?
02:50kfischerwell, type C to dock to USB keyboard
02:51marcanhm, what kind of dock?
02:51kfischerI don’t have a USB-C keyboard
02:51marcanI could see a dock not working
02:51kfischerCaldigit dock
02:51marcanif it requires USB-PD negotiation or thunderbolt or whatever weird thing
02:51marcanI recommend a plain type C to type A adapter cable
02:51kfischermight require thunderbolt
02:51marcanyeah we definitely don't do that yet
02:52kfischerI don’t think I have an appropriate cable that goes that way around
02:52kfischerbut I can probably find one
02:52phiologe has quit [Ping timeout: 480 seconds]
02:55ihaveamac has quit [Quit: fail]
02:57ihaveamac has joined #asahi
02:59kfischerAlright, may pick one of those up tomorrow - will let you know how it goes
03:01kfischer has quit [Quit: kfischer]
03:04marcancool! :)
03:04marcanhope we can write up some better docs soon, sorry that it's so haphazard
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:32svenyeah, docks won't work. they'll need thunderbolt
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:34sven*upstream
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
10:37sven(usb-c is just adding a node to the dt and maz' pcie patch is a single new file then)
10:59amwsven: Do you have a device tree for the dart/dev branch?
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:00svenuh, the dart/dev branch includes a device tree with usb
11:00svenbut i never run linux under the hv
11:00svenshould be the first one though that needs to be disabled i think
11:00amwok - thanks
11:01sventhe darts as well
11:02svenand ofc there's the annoying quirk that only the first device you plug into the ports works
11:03amwI am guessing linux/arch/arm64/boot/dts/apple/t8103.dtsi
11:06sventhat's the commit that adds the nodes, just remove the first three and it might work
11:08amwok - was just going to add status = "disabled";
11:08svensure, that should also work
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
11:52svensounds like a userland issue
11:53sveneither your init processed failed to start or it terminated for some reason
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:35marcanamw: vuart is only barely implemented, should work for earlycon but that's about it
13:35marcanit needs to be a lot more complete for the real driver to work
13:35marcanno IRQs etc, so you're probably seeing the first FIFO fill and then it hangs
13:51amwHmm ok will look at it tomorrow - plenty of things to play with...
13:56svenlet me know if there are any issues with the dart or usb
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:11ae86What's up
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
20:52pugguuWhere's marcan
20:53pugguuHe hasent been doing any streams lately
20:53j_eypugguu: been busy, he'll be back when he's ready!
20:54pugguuOk just wondering
20:54pugguuWas just Abit worried
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 []
…