2021-08-07
00:06pipcet[m]I'm running that code and I'm definitely seeing a USB device and a network interface from the Linux/Intel side
00:07pipcet[m]I think what's broken is the missing dropbear package in that image so you can't actually log in :-)
00:08alyssa > Device Drivers > USB support > USB Gadget Support > USB Peripheral Controller ───────────────────────────────────────────────────────────
00:10alyssarelevant dmesg "udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers"
00:19pipcet[m]anything from the dwc3 driver in dmesg? it should probably complain about a DT/configuration mismatch...
00:37pipcet[m]you can always just move to a large initrd, though you need to change a few lines in the m1n1 proxyclient code to allow it...
00:40amwalyssa: Might be a lots easier to by a USB hub - mine works fine for keyboard + USB drive, might be limited to USB2 support though...
00:55ihaveamac has quit [Quit: fail]
00:56ihaveamac has joined #asahi
01:20Emantor has quit [Quit: ZNC - http://znc.in]
01:20Emantor has joined #asahi
01:51pipcet[m]alyssa: uhm, I got a bit carried away, I was just going to write some pseudocode for the mailbox/ASC/DCP+SMC/brightness+gpio stack, but then I hacked on it a bit more and things actually work here now
02:01quarkyalice has joined #asahi
02:21phiologe has joined #asahi
02:24PhilippvK has quit [Ping timeout: 480 seconds]
02:35yuyichao has joined #asahi
02:40quarkyalice_ has joined #asahi
02:40quarkyalice has quit [Remote host closed the connection]
03:13alyssa has quit [Remote host closed the connection]
03:17marvin24_ has joined #asahi
03:20marvin24 has quit [Ping timeout: 480 seconds]
05:31quarkyalice_ has quit [Quit: Leaving]
07:15chadmed has quit [Quit: Konversation terminated!]
07:16chadmed has joined #asahi
07:26chadmed has quit [Quit: Konversation terminated!]
09:06chadmed has joined #asahi
09:23chadmed has quit [Quit: Konversation terminated!]
09:45bisko has joined #asahi
09:53bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
10:20bisko has joined #asahi
10:22bisko has quit []
10:22bisko has joined #asahi
10:23chadmed has joined #asahi
10:26bisko has quit []
11:30dung[m] has joined #asahi
12:29tophevich[m]j_ey: (disclaimer: I've no clue what I'm talking about.) But as far as I gathered from marcan's last stream regarding installer script, you need an LB, LR and Data/System flagged partions for the group to be seen selectable as a boot option.
13:10alyssa has joined #asahi
13:50pipcet[m]alyssa: there's code at https://github.com/pipcet/linux/commit/dd4c7abffd71318cb2a2c31514ae0ad29eeed3c3 if you want to have a look, but of course it's perfectly okay if you don't and do your own thing instead :-)
13:57tophevich[m]sven: but doing it yourself means you understand the problemspace better right? :D ... so not for nothing :P
13:59tophevich[m](just wanted to give it a postive spin)
14:01pipcet[m]sven: (and I figured the way I decided to do it wouldn't fly anyway, so let's wait and see whether anything was really duplicated :P)
14:01svenno, i mean, i have some WIP code to split asc to mailbox and clients. if i had known that you worked on this i could've focused on gpio/pinctrl/or any of the other stuff that's left to do
14:03pipcet[m]j_ey: ideally, yes, but I certainly don't want to inconvenience anyone by getting incompatible changes included
14:05tophevich[m](you could use the github/asahilinux issue tracker to tracker open tasks and who does what + WIP:PRs linked to that for better visibility)
14:06alyssaIt's useful functionality, and a lot simpler than the whole web of ASC+DART+DCP+etc so a lot less bikeshedding on the LKML :)
14:06pipcet[m]alyssa: will do once I can test it on the mainline kernel and see that it still works. Thanks! :-)
14:10alyssa(Obviously the code needs some clean up before a v1 -- #if 0 is going to be a no-no, etc -- but that's the easy part)
14:16pipcet[m]I think the wdt driver should work without the clk stuff, too, but we need those for the fpwm (keyboard backlight) driver.
14:37alyssa has left #asahi [#asahi]
14:45j_eyit seems like m1n1.macho doesnt have to be at a particular location when you use kmutil configure-boot?
14:52tophevich[m]don't know if that helps you, but in the last stream this is the section where he does configure-boot on m1n1.macho: https://youtu.be/uqPLyBS20PA?t=7568
14:52tophevich[m](searched through auto-transcript)
14:55tophevich[m]yeah the last 2 times he did it on stream it seems to take forever
15:17j_eyif I execute it from the top level m1n1 directory, now I get: ModuleNotFoundError: No module named 'serial.tools', even though I ran: python3.9 -m pip install serial construct serial.tool
15:22pipcet[m]there's probably a better way, but what I do is cd to m1n1/proxyclient, then python3 -m m1n1.shell
15:39j_eytrying to boot gives me https://paste.gg/p/anonymous/22c5bc397c4349cfafd0da1d4b6656ce it looks like it's using some serial lib from the distro, not the one from pip?
15:46svenpeter[m]Did you boot over usb? Because that USB port will disappear
15:53svenpeter[m]It shouldn’t fail with an exception but if your OS does something weird that might happen
15:56j_eyIm confused then, I can't use a single USB cable to load linux, and then have access to the Linux serial output?
16:04zopieux has quit [Ping timeout: 480 seconds]
16:06zopieux has joined #asahi
16:07svenpeter[m]I’m just guessing here fwiw :)
16:08svenpeter[m]But I run uart and usb over a single cable. I believe you have to pass the uart node with -t
16:09svenpeter[m]Linux.oh
16:09svenpeter[m]It’ll switch to uart after sending the boot request over usb then
16:10svenpeter[m]Not at home right now
16:10svenpeter[m]Do you have a hardware uart?
16:11svenpeter[m]I don’t think the hv emulates the uart interface enough for Linux to use it fwiw
16:12j_ey'Under the hypervisor you can get the console output from linux via the 2nd ttyACM1 device generated by the m1n1 HV' from https://github.com/AsahiLinux/docs/wiki/SW%3ALinux
16:13svenpeter[m]Ah, I’ve never done that. No idea what’s wrong then
16:14svenpeter[m]But I still think that the uart emulated in the HV is not enough for Linux
16:15svenpeter[m]It didn’t emulate interrupts last time I checked
16:40Andalu30 has joined #asahi
18:06roxfan2 is now known as roxfan
18:28j_eyI have a kernel and initramfs that I can use with qemu and get to a busybox shell, but when trying with m1n1, it cant seem to find files in the initramfs :/
19:11Andalu30 has quit [Quit: Konversation terminated!]
20:29kallsyms has quit [Ping timeout: 480 seconds]
20:33kenzie has quit [Quit: The Lounge - https://thelounge.chat]
20:34kenzie has joined #asahi
21:11marcanLB is intended to be a FAT32 EFI partition for u-boot/grub/kernel, LR would be reformatted as ext4 for / or whatever, but that's just one possible set-up
21:14j_eymarcan: was https://paste.gg/p/anonymous/22c5bc397c4349cfafd0da1d4b6656ce one of the errors related to some python version issues?
21:19j_eyOk, I'll try again, see if it boots to the same point as when I used run_guest. when I previously tried it just seemed to be stuck at the apple logo
21:22j_eymarcan: sounds like you had pretty much the exact same symptoms/reactions as my gf, she had thw 2nd shot y/day too!
21:23opticron has quit [Ping timeout: 480 seconds]
21:24marcanyeah, 12h after the shot (at night) I got a fever, 38.5 ish, hitting 39 at times. then it went down to 37.5 and fluctuated; the first half of the next day I was tired / sore. It fluctuated a bit, shot up to 38 again briefly in the afternoon, then seems to have just gone away. <37 now.
21:25marcanand see, this is why I really should spend some time building an installer and a kernel merge/something pipeline and simple docs that work for everyone
21:26marcanpeople actually want to run this stuff now and it's silly that everyone has to fight with one thing or another :-)
21:26opticron has joined #asahi
21:27j_eythe fighting was kinda fun, apart from 2h on just not realising my .cpio.gz wasn't actually compressed. I haven't understand the src/payload.c code yet, but it seems to not handle uncompressed initramfs', but I didnt see an error :/
21:28marcanyeah, it needs to know the size and currently makes no attempt at walking a cpio to find the end
21:31marcanif you're using the hypervisor it will go to the secondary iface as vuart; if you're just chainloading it won't go anywhere because after the chainload is done your connection drops and presumably you aren't reconnecting quickly enough after that to get the spew before linux boots
21:32j_eyok then I probably wasnt paying enough attention to the vuart, but I think it would be better to error out, than just return NULL and carry on
21:32marcanand that does return NULL because it means it can't find the next payload if there were one, but it *does* boot it
21:32marcanthis is because the kernel header has a size that isn't the real file size, it's padded, so it's no good for finding the next thing, but it's good enough for loading the kernel