Difference between revisions of "Debian9"

From ESS-WIKI
Jump to: navigation, search
Line 24: Line 24:
 
$sudo apt-get install time
 
$sudo apt-get install time
 
</syntaxhighlight>
 
</syntaxhighlight>
 
 
== <span style="color:#0070c0">Build U-boot</span> ==
 
== <span style="color:#0070c0">Build U-boot</span> ==
  
Line 40: Line 39:
 
== <span style="color:#0070c0">Build Recovery</span> ==
 
== <span style="color:#0070c0">Build Recovery</span> ==
  
 +
<syntaxhighlight lang="bash">$./build.sh recovery
 +
</syntaxhighlight>In /output/rockchip_rk3399_recovery/images create recovery.img
  
<syntaxhighlight lang="bash">$cd ..
+
== <span style="color:#0070c0">Build Buildroot rootfs</span> ==
$./mk-recovery.sh
 
</syntaxhighlight>In /output/rockchip_rk3399_recovery/images create recovery.img,
 
  
 +
<syntaxhighlight lang="bash">$./build.sh rootfs
 +
</syntaxhighlight>
  
 
== <span style="color:#0070c0">Build Rootfs</span> ==
 
== <span style="color:#0070c0">Build Rootfs</span> ==

Revision as of 10:48, 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-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

Build U-boot

$cd u-boot/
$./make.sh evb-rk3399

Build Kernel

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

Build Recovery

$./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 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