#asahi-dev · 2023-10-05 14:45
marcanpushed new kernel/etc to asahi-dev, please test#asahi-dev · 2023-10-05 14:06
marcaneiln: drop the v2s from the extractor then?#asahi-dev · 2023-10-05 13:35
marcanjanneg: I thought I fixed that, is this on latest main?#asahi-dev · 2023-10-05 05:10
marcanwill push if it looks good#asahi-dev · 2023-10-05 05:10
marcandoing a test build now#asahi-dev · 2023-10-05 05:10
marcaneiln: squashed all the DT stuff since it was kind of a mess, also I removed the PD dependencies since the driver does its own sequencing anyway (I think this will work around some badness for devices without a camera and fused off PDs)#asahi-dev · 2023-10-05 02:44
marcanbut all that isn't a blocker for including it downstream, it works as it is right now :)#asahi-dev · 2023-10-05 02:43
marcanone thing I noticed is v4l2 does its own mappings so you don't even need to do that yourself at all for user surfaces (right now they're all getting redundantly mapped twice, once in high VAs by the subsystem, once in low VAs by the driver)#asahi-dev · 2023-10-05 02:42
marcaneiln: oh sure, I assume you want to get rid of the manual iova management and all that#asahi-dev · 2023-10-04 16:52
marcan(just throwing commits at me in a random branch is fine too, whatever works, I'm not picky as long as I know what to do with them)#asahi-dev · 2023-10-04 16:51
marcanyou can also just have fixup commits as part of that and they will get squashed next time I do a kernel rebase, so you don't have to rebase yourself unless you want to#asahi-dev · 2023-10-04 16:50
marcanor if you're just adding commits, just test them on top of whatever tag and once happy cherry-pick them into the bits branch, and send me a PR for that#asahi-dev · 2023-10-04 16:49
marcanisp is going to be the last branch to be merged (numerically), so if you ever want to rebase/edit history the easiest way is to walk back from an arbitrary tag/asahi-wip to before the merge commit for it (will be the last), rebase on top of that point, make whatever changes and test, then once you're happy rebase on top of `base` and send it to me as a new bits branch.#asahi-dev · 2023-10-04 16:48
marcaneiln: any objections to pulling in lina's branch? you still get to rebase/send me PRs as you see fit of course, just as a starting point#asahi-dev · 2023-10-04 16:31
marcanjanneg: yes, I'll play kernel merge day tomorrow#asahi-dev · 2023-09-30 12:54
marcanquite possible :p (since I added the heap thing)#asahi-dev · 2023-09-30 12:43
marcanI'll fix this one for the next kernel tag anyway#asahi-dev · 2023-09-30 12:43
marcanin particular wifi isn't done for t602x machines and I'm in no particular rush to consider them usable until that's done, so if you really want to use them before they're ready you get to deal with the bugs :p#asahi-dev · 2023-09-30 12:41
marcanuntil machines are considered production-ready there will be dumb stuff like this (this only breaks if you use u-boot, which we rarely do for testing)#asahi-dev · 2023-09-30 12:40
marcanthe problem with t602x is just the missing no-map;, which we know.#asahi-dev · 2023-09-30 12:40
marcanyou have that backwards. those values are set by m1n1 and should never be hardcoded, in fact we should remove the existing ones.#asahi-dev · 2023-09-29 16:40
marcancool, I'll merge the bluetooth stuff (and a bunch of kernel backlog I have) soon#asahi-dev · 2023-09-29 16:35
marcanI've heard rumors that some Apple people use m1n1 with a macOS host because it's better than their own tooling ;)#asahi-dev · 2023-09-29 16:34
marcan:)#asahi-dev · 2023-09-29 16:34
marcannice#asahi-dev · 2023-09-29 16:34
marcan(if you use the hypervisor you can always ^C and `reboot` as long as it doesn't get into a really bad wedge state)#asahi-dev · 2023-09-29 16:33
marcanlow level serial stuff and remote hard reboots are possible with another Mac or custom hardware, but not at all required#asahi-dev · 2023-09-29 16:33
marcanyup#asahi-dev · 2023-09-29 16:33
marcanit's just USB#asahi-dev · 2023-09-29 16:32
marcanyeah#asahi-dev · 2023-09-29 16:32
marcan(see udev/80-m1n1.rules for the rules to set up the /dev nodes properly)#asahi-dev · 2023-09-29 16:32
marcanthe backdoor proxy mode will break boot when any of the two TTY devices are opened, so when I'm using it I just have a tools/picocom-sec.sh running in another terminal which will trigger the proxy, and also become the hypervisor vUART if you use that#asahi-dev · 2023-09-29 16:30
marcanyeah, it's a nice toolset to hack on pretty much all the hardware :)#asahi-dev · 2023-09-29 16:28
marcan(tools/run_guest_kernel.sh will do the chainload itself)#asahi-dev · 2023-09-29 16:28
marcanfor hypervisor: make -C .. && tools/run_guest_kernel.sh <path to linux build tree root> 'debug rootwait root=/dev/nvme0n1p6 rootflags=subvol=root' <...>/initramfs.cpio.gz#asahi-dev · 2023-09-29 16:27
marcanmy usual recipe for testing kernels bare metal is (in m1n1/proxyclient): make -C .. && python tools/chainload.py -r ../build/m1n1.bin && tools/linux.py <...>/arch/arm64/boot/Image.gz <...>/arch/arm64/boot/dts/apple/t8112-j413.dtb <...>/initramfs.cpio.gz -b 'debug rootwait root=/dev/nvme0n1p6 rootflags=subvol=root'#asahi-dev · 2023-09-29 16:26
marcanjonmasters: FWIW page isn't fully up to date, but you always want to chainload a new m1n1 before hypervisor or linux.py to make sure you use your up to date tree, not whatever stage1 is#asahi-dev · 2023-09-29 16:25
marcan:D#asahi-dev · 2023-09-29 16:25
marcan:)#asahi-dev · 2023-09-29 16:24
marcanha#asahi-dev · 2023-09-29 16:23
marcanthe other machine can be any arbitrary computer fwiw#asahi-dev · 2023-09-29 16:23
marcanwith the backdoor mode stage1 breaks into USB mode and then you can just chainload m1n1 (for updates) and linux.py a kernel, or use the hypervisor, or whatever#asahi-dev · 2023-09-29 16:22
marcanI've been moving more minor init stuff from stage1 to stage2 since it's safer/more flexible that way over time, in principle stage1 should do the minimum possible to load stage2 or enable USB mode#asahi-dev · 2023-09-29 16:22
marcanstage1's only job is to load stage2#asahi-dev · 2023-09-29 16:22
marcanyes, stage2 handles runtime dtb changes#asahi-dev · 2023-09-29 16:22
marcanthat's my workflow these days, install normally, enable that (can even be done during the install step2 part, in a new terminal tab)#asahi-dev · 2023-09-29 16:21
marcanlook for the backdoor proxy mode section to enable USB loading (with a timeout so it defaults to normal boot), no need to replace anything#asahi-dev · 2023-09-29 16:21
marcanI/most of us just load kernels/devicetrees over USB#asahi-dev · 2023-09-29 16:21
marcanjonmasters: https://github.com/AsahiLinux/docs/wiki/Tethered-Boot-Setup-%28For-Developers%29#asahi-dev · 2023-09-28 05:11
marcanis there anything else you want to change before I go ahead and pull it?