This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
civilinfrastructureplatform:ciptesting:cipreferencehardware:hihope-rzg2m:hihope-rzg2mbuildinstructions [2019/10/15 04:28] kanechikay Add how to build the RZ/G2 flash writer |
civilinfrastructureplatform:ciptesting:cipreferencehardware:hihope-rzg2m:hihope-rzg2mbuildinstructions [2020/01/20 06:07] (current) kanechikay Update the procedure for RZ/G2 Flash Writer to support v1.01 |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Renesas RZ/G2M hihope-rzg2m build instructions ====== | ====== Renesas RZ/G2M hihope-rzg2m build instructions ====== | ||
+ | |||
+ | This page describes how to build following images/tools for Renesas RZ/G2M hihope-rzg2m. | ||
+ | * the latest CIP kernel | ||
+ | * the full hihope-rzg2m BSP from Renesas (including loader, U-Boot, kernel based on CIP kernel and rootfs) | ||
+ | * SDK (cross compiler, kernel sources, kernel headers and rootfs) | ||
+ | * the RZ/G2 flash writer | ||
===== How to build the latest CIP Kernel for hihope-rzg2m ===== | ===== How to build the latest CIP Kernel for hihope-rzg2m ===== | ||
Line 133: | Line 139: | ||
==== Build Output ==== | ==== Build Output ==== | ||
Once the build is completed, the Kernel, device tree and RFS are located in $WORK/build/tmp/deploy/images/hihope-rzg2m. | Once the build is completed, the Kernel, device tree and RFS are located in $WORK/build/tmp/deploy/images/hihope-rzg2m. | ||
+ | |||
+ | ^ # ^ Filename ^ Description ^ Note ^ | ||
+ | | 1 | bootparam_sa0.srec | Loader (Boot parameter) | S-record format | | ||
+ | | 2 | bl2-hihope-rzg2m.srec | Loader (Trusted firmware-A BL2) | S-record format | | ||
+ | | 3 | cert_header_sa6.srec | Loader (Certification) | S-record format | | ||
+ | | 4 | bl31-hihope-rzg2m.srec | Trusted fimrware-A BL31 | S-record format | | ||
+ | | 5 | u-boot-elf-hihope-rzg2m.srec | U-Boot | symbolic link to the latest image, S-record format | | ||
+ | | 6 | Image | Linux kernel image | symbolic link to the latest image | | ||
+ | | 7 | r8a774a1-hihope-rzg2m.dtb | Device tree blob for hihope-rzg2m without the expansion board | symbolic link to the latest dtb | | ||
+ | | 8 | r8a774a1-hihope-rzg2m-ex.dtb | Device tree blob for hihope-rzg2m with the expansion board | symbolic link to the latest dtb | | ||
Line 236: | Line 252: | ||
git clone https://github.com/renesas-rz/rzg2_flash_writer.git | git clone https://github.com/renesas-rz/rzg2_flash_writer.git | ||
cd rzg2_flash_writer | cd rzg2_flash_writer | ||
- | git checkout -b v1.00 v1.00 | + | git checkout -b v1.01 v1.01 |
</code> | </code> | ||
Line 246: | Line 262: | ||
<code> | <code> | ||
- | make clean | + | make -f makefile.linaro clean |
- | CROSS_COMPILE=~/gcc-linaro-7.3.1-2018.05-x86_64_aarch64-elf/bin/aarch64-elf- make BOARD=HIHOPE | + | CROSS_COMPILE=~/gcc-linaro-7.3.1-2018.05-x86_64_aarch64-elf/bin/aarch64-elf- make -f makefile.linaro BOARD=HIHOPE |
</code> | </code> | ||