1## Introduction 2 3A set of shell scripts that will build GNU/Linux distribution rootfs image 4for rockchip platform. 5 6## Available Distro 7 8* Debian 11 (Bullseye-X11 and Wayland)~~ 9 10``` 11sudo apt-get install binfmt-support qemu-user-static 12sudo dpkg -i ubuntu-build-service/packages/* 13sudo apt-get install -f 14``` 15 16## Usage for 32bit Debian 11 (Bullseye-32) 17 18### Building debian system from linaro 19 20Building a base debian system by ubuntu-build-service from linaro. 21 22``` 23 RELEASE=bullseye TARGET=base ARCH=armhf ./mk-base-debian.sh 24``` 25 26Building a desktop debian system by ubuntu-build-service from linaro. 27 28``` 29 RELEASE=bullseye TARGET=desktop ARCH=armhf ./mk-base-debian.sh 30``` 31 32### Building overlay with rockchip audio/video hardware accelerated 33 34- Building with overlay with rockchip debian rootfs: 35 36``` 37 RELEASE=bullseye ARCH=armhf ./mk-rootfs.sh 38``` 39 40- Building with overlay with rockchip debug debian rootfs: 41 42``` 43 VERSION=debug ARCH=armhf ./mk-rootfs-bullseye.sh 44``` 45 46### Creating roofs image 47 48Creating the ext4 image(linaro-rootfs.img): 49 50``` 51 ./mk-image.sh 52``` 53 54--- 55 56## Usage for 64bit Debian 11 (Bullseye-64) 57 58### Building debian system from linaro 59 60Building a base debian system by ubuntu-build-service from linaro. 61 62``` 63 RELEASE=bullseye TARGET=desktop ARCH=arm64 ./mk-base-debian.sh 64``` 65 66### Building overlay with rockchip audio/video hardware accelerated 67 68- Building the rk-debian rootfs 69 70``` 71 RELEASE=bullseye ARCH=arm64 ./mk-rootfs.sh 72``` 73 74- Building the rk-debain rootfs with debug 75 76``` 77 VERSION=debug ARCH=arm64 ./mk-rootfs-bullseye.sh 78``` 79 80### Creating roofs image 81 82Creating the ext4 image(linaro-rootfs.img): 83 84``` 85 ./mk-image.sh 86``` 87--- 88 89## Cross Compile for ARM Debian 90 91[Docker + Multiarch](http://opensource.rock-chips.com/wiki_Cross_Compile#Docker) 92 93## Package Code Base 94 95Please apply [those patches](https://github.com/rockchip-linux/rk-rootfs-build/tree/master/packages-patches) to release code base before rebuilding! 96 97## License information 98 99Please see [debian license](https://www.debian.org/legal/licenses/) 100 101## FAQ 102 103- noexec or nodev issue 104noexec or nodev issue /usr/share/debootstrap/functions: line 1450: 105../rootfs/ubuntu-build-service/bullseye-desktop-arm64/chroot/test-dev-null: 106Permission denied E: Cannot install into target 107... 108mounted with noexec or nodev 109 110Solution: mount -o remount,exec,dev xxx (xxx is the mount place), then rebuild it. 111