Difference between revisions of "Debian9"

From ESS-WIKI
Jump to: navigation, search
Line 9: Line 9:
 
</syntaxhighlight>
 
</syntaxhighlight>
 
== <span style="color:#0070c0">Build U-boot</span> ==
 
== <span style="color:#0070c0">Build U-boot</span> ==
 
  
 
<syntaxhighlight lang="bash">$./make.sh evb-rk3399  
 
<syntaxhighlight lang="bash">$./make.sh evb-rk3399  
 +
</syntaxhighlight>OR
 +
<syntaxhighlight lang="bash">$./mk-uboot.sh
 
</syntaxhighlight>
 
</syntaxhighlight>
OR
 
  
 +
== <span style="color:#0070c0">Build Kernel</span> ==
  
<syntaxhighlight lang="bash">$./mk-uboot.sh
 
</syntaxhighlight>
 
== <span style="color:#0070c0">Build Kernel</span> ==
 
 
<syntaxhighlight lang="bash">$cd kernel
 
<syntaxhighlight lang="bash">$cd kernel
 
$make ARCH=arm64 rockchip_linux_defconfig
 
$make ARCH=arm64 rockchip_linux_defconfig
Line 24: Line 22:
 
</syntaxhighlight>
 
</syntaxhighlight>
 
== <span style="color:#0070c0">Build Recovery</span> ==
 
== <span style="color:#0070c0">Build Recovery</span> ==
 +
 +
<syntaxhighlight lang="bash">$cd ..
 +
$./mk-recovery.sh
 +
</syntaxhighlight>
 +
 +
In /output/rockchip_rk3399_recovery/images create recovery.img,
  
  
 
== <span style="color:#0070c0">Build Rootfs</span> ==
 
== <span style="color:#0070c0">Build Rootfs</span> ==
 +
  
 
<syntaxhighlight lang="bash">$cd rootfs/
 
<syntaxhighlight lang="bash">$cd rootfs/
</syntaxhighlight>
+
</syntaxhighlight><syntaxhighlight lang="bash">$sudo apt-get install binfmt-support qemu-user-static live-build
<syntaxhighlight lang="bash">$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/*
 
$sudo apt-get install -f
 
$sudo apt-get install -f
 
$ARCH=armhf ./mk-base-debian.sh
 
$ARCH=armhf ./mk-base-debian.sh
 
</syntaxhighlight>
 
</syntaxhighlight>
 
 
In rootfs creat linaro-stretch-alip-xxxxx-1.tar.gz
 
In rootfs creat linaro-stretch-alip-xxxxx-1.tar.gz

Revision as of 11:51, 14 September 2018

Linux BSP Version

Debian9

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

$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