Difference between revisions of "Debian9"

From ESS-WIKI
Jump to: navigation, search
Line 5: Line 5:
 
== <span style="color:#0070c0">Get Docker Image</span> ==
 
== <span style="color:#0070c0">Get Docker Image</span> ==
  
<syntaxhighlight lang="bash">docker pull advrisc/u16.04-rklbv1
+
 
 +
<syntaxhighlight lang="bash">$docker pull advrisc/u16.04-rklbv1
 
</syntaxhighlight>
 
</syntaxhighlight>
 
 
== <span style="color:#0070c0">Run Docker example</span> ==
 
== <span style="color:#0070c0">Run Docker example</span> ==
  
  
<syntaxhighlight lang="bash">docker run -it --name rk_linux --privileged -v /home/adv/rk3399_v20:/home/adv/BSP:rw advrisc/u16.04-rkabv1:latest /bin/bash 
+
<syntaxhighlight lang="bash">$docker run -it --name rk_linux --privileged -v /home/adv/rk3399_v20:/home/adv/BSP:rw advrisc/u16.04-rkabv1:latest /bin/bash 
 
</syntaxhighlight>
 
</syntaxhighlight>
 
== <span style="color:#0070c0">Build U-boot</span> ==
 
== <span style="color:#0070c0">Build U-boot</span> ==
Line 57: Line 57:
  
 
<syntaxhighlight lang="bash">$./mk-image.sh
 
<syntaxhighlight lang="bash">$./mk-image.sh
</syntaxhighlight>
+
</syntaxhighlight> check All Debian Image in rockimg folder
check All Debian Image in rockimg folder
 

Revision as of 09:18, 11 October 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-rkabv1:latest /bin/bash 

Build U-boot

$./make.sh evb-rk3399
or
$./mk-uboot.sh

Build Kernel

$cd kernel
$make ARCH=arm64 rockchip_linux_defconfig
$make ARCH=arm64 rk3399-sapphire-excavator-linux.img -j12

Build Recovery

$cd ..
$./mk-recovery.sh
In /output/rockchip_rk3399_recovery/images create recovery.img,


Build Rootfs

Building base debian system by ubuntu-build-service from linaro

$cd rootfs/
$sudo apt-get install binfmt-support qemu-user-static live-build
$sudo dpkg -i ubuntu-build-service/packages/*
$sudo apt-get install -f
$ARCH=armhf ./mk-base-debian.sh
In rootfs creat linaro-stretch-alip-xxxxx-1.tar.gz

Building rk-debian rootfs

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


Creating the ext4 image(

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