Linux BSP User Guide for rk3288 series Debian9

From ESS-WIKI
Revision as of 06:55, 19 December 2018 by Yunjin.jiang (talk | contribs) (Add RK3288 Debian9)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Linux BSP Version

Debian 9 stretch
Linux version 4.4.143

Get Docker Image

$ TBD

​Run Docker example

$ TBD

​​Getting Debian Source Code

$ mkdir rk3288_debian
$ git clone https://github.com/rockchip-linux/repo.git
$ cd rk3288_debian
$ ../repo/repo init -u https://github.com/ADVANTECH-Rockchip/linux-manifest.git -b rk3288_linux_v2.0 -m default.xml
$ ../repo/repo sync

Build U-boot

Build RSB-4680 U-boot

$ export TOP=`pwd`
$ cd $TOP
$ cd u-boot/
$ ./make.sh rsb4680a3-2G-rk3288​​

Build EBC-R03 U-boot

$ export TOP=`pwd`
$ cd $TOP
$ cd u-boot/
$ ./make.sh ebcrb03a2-2G-rk3288

Build USM-110 U-boot

$ export TOP=`pwd`
$ cd $TOP
$ cd u-boot/
$ ./make.sh usm110a2-2G-rk3288




Build Kernel

Build RSB-4680 Kernel

$ cd $TOP
$ cd kernel/
$ make ARCH=arm rk3288_adv_defconfig
$ make ARCH=arm rk3288-rsb4680-a3.img -j12

Build EBC-R03 Kernel

$ cd $TOP
$ cd kernel/
$ make ARCH=arm rk3288_adv_defconfig
$ make ARCH=arm rk3288-ebcrb03-a2.img -j12

Build USM-110 Kernel

$ cd $TOP
$ cd kernel/
$ make ARCH=arm rk3288_adv_defconfig
$ make ARCH=arm rk3288-usm110-a2.img -j12

Build Recovery

$ cd $TOP
$ rm buildroot/output/rockchip_rk3288_recovery -rf
$ source envsetup.sh 20
$ ./build.sh recovery

NOTE:
For recovery.img includes kernel and recovery tools, kernel MUST be built before recovery.

Build Rootfs

$ cd $TOP
$ cd rootfs/
$ sudo ARCH=armhf ./mk-base-debian.sh
$ sudo ARCH=armhf ./mk-rootfs.sh
$ sudo ARCH=armhf ./mk-adv.sh

Creating the ext4 image

$ sudo ./mk-image.sh

NOTE:
If there is no error, the following ten files will be found in $TOP/rockdev/ :
boot.img  MiniLoaderAll.bin  misc.img  oem.img  parameter.txt  recovery.img  rootfs.img  trust.img  uboot.img  userdata.img