Difference between revisions of "RockPro-px30"
(→Build system image) |
|||
Line 51: | Line 51: | ||
./build/mk-uboot.sh rockpropx30 | ./build/mk-uboot.sh rockpropx30 | ||
− | The generated images will be copied to out/u-boot | + | The generated images will be copied to out/u-boot directory. |
ls out/u-boot/ | ls out/u-boot/ | ||
Line 60: | Line 60: | ||
./build/pack-uboot.sh rockpropx30 | ./build/pack-uboot.sh rockpropx30 | ||
− | The generated packages will be copied to out/packages | + | The generated packages will be copied to out/packages directory. |
ls out/packages/ | ls out/packages/ | ||
rockpropx30-rk-ubootimg_2017.09-03569-g8d4bb4e_all.deb | rockpropx30-rk-ubootimg_2017.09-03569-g8d4bb4e_all.deb | ||
Line 75: | Line 75: | ||
=== Pack Kernel === | === Pack Kernel === | ||
− | ./build/pack-kernel.sh px30_linux_defconfig 1 # px30_linux_defconfig: kernel defconfig; 1: release-number | + | ./build/pack-kernel.sh -d px30_linux_defconfig -r 1 # px30_linux_defconfig: kernel defconfig; 1: release-number |
− | The generated packages will be copied to out/packages | + | The generated packages will be copied to out/packages directory. |
ls out/packages | ls out/packages |
Revision as of 08:56, 16 June 2020
Contents
ROCK Pro PX30
Introduction
Hardware
Development
Get the source code
Create top directory, rockchip-bsp.
mkdir rockchip-bsp
u-boot. The second stage bootloader.
git clone -b stable-4.4-px30 https://github.com/radxa/u-boot.git
kernel. Current version is 4.4.
git clone -b stable-4.4-px30 https://github.com/radxa/kernel.git
rkbin. Prebuilt Rockchip binaries, include first stage loader and ATF(Arm Trustzone Firmware).
git clone -b stable-4.4-px30 debian https://github.com/radxa/rkbin.git
build. Some script files and configuration files for building u-boot, kernel and rootfs.
git clone -b debian https://github.com/radxa/build.git
Install toolchain from Linaro
wget https://releases.linaro.org/components/toolchain/binaries/7.3-2018.05/aarch64-linux-gnu/gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu.tar.xz sudo tar xvf gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu.tar.xz -C /usr/local/ export CROSS_COMPILE=/usr/local/gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu- export PATH=/usr/local/gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu/bin:$PATH
Check if Linaro toolchain is the default choice:
which aarch64-linux-gnu-gcc /usr/local/gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-gcc
Install other build tools
sudo apt-get install gcc-aarch64-linux-gnu device-tree-compiler libncurses5 libncurses5-dev build-essential libssl-dev mtools sudo apt-get install bc python dosfstools
Build U-Boot
./build/mk-uboot.sh rockpropx30
The generated images will be copied to out/u-boot directory.
ls out/u-boot/ idbloader.img px30_loader_v1.14.120.bin trust.img uboot.img
Pack U-Boot
./build/pack-uboot.sh rockpropx30
The generated packages will be copied to out/packages directory.
ls out/packages/ rockpropx30-rk-ubootimg_2017.09-03569-g8d4bb4e_all.deb
Build Kernel
./build/mk-kernel.sh rockpropx30
You will get the kernel image and dtb file
ls out/kernel/ Image px30-rockpro.dtb
Pack Kernel
./build/pack-kernel.sh -d px30_linux_defconfig -r 1 # px30_linux_defconfig: kernel defconfig; 1: release-number
The generated packages will be copied to out/packages directory.
ls out/packages linux-headers-4.4.189-1-rockchip-gc71f0d4_4.4.189-1-rockchip_arm64.deb linux-image-4.4.189-1-rockchip-gc71f0d4_4.4.189-1-rockchip_arm64.deb linux-image-4.4.189-1-rockchip-gc71f0d4-dbg_4.4.189-1-rockchip_arm64.deb linux-libc-dev_4.4.189-1-rockchip_arm64.deb
Build system image
Get source code.
git clone -b master https://github.com/radxa/debos.git
Build docker and enter docker container.
./dev-shell # build docker and enter docker container
Build system image in Docker container.
./build.sh # will show usage ./build.sh px30-rockpropx30-debian-buster-xfce4-arm64
The generated system image will be moved to output directory.
Downloads
System images are on the RockPro PX30 images site.