Skip to content

danehobrecht/kernel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Linux Kernel Development on M-Series Macs

The LKMPG setup documentation is completely shot. I have taken great pains to produce minimal setup documentation that works. This guide has been tested on an M-Series MacBook and could use testing on other platforms.

Setup

  • Install the brew package manager:
    (Host) /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

  • Install prerequisite software:
    (Host) brew install qemu lima lima-additional-guestagents

  • Create container:
    (Host) limactl create --arch=x86_64

  • Enter container:
    (Host) limactl start && lima

  • Install prerequisite software:
    (Guest) sudo apt-get update && sudo apt-get -y install build-essential

  • Navigate to a writable directory:
    (Guest) cd

You may now proceed to Hello World.

Follow the manual build steps. Avoid the specialized QEMU ones at all costs. It is for your ultimate benefit that you learn the classical development flow as opposed to internalizing a customized build system that doesn't work.

References

About

Linux Kernel Development on M-Series Macs.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors