Skip to content

Builds a minimal Fedora image to run on Apple M1/M2 systems

License

Notifications You must be signed in to change notification settings

davidalger/asahi-fedora-builder

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

asahi-fedora-builder

Builds a minimal Fedora image to run on Apple M1/M2 systems

Installing a Prebuilt Image

Make sure to update your macOS to version 12.3 or later, then just pull up a Terminal in macOS and paste in this command:

curl https://leifliddy.com/fedora.sh | sh

Fedora Package Install

dnf install mkosi arch-install-scripts systemd-container zip

Notes

Notes

  1. The root password is fedora
  2. On the first boot the asahi-firstboot.service will run, selinux will be set to enforcing and the system will reboot.
  3. The Asahi Linux-related RPM's (and Source RPM's) used in this image can be found here: https://leifliddy.com/asahi-linux/37/
    All RPM's signed are signed by a GPG key.
    The repo config can be found here: https://leifliddy.com/asahi-linux/asahi-linux.repo
  4. The Fedora kernel config used is nearly identical to the kernel config used by the Asahi Linux project:

Setting up WiFi

NetworkManager is enabled by default.

To connect to a wireless network, use the following sytanx: nmcli dev wifi connect network-ssid

An actual example: nmcli dev wifi connect blacknet-ac password supersecretpassword

Wiping Linux

Bring up a Terminal in macOS and run the following Asahi Linux script:
sudo curl -L https://alx.sh/wipe-linux | sh
You should definitely understand what this script does before running it. You can find more info here:
https://github.com/AsahiLinux/docs/wiki/Partitioning-cheatsheet

Boot from USB device

Once Linux is installed on an M1 system, you can then boot a compatible usb drive via u-boot.
This project will create a bootable USB drive for M1 systems. https://github.com/leifliddy/asahi-fedora-usb

Display and keyboard backlight

The light command can be used to adjust the screen and keyboard backlight.

light -s sysfs/leds/kbd_backlight -S 10
light -s sysfs/backlight/apple-panel-bl -S 50

Fedora 37 Release

To upgrade from F36 --> F37 leifliddy#11

Known Issues

  • mesa-asahi libraries If you have mesa version 1:23.0.0_pre20221207 or 1:23.0.0_pre20221209 installed
    please see the following: leifliddy#8 (comment)

Info on the official Fedora effort to support Apple silicon: https://fedoraproject.org/wiki/SIGs/Asahi

About

Builds a minimal Fedora image to run on Apple M1/M2 systems

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%