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...")
 
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
== <span style="color:#0070c0">Getting Linux Source Code</span> ==
+
<h2> <span style="color:#0070c0">Getting Linux Source Code</span> </h2>
 
+
<p><pre class="fck_mw_syntaxhighlight">&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;
$ 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
+
$ git clone https://github.com/rockchip-linux/repo.git
 
+
$ mkdir rk3399_linux
== <span style="color:#0070c0">Compiler u-boot</span> ==
+
$ 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
$ cd u-boot/ $ ./make.sh evb-rk3399
+
$ ../repo/repo sync
 
+
&amp;lt;/syntaxhighlight&amp;gt;</pre>
u-boot/ ├── rk3399_loader_v1.09.112.bin ├── trust.img └── uboot.img
+
</p>
 
+
<h2> <span style="color:#0070c0">Compiler u-boot</span> </h2>
== <span style="color:#0070c0">Compiler Kernel</span> ==
+
<p><pre class="fck_mw_syntaxhighlight">&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;
 
+
$ ./make.sh evb-rk3399
$ cd kernel $ make ARCH=arm64 rockchip_linux_defconfig $ make ARCH=arm64 rk3399-ds100.img -j12
+
&amp;lt;/syntaxhighlight&amp;gt;</pre>
 
+
</p>
== <span style="color:#0070c0">Compiler Kernel</span> ==
+
<h2> <span style="color:#0070c0">Compiler Kernel</span> </h2>
 
+
<p><pre class="fck_mw_syntaxhighlight">&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;
== <span style="color:#0070c0">Compiler Kernel</span> ==
+
$ cd kernel
 
+
$ make ARCH=arm64 rockchip_linux_defconfig
== <span style="color:#0070c0">Compiler Kernel</span> ==
+
$ make ARCH=arm64 rk3399-ds100.img -j12
 
+
&amp;lt;/syntaxhighlight&amp;gt;</pre>
== <span style="color:#0070c0">Compiler Kernel</span> ==
+
</p>
 
+
<h2> <span style="color:#0070c0">Building base debian system by ubuntu-build-service from linaro</span> </h2>
== <span style="color:#0070c0">Compiler Kernel</span> ==
+
<p><pre class="fck_mw_syntaxhighlight">&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;
 +
$ 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
 +
&amp;lt;/syntaxhighlight&amp;gt;</pre>
 +
</p>
 +
<h2> <span style="color:#0070c0">Building rk-debian rootfs</span> </h2>
 +
<p><pre class="fck_mw_syntaxhighlight">&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;
 +
$ ARCH=armhf ./mk-rootfs.sh
 +
$ VERSION=debug ARCH=armhf ./mk-rootfs-stretch.sh
 +
&amp;lt;/syntaxhighlight&amp;gt;</pre>
 +
</p>
 +
<h2> <span style="color:#0070c0">Creating the ext4 image</span> </h2>
 +
<p><pre class="fck_mw_syntaxhighlight">&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;
 +
$ ./mk-image.sh
 +
&amp;lt;/syntaxhighlight&amp;gt;</pre>
 +
</p>
 +
<h2> <span style="color:#0070c0">Creating the all image</span> </h2>
 +
<p><pre class="fck_mw_syntaxhighlight">&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;
 +
$ cd ..
 +
$ ./mkfirmware.sh debian
 +
&amp;lt;/syntaxhighlight&amp;gt;</pre>
 +
</p>

Latest revision as of 15:38, 13 June 2018

Getting Linux Source Code

&lt;syntaxhighlight lang=&quot;bash&quot;&gt;
$ 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
&lt;/syntaxhighlight&gt;

Compiler u-boot

&lt;syntaxhighlight lang=&quot;bash&quot;&gt;
$ ./make.sh evb-rk3399
&lt;/syntaxhighlight&gt;

Compiler Kernel

&lt;syntaxhighlight lang=&quot;bash&quot;&gt;
$ cd kernel
$ make ARCH=arm64 rockchip_linux_defconfig
$ make ARCH=arm64 rk3399-ds100.img -j12
&lt;/syntaxhighlight&gt;

Building base debian system by ubuntu-build-service from linaro

&lt;syntaxhighlight lang=&quot;bash&quot;&gt;
$ 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
&lt;/syntaxhighlight&gt;

Building rk-debian rootfs

&lt;syntaxhighlight lang=&quot;bash&quot;&gt;
$ ARCH=armhf ./mk-rootfs.sh 
$ VERSION=debug ARCH=armhf ./mk-rootfs-stretch.sh
&lt;/syntaxhighlight&gt;

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
&lt;/syntaxhighlight&gt;