#asahi · 2025-06-22 11:15
xdeusI think not, from what I understand initramfs is much simpler and uses the caching code you would have compiled in anyways#asahi · 2025-06-22 11:11
xdeusThanks though <3#asahi · 2025-06-22 11:11
xdeusYeah I guess I will use a initramfs then :D#asahi · 2025-06-22 11:09
xdeusYeah I tried that as well#asahi · 2025-06-22 11:09
xdeusOkay I tried putting a script at /sbin/init that just has `#!/bin/sh` and `exec /bin/sh` and built in CONFIG_BINFMT_SCRIPT, still seems to give the same error about "root=" missing.#asahi · 2025-06-22 11:03
xdeusI don't know but it seems to be loaded according to those boot logs I think, it says "RAMDISK: gzip image found at block 0" and "using deprecated initrd support, will be removed soon."#asahi · 2025-06-22 11:01
xdeusAlright#asahi · 2025-06-22 11:01
xdeusNo, no /sbin/init, but I don't think I should need it if I'm setting "rdinit=/bin/sh", no? I'm using initrd instead of initramfs because I just wanted to try it out. initramfs works fine though.#asahi · 2025-06-22 10:58
xdeusI'm using the tethered boot/proxy mode to boot it up with proxyclient/tools/run_guest_kernel.sh and passing in my kernel, args and initrd, in case it's relevant.#asahi · 2025-06-22 10:56
xdeusHi, an initrd (not initramfs) should work, no? I can't manage to get it to work. Here's some info about how I built it and the kernel I'm using: https://x0.at/aY6W.txt#asahi · 2025-06-20 13:08
xdeusAh, thanks.#asahi · 2025-06-20 13:05
xdeusWhat does the "asahi-" prefix in that repo's tags mean? Some have that prefix and some don't. The ones that do seem to also always have another version number prefixed after the semver patch version.#asahi · 2025-06-20 12:15
xdeusThanks#asahi · 2025-06-20 12:13
xdeusI mean besides the stable/tagged verisions.#asahi · 2025-06-20 12:13
xdeusAh okay. And the "asahi" branch in this repo https://github.com/asahilinux/linux is the one that's recommended, right?#asahi · 2025-06-20 12:11
xdeusAh#asahi · 2025-06-20 12:11
xdeusOh I'm on the M1 Air, by the way#asahi · 2025-06-20 12:10
xdeusHi, just wanted to make sure, the upstream (Linus's) Linux kernel should usable, right? Like you can use the built-in keyboard and display to use the virtual terminals?#asahi · 2025-06-16 12:55
xdeusYep, that worked. Thanks again.#asahi · 2025-06-16 12:51
xdeusOh 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#asahi · 2025-06-16 12:48
xdeusAlright, I'll try it out. I think it should work though since "CONFIG_EXT4_FS=y" and this is an ext4 rootfs, no?#asahi · 2025-06-16 12:47
xdeusYes I tried GRUB#asahi · 2025-06-16 12:45
xdeusthe "root=/dev/..." one but also neither worked.#asahi · 2025-06-16 12:45
xdeusHmm, 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#asahi · 2025-06-16 11:22
xdeusNice, it booted. Thanks a lot, I'll try to figure out the rest now. <3#asahi · 2025-06-16 11:20
xdeusSo 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#asahi · 2025-06-16 11:16
xdeusAlso, sorry if I skipped some messages, I had to move my IRC stuff to my phone#asahi · 2025-06-16 11:15
xdeusI guess this is enabled by default then?#asahi · 2025-06-16 11:14
xdeusThe vmlinuz files in the Asahi /boot partition already appear as PE executables with `file` though#asahi · 2025-06-16 11:14
xdeusOh I see#asahi · 2025-06-16 10:44
xdeusAh right, I looked it up, looks like it's used as an alternative to GRUB, at least on x86_64 PCs#asahi · 2025-06-16 10:41
xdeusOh, that is what Asahi uses as well, right?#asahi · 2025-06-16 10:41
xdeusAny suggestions on how to get this working?#asahi · 2025-06-16 10:40
xdeusI 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.#asahi · 2025-06-16 10:40
xdeusmy 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.#asahi · 2025-06-16 10:39
xdeusHi, 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