Difference between revisions of "RockPro-px30"
(→Source Code) |
|||
Line 10: | Line 10: | ||
=== Get the source code === | === Get the source code === | ||
+ | |||
+ | Create top directory, rockchip-bsp. | ||
+ | |||
+ | mkdir rockchip-bsp | ||
u-boot. The second stage bootloader. | 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. | 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). | 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. | 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 U-Boot === | ||
+ | ./build/mk-uboot.sh rockpropx30 | ||
+ | The generated images will be copied to out/u-boot direcotry. | ||
− | + | 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 rockdev direcotry. | |
+ | ls rockdev | ||
+ | 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 px30_linux_defconfig 1 # px30_linux_defconfig: kernel defconfig; 1: release-number | |
− | + | The generated packages will be copied to rockdev direcotry. | |
+ | ls rockdev | ||
+ | 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 | ||
+ | == Downloads == | ||
− | + | System images are on the [https://dl.radxa.com/rockpro_px30/images RockPro PX30 images site]. | |
− | + | == Installation == | |
− | + | === Install on eMMC module === |
Revision as of 09:26, 10 June 2020
Contents
ROCK Pro PX30
Introduction
Hardware
Software
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 direcotry.
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 rockdev direcotry.
ls rockdev 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 px30_linux_defconfig 1 # px30_linux_defconfig: kernel defconfig; 1: release-number
The generated packages will be copied to rockdev direcotry.
ls rockdev 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
Downloads
System images are on the RockPro PX30 images site.