SMARC EVK of RZ/G2L, RZ/G2LC, RZ/G2UL, RZ/V2L, and RZ/Five
Start-up Guide
R01US0556EJ0102 Rev.1.02
Page 31 of 37
Jun. 17, 2022
2.5
How to boot from eMMC
2.5.1
Rebuild rootfs
Build a rootfs according to Release Note. After that, please rebuild the rootfs with the below commands.
$ cd ${your build directory} (ex.$ cd
~/rzv_vlp _v3.0.0
)
$ source poky/oe-init-build-env
$ echo 'IMAGE_INSTALL_append = " e2fsprogs-mke2fs"'>> conf/local.conf
$ bitbake core-image-xxxxx (ex. core-image-weston)
2.5.2
Writing Bootloader for eMMC Boot
For the boot operation, EXT_CSD register of eMMC need to be modified and two boot loader files need to be written to
the target board. Modifying register address and value information are described in
Table 8
, and corresponding
bootloader files and specified address information are depending on each target board as described in
Table 9
.
After booting the Flash Writer (Refer to
), “EM_SECSD” command of Flash Writer is used
to modify EXT_CSD register of eMMC to enable eMMC boot.
Then, “EM_W” command of Flash Writer is used to write boot loader binary files. This command receives binary data
from the serial port and writes the data to a specified address of the eMMC with information where the data should be
loaded on the address of the main memory.
For example, this part describes how to modify EXT_CSD register and write boot loader files in the case of RZ/V2L
Evaluation Board Kit PMIC version.:
>
EM_SECSD
Please Input EXT_CSD Index(H'00 - H'1FF) :
b1
EXT_CSD[B1] = 0x00
Please Input Value(H'00 - H'FF) :
2
EXT_CSD[B1] = 0x02
>
EM_SECSD
Please Input EXT_CSD Index(H'00 - H'1FF) :
b3
EXT_CSD[B3] = 0x00
Please Input Value(H'00 - H'FF) :
8
EXT_CSD[B3] = 0x08
>
EM_W
EM_W Start --------------
---------------------------------------------------------
Please select,eMMC Partition Area.
0:User Partition Area : 62160896 KBytes
eMMC Sector Cnt : H'0 - H'0768FFFF
1:Boot Partition 1 : 32256 KBytes
eMMC Sector Cnt : H'0 - H'0000FBFF
2:Boot Partition 2 : 32256 KBytes
eMMC Sector Cnt : H'0 - H'0000FBFF
---------------------------------------------------------
Select area(0-2)>
1
-- Boot Partition 1 Program -----------------------------
Please Input Start Address in sector :
1
Please Input Program Start Address :
11e00
Work RAM(H'50000000-H'50FFFFFF) Clear....
please send ! ('.' & CR stop load)
Send the data of “bl2_bp-smarc-rzv2l_pmic.srec” from terminal software after the message “please send !” is shown.