#
…

2021-12-28

00:43DarkShadow44 has quit [Quit: ZNC - https://znc.in]
00:43DarkShadow44 has joined #asahi
01:09balrog has quit [Quit: Bye]
01:14balrog has joined #asahi
01:36Dcow has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
01:38marcanj`ey: there is some APFS compression thing in use, but I don't know how to turn it on when copying the file out in the installer
01:43tpw_rulesis the dmg signed or something? they support compression internally
01:43Dcow has joined #asahi
01:45marcanit's APFS and signed at that level I think?
01:46marcannot entirely sure at what layer their hash tree stuff works
01:46marcanlandscape15[m]: s/1TR/system recovery/
01:46marcan1TR is not "the fallback recovery"
01:47marcan1TR is "any signed recovery you booted asserting physical presence"
01:47marcanI conflated these two in the past since 11.x always used the global one, and now everyone is confused :<
02:16yuyichao has quit [Ping timeout: 480 seconds]
02:27riker77_ has joined #asahi
02:32snek has joined #asahi
02:32riker77 has quit [Ping timeout: 480 seconds]
02:32riker77_ is now known as riker77
02:38Dcow has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
02:39Dcow has joined #asahi
03:06yuyichao has joined #asahi
03:22amwBooted wifi/take5 on my MBA - everything working including wifi - but I get a USB WARN msg when I unplug the USB cable I boot the mba over - see https://paste.debian.net/1224994/
03:23chadmed has joined #asahi
03:24amwI think it is do with the kernel trying to use the USB cable as a gadget for a serial or something?
03:25amwIt seems harmless so I'm happy with my set up on the MBA - just waiting for the battery + u-boot NVME booting now
03:27tpw_rulesu-boot nvme booting works fine
03:29tpw_ruleswell i haven't tested it with the wifi linux branch
03:29tpw_rulesor on a not macbook mini
03:29tpw_rulesair >_>. only tested it on the mac mini
03:30Dcow has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
03:32amwtpw_rules: I thought it left the nvme running which linux didn't like when it started
03:32tpw_rulesthat was fixed
03:32tpw_rulesi've pretty much exclusively been using it that wauy
03:33tpw_rulesit doesn't work with the new nvme branch for whatever reason
03:33Dcow has joined #asahi
03:33amwWow - that's great
03:34tpw_rulesit is worth noting that u-boot does not have drivers for the built in keyboard yet. and you might wish to apply this patch i made: https://github.com/tpwrules/nixos-m1/blob/main/nix/u-boot/0001-fix-slow-boot.patch to stop having to wait 60 seconds to load the kernel unless you press a key
03:34amwI have the default boot to m1n1 so if I bundle that with u-boot I can boot to linux.
03:36tpw_rulesyou might also have to futz with device trees. not sure if u-boot has the necessary stuff for the wifi, or can use linux's versions
03:42Dcow has quit [Ping timeout: 480 seconds]
03:43amwMyh expeience with u-boot was that you can use it to load the dtb and kernel image into memory from the disk - so hopefully I just need to put it in the right spot (/boot) on the nvme and all should be good - what could go wrong :-)
03:50phiologe has joined #asahi
03:53PhilippvK has quit [Ping timeout: 480 seconds]
04:00Dcow has joined #asahi
04:02caef^ has quit [Remote host closed the connection]
04:08Dcow has quit [Ping timeout: 480 seconds]
04:17yrwm^ has joined #asahi
04:18marvin24_ has joined #asahi
04:21marvin24 has quit [Ping timeout: 480 seconds]
04:50squags_ has joined #asahi
04:56squags has quit [Ping timeout: 480 seconds]
05:10Dcow has joined #asahi
05:18Dcow has quit [Ping timeout: 480 seconds]
06:00Dcow has joined #asahi
06:06nobodynada has quit [Ping timeout: 480 seconds]
06:08Dcow has quit [Ping timeout: 480 seconds]
06:37squags_ has quit [Ping timeout: 480 seconds]
06:40sailorek1234 has joined #asahi
06:47squags has joined #asahi
06:55squags has quit [Ping timeout: 480 seconds]
07:04squags has joined #asahi
07:12squags has quit [Ping timeout: 480 seconds]
07:18bpye has quit [Quit: The Lounge - https://thelounge.chat]
07:21squags has joined #asahi
07:24bpye has joined #asahi
07:29squags has quit [Ping timeout: 480 seconds]
07:38squags has joined #asahi
07:47squags has quit [Ping timeout: 480 seconds]
07:56squags has joined #asahi
07:58the_lanetly_052 has joined #asahi
08:12Dcow has joined #asahi
08:19babilen has joined #asahi
08:21Dcow has quit [Ping timeout: 480 seconds]
08:22squags has quit [Ping timeout: 480 seconds]
08:30squags has joined #asahi
08:38darkapex4 has joined #asahi
08:43darkapex3 has quit [Ping timeout: 480 seconds]
08:47Dcow has joined #asahi
08:55the_lanetly_052 has quit [Ping timeout: 480 seconds]
09:02the_lanetly_052 has joined #asahi
09:07the_lanetly_052__ has joined #asahi
09:08Dcow has quit [Ping timeout: 480 seconds]
09:11the_lanetly_052 has quit [Ping timeout: 480 seconds]
09:23the_lanetly_052__ has quit [Ping timeout: 480 seconds]
09:29darkapex has joined #asahi
09:35darkapex4 has quit [Ping timeout: 480 seconds]
09:38squags has quit [Ping timeout: 480 seconds]
09:46squags has joined #asahi
09:55squags has quit [Ping timeout: 480 seconds]
10:03squags has joined #asahi
10:34Dcow has joined #asahi
10:42Dcow has quit [Ping timeout: 480 seconds]
10:53marcanamw: I think there's something dodgy about gadget mode, yeah; I wouldn't worry too much about it for now
10:54marcanamw: loading DTBs from u-boot is not supported
10:54marcanm1n1 needs to process the dtb before it can be used
10:54marcanbypassing that will break a bunch of things
10:59mps has quit [Ping timeout: 480 seconds]
11:11squags has quit [Ping timeout: 480 seconds]
11:19squags has joined #asahi
11:21darkapex1 has joined #asahi
11:22mps has joined #asahi
11:25darkapex has quit [Ping timeout: 480 seconds]
11:27squags has quit [Ping timeout: 480 seconds]
11:37squags has joined #asahi
11:41malvo has quit [Ping timeout: 480 seconds]
11:43amwmarcan: Ok - you process the dtb with stuff from the Apple EFI or something?
11:44amwIs it possible to use the python to pre-process the .dtb so that it can be saved in the NVME partition and uboot can pick it up as normal?
11:44j`eynot EFI, but from Apples device tree
11:46squags has quit [Ping timeout: 480 seconds]
11:53malvo has joined #asahi
11:54squags has joined #asahi
11:54svenno, the device tree will always come from m1n1
11:54svenputting it into nvme separate from m1n1 will result in a lot of headaches eventually
11:59marcanamw: no, the dtb has to be processed with *runtime* information from your machine
11:59marcanwe already make everything that can be static static
11:59marcandevice trees are designed to be updated by bootloaders with runtime information
11:59marcanstatic DTs only work for very simple machines; these machines aren't simple
12:00marcanthere are things that change every boot
12:00j`eyeven then, bootloaders can update them with kernel args etc
12:00j`eykaslr seed too
12:00marcanyes, kaslr changes the SEPFW address on every boot
12:00marcanand the memory base potentially
12:00amwWow - nothing's ever easier...
12:01marcanand the framebuffer address can change depending on what monitor you have plugged in, or could until apple broke it on the mini entirely
12:01marcanI really need to start making a pile of "don't do that" patches for linux/u-boot/etc - something that gives you big "don't do that" warnings every time someone tries to do something that won't work, like load a dtb :p
12:02squags has quit [Ping timeout: 480 seconds]
12:02amwI think a u-boot page might be useful spot?
12:02amwon the wiki
12:03marcannobody reads wikis :p
12:03marcanbetter have some warnings in the actual code
12:03marcanthis is distro-level stuff; I don't mind maintaining some trivial downstream patches like that just to save us headaches when people come here for support
12:04amwThere's only one Asahi Wiki page - but many clones of u-boot...
12:07chadmed has quit [Quit: Konversation terminated!]
12:10squags has joined #asahi
12:18squags has quit [Ping timeout: 480 seconds]
12:21Dcow has joined #asahi
12:27squags has joined #asahi
12:50Dcow_ has joined #asahi
12:50Dcow has quit [Remote host closed the connection]
12:55Dcow_ has quit []
13:06Dcow has joined #asahi
13:14boardwalk has quit [Quit: Ping timeout (120 seconds)]
13:14boardwalk has joined #asahi
13:15jeffmiw has joined #asahi
13:20jeffmiwamw: if you want to boot directly to linux, you can just use the m1n1 direct payload method : just cat m1n1 with dtb and kernel image (and initrd if needed) and install this with kmutil (See wiki/developer-quickstart=> Direct payload booting)
13:26Dcow has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
13:28landscape15[m]is it safe to use fdisk to initialize a FAT partition created on macOS? I will install Linux on it then.
13:30kgarrington has joined #asahi
13:31kgarrington has quit [Remote host closed the connection]
13:31Dcow has joined #asahi
13:31Dcow has quit []
13:35squags has quit [Ping timeout: 480 seconds]
13:37aleasto has joined #asahi
13:38aleasto has quit [Remote host closed the connection]
13:40aleasto has joined #asahi
13:40aleasto has quit [Remote host closed the connection]
13:41aleasto has joined #asahi
13:43squags has joined #asahi
13:52squags has quit [Ping timeout: 480 seconds]
13:59squags has joined #asahi
14:23joske has joined #asahi
14:23joskejeffmiw: how do you pass the rootfs/boot arguments in that case?
14:25mpsjoske: https://tpaste.us/kxg9 this is my POC script to install alpine on usb, look at 'cat ....' part
14:26joskemps: rhxz
14:26DarkShadow44 has quit [Quit: ZNC - https://znc.in]
14:26joskemps: thx
14:26DarkShadow44 has joined #asahi
14:28mpsjoske: sorry, this one is cleaner https://tpaste.us/OrkV
14:32joskemps: hmm, boots to m1n1 proxy :-/
14:32joskeno valid payload found
14:39yuyichao has quit [Ping timeout: 480 seconds]
14:40jeffmiwdid you use the dtb of your model ? in this mode, m1n1 checks hw model versus dtb model
14:40jeffmiwwhich hw are you using and which dts/b ?
14:40mpsjoske: no, this script is intended to catenate m1n1, kernel and dtb in one file which must be installed with kmutil
14:41joskeair, t8103-j313.dtb
14:41joskemps: yes, that's what I did (manually)
14:41joskecat build/m1n1.macho <(echo $bootargs) Image.gz t8103-j313.dtb > boot-payload.macho
14:42joskebootargs='root=/dev/nvme0n1p5 rootwait rootfstype=ext4'
14:43mpson top of script I defined 'model' variable and put value for my machine `model='j293'` but it intended be changed for users who install to set their model there
14:43joskeImage.gz and dtb are working when booting from m1n1
14:43joskemps: yes I understand, but I didn't run your script, I just used the cat line to create the macho binary from my m1n1 + kernel etc
14:44joskeI already have a working linux
14:44mpsjoske: I remember
14:44joskejust want to have it boot directly
14:44mpsjoske: what you mean by 'directly'
14:45joskefrom reboot
14:45joskenot boot to m1n1 and use another PC to boot kernel
14:45mpsjoske: this what i posted is for that, i.e. boot directly
14:46joskeyes, but it doesn't work (installed with kmutil)
14:46joskeit says no valid payload found
14:46j`eyjoske: if you have something that works with chainload, it should work with kmutil
14:46mpsaha, maybe somewhere is bug then
14:47joskethe boot args go directly after m1n1??
14:47mpsI don't have time now to check it again
14:47joskethat's what your script does
14:47mpsyes, that's ok
14:47mpsmaybe your shell messed bootargs
14:48joskeI tested with a test file to see if the <$() works
14:48kettenismarcan: maybe you should look into what happens with the Linux device tree; I think we want to prevent it from being installed and/or shipped by distros as part of their device tree package
14:48jeffmiwjoske: can you paste the output of m1n1 somewhere ? the code checking the payload is here: https://github.com/AsahiLinux/m1n1/blob/23c3617cf2b0b22fe5e22d07c3f757ba19092b25/src/payload.c#L204
14:51joske[silence m1n1]# M1N1DEVICE=/dev/ttyACM0 proxyclient/tools/chainload.py boot-payload.macho
14:51joskeTTY> height: 1600
14:51joskeTTY> 2560
14:51joskeTTY> depth: 30bpp
14:51joskeTTY> density: 1
14:51joskeTTY> machine_type: 0
14:51joskeTTY> devtree: 0xfffffe000f84c000
14:51joskeTTY> devtree_size: 0x58000
14:51joskeTTY> cmdline:
14:51joskeTTY> boot_flags: 0x0
14:51joskeTTY> mem_size_act: 0x400000000
14:51j`eyin a paste site..
14:51joskeTTY> m1n1 vcde8b78-dirty
14:51joskeTTY> Copyright (C) 2021 The Asahi Linux Contributors
14:51joskeTTY> Licensed under the MIT license
14:51joskeTTY> Running in EL2
14:51mpsj`ey: too late :)
14:51joskeTTY> Device info:
14:51joskeTTY> Model: MacBookAir10,1
14:51j`eymps: ah well
14:51joskeTTY> Target: J313
14:51joskeTTY> Board-ID: 0x26
14:51joskeTTY> Chip-ID: 0x8103
14:51joskeTTY> Heap base: 0x8080ec000
14:51joskeTTY> MCC: Initializing T8103 MCC...
14:51joskeTTY> MCC: Initialized T8103 MCC (8 channels)
14:52joskeTTY> MMU: Initializing...
14:52joskeTTY> MMU: Adding nGnRE mapping at 0x400000000 (0x80000000)
14:52joskeTTY> MMU: Adding nGnRE mapping at 0x480000000 (0x80000000)
14:52joskeTTY> MMU: Adding nGnRE mapping at 0x580000000 (0x80000000)
14:52joskeTTY> MMU: Adding nGnRE mapping at 0x600000000 (0x80000000)
14:52joskeTTY> MMU: Adding nGnRE mapping at 0x6a0000000 (0x20000000)
14:52joskeTTY> MMU: Adding nGnRE mapping at 0x6c0000000 (0x40000000)
14:52joskeTTY> MMU: Adding nGnRE mapping at 0x700000000 (0x100000000)
14:52joskeTTY> MMU: RAM base: 0x800000000
14:52joskeTTY> MMU: Top of normal RAM: 0xbdf070000
14:52joskeTTY> MMU: Unmapping TZ0 region at 0xbdf078000..0xbe0e20000
14:52joskeTTY> MMU: Unmapping TZ1 region at 0xbdf070000..0xbdf078000
14:52joskeTTY> MMU: Unmapping TZ3 region at 0xbe6e64000..0xbffe64000
14:52joskeTTY> MMU: SCTLR_EL1: 30100180 -> 30901085
14:52joskeTTY> MMU: running with MMU and caches enabled!
14:52joskeTTY> fb init: 2560x1600 (30) [s=2560] @(nil)
14:52joskeTTY> fb console: max rows 46, max cols 64
14:52joskeTTY> fb: display logo
14:52joskeTTY> AIC: Version 1 @ 0x23b100000
14:52joskeTTY> WDT registers @ 0x23d2b0000
14:52joskeTTY> WDT disabled
14:52joskeTTY> pmgr: Cleaning up device states...
14:52joskeTTY> pmgr: Enabling SIO_ADMA, parent of active device MCA1
14:52joskeTTY> pmgr: Enabling ANS2, parent of active device APCIE_ST
14:52joskeTTY> pmgr: Enabling DEBUG, parent of active device DEBUG_USB
14:52joskeTTY> pmgr: initialized, 268 devices found.
14:52joskeTTY> cpufreq: Initializing clusters
14:52joskeTTY> cpufreq: Switching cluster PCPU to P-State 7
14:53joskeTTY> Initialization complete.
14:53joskeTTY> Checking for payloads...
14:53joskeTTY> Devicetree compatible value: apple,j313
14:53joskeTTY> Unknown payload at 0x8039c0000 (magic: 726f6f74)
14:53joskeTTY> No valid payload found
14:53joskeTTY> dart: dart /arm-io/dart-usb0 at 0x382f80000 is a t8020
14:53joskeTTY> USB0: initialized at 0x808118050
14:53joskeTTY> dart: dart /arm-io/dart-usb1 at 0x502f80000 is a t8020
14:53joskeTTY> USB1: initialized at 0x808118500
14:53joskeTTY> Running proxy...
14:53joskem1n1 base: 0x803904000
14:53joskeLOAD: _HDR 16384 bytes from 0 to 0
14:53joskeLOAD: TEXT 147456 bytes from 4000 to 4000
14:53joskeLOAD: RODA 32768 bytes from 28000 to 28000
14:53joskeLOAD: DATA 393216 bytes from 30000 to 30000
14:53joskeZERO: 180224 bytes from 0x90000 to 0xbc000
14:53joskeLOAD: PYLD 7042534 bytes from 90000 to bc000
14:53joskeSKIP: 60066330 bytes from 0x7735e6 to 0x40bc000
14:53joskeFetching ADT (0x00058000 bytes)...
14:53joske has quit [Quit: Leaving]
14:54joske has joined #asahi
14:54joske has left #asahi [#asahi]
14:55joske has joined #asahi
14:55j`eyjoske: your boot args are messed up, you have (echo $bootargs)
14:55j`eybut bootargs='root...'
14:56j`eyso that echos 'root..', but it should be: echo bootargs='root..
14:57joskej`ey: aha thx
15:03yuyichao has joined #asahi
15:06MajorBiscuit has joined #asahi
15:08squags has quit [Ping timeout: 480 seconds]
15:11sailorek1234 has quit [Quit: sailorek1234]
15:16squags has joined #asahi
15:24squags has quit [Ping timeout: 480 seconds]
15:29Dcow has joined #asahi
15:30hollister has joined #asahi
15:32squags has joined #asahi
15:38Dcow has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
15:41squags has quit [Ping timeout: 480 seconds]
15:48squags has joined #asahi
16:08c10l has quit [Quit: The Lounge - https://thelounge.chat]
16:08c10l has joined #asahi
16:09c10l has quit []
16:09c10l has joined #asahi
16:14malvo has quit [Ping timeout: 480 seconds]
16:15darkapex2 has joined #asahi
16:16yrwm^ has quit [Remote host closed the connection]
16:16Dcow has joined #asahi
16:20darkapex1 has quit [Ping timeout: 480 seconds]
16:32joske has quit [Ping timeout: 480 seconds]
16:33hollister has quit [Ping timeout: 480 seconds]
16:34joske has joined #asahi
16:46joske has quit [Remote host closed the connection]
16:46malvo has joined #asahi
16:46joske has joined #asahi
16:57squags has quit [Ping timeout: 480 seconds]
17:06squags has joined #asahi
17:14squags has quit [Ping timeout: 480 seconds]
17:21malvo has quit [Read error: Connection reset by peer]
17:21malvo has joined #asahi
17:23squags has joined #asahi
17:31squags has quit [Ping timeout: 480 seconds]
17:39squags has joined #asahi
18:13rose_ has joined #asahi
18:20rose_hey im back with more problems - im trying to get some output from u-boot to prove it works since upgrading to 12.1 (turns out i shouldn't have done that so eagerly lol) and i've heard that since 12.1, iboot no longer inits the framebuffer, which is why u-boot isn't displaying anything. apparently, there are people here who know the incantations
18:20rose_needed to get video output from u-boot even with this update?
18:22rose_ehh i gtg for a while but i'll check the logs later
18:22tpw_rulesi mean you can run it under the hypervisor
18:22tpw_rulesand it will talk on the serial console. not sure about video
18:22rose_by "the hypervisor" you mean m1n1? i already am
18:22tpw_rulesthen what do you mean by "prove it works"?
18:22rose_hmm.. it doesn't talk on serial
18:23rose_we have no output from u-boot at all, and back in big sur we had video
18:23tpw_rulesuse run_guest.py or whatever and then open /dev/ttyACM1 (before you start run_guest) and it should come up on console
18:23tpw_rulesyeah you won't get video output. but if you just want proof u-boot is booting
18:24rose_yeah long term we're trying to boot netbsd, i dont really understand which scripts do what so we've mostly been using wrangled versions of linux.py
18:24tpw_rulesif you do cat m1n1.bin u-boot.dtb u-boot-nodtb.bin > blah.bin then run_guest that it should work
18:24tpw_rulesmore or less
18:25rose_btw, where do people tend to build u-boot from? from the logs earlier it seems there are a few forks, but idk which ones the most likely to work
18:26rose_thanks though i'll look into run_guest, and like i said i gtg but i'll check the logs
18:26rose_ has quit [Quit: Connection closed]
18:47squags has quit [Ping timeout: 480 seconds]
18:55squags has joined #asahi
19:03squags has quit [Ping timeout: 480 seconds]
19:13squags has joined #asahi
19:25yuyichao_ has joined #asahi
19:28yuyichao has quit [Ping timeout: 480 seconds]
20:09artemist has quit [Ping timeout: 480 seconds]
20:32thickrocks has quit [Read error: Connection reset by peer]
20:32tdmm has quit [Read error: Connection reset by peer]
20:32thickrocks has joined #asahi
20:32tdmm has joined #asahi
20:35joske has quit [Quit: Quit]
20:35joske has joined #asahi
20:37joskej`ey: that way indeed it boots straight to linux. However, as the pcie_enable script didn't run, no wifi. Any way to solve that?
20:38artemist0 has joined #asahi
20:39mpsjoske: afaik for now only with second machine and usb cable
20:40jannaujoske: wait for the smc driver which is high on the todo list, probably next
20:40joskeok, thx all
20:57yuyichao has joined #asahi
21:01yuyichao_ has quit [Ping timeout: 480 seconds]
21:05monn has joined #asahi
21:19joske has quit [Remote host closed the connection]
21:48monn has quit [Quit: Quit]
22:12MajorBiscuit has quit [Quit: WeeChat 3.3]
23:21artemist0 has quit [Remote host closed the connection]
23:26artemist0 has joined #asahi
23:40artemist0 has quit [Ping timeout: 480 seconds]
23:42kettenisjust pushed spi keyboard support to the u-boot branch
23:57mpskettenis: \o/
…