Difference between revisions of "Linux"

From ESS-WIKI
Jump to: navigation, search
(Created page with "== <span style="color:#0070c0">Getting Linux Source Code</span> == $ git clone [https://github.com/rockchip-linux/repo.git https://github.com/rockchip-linux/repo.git] $ mkdir...")
 
Line 1: Line 1:
 
== <span style="color:#0070c0">Getting Linux Source Code</span> ==
 
== <span style="color:#0070c0">Getting Linux Source Code</span> ==
  
$ git clone [https://github.com/rockchip-linux/repo.git https://github.com/rockchip-linux/repo.git] $ mkdir rk3399_linux $ cd rk3399_linux/ $ ../repo/repo init --repo-url=[https://github.com/rockchip-linux/repo https://github.com/rockchip-linux/repo] -u ../repo/repo init --repo-url=[https://github.com/rockchip-linux/repo https://github.com/rockchip-linux/repo] -u $ ../repo/repo sync
+
<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>
  
 
== <span style="color:#0070c0">Compiler u-boot</span> ==
 
== <span style="color:#0070c0">Compiler u-boot</span> ==
  
$ cd u-boot/ $ ./make.sh evb-rk3399
+
<syntaxhighlight lang="bash">
 +
$ /make.sh evb-rk3399nc
 +
</syntaxhighlight>
  
u-boot/ ├── rk3399_loader_v1.09.112.bin ├── trust.img └── uboot.img
+
== <span style="color:#0070c0">Compiler Kernel</span> ==
  
== <span style="color:#0070c0">Compiler Kernel</span> ==
+
<syntaxhighlight lang="bash">
 +
$ cd kernel
 +
$ make ARCH=arm64 rockchip_linux_defconfig
 +
$ make ARCH=arm64 rk3399-ds100.img -j12
 +
</syntaxhighlight>
 +
 
 +
== <span style="color:#0070c0">Building base debian system by ubuntu-build-service from linaro</span> ==
 +
 
 +
<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>
  
$ cd kernel $ make ARCH=arm64 rockchip_linux_defconfig $ make ARCH=arm64 rk3399-ds100.img -j12
+
== <span style="color:#0070c0">Building rk-debian rootfs</span> ==
  
== <span style="color:#0070c0">Compiler Kernel</span> ==
+
<syntaxhighlight lang="bash">
 +
$ ARCH=armhf ./mk-rootfs.sh
 +
$ VERSION=debug ARCH=armhf ./mk-rootfs-stretch.sh
 +
</syntaxhighlight>
  
== <span style="color:#0070c0">Compiler Kernel</span> ==
+
== <span style="color:#0070c0">Creating the ext4 image</span> ==
  
== <span style="color:#0070c0">Compiler Kernel</span> ==
+
<syntaxhighlight lang="bash">
 +
$ ./mk-image.sh
 +
</syntaxhighlight>
  
== <span style="color:#0070c0">Compiler Kernel</span> ==
+
== <span style="color:#0070c0">Creating the all image</span> ==
  
== <span style="color:#0070c0">Compiler Kernel</span> ==
+
<syntaxhighlight lang="bash">
 +
$ ./ mkdebian_firmware.sh debian
 +
</syntaxhighlight>

Revision as of 16:34, 6 May 2018

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-rk3399nc

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

$ ARCH=armhf ./mk-rootfs.sh 
$ VERSION=debug ARCH=armhf ./mk-rootfs-stretch.sh

Creating the ext4 image

$ ./mk-image.sh

Creating the all image

$ ./ mkdebian_firmware.sh debian