This repository is to make compiling the kernel easier
git clone [email protected]:Lesords/my-linux-builder.git --depth 1
cd my-linux-builderdocker build . -t teeny-linux-builder
docker container run -it teeny-linux-builderPs: Currently, you can only generate images that satisfy the kernel compilation environment
cd test
../scripts/gen_rootfs.shThis 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.shPut the image and root file system in the test folder, like this:
test/
├── bzImage
├── qemu-start.sh
└── rootfs.imgThen, run
./qemu-start.sh