r/linuxfromscratch • u/CharlesJustChill • Aug 16 '26
LFS on Apple silicon
So I have a m1 MacBook Air and I already seen someone using LFS on Apple silicon. It would be my second Time installing LFS since I want to try it first on my old Lenovo Legion. Asahi Linux is using ARM so I wonder if I would need to change some packages or the Linux Kernel for the Asahi Linux Kernel ? And How would it be différent from an Arm LFS ?
6
Upvotes
2
u/realfathonix Aug 17 '26 edited Aug 17 '26
I haven't built one targeting Asahi but I have ported few distros in its early days (Raspberry Pi OS and Armbian).
Basically some of the differences are:
/lib/firmware.apple_dcp, etc.Technically you can skip U-Boot and bundle m1n1 with your kernel (m1n1 docs have the tutorial) but that is discouraged.
2
u/Luna24_ig Aug 16 '26
Asahi acts as a wrapper to let the os live on top of it. There is some weird things you need to do in Asahi but it should work with BLFS no problem. Just read the documentation for asahi.
2
u/exeis-maxus Aug 16 '26
There is https://intestinate.com/pilfs which a LFS build guide targeting the Raspberry Pi that has an ARM CPU. Take a look to see what additional package(s) are exclusive to ARM and/or package(s) that can be skipped.
Currently, PiLFS is based on r12.0 of LFS so it may not be current.
1
u/JG_2006_C Aug 17 '26
Well go of bare efi the rest mostly normal lfs i asume