Blame
|
1 | # Linux Port |
||||||
| 2 | ||||||||
|
3 | > [!WARNING] |
||||||
| 4 | > This page is very much a work in progress! |
|||||||
|
5 | |||||||
|
6 | A _"linux system"_ comprises a few components: |
||||||
| 7 | 1. A Kernel |
|||||||
| 8 | 2. A Root filesystem |
|||||||
| 9 | 3. Some utilities/commands |
|||||||
| 10 | ||||||||
|
11 | ## Building |
||||||
| 12 | ### Kernel |
|||||||
|
13 | ``` |
||||||
| 14 | git clone --depth 1 --branch "v6.15" https://github.com/torvalds/linux |
|||||||
| 15 | cd linux |
|||||||
| 16 | make ARCH=m68k CROSS_COMPILE=m68k-linux-gnu- tinyconfig |
|||||||
| 17 | make ARCH=m68k CROSS_COMPILE=m68k-linux-gnu- menuconfig |
|||||||
| 18 | make ARCH=m68k CROSS_COMPILE=m68k-linux-gnu- |
|||||||
| 19 | ``` |
|||||||
| 20 | ||||||||
|
21 | ### Utilities |
||||||
|
22 | I am using BusyBox for a basic set of utilities |
||||||
| 23 | ``` |
|||||||
| 24 | wget https://busybox.net/downloads/busybox-1.37.0.tar.bz2 |
|||||||
| 25 | tar xvf busybox-1.37.0.tar.bz2 |
|||||||
| 26 | cd busybox-1.37.0 |
|||||||
| 27 | make CROSS_COMPILE=m68k-linux-gnu- menuconfig |
|||||||
| 28 | make CROSS_COMPILE=m68k-linux-gnu- |
|||||||
| 29 | ``` |
|||||||
|
30 | |||||||
|
31 | ## Links |
||||||
| 32 | - [Helpful Article](https://www.aslak.net/index.php/2022/01/11/porting-linux-to-the-68030-based-maxi030/), and [related code](https://github.com/aslak3/MAXI030). |
|||||||
|
33 | - [Explanation of the boot process](https://tldp.org/HOWTO/From-PowerUp-To-Bash-Prompt-HOWTO.html) |
||||||
|
34 | - [BusyBox](https://busybox.net/) |
||||||
|
35 | - https://www.subrat.info/build-kernel-and-userspace/ |
||||||
| 36 | - https://weeraman.com/building-a-tiny-linux-kernel/ |
|||||||
| 37 | - https://github.com/bluedragon1221/minlinux2 |
|||||||