ChanServ changed the topic of #asahi to: Asahi Linux: porting Linux to Apple Silicon macs | General project discussion | GitHub: https://alx.sh/g | Wiki: https://alx.sh/w | Topics: #asahi-dev #asahi-re #asahi-gpu #asahi-offtopic | Keep things on topic | Logs: https://alx.sh/l/asahi
Stary has joined #asahi
Stary is now known as Guest1406
Guest1406 is now known as Stary
quarkyalice_ has quit [Remote host closed the connection]
quarkyalice has joined #asahi
quarkyalice has quit []
quarkyalice has joined #asahi
alyssa has joined #asahi
* alyssa tries to boot linux
bgb has joined #asahi
kfischer has quit [Quit: kfischer]
yeoldetoast has joined #asahi
kfischer has joined #asahi
<kfischer> marcan: Alright, I’ve made some progress here. With the dart/dev branch and a dumb USB-C -> USB-A dongle, USB host works fine. Then with a slight modification to the device tree, I can also enable usb device mode and load the ethernet gadget in such a way that it shows up on the host as a USB device. No luck convincing macOS to actually load an ethernet driver for it though
bgb has quit [Ping timeout: 480 seconds]
<brentr123[m]> Sorry unrelated but happy 4th of July to all my American friends!!
yeoldetoast has left #asahi [Textual IRC Client: www.textualapp.com]
kfischer has quit [Quit: kfischer]
kfischer has joined #asahi
kfischer has quit [Quit: kfischer]
kfischer has joined #asahi
kfischer has quit [Quit: kfischer]
ae86 has joined #asahi
<amw> kfischer: Are you going to try Linux? I believe the vuart under HV while remaining hangs on long lines so beware
<ae86> What even is linux
phiologe has joined #asahi
PhilippvK has quit [Ping timeout: 480 seconds]
skipwich has quit [Ping timeout: 481 seconds]
bgb has joined #asahi
marvin24 has joined #asahi
ae86 has quit [Remote host closed the connection]
ae86 has joined #asahi
<marcan> amw: he's running it natiev
<marcan> *native
marvin24_ has quit [Ping timeout: 480 seconds]
<amw> I'm slowly understanding the HV, samsung-uart driver. I can add debug to the Linux, m1n1 so I will slowly get to the bottom of the stuck vuart
<ae86> Why did apple implement iokit into firmware?
ae86 has quit [Remote host closed the connection]
ae86 has joined #asahi
bgb has quit [Ping timeout: 480 seconds]
<amw> marcan: Tracing vuart() shows it happily writing in FIFO mode and then the writes stop but nothing has reported TxFull, but if I hack the s5l_serial_drv_data to fifosize = 160 (versus 16) it doesn't hang/block...
pugguu has joined #asahi
aleasto has joined #asahi
pugguu has quit [Read error: Connection reset by peer]
pugguu has joined #asahi
choozy has joined #asahi
riker77 has quit [Quit: Quitting IRC - gone for good...]
riker77 has joined #asahi
choozy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
<sven> kfischer: fwiw, i also had trouble to get the serial gadget driver to load on macos. it didn't want to attach it to the kext. worked fine on linux though and i didn't care enough to figure out why
<sven> and nice to know that the role switching also works :-)
<amw> sven: Using the dev/dart kernel haven't been able to get any USB detected / working with linux.py or under HV run_guest.py with a disabled dwc3-0
<amw> I used a Type-C=>Type-A adapter and also a Type-C => 4 port Type A Hub
<sven> hm... strange
<sven> anything in dmesg?
<amw> Nothing at all - so I'm probably screwed up something :-(
<amw> *I've
<sven> does it show the dwc3 controllers at least?
<sven> if not, make sure both dwc3 and xhci is enabled in your configuration
<amw> No. - See the few messages I get here: https://paste.debian.net/1203360/
<sven> yeah, they might just be disabled in the kernel config
<amw> Hmm - what CONFIG's are those?
<sven> don't know by heart, but you can just search for dwc3 in make menuconfig
<sven> (i.e. press / and then enter dwc3)
<eta> (you can search?!?!)
<sven> you'll need dwc3, xhci and dart
<amw> CONFIG_USB_DWC3_HOST DWC3_HAS_XHCI CONFIG_USB_XHCI_HCD
<sven> sounds about right
<j_ey> eta: yes you can search!
<eta> this discovery is almost as great as when I figured out there's a key you can press to find module deps
<sven> :D
<amw> Hmm - non of them set .... :-D
<eta> instead of just getting the stupid "this has to be built as a module because its deps are" warning when you press Y
<sven> amw: oh, and you'll also need dart ofc
<j_ey> eta: in the search menu, you will see numbers on the left, you can press them to jump to the results
<eta> wild
pugguu has quit [Read error: Connection reset by peer]
pugguu has joined #asahi
<amw> Ugh it's going to take me a while to find all those options in menuconfig - tomorrow!
<sven> oh, it's simple
<sven> just press /
<sven> then you should see a search window
<sven> just type DWC3 in there
<amw> sven: Thanks - I've just been threshing around in the config => / search is *really* helpful - once I figured out how to navigate it :-)
<sven> :)
<amw> sven: YES! - I have plugged in a USB keyboard and happily typing in there.... - Thanks you SO MUCH !!!!
<sven> nice :-)
pugguu has quit [Ping timeout: 480 seconds]
pugguu has joined #asahi
pugguu has quit [Ping timeout: 480 seconds]
<amw> I added a photo to the Wiki - https://github.com/AsahiLinux/docs/wiki/SW:Linux#linux-usb-keyboard - thanks again!
<jn> heh, it's the good old dell keyboard with the built-in smartcard reader
<jn> i have one too
yuyichao has joined #asahi
<amw> This will sound dumb - but I *never* realised it had a smart card reader till you mentioned it! I just thought it was an old keyboard ....
thunfisch has quit [Ping timeout: 481 seconds]
PhilippvK has joined #asahi
<JTL> amw: funny
phiologe has quit [Ping timeout: 480 seconds]
<alyssa> sven: any idea why my kernel is failing to boot?
<alyssa> when I try it just hangs on.. the apple logo
<sven> uh
<sven> how did you run that kernel?
<alyssa> linux.py, and also tried concatenating with m1n1 and hypervisoring it
<sven> do you have a uart cable?
<alyssa> No
<alyssa> was hoping vuart would be enough if it came to that
<sven> M1N1DEVICE=/dev/tty.usbmodemP_03 python3 proxyclient/tools/linux.py Image.gz t8103-j274.dtb initramfs.cpio.gz
<sven> so that's what i use with a uart cable
<sven> make sure to disable the first dwc3 controller if you want to use vuart
<alyssa> Er ok
<alyssa> what initramfs are people using?
<alyssa> I don't usually use one, then again -ENONVME ..
<sven> some dumb busybox thing
<sven> let me see if i can just upload it
<sven> and yeah.. nvme.. first dart, then usb, the pcie and then nvme ;)
<alyssa> sven: a binary only copy of Busybox? I thought better of you
<sven> i blame marcan! he gave that one to me
<alyssa> Please mail a DVD containing the corresponding source code to my address, ..
<sven> right, let me delete that file again :-P
<alyssa> 😋
thunfisch has joined #asahi
<alyssa> sven: Maybe there's something broken with the kernel I built
<sven> do you get any output when you run it under the hv?
<alyssa> d'oh
<alyssa> nope still nothing
<alyssa> but that should be, er, closer
<sven> just to be sure: there are two ttys once the hv is running
<sven> the second one is the vuart one
willy has quit [Ping timeout: 480 seconds]
ae86 has quit [Read error: Connection reset by peer]
ae86 has joined #asahi
bps has quit [Remote host closed the connection]
bps has joined #asahi
ae86 has quit [Remote host closed the connection]
phiologe has joined #asahi
PhilippvK has quit [Ping timeout: 480 seconds]
<Ariadne> if people need help with busybox feel free to ping me
skali has joined #asahi
bps has quit [Ping timeout: 480 seconds]
skali has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tertu has joined #asahi
<marcan> amw: vuart is just not implemented, like, at all
<marcan> it's not a bug, it's just missing everything but trivial writes
<marcan> we need to implement tx complete IRQs and rx IRQs at the very least for this to work
<marcan> and rx itself of course
<marcan> linux will write one FIFO worth of characters, then wait for an IRQ
<marcan> no IRQ, no worky
<marcan> also I'm pretty sure that busybox is from a debian package or something :p
<marcan> definitely didn't compile it myself at least
<alyssa> marcan: Please send the entirety of the Debian source code as a stack of DVDs in exchange for a nominal fee I will send to you by check.
<alyssa> 😋
<marcan> need to check if japan post is *finally* shipping to the US
<alyssa> OOf
bps has joined #asahi
aleasto has quit [Remote host closed the connection]
tomtastic has quit [Ping timeout: 480 seconds]
yrlf has quit [Quit: The Lounge - https://thelounge.chat]
yrlf has joined #asahi
quarkyalice_ has joined #asahi
quarkyalice has quit [Ping timeout: 480 seconds]