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

Sebastien Badia ebf776b31f Allow user to use stable tarball instead of git source tree 10 years ago
olinux ebf776b31f Allow user to use stable tarball instead of git source tree 10 years ago
.gitignore 90d377c4f6 create_device init script 10 years ago
Dockerfile bb9552dbc3 Dockerfile - change stable to wheezy 10 years ago
README.md 950d4357e1 create_sunxi - change default directory name 10 years ago

README.md

Debian-Sunxi

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.

Build docker image

git clone https://github.com/bleuchtang/sunxi-debian
cd sunxi-debian && sudo docker build -t debian:olinux .

Build sunxi kernel and boot files

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 -c

Optional arguments:

  • -o offline mode; doesn't pull repositories so you should have run the script once without this option
  • -b board type (lime,lime2,micro) default is A20 lime
  • -t number of thread for compilation
  • -l change linux logo on u-boot and kernel
  • Build minimal arm debootstrap

    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 olinux/sunxi -c
    

    Optional arguments: