Linux
From ESS-WIKI
Revision as of 15:32, 13 June 2018 by Clayder.huang (talk | contribs)
Contents
Getting Linux Source Code
<syntaxhighlight lang="bash"> $ git clone https://github.com/rockchip-linux/repo.git $ mkdir rk3399_linux $ cd rk3399_linux/ $ ../repo/repo init --repo-url=https://github.com/rockchip-linux/repo -u https://github.com/rockchip-linux/manifests -m rk3399_linux_release.xml $ ../repo/repo sync </syntaxhighlight>
Compiler u-boot
<syntaxhighlight lang="bash"> $ ./make.sh evb-rk3399 </syntaxhighlight>
Compiler Kernel
<syntaxhighlight lang="bash"> $ cd kernel $ make ARCH=arm64 rockchip_linux_defconfig $ make ARCH=arm64 rk3399-ds100.img -j12 </syntaxhighlight>
Building base debian system by ubuntu-build-service from linaro
<syntaxhighlight lang="bash"> $ 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 </syntaxhighlight>
Building rk-debian rootfs
$ ARCH=armhf ./mk-rootfs.sh or $ VERSION=debug ARCH=armhf ./mk-rootfs-stretch.sh <syntaxhighlight>
Creating the ext4 image
&lt;syntaxhighlight lang=&quot;bash&quot;&gt; $ ./mk-image.sh &lt;/syntaxhighlight&gt;
Creating the all image
&lt;syntaxhighlight lang=&quot;bash&quot;&gt; $ cd .. $ ./mkfirmware.sh debian