Difference between revisions of "IoTGateway/BSP/Linux/Linux BSP User Guide Debian9 for rk"
From ESS-WIKI
Line 24: | Line 24: | ||
$sudo apt-get install time | $sudo apt-get install time | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | |||
== <span style="color:#0070c0">Getting Debian Source Code</span> == | == <span style="color:#0070c0">Getting Debian Source Code</span> == | ||
Line 36: | Line 35: | ||
$ ../bin/repo sync | $ ../bin/repo sync | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | |||
== <span style="color:#0070c0">Build U-boot</span> == | == <span style="color:#0070c0">Build U-boot</span> == | ||
− | <syntaxhighlight lang="bash">$cd u-boot/ | + | <syntaxhighlight lang="bash">$cd rk3399/u-boot/ |
$./make.sh evb-rk3399 | $./make.sh evb-rk3399 | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 46: | Line 44: | ||
− | <syntaxhighlight lang="bash">$cd kernel | + | <syntaxhighlight lang="bash">$cd rk3399/kernel |
$make ARCH=arm64 rockchip_ds100_defconfig | $make ARCH=arm64 rockchip_ds100_defconfig | ||
$make ARCH=arm64 rk3399-ds100.img -j8 | $make ARCH=arm64 rk3399-ds100.img -j8 | ||
Line 53: | Line 51: | ||
− | <syntaxhighlight lang="bash">$./build.sh recovery | + | <syntaxhighlight lang="bash">$cd rk3399 |
+ | $./build.sh recovery | ||
</syntaxhighlight>In /output/rockchip_rk3399_recovery/images create recovery.img | </syntaxhighlight>In /output/rockchip_rk3399_recovery/images create recovery.img | ||
== <span style="color:#0070c0">Build Buildroot rootfs</span> == | == <span style="color:#0070c0">Build Buildroot rootfs</span> == | ||
Line 65: | Line 64: | ||
− | <syntaxhighlight lang="bash">$cd rootfs/ | + | <syntaxhighlight lang="bash">$cd rk3399/rootfs/ |
$sudo apt-get install binfmt-support qemu-user-static live-build | $sudo apt-get install binfmt-support qemu-user-static live-build | ||
$sudo dpkg -i ubuntu-build-service/packages/* | $sudo dpkg -i ubuntu-build-service/packages/* |
Revision as of 03:37, 23 October 2018
Contents
Linux BSP Version
Debian9
Get Docker Image
$docker pull advrisc/u16.04-rklbv1
Run Docker example
$docker run -it --name rk_linux --privileged -v /home/adv/rk3399_v20:/home/adv/BSP:rw advrisc/u16.04-rklbv1:latest /bin/bash
Install Some tools For Rockchip Linux v2.07 version
$sudo apt-get install ibssl-dev
$sudo apt-get install texinfo
$sudo apt-get install liblz4-tool
$sudo apt-get install genext2fs
$sudo apt-get install time
Getting Debian Source Code
Step1 : To pull down the Android source tree to your working directory from the repositories as specified in the default manifest
$ mkdir rk3399
$ mkdir bin
$ cd rk3399/
$ curl https://storage.googleapis.com/git-repo-downloads/repo > ../bin/repo
$ chmod a+x ../bin/repo
$ ../bin/repo init -u https://github.com/ADVANTECH-Rockchip/linux-manifest.git -b rk3399_linux_v2.0
$ ../bin/repo sync
Build U-boot
$cd rk3399/u-boot/
$./make.sh evb-rk3399
Build Kernel
$cd rk3399/kernel
$make ARCH=arm64 rockchip_ds100_defconfig
$make ARCH=arm64 rk3399-ds100.img -j8
Build Recovery
$cd rk3399
$./build.sh recovery
Build Buildroot rootfs
$./build.sh rootfs
Build Rootfs
Building base debian system by ubuntu-build-service from linaro
$cd rk3399/rootfs/
$sudo apt-get install binfmt-support qemu-user-static live-build
$sudo dpkg -i ubuntu-build-service/packages/*
$sudo apt-get install -f
$RELEASE=stretch TARGET=desktop ARCH=arm64 ./mk-base-debian.sh
Building rk-debian rootfs
$VERSION=debug ARCH=arm64 ./mk-rootfs-stretch-arm64.sh
Creating the ext4 image(
$./mk-image.sh
How to do about update DS100 and DS100L Platform?
Download AndroidTool_Release_v2.45.zip and DriverAssitant_v4.5.zip
https://github.com/ADVANTECH-Rockchip/rk3399_tools/tree/linux_4.4
Step1 Connect with the OTG port and PC.
Step2 Double click DriverInstall.
Step3 ADB or Debug console, send command "reboot bootloader"
Step4 Select the image path.
Step4 Finish the update