Difference between revisions of "Linux"
From ESS-WIKI
Line 33: | Line 33: | ||
$ ARCH=armhf ./mk-base-debian.sh | $ ARCH=armhf ./mk-base-debian.sh | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | + | <h2> <span style="color:#0070c0">Building rk-debian rootfs</span> </h2> | |
− | + | <p><pre class="fck_mw_syntaxhighlight"><syntaxhighlight lang="bash"> | |
+ | $ ARCH=armhf ./mk-rootfs.sh | ||
+ | </syntaxhighlight> | ||
+ | or | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
− | |||
$ VERSION=debug ARCH=armhf ./mk-rootfs-stretch.sh | $ VERSION=debug ARCH=armhf ./mk-rootfs-stretch.sh | ||
− | </syntaxhighlight> | + | </syntaxhighlight></pre> |
+ | </p> | ||
+ | |||
== <span style="color:#0070c0">Creating the ext4 image</span> == | == <span style="color:#0070c0">Creating the ext4 image</span> == | ||
Revision as of 15:25, 13 June 2018
Contents
Getting Linux Source Code
$ 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
Compiler u-boot
$ ./make.sh evb-rk3399
Compiler Kernel
$ cd kernel
$ make ARCH=arm64 rockchip_linux_defconfig
$ make ARCH=arm64 rk3399-ds100.img -j12
Building base debian system by ubuntu-build-service from linaro
$ 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
<syntaxhighlight lang="bash"> $ ARCH=armhf ./mk-rootfs.sh </syntaxhighlight> or <syntaxhighlight lang="bash"> $ VERSION=debug ARCH=armhf ./mk-rootfs-stretch.sh </syntaxhighlight>
Creating the ext4 image
$ ./mk-image.sh
Creating the all image
$ cd ..
$ ./mkfirmware.sh debian