GithubHelp home page GithubHelp logo

onuralpszr / asahi-fedora-builder Goto Github PK

View Code? Open in Web Editor NEW

This project forked from leifliddy/asahi-fedora-builder

0.0 0.0 0.0 186 KB

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

License: MIT License

Shell 100.00%

asahi-fedora-builder's Introduction

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

  • qemu-user-static is also needed if building the image on a non-aarch64 system
  • Until this PR is merged into the next mkosi release https://github.com/systemd/mkosi/pull/1264/commits
    install mksoi from main:
    python3 -m pip install --user git+https://github.com/systemd/mkosi.git

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

asahi-fedora-builder's People

Contributors

davidalger avatar jacksongoode avatar leifliddy avatar marcan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.