Difference between revisions of "IoTGateway/BSP/Linux/Linux BSP User Guide Debian9 for rk"

From ESS-WIKI
Jump to: navigation, search
Line 94: Line 94:
 
== <span style="color:#0070c0">How to do about update DS100 and DS100L Platform?</span> ==
 
== <span style="color:#0070c0">How to do about update DS100 and DS100L Platform?</span> ==
  
 +
*[[IoTGateway/BSP/Linux/Update_SOP1_Image_DS100_and_DS100Lite|Update SOP1 Image DS100 and DS100Lite]]
  
*[[IoTGateway/BSP/Linux/Update SOP1 Image DS100 and DS100Lite|Update SOP1 Image DS100 and DS100Lite]]
+
*[[IoTGateway/BSP/Linux/Update_SOP2_Image_DS100_and_DS100Lite|Update SOP2 Image DS100 and DS100Lite]]
 
 
*[[IoTGateway/BSP/Linux/Update SOP2 Image DS100 and DS100Lite|Update SOP2 Image DS100 and DS100Lite]]
 
 
 
Download AndroidTool_Linux_v2.55.zip and DriverAssitant_v4.5.zip
 
 
 
[https://github.com/ADVANTECH-Rockchip/rk3399_tools/tree/linux_4.4 https://github.com/ADVANTECH-Rockchip/rk3399_tools/tree/linux_4.4]
 
 
 
Step1 Connect with the OTG port and PC.
 
 
 
[[File:20180719 181034.jpg|500px|20180719_181034.jpg]]
 
 
 
Step2 Double click DriverInstall.
 
 
 
[[File:DriverAssitant.jpg|700px|DriverAssitant.jpg]]
 
 
 
Step3 ADB or Debug console, send command "reboot bootloader"
 
 
 
[[File:JJ1.jpg|700px|242.jpg]]
 
 
 
Step4 Select the image path.
 
 
 
[[File:JJ1.jpg|700px|2422.jpg]]
 
 
 
Step4 Finish the update
 
 
 
 
 
<syntaxhighlight lang="bash">Update Debian
 
0x00000000 loader     rk3399_loader_v1.14.115.bin
 
0x00000000 parameter  parameter-debian.txt
 
0x00004000 uboot      uboot.img
 
0x00006000 trust      trust.img
 
0x0000A000 boot       boot.img
 
0x0003A000 oem        oem.img
 
0x0005A000 rootfs     linaro-rootfs.img
 
</syntaxhighlight>
 
 
 
<syntaxhighlight lang="bash">Update Buildroot
 
0x00000000 loader     rk3399_loader_v1.14.115.bin
 
0x00000000 parameter  parameter-debian.txt
 
0x00004000 uboot      uboot.img
 
0x00006000 trust      trust.img
 
0x0000A000 boot       boot.img
 
0x0003A000 oem        oem.img
 
0x0005A000 rootfs     rootfs.ext4
 
</syntaxhighlight><br/>
 

Revision as of 03:57, 29 November 2018

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 libssl-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 Linux 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

Build DS-100 Kernel

$cd rk3399/kernel/
$make ARCH=arm64 rockchip_ds100_defconfig
$make ARCH=arm64 rk3399-ds100.img -j8

Build DS-100Lite Kernel

$cd rk3399/kernel/
$make ARCH=arm64 rockchip_ds100l_defconfig
$make ARCH=arm64 rk3399-ds100l.img -j8

Build Recovery

$cd rk3399
$./build.sh recovery
In /output/rockchip_rk3399_recovery/images create recovery.img

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
In rootfs creat linaro-stretch-alip-xxxxx-1.tar.gz

Building rk-debian rootfs

$VERSION=debug ARCH=arm64 ./mk-rootfs-stretch-arm64.sh

Creating the ext4 image(

$./mk-image.sh
check All Debian Image in rockimg folder


How to do about update DS100 and DS100L Platform?