Skip to content

Latest commit

 

History

History
57 lines (40 loc) · 1.09 KB

File metadata and controls

57 lines (40 loc) · 1.09 KB

my-linux-builder

Introduction

This repository is to make compiling the kernel easier

Build and run docker container

git clone git@github.com:Lesords/my-linux-builder.git --depth 1
cd my-linux-builder
docker build . -t teeny-linux-builder
docker container run -it teeny-linux-builder

Ps: Currently, you can only generate images that satisfy the kernel compilation environment

Generate root filesystem image

cd test
../scripts/gen_rootfs.sh

This script will generate a root filesystem image in the current directory.

Note that, the root filesystem generated by default is incomplete and no umount operation is performed. If you have already compiled busybox, you can put the compilation results in the test folder, and then execute the script.

The file structure is as follows:

test
├── busybox
│   └── _install
└── qemu-start.sh

Test

Put the image and root file system in the test folder, like this:

test/
├── bzImage
├── qemu-start.sh
└── rootfs.img

Then, run

./qemu-start.sh