Difference between revisions of "Debian9"
From ESS-WIKI
Line 12: | Line 12: | ||
<syntaxhighlight lang="bash">$./make.sh evb-rk3399 | <syntaxhighlight lang="bash">$./make.sh evb-rk3399 | ||
− | </syntaxhighlight> | + | </syntaxhighlight>or<syntaxhighlight lang="bash">$./mk-uboot.sh |
</syntaxhighlight> | </syntaxhighlight> | ||
== <span style="color:#0070c0">Build Kernel</span> == | == <span style="color:#0070c0">Build Kernel</span> == | ||
Line 30: | Line 30: | ||
== <span style="color:#0070c0">Build Rootfs</span> == | == <span style="color:#0070c0">Build Rootfs</span> == | ||
+ | |||
=== <span style="color:#0070c0">Building base debian system by ubuntu-build-service from linaro</span> === | === <span style="color:#0070c0">Building base debian system by ubuntu-build-service from linaro</span> === | ||
+ | |||
<syntaxhighlight lang="bash">$cd rootfs/ | <syntaxhighlight lang="bash">$cd rootfs/ | ||
Line 38: | Line 40: | ||
$ARCH=armhf ./mk-base-debian.sh | $ARCH=armhf ./mk-base-debian.sh | ||
</syntaxhighlight> In rootfs creat linaro-stretch-alip-xxxxx-1.tar.gz | </syntaxhighlight> In rootfs creat linaro-stretch-alip-xxxxx-1.tar.gz | ||
+ | === <span style="color:#0070c0">Building rk-debian rootfs</span> === | ||
− | |||
<syntaxhighlight lang="bash">$ARCH=armhf ./mk-rootfs.sh | <syntaxhighlight lang="bash">$ARCH=armhf ./mk-rootfs.sh | ||
− | </syntaxhighlight> | + | </syntaxhighlight> or<syntaxhighlight lang="bash">$VERSION=debug ARCH=armhf ./mk-rootfs-stretch.sh |
− | or | ||
− | <syntaxhighlight lang="bash">$VERSION=debug ARCH=armhf ./mk-rootfs-stretch.sh | ||
</syntaxhighlight> | </syntaxhighlight> | ||
=== <span style="color:#0070c0">Creating the ext4 image(</span> === | === <span style="color:#0070c0">Creating the ext4 image(</span> === | ||
+ | |||
<syntaxhighlight lang="bash">$./mk-image.sh | <syntaxhighlight lang="bash">$./mk-image.sh | ||
</syntaxhighlight> | </syntaxhighlight> | ||
+ | |||
+ | |||
+ | check All Debian Image in rockimg folder |
Revision as of 11:02, 14 September 2018
Contents
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
$./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
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
Building rk-debian rootfs
$ARCH=armhf ./mk-rootfs.sh
$VERSION=debug ARCH=armhf ./mk-rootfs-stretch.sh
Creating the ext4 image(
$./mk-image.sh
check All Debian Image in rockimg folder