ChanServ changed the topic of #asahi to: Asahi Linux: porting Linux to Apple Silicon macs | "Does XXX work yet?": https://alx.sh/fs | GitHub: https://alx.sh/g | Wiki: https://alx.sh/w | Topics: #asahi-dev #asahi-re #asahi-gpu #asahi-alt #asahi-stream #asahi-offtopic | Keep things on topic | Logs: https://alx.sh/l/asahi
chrisl has joined #asahi
chrisl has quit [Ping timeout: 480 seconds]
DarkShadow4444 has joined #asahi
cy8aer_ has joined #asahi
DarkShadow44 has quit [Read error: Connection reset by peer]
cy8aer has quit [Remote host closed the connection]
cy8aer_ is now known as cy8aer
chadmed has quit [Quit: Konversation terminated!]
chadmed has joined #asahi
chrisl has joined #asahi
beastd has quit [Ping timeout: 480 seconds]
chrisl has quit [Ping timeout: 480 seconds]
chrisl has joined #asahi
chrisl has quit [Ping timeout: 480 seconds]
gabuscus has quit []
chrisl has joined #asahi
chrisl has quit [Ping timeout: 480 seconds]
chadmed has quit [Quit: Konversation terminated!]
tobhe_ has joined #asahi
chadmed has joined #asahi
hexdump01 has joined #asahi
hexdump0815 has quit [Ping timeout: 480 seconds]
tobhe has quit [Ping timeout: 480 seconds]
thevar1able_ has quit [Ping timeout: 480 seconds]
Tramtris1 has quit [Remote host closed the connection]
chadmed has quit [Quit: Konversation terminated!]
chadmed has joined #asahi
cylm_ has quit [Ping timeout: 480 seconds]
ml| has quit [Ping timeout: 480 seconds]
Brainium has quit []
chrisl has joined #asahi
gabuscus has joined #asahi
marvin24 has joined #asahi
marvin24_ has quit [Ping timeout: 480 seconds]
chrisl has quit [Ping timeout: 480 seconds]
aissen has quit [Quit: WeeChat 3.8]
chadmed has quit [Quit: Konversation terminated!]
aissen has joined #asahi
chadmed has joined #asahi
chadmed has quit []
chadmed has joined #asahi
chadmed has quit []
chadmed has joined #asahi
chadmed has quit []
chadmed has joined #asahi
pb17 has quit [Ping timeout: 480 seconds]
pb17 has joined #asahi
chrisl has joined #asahi
chrisl has quit [Ping timeout: 480 seconds]
murmour has quit [Ping timeout: 480 seconds]
chrisl has joined #asahi
KxCORP58940003455881318 has quit [Quit: Bye!]
KxCORP58940003455881318 has joined #asahi
chrisl has quit [Ping timeout: 480 seconds]
Tramtrist has joined #asahi
kode54 has quit [Read error: Connection reset by peer]
kode54 has joined #asahi
thunfisch has quit [Quit: frrrp!]
chrisl has joined #asahi
chrisl has quit [Ping timeout: 480 seconds]
Auscyber has joined #asahi
ravikant_ has joined #asahi
refi64 has quit [Quit: The Lounge - https://thelounge.chat]
opticron has quit [Read error: Connection reset by peer]
opticron has joined #asahi
refi64 has joined #asahi
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #asahi
Auscyber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Auscyber has joined #asahi
ravikant_ has quit [Ping timeout: 480 seconds]
waltmck has quit []
waltmck has joined #asahi
Auscyber has quit [Quit: Textual IRC Client: www.textualapp.com]
ravikant_ has joined #asahi
chadmed has quit [Quit: Konversation terminated!]
chadmed has joined #asahi
pjakobsson has joined #asahi
chaos_princess has quit [Quit: chaos_princess]
chaos_princess has joined #asahi
chrisl has joined #asahi
Qame has joined #asahi
chrisl has quit [Ping timeout: 480 seconds]
murmour has joined #asahi
zumi has quit [Remote host closed the connection]
zumi has joined #asahi
chrisl has joined #asahi
Qame has quit [Remote host closed the connection]
chrisl has quit [Ping timeout: 480 seconds]
kode549 has joined #asahi
kode54 has quit [Read error: Connection reset by peer]
kode549 is now known as kode54
gspbirel56 has quit [Read error: Connection reset by peer]
gspbirel56 has joined #asahi
chrisl has joined #asahi
chrisl has quit [Ping timeout: 480 seconds]
rvalue- has joined #asahi
rvalue has quit [Ping timeout: 480 seconds]
xdeus has joined #asahi
chrisl has joined #asahi
chrisl has quit [Ping timeout: 480 seconds]
<xdeus> Hi, 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
<xdeus> my 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.
<xdeus> I 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.
<xdeus> Any suggestions on how to get this working?
<chaos_princess> use efistub
<xdeus> Oh, that is what Asahi uses as well, right?
<chaos_princess> asahi uses grub, not sure if grub boots via efistub or other way
<chaos_princess> *grub boots the kernel
ravikant__ has joined #asahi
<xdeus> Ah right, I looked it up, looks like it's used as an alternative to GRUB, at least on x86_64 PCs
ravikant_ has quit [Ping timeout: 480 seconds]
ravikant_ has joined #asahi
xdeus_ has joined #asahi
ravikant__ has quit [Ping timeout: 480 seconds]
xdeus has quit [Remote host closed the connection]
xdeus_ has quit [Remote host closed the connection]
xdeus has joined #asahi
<chadmed> if 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
<chadmed> this also lets you use systemd-boot
<chadmed> well 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
<xdeus> Oh I see
<xdeus> The vmlinuz files in the Asahi /boot partition already appear as PE executables with `file` though
<xdeus> I guess this is enabled by default then?
<chadmed> yes
<xdeus> Also, sorry if I skipped some messages, I had to move my IRC stuff to my phone
<xdeus> So 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
<chaos_princess> load it to kernel_addr_r, then there is a command that is something like efiboot or bootefi
<chadmed> its just `boot` afaik
<xdeus> Nice, it booted. Thanks a lot, I'll try to figure out the rest now. <3
murmour has quit [Quit: Leaving]
cylm has joined #asahi
cylm has quit []
cylm has joined #asahi
ravikant_ has quit [Ping timeout: 480 seconds]
normalpan has joined #asahi
xdeus has quit [Remote host closed the connection]
Compassion has quit [Quit: lounge quit]
zumi_ has joined #asahi
zumi has quit [Ping timeout: 480 seconds]
zumi_ is now known as zumi
pb17 has quit [Ping timeout: 480 seconds]
pb17 has joined #asahi
chrisl has joined #asahi
ravikant_ has joined #asahi
chrisl has quit [Ping timeout: 480 seconds]
xdeus has joined #asahi
cylm has quit [Ping timeout: 480 seconds]
<xdeus> Hmm, 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
<xdeus> the "root=/dev/..." one but also neither worked.
<chaos_princess> boot 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
<xdeus> Yes I tried GRUB
<chaos_princess> use an initrd then
<xdeus> Alright, I'll try it out. I think it should work though since "CONFIG_EXT4_FS=y" and this is an ext4 rootfs, no?
<chaos_princess> do you have apple nvme as =y? rtkit? all other necessary bits?
<xdeus> Oh 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
<xdeus> Yep, that worked. Thanks again.
Moprius has joined #asahi
xdeus has quit [Remote host closed the connection]
chrisl has joined #asahi
chrisl has quit [Ping timeout: 480 seconds]
Calandracas has quit [Read error: Connection reset by peer]
normalpan has quit []
Gues__________________________ has joined #asahi
pb17 has quit [Ping timeout: 480 seconds]
john-cabaj has joined #asahi
beastd has joined #asahi
pb17 has joined #asahi
mattia013 has quit [Remote host closed the connection]
mattia013 has joined #asahi
chrisl has joined #asahi
chrisl has quit [Ping timeout: 480 seconds]
john-cabaj has quit [Remote host closed the connection]
john-cabaj has joined #asahi
cylm has joined #asahi
chrisl has joined #asahi
thunfisch has joined #asahi
ravikant_ has quit []
chrisl has quit [Ping timeout: 480 seconds]
gruetzhaxe has joined #asahi
chrisl has joined #asahi
chrisl has quit [Ping timeout: 480 seconds]
gruetzhaxe has quit [Ping timeout: 480 seconds]
pb17 has quit [Ping timeout: 480 seconds]
zumi_ has joined #asahi
chrisl has joined #asahi
zumi has quit [Ping timeout: 480 seconds]
zumi_ is now known as zumi
pb17 has joined #asahi
chrisl has quit [Ping timeout: 480 seconds]
nicolas17 has joined #asahi
denysonique31913 has quit [Ping timeout: 480 seconds]
Zeroine has joined #asahi
chrisl has joined #asahi
chrisl has quit [Ping timeout: 480 seconds]
denysonique31913 has joined #asahi
ddxtanx has quit [Ping timeout: 480 seconds]
ddxtanx has joined #asahi
Calandracas has joined #asahi
cylm has quit [Quit: WeeChat 4.6.3]
Compassion1 has joined #asahi
pb17 has quit [Ping timeout: 480 seconds]
jadesoturi has quit [Remote host closed the connection]
jadesoturi has joined #asahi
pb17 has joined #asahi
chrisl has joined #asahi
Compassion1 has quit [Ping timeout: 480 seconds]
chrisl has quit [Ping timeout: 480 seconds]
chadmed has quit [Read error: Connection reset by peer]
chadmed has joined #asahi
Compassion1 has joined #asahi
okb has quit [Read error: Connection reset by peer]
Zeroine has quit [Quit: Connection closed for inactivity]
Compassion1 has quit [Quit: lounge quit]
Compassion1 has joined #asahi
roxfan has joined #asahi
chrisl has joined #asahi
roxfan2 has quit [Ping timeout: 480 seconds]
Compassion1 has quit [Quit: lounge quit]
chrisl has quit [Ping timeout: 480 seconds]
DarkShadow44 has joined #asahi
DarkShadow4444 has quit [Read error: Connection reset by peer]
topcat_001 has quit []
topcat001 has joined #asahi
chadmed has quit [Read error: Connection reset by peer]
chadmed has joined #asahi
normalpan has joined #asahi
chrisl has joined #asahi
chrisl has quit [Ping timeout: 480 seconds]
chrisl has joined #asahi
chrisl has quit [Ping timeout: 480 seconds]
normalpan has quit []
normalpan has joined #asahi
normalpan has quit []
normalpan has joined #asahi
chrisl has joined #asahi
chrisl has quit [Ping timeout: 480 seconds]