#
…

2023-08-10

01:10kujeger has joined #asahi-alt
03:29cylm_ has joined #asahi-alt
05:24mkurz has joined #asahi-alt
07:52stintel has joined #asahi-alt
07:59chadmedstintel: are you using the overlay/gentoosupport stuff?
08:01chadmedoh nvm sorry just saw that you already tried with dracut
08:01chadmedthats interesting
08:01stintelnot all of it though, I need patches asahi-wip kernel as the MBA 15 is not supported yet
08:01chadmedbecause i had similar problems with genkernel and kmod not being built with zstd support
08:02stintels/patches/patched/
08:02chadmedand the .config youre using is the one from the arch pkgbuild?
08:02nst_ has joined #asahi-alt
08:03stintelI'm already mighty impressed with the performance of this thing but using a browser with nomodeset is quite painful :)
08:03chadmedno freaky KRUSTFLAGS or KCFLAGS?
08:04stintelit freezes even without RUST enabled in the kernel at all
08:06chadmedhm ok, did you try with simpledrm and no dcp driver
08:06j`eyI dont think you want dcp without GPU
08:06j`eyI heard that's worse than simpledrm?
08:07chadmedbecause where its freezing looks kinda like where dcp tries to take over the fb
08:07chadmedif it works with simpledrm and no nomodeset flag then we know its dcp something
08:07jannauyes, it works without dcp, that's basically what nomodeset does
08:08chadmedyeah ok
08:08stintelwhat's the config symbol for DCP? not finding DCP
08:08chadmedDRM_APPLE
08:08jannauit's not dcp, it seems to be an issue of probing dcp's dart
08:09stintelso yeah that's what I'm doing - simpledrm with nomodeset so drm_apple isn't loaded
08:11chadmedsorry for the repitition
08:11chadmedsaw gentoo and just wanted to rule out any userspace weirdness for myself
08:11stintelthis particular trace was related to order of loading modules, due to only including few modules in the initrd (this was before I added all modules that are in /usr/lib/dracut/modules.d/99asahi-firmware/module-setup.sh in genkernel, and later I switched to dracut)
08:11jannauthe 'sysfs: cannot create duplicate filename ".*iommu.*dcp'
08:13jannaustintel: can you try to the on device kernel via usb/hv. That way you will get the full kernel log as text
08:13stintelso I'm on asahi-wip kernel with mba 15 dts patched in, u-boot asahi-releng + same DTS, and m1n1, I don't need a different m1n1 branch do I?
08:16jannauyou can boot your system via hv if you chainload a m1n1.bin which has parameters appended like
08:18jannaucat build/m1n1.bin <(echo -n "chosen.asahi,efi-system-partition=8b03438a-ad0e-c14a-900c-fc7e535882e9\nchainload=8b03438a-ad0e-c14a-900c-fc7e535882e9;m1n1/boot.bin\n\0\0\0\0") > build/m1n1_system.bin
08:19jannauand then tools/run_guest.py ../build/m1n1_system.bin
08:19stintelok will give that a try
08:19jannaureplace the 8b03438a-ad0e-c14a-900c-fc7e535882e9 with the PART_UUID of your EFI partition
08:46_jannau__missing `-r`in the command line, sorry
08:49stintelprobably doing something wrong
08:51_jannau__that seems like appending the variables did not work
08:53stintelthey seem to be there in the m1n1_system.bin - see comment on the last gist
08:58_jannau__can you check why the variables are not detected. see check_var() in src/payload.c
08:59_jannau__the unknown magic matches "chos"
09:02stintelif (!end) matches
09:02stintels/matches/evaluates to true/
09:03_jannau__missing -e in the echo command
09:07stintelhmm now if (!val) evaluates to true
09:13stintelhmm wait
09:15stintelso it finds both variables but then: Chainloading files not supported in this build!
09:15j`ey'Chainloading files not supported in this build!
09:15j`eyneed to build with rust
09:17_jannau__that, or just grab the m1n1 + u-boot + dtb bundle and append just 'chosen.asahi,efi-system-partition=$P{PARTUUID}\n\0\0\0\0'
09:17_jannau__'chosen.asahi,efi-system-partition=${PARTUUID}\n\0\0\0\0'
09:21stintelthat worked. seems it's just the display that locks up: I believe this is where the useful info starts: https://gist.github.com/stintel/bf4dc23519e22a7b9daa014a4e6cfec7#file-gistfile1-txt-L432
09:25stintelis this because disp0_dart is status disabled ?
09:26_jannau__stintel: can you see why disp0_dart is disabled? it shouldn't
09:27stintel_jannau__: it is disabled in t8112.dtsi and never enabled afaict
09:33_jannau__can I get the output of m1n1 which executes u-boot as payload
09:37_jannau__no, the one in the hypervisor
09:52stintel/sys/firmware/devicetree/base/soc/iommu@231304000 # cat status
09:52stintelso it actually is enabled
09:53_jannau__that looks sane. please paste the output of `dtc -I fs -O dts -o - /proc/device-tree | sed -n '/^\t\tdcp@/,/^\t\t};/p'`
09:54_jannau__still looks if you have an old devicetree in the m1n1 + ... bundle
10:27stintelinteresting, there the dcp does not have the piodma node
10:27stintelcould this be because of the m1n1 installed by the installer?
10:29stintelahh I think I see what's going on. the t8112.dtsi in u-boot is outdated
10:30_jannau__no, that is the dtb from m1n1/boot.bin or the one youused with run_guest.py
10:30_jannau__yes, for now always use the dtb from the same kernel you're booting
10:33stintelthan you so much for helping me get that sorted
14:12psykose has quit [Remote host closed the connection]
14:13psykose has joined #asahi-alt
16:42possiblemeatball has joined #asahi-alt
16:42Guest8429 has quit [Quit: Bridge terminating on SIGTERM]
16:42rhysmdnz has quit [Quit: Bridge terminating on SIGTERM]
16:45Jamie has joined #asahi-alt
16:46Jamie is now known as Guest8521
16:46rhysmdnz has joined #asahi-alt
16:50stipa has quit [Ping timeout: 480 seconds]
16:59stipa has joined #asahi-alt
17:10mkurz has quit [Read error: Connection reset by peer]
17:18billak has joined #asahi-alt
17:33stintelman this thing runs like a dream
17:35stintel_jannau__: thanks again. appreciate your patience :)
17:36stinteland all the instructions are in my irclogs, so if I hit some problems in the future I know at least a few things to try
17:37possiblemeatball has quit [Quit: Quit]
17:43possiblemeatball has joined #asahi-alt
18:05Cyrinux9474 has quit []
18:07Cyrinux9474 has joined #asahi-alt
18:17possiblemeatball has quit [Quit: Quit]
18:23possiblemeatball has joined #asahi-alt
18:54zumi has quit [Remote host closed the connection]
18:56zumi has joined #asahi-alt
19:31billak has quit [Ping timeout: 480 seconds]
20:08billak has joined #asahi-alt
20:33billak has quit [Quit: Konversation terminated!]
21:33cylm_ has quit [Ping timeout: 480 seconds]
22:35pthariensflame has joined #asahi-alt
23:15Armada has joined #asahi-alt
…