#
…

2025-06-16

00:06chrisl has joined #asahi
00:15chrisl has quit [Ping timeout: 480 seconds]
00:31DarkShadow4444 has joined #asahi
00:32cy8aer_ has joined #asahi
00:32DarkShadow44 has quit [Read error: Connection reset by peer]
00:33cy8aer has quit [Remote host closed the connection]
00:37cy8aer_ is now known as cy8aer
01:01chadmed has quit [Quit: Konversation terminated!]
01:02chadmed has joined #asahi
01:05chrisl has joined #asahi
01:11beastd has quit [Ping timeout: 480 seconds]
01:13chrisl has quit [Ping timeout: 480 seconds]
01:51chrisl has joined #asahi
01:59chrisl has quit [Ping timeout: 480 seconds]
02:00gabuscus has quit []
02:10chrisl has joined #asahi
02:18chrisl has quit [Ping timeout: 480 seconds]
02:22chadmed has quit [Quit: Konversation terminated!]
02:22tobhe_ has joined #asahi
02:23chadmed has joined #asahi
02:26hexdump01 has joined #asahi
02:28hexdump0815 has quit [Ping timeout: 480 seconds]
02:29tobhe has quit [Ping timeout: 480 seconds]
02:35thevar1able_ has quit [Ping timeout: 480 seconds]
02:35Tramtris1 has quit [Remote host closed the connection]
02:40chadmed has quit [Quit: Konversation terminated!]
02:40chadmed has joined #asahi
02:44cylm_ has quit [Ping timeout: 480 seconds]
02:50ml| has quit [Ping timeout: 480 seconds]
02:54Brainium has quit []
03:07chrisl has joined #asahi
03:08gabuscus has joined #asahi
03:10marvin24 has joined #asahi
03:13marvin24_ has quit [Ping timeout: 480 seconds]
03:15chrisl has quit [Ping timeout: 480 seconds]
03:39aissen has quit [Quit: WeeChat 3.8]
03:40chadmed has quit [Quit: Konversation terminated!]
03:42aissen has joined #asahi
03:42chadmed has joined #asahi
03:43chadmed has quit []
03:43chadmed has joined #asahi
03:45chadmed has quit []
03:45chadmed has joined #asahi
03:46chadmed has quit []
03:46chadmed has joined #asahi
03:55pb17 has quit [Ping timeout: 480 seconds]
04:01pb17 has joined #asahi
04:07chrisl has joined #asahi
04:15chrisl has quit [Ping timeout: 480 seconds]
04:20murmour has quit [Ping timeout: 480 seconds]
04:58chrisl has joined #asahi
05:03KxCORP58940003455881318 has quit [Quit: Bye!]
05:04KxCORP58940003455881318 has joined #asahi
05:06chrisl has quit [Ping timeout: 480 seconds]
05:24Tramtrist has joined #asahi
05:25kode54 has quit [Read error: Connection reset by peer]
05:32kode54 has joined #asahi
05:42thunfisch has quit [Quit: frrrp!]
05:53chrisl has joined #asahi
06:01chrisl has quit [Ping timeout: 480 seconds]
06:05Auscyber has joined #asahi
06:07ravikant_ has joined #asahi
06:08refi64 has quit [Quit: The Lounge - https://thelounge.chat]
06:08opticron has quit [Read error: Connection reset by peer]
06:09opticron has joined #asahi
06:09refi64 has joined #asahi
06:15rvalue has quit [Read error: Connection reset by peer]
06:15rvalue has joined #asahi
06:38Auscyber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
06:39Auscyber has joined #asahi
06:40ravikant_ has quit [Ping timeout: 480 seconds]
06:42waltmck has quit []
06:44waltmck has joined #asahi
06:55Auscyber has quit [Quit: Textual IRC Client: www.textualapp.com]
07:04ravikant_ has joined #asahi
07:06chadmed has quit [Quit: Konversation terminated!]
07:06chadmed has joined #asahi
07:13pjakobsson has joined #asahi
07:32chaos_princess has quit [Quit: chaos_princess]
07:33chaos_princess has joined #asahi
07:39chrisl has joined #asahi
07:46Qame has joined #asahi
07:47chrisl has quit [Ping timeout: 480 seconds]
08:00murmour has joined #asahi
08:29zumi has quit [Remote host closed the connection]
08:30zumi has joined #asahi
08:31chrisl has joined #asahi
08:36Qame has quit [Remote host closed the connection]
08:39chrisl has quit [Ping timeout: 480 seconds]
08:43kode549 has joined #asahi
08:43kode54 has quit [Read error: Connection reset by peer]
08:43kode549 is now known as kode54
09:15gspbirel56 has quit [Read error: Connection reset by peer]
09:16gspbirel56 has joined #asahi
09:29chrisl has joined #asahi
09:37chrisl has quit [Ping timeout: 480 seconds]
09:59rvalue- has joined #asahi
10:04rvalue has quit [Ping timeout: 480 seconds]
10:21xdeus has joined #asahi
10:31chrisl has joined #asahi
10:39chrisl has quit [Ping timeout: 480 seconds]
10:39xdeusHi, I wanna try something similar to Linux From Scatch (LFS) on the M1 Air. I've got Asahi installed and I reserved some space for where I'm going to put the LFS related things. I formatted the reserved space as a single ext4 partition and I can see the data on it with `ls nvme 0:7` in u-boot, so I'd like to boot a kernel now. I was thinking of trying the default Asahi kernel first but I'm not sure if the default Asahi kernel works for
10:40xdeusmy own kernel straight away. It seems the default kernel has `CONFIG_EXT4_FS=y` set so I should be able to just boot the kernel directly without initrd/initramfs a nd use some executable as the init on the same ext4 partition as the kernel.
10:40xdeusI just can't figure out what I need to do to get u-boot to boot the kernel. Also, I assume I'd need to pass DTBs to the kernel. From what I understand, those are loaded into some memory address by u-boot and then Linux uses them but I'm no t sure about the specifics.
10:41xdeusAny suggestions on how to get this working?
10:41xdeusOh, that is what Asahi uses as well, right?
10:42chaos_princessasahi uses grub, not sure if grub boots via efistub or other way
10:42chaos_princess*grub boots the kernel
10:43ravikant__ has joined #asahi
10:44xdeusAh right, I looked it up, looks like it's used as an alternative to GRUB, at least on x86_64 PCs
10:46ravikant_ has quit [Ping timeout: 480 seconds]
10:50ravikant_ has joined #asahi
10:54xdeus_ has joined #asahi
10:54ravikant__ has quit [Ping timeout: 480 seconds]
10:56xdeus has quit [Remote host closed the connection]
11:00xdeus_ has quit [Remote host closed the connection]
11:12xdeus has joined #asahi
11:12chadmedif you enable EFI_ZBOOT then the kernel will be built as a PE and can be loaded and jumped to by u-boot if you want to skip grub
11:12chadmedthis also lets you use systemd-boot
11:13chadmedwell technically the ELF will be compressed and stuck on the end of a PE that decompresses ELF and then jumps to it but that doesnt really matter :p
11:14xdeusOh I see
11:14xdeusThe vmlinuz files in the Asahi /boot partition already appear as PE executables with `file` though
11:15xdeusI guess this is enabled by default then?
11:16xdeusAlso, sorry if I skipped some messages, I had to move my IRC stuff to my phone
11:20xdeusSo if the kernel is already a PE executable, how can I load and jump to it from u-boot? I guess I `load` it first but I'm not sure which address to use, there are some variables shown in `printenv` with addresses - kernel_addr_r, loadaddr and some others
11:20chaos_princessload it to kernel_addr_r, then there is a command that is something like efiboot or bootefi
11:21chadmedits just `boot` afaik
11:22xdeusNice, it booted. Thanks a lot, I'll try to figure out the rest now. <3
11:29murmour has quit [Quit: Leaving]
11:40cylm has joined #asahi
11:40cylm has quit []
11:43cylm has joined #asahi
11:51ravikant_ has quit [Ping timeout: 480 seconds]
11:51normalpan has joined #asahi
11:53xdeus has quit [Remote host closed the connection]
11:58Compassion has quit [Quit: lounge quit]
12:06zumi_ has joined #asahi
12:10zumi has quit [Ping timeout: 480 seconds]
12:11zumi_ is now known as zumi
12:11pb17 has quit [Ping timeout: 480 seconds]
12:12pb17 has joined #asahi
12:15chrisl has joined #asahi
12:20ravikant_ has joined #asahi
12:23chrisl has quit [Ping timeout: 480 seconds]
12:36xdeus has joined #asahi
12:37cylm has quit [Ping timeout: 480 seconds]
12:45xdeusHmm, I'm trying to pass the "root" and "init" kernel parameters but it doesn't seem to work, Linux still panics as if I hadn't passed them and shows the message "VFS: Unable to mount root fs on unknown-block(0,0)". I tried setting "bootargs" in u-boot with `setenv` and I also tried setting them in the call to the `linux` command while booted into a GRUB PE32 executable that I copied from Asahi, still the same message. I tried out the
12:45xdeusthe "root=/dev/..." one but also neither worked.
12:46chaos_princessboot into systemd-boot or grub from u-boot and use that to boot the kernel itself. arm64 has an unusual way to pass the kernel command line
12:47xdeusYes I tried GRUB
12:47chaos_princessuse an initrd then
12:48xdeusAlright, I'll try it out. I think it should work though since "CONFIG_EXT4_FS=y" and this is an ext4 rootfs, no?
12:49chaos_princessdo you have apple nvme as =y? rtkit? all other necessary bits?
12:51xdeusOh CONFIG_NVME_APPLE is loaded as a module and the RTKIT related ones are all built-in except CONFIG_APPLE_SMC_RTKIT and CONFIG_APPLE_RTKIT_HELPER
12:55xdeusYep, that worked. Thanks again.
12:59Moprius has joined #asahi
13:01xdeus has quit [Remote host closed the connection]
13:10chrisl has joined #asahi
13:18chrisl has quit [Ping timeout: 480 seconds]
13:25Calandracas has quit [Read error: Connection reset by peer]
13:46normalpan has quit []
13:51Gues__________________________ has joined #asahi
14:11pb17 has quit [Ping timeout: 480 seconds]
14:12john-cabaj has joined #asahi
14:18beastd has joined #asahi
14:34pb17 has joined #asahi
14:39mattia013 has quit [Remote host closed the connection]
14:40mattia013 has joined #asahi
15:02chrisl has joined #asahi
15:10chrisl has quit [Ping timeout: 480 seconds]
15:41john-cabaj has quit [Remote host closed the connection]
15:42john-cabaj has joined #asahi
15:59cylm has joined #asahi
16:03chrisl has joined #asahi
16:09thunfisch has joined #asahi
16:10ravikant_ has quit []
16:11chrisl has quit [Ping timeout: 480 seconds]
16:13gruetzhaxe has joined #asahi
17:04chrisl has joined #asahi
17:12chrisl has quit [Ping timeout: 480 seconds]
17:15gruetzhaxe has quit [Ping timeout: 480 seconds]
17:59pb17 has quit [Ping timeout: 480 seconds]
18:05zumi_ has joined #asahi
18:06chrisl has joined #asahi
18:09zumi has quit [Ping timeout: 480 seconds]
18:10zumi_ is now known as zumi
18:13pb17 has joined #asahi
18:14chrisl has quit [Ping timeout: 480 seconds]
19:08nicolas17 has joined #asahi
19:16denysonique31913 has quit [Ping timeout: 480 seconds]
19:28Zeroine has joined #asahi
19:41chrisl has joined #asahi
19:49chrisl has quit [Ping timeout: 480 seconds]
19:50denysonique31913 has joined #asahi
19:58ddxtanx has quit [Ping timeout: 480 seconds]
20:06ddxtanx has joined #asahi
20:11Calandracas has joined #asahi
20:34cylm has quit [Quit: WeeChat 4.6.3]
20:36Compassion1 has joined #asahi
20:58pb17 has quit [Ping timeout: 480 seconds]
20:59jadesoturi has quit [Remote host closed the connection]
21:00jadesoturi has joined #asahi
21:01pb17 has joined #asahi
21:08chrisl has joined #asahi
21:15Compassion1 has quit [Ping timeout: 480 seconds]
21:16chrisl has quit [Ping timeout: 480 seconds]
21:16chadmed has quit [Read error: Connection reset by peer]
21:16chadmed has joined #asahi
21:18Compassion1 has joined #asahi
21:38okb has quit [Read error: Connection reset by peer]
21:39Zeroine has quit [Quit: Connection closed for inactivity]
21:46Compassion1 has quit [Quit: lounge quit]
22:02Compassion1 has joined #asahi
22:05roxfan has joined #asahi
22:09chrisl has joined #asahi
22:10roxfan2 has quit [Ping timeout: 480 seconds]
22:12Compassion1 has quit [Quit: lounge quit]
22:17chrisl has quit [Ping timeout: 480 seconds]
22:19DarkShadow44 has joined #asahi
22:20DarkShadow4444 has quit [Read error: Connection reset by peer]
22:30topcat_001 has quit []
22:30topcat001 has joined #asahi
22:45chadmed has quit [Read error: Connection reset by peer]
22:45chadmed has joined #asahi
22:48normalpan has joined #asahi
22:52chrisl has joined #asahi
23:12chrisl has quit [Ping timeout: 480 seconds]
23:13chrisl has joined #asahi
23:39chrisl has quit [Ping timeout: 480 seconds]
23:40normalpan has quit []
23:40normalpan has joined #asahi
23:41normalpan has quit []
23:42normalpan has joined #asahi
23:48chrisl has joined #asahi
23:56chrisl has quit [Ping timeout: 480 seconds]
…