Bootstrap a minimal debian rootfs for sunxi boards https://github.com/bleuchtang/sunxi-debian

Émile Morel 57b096936c rename sunxi directory 10 years ago
olinux f7a852ed52 add debootstrap script 10 years ago
.gitignore 57b096936c rename sunxi directory 10 years ago
Dockerfile 372fac5402 add Dockerfile 10 years ago
README.md f537aa6b64 readme - typo 10 years ago

README.md

olinux-a20-lime2

Bootstrap a minimal debian for olinuxino-a20-lime2

Thanks to lukas2511 for quick bootstrap.

Build minimal U-boot

sudo docker pull debian:stable
git clone https://github.com/bleuchtang/olinuxino-a20-lime2
cd olinuxino-a20-lime2 && sudo docker build -t debian/olinux .

Build minimal arm debootstrap

We cannot perform a debootstrap in dockerfile bacause dockerfile doesn't accept privileged mode. For more details see docker issue

sudo docker run --privileged -i -t -v $(pwd)/olinux/:/olinux/ debian/olinux sh ./olinux/create_arm_debootstrap.sh

You shoud have both debootstrap and u-boot-sunxi directories in olinux/

Boot

TODO

Install on a sdcard

Partitioning

parted -s /dev/sdb mklabel msdos
parted -a optimal /dev/sdb mkpart primary fat32 1 16MiB
parted -a optimal /dev/sdb mkpart primary fat32 16MiB 100%
mkfs.fat -F 32 /dev/sdb1
mkfs.ext4  /dev/sdb2

TODO

Some links:

You probably want to Build your own docker image

  • Because it's quick and easy; tutorial here
  • Because you shoudn't trust regitry images; demonstration here

External links