diff options
author | Chanho Park <chanho61.park@samsung.com> | 2017-06-29 18:47:53 +0900 |
---|---|---|
committer | Chanho Park <chanho61.park@samsung.com> | 2018-01-25 14:42:53 +0900 |
commit | dd02dc3d00176ea26bfc32f4a556d890a40594c9 (patch) | |
tree | 4fd43b66ad2d1142549bbcb34278df1313eef01c /README.md | |
parent | f9011a0b329a6015c068e5594f4b2ca0e9addccb (diff) | |
download | linux-artik7-dd02dc3d00176ea26bfc32f4a556d890a40594c9.tar.gz linux-artik7-dd02dc3d00176ea26bfc32f4a556d890a40594c9.tar.bz2 linux-artik7-dd02dc3d00176ea26bfc32f4a556d890a40594c9.zip |
README.md: update guide according to A530_os_2.0.0 update
This patch updates the build guide according to A530 os 2.0.0 version.
Change-Id: Icacc038399998cb69b9ad6bb0be56bace54688c0
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 74 |
1 files changed, 49 insertions, 25 deletions
diff --git a/README.md b/README.md index a64e39dc6bd1..d750923e2129 100644 --- a/README.md +++ b/README.md @@ -8,32 +8,33 @@ This 'linux-artik' repository is linux kernel source for artik5(artik520), artik10(artik1020), artik710 and artik530. The base kernel version of artik5 and artik10 is linux-3.10.93 and based on Samsung Exynos kernel. -The artik710 and artik530 kernel is based on is based on linux-4.4.19. +The artik710 and artik530 kernel is based on is based on linux-4.4.43. --- ## 2. Build guide ### 2.1 Install cross compiler -+ For artik710> You'll need an arm64 cross compiler +#### ARTIK710 +You'll need an arm64 cross compiler ``` sudo apt-get install gcc-aarch64-linux-gnu ``` If you can't install the above toolchain, you can use linaro toolchain. ``` -wget https://releases.linaro.org/components/toolchain/binaries/5.3-2016.05/aarch64-linux-gnu/gcc-linaro-5.3.1-2016.05-x86_64_aarch64-linux-gnu.tar.xz -tar xf gcc-linaro-5.3.1-2016.05-x86_64_aarch64-linux-gnu.tar.xz -export PATH=~/gcc-linaro-5.3.1-2016.05-x86_64_aarch64-linux-gnu:$PATH +wget https://releases.linaro.org/components/toolchain/binaries/5.4-2017.05/aarch64-linux-gnu/gcc-linaro-5.4.1-2017.05-x86_64_aarch64-linux-gnu.tar.xz +tar xf gcc-linaro-5.4.1-2017.05-x86_64_aarch64-linux-gnu.tar.xz +export PATH=~/gcc-linaro-5.4.1-2017.05-x86_64_aarch64-linux-gnu/bin:$PATH ``` You can the path permernently through adding it into ~/.bashrc -+ ARTIK5, ARTIK10 and ARTIK530 +#### ARTIK5, ARTIK10 and ARTIK530 ``` sudo apt-get install gcc-arm-linux-gnueabihf ``` If you can't install the above toolchain, you can use linaro toolchain. ``` -wget http://releases.linaro.org/components/toolchain/binaries/latest-5/arm-linux-gnueabihf/gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf.tar.xz -tar xf gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf.tar.xz -export PATH=~/gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf/bin:$PATH +wget https://releases.linaro.org/components/toolchain/binaries/5.4-2017.05/arm-linux-gnueabihf/gcc-linaro-5.4.1-2017.05-x86_64_arm-linux-gnueabihf.tar.xz +tar xf gcc-linaro-5.4.1-2017.05-x86_64_arm-linux-gnueabihf.tar.xz +export PATH=~/gcc-linaro-5.4.1-2017.05-x86_64_arm-linux-gnueabihf/bin:$PATH ``` You can the path permernently through adding it into ~/.bashrc @@ -43,8 +44,34 @@ To generate modules.img which contains kernel modules, you can use the make_ext4 sudo apt-get install android-tools-fsutils ``` -### 2.2 Build the kernel -+ For artik710> +### 2.2 Build the u-boot with helper script of build-artik +#### ARTIK710 +``` +cd build-artik +./build_kernel.sh -b artik710 +``` +You can find the u-boot binaries from the build-artik/output/images/artik710/ +#### ARTIK530 +``` +cd build-artik +./build_kernel.sh -b artik530 +``` +You can find the u-boot binaries from the build-artik/output/images/artik530/ +#### ARTIK5 +``` +cd build-artik +./build_kernel.sh -b artik5 +``` +You can find the u-boot binaries from the build-artik/output/images/artik5/ +#### ARTIK10 +``` +cd build-artik +./build_kernel.sh -b artik10 +``` +You can find the u-boot binaries from the build-artik/output/images/artik10/ + +### 2.3 Build the u-boot with manual way +#### ARTIK710 ``` make ARCH=arm64 artik710_raptor_defconfig ``` @@ -64,8 +91,7 @@ make_ext4fs -b 4096 -L modules \ usr/modules/lib/modules/ rm -rf usr/modules ``` - -+ For artik530> +#### ARTIK530 ``` make ARCH=arm artik530_raptor_defconfig ``` @@ -85,8 +111,7 @@ make_ext4fs -b 4096 -L modules \ usr/modules/lib/modules/ rm -rf usr/modules ``` - -+ For artik5> +#### ARTIK5 ``` make ARCH=arm artik5_defconfig ``` @@ -100,8 +125,7 @@ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- zImage -j4 make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- exynos3250-artik5.dtb ./scripts/mk_modules.sh ``` - -+ For artik10> +#### ARTIK10 ``` make ARCH=arm artik10_defconfig ``` @@ -119,48 +143,48 @@ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- exynos5422-artik10.dtb ## 3. Update Guide Copy compiled binaries into your board. -+ For artik710> +#### ARTIK710 ``` scp arch/arm64/boot/Image root@{YOUR_BOARD_IP}:/root scp arch/arm64/boot/dts/nexell/*.dtb root@{YOUR_BOARD_IP}:/root scp usr/modules.img root@{YOUR_BOARD_IP}:/root ``` -+ On your board +- On your board ``` mount -o remount,rw /boot cp /root/Image /boot cp /root/*.dtb /boot -dd if=/root/modules.img of=/dev/mmcblk0p2 +dd if=/root/modules.img of=/dev/mmcblk0p5 sync reboot ``` -+ For artik530> +#### ARTIK530 ``` scp arch/arm/boot/zImage root@{YOUR_BOARD_IP}:/root scp arch/arm/boot/dts/s5p4418*.dtb root@{YOUR_BOARD_IP}:/root scp usr/modules.img root@{YOUR_BOARD_IP}:/root ``` -+ On your board +- On your board ``` mount -o remount,rw /boot cp /root/zImage /boot cp /root/s5p4418*.dtb /boot -dd if=/root/modules.img of=/dev/mmcblk0p2 +dd if=/root/modules.img of=/dev/mmcblk0p5 sync reboot ``` -+ For artik5 and artik10> +#### For artik5 and artik10 ``` scp arch/arm/boot/zImage root@{YOUR_BOARD_IP}:/root scp arch/arm/boot/dts/*.dtb root@{YOUR_BOARD_IP}:/root scp usr/modules.img root@{YOUR_BOARD_IP}:/root ``` -+ On your board +- On your board ``` mount -o remount,rw /boot cp /root/zImage /boot |