Bootstrap a minimal debian rootfs for sunxi boards https://github.com/bleuchtang/sunxi-debian
![]() |
10 years ago | |
---|---|---|
olinux | 10 years ago | |
.gitignore | 10 years ago | |
Dockerfile | 10 years ago | |
README.md | 10 years ago |
Bootstrap a minimal debian rootfs with sunxi kernel and boot files. For now only 4 olinuxino boards are available. All scripts in this repository are generic so it's easy to add a new boad. Please make a pull request if you create and test a new board. I need reviewers for olinuxino lime2 and micro olinuxino boards.
Thanks to lukas2511 for quick bootstrap, and igorpecovnik for some useful scripts.
git clone https://github.com/bleuchtang/sunxi-debian
cd sunxi-debian && sudo docker build -t debian:olinux .
To build sunxi kernel and boot files run:
sudo docker run --privileged -i -t -v $(pwd)/olinux/:/olinux/ debian:olinux bash ./olinux/create_sunxi_boot_files.sh
Optional arguments:
We cannot perform a debootstrap in dockerfile because dockerfile doesn't accept privileged mode. For more details see docker issue
To build the minimal debian rootfs with the kernel previously build:
sudo docker run --privileged -i -t -v $(pwd)/olinux/:/olinux/ debian:olinux bash ./olinux/create_arm_debootstrap.sh -i
Optional arguments:
Find your device card (with dmesg for instance). Call create_device script with this device in parameter. This script install debootstrap previously build.
sudo bash olinux/create_device.sh -d /dev/sdc
You can directly create a image file that you can copy after on your sd card or share with others.
sudo bash olinux/create_device.sh -d img -s 500
Find IP and ssh on it! (password: olinux)
ssh root@mybox