Skip to content

Appendix for RZ/T,N

How to boot from eMMC

In this section, the steps to boot from eMMC are described.

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 the following table.

After booting the Flash Programmer,Then, EMMCW command of Flash Programmer 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:

USB Download mode (Normal USB boot)
-- Load Program to RAM ---------------
-- Start Boot Program on RAM ---------
Flash Programmer V1.06 (RZT2N)(CR52)
> EMMCWECSD 0xb3 0x9
EXT_CSD[179] = 0x9
> EMMCW 0x1 0x0
send file

Send the data of bl2_bp_emmc-rzt2h-dev.srec from terminal software after the message send file is shown.

After successfully downloading the binary, messages like below are shown on the terminal.

EMMCW Complete!

Next, write another loader file by using EMMCW command again.

> EMMCW 0x300 0x0
send file

Send the data of fip-rzt2h-dev.srec from terminal software after the message send file is shown.

After successfully downloading the binary, messages like below are shown on the terminal.

EMMCW Complete!

Then modify EXT_CSD register by running EMMCWECSD and EMMCW commands.

> EMMCWECSD 0xb3 0x8
EXT_CSD[179] = 0x8
> EMMCWECSD 0xb1 0x2
EXT_CSD[177] = 0x2
>

After writing two loader files normally, turn off the power switch of the board.

Note

  • Address of EXT_CSD register of eMMC for eMMC boot

    AddressValue to write
    0xB10x02
    0xB30x08

For example, this part describes how to modify EXT_CSD register and write boot loader files:

USB Download mode (Normal USB boot)
-- Load Program to RAM ---------------
-- Start Boot Program on RAM ---------
Flash Programmer V1.06 (RZT2N)(CR52)
> EMMCWECSD 0xb3 0x9
EXT_CSD[179] = 0x9
> EMMCW 0x1 0x0
send file

Send the data of bl2_bp_emmc-rzn2h-dev.srec from terminal software after the message send file is shown.

After successfully downloading the binary, messages like below are shown on the terminal.

EMMCW Complete!

Next, write another loader file by using EMMCW command again.

> EMMCW 0x300 0x0
send file

Send the data of fip-rzn2h-dev.srec from terminal software after the message send file is shown.

After successfully downloading the binary, messages like below are shown on the terminal.

EMMCW Complete!

Then modify EXT_CSD register by running EMMCWECSD and EMMCW commands.

> EMMCWECSD 0xb3 0x8
EXT_CSD[179] = 0x8
> EMMCWECSD 0xb1 0x2
EXT_CSD[177] = 0x2
>

After writing two loader files normally, turn off the power switch of the board.

Note

  • Address of EXT_CSD register of eMMC for eMMC boot

    AddressValue to write
    0xB10x02
    0xB30x08

Create a microSD card to boot Linux for eMMC boot

Please create a microSD card (see Step 4: Deploy Renesas RZ Linux BSP Plus).

Set eMMC Boot mode

Set the CN78 to eMMC mode.

To set the board to eMMC Boot mode, set the SW14 as below:

SW14-1SW14-2SW14-3SW14-4SW14-5SW14-6SW14-7SW14-8
ONONOFFOFFOFFONONOFF

Reset the board and interrupt the boot process by pressing the Enter key.

U-Boot 2024.07 (Jul 01 2024 - 18:07:18 +0000)
CPU: Renesas Electronics RZ/T2H
Model: Renesas Development EVK based on r9a09g077
DRAM: 960 MiB (effective 1.9 GiB)
Core: 18 devices, 11 uclasses, devicetree: separate
MMC: mmc@92080000: 0, mmc@92090000: 1
Loading Environment from MMC... Reading from MMC(0)….OK
*** Warning - No block device, using default environment
In: serial@80005400
Out: serial@80005400
Err: serial@80005400
Net: No ethernet found.
Hit any key to stop autoboot: 0
=>

Set the JP23 to eMMC mode.

To set the board to eMMC Boot mode, set the DSW3 as below:

DSW3-1DSW3-2DSW3-3DSW3-4DSW3-5DSW3-6DSW3-7DSW3-8
ONONOFFOFFOFFONONOFF

Reset the board and interrupt the boot process by pressing the Enter key.

U-Boot 2024.07 (Jul 01 2024 - 18:07:18 +0000)
CPU: Renesas Electronics RZ/N2H
Model: Renesas Development EVK based on r9a09g077
DRAM: 960 MiB (effective 1.9 GiB)
Core: 18 devices, 11 uclasses, devicetree: separate
MMC: mmc@92080000: 0, mmc@92090000: 1
Loading Environment from MMC... Reading from MMC(0)….OK
*** Warning - No block device, using default environment
In: serial@80005400
Out: serial@80005400
Err: serial@80005400
Net: No ethernet found.
Hit any key to stop autoboot: 0
=>

How to boot from eSD

This section explains how to boot Linux from eSD mode.

Create a microSD card to boot Linux for eSD boot

Prepare the micro SD card using the wic image file.

Please create a microSD card (see Step 4: Deploy Renesas RZ Linux BSP Plus).

  • File and directory in the micro SD card

    Type/Number

    Filesystem

    Contents

    Primary #1








    FAT32








    • bl2_bp_emmc-rzt2h-dev.bin
    • bl2_bp_emmc-rzt2h-dev.srec
    • bl2_bp_esd-rzt2h-dev.bin
    • bl2_bp_esd-rzt2h-dev.srec
    • bl2_bp_xspi0-rzt2h-dev.bin
    • bl2_bp_xspi0-rzt2h-dev.srec
    • bl2_bp_xspi1-rzt2h-dev.bin
    • bl2_bp_xspi1-rzt2h-dev.srec
    • fip-rzt2h-dev.bin
    • fip-rzt2h-dev.srec

    Primary #2



















    Ext4



















    ./
    ├── bin
    ├── boot
      ├─ Image
      ├─ Image-6.12.43-cip7-yocto-standard-ga91d362c6626
     └─ r9a09g077m44-dev.dtb
    ├── dev
    ├── etc
    ├── home
    ├── lib
    ├── media
    ├── mnt
    ├── proc
    ├── root
    ├── run
    ├── sbin
    ├── srv
    ├── sys
    ├── tmp
    ├── usr
    └── var

Prepare the micro SD card using the wic image file.

Please create a microSD card (see Step 4: Deploy Renesas RZ Linux BSP Plus).

  • File and directory in the micro SD card

    Type/Number

    Filesystem

    Contents

    Primary #1








    FAT32








    • bl2_bp_emmc-rzn2h-dev.bin
    • bl2_bp_emmc-rzn2h-dev.srec
    • bl2_bp_esd-rzn2h-dev.bin
    • bl2_bp_esd-rzn2h-dev.srec
    • bl2_bp_xspi0-rzn2h-dev.bin
    • bl2_bp_xspi0-rzn2h-dev.srec
    • bl2_bp_xspi1-rzn2h-dev.bin
    • bl2_bp_xspi1-rzn2h-dev.srec
    • fip-rzn2h-dev.bin
    • fip-rzn2h-dev.srec

    Primary #2



















    Ext4



















    ./
    ├── bin
    ├── boot
      ├─ Image
      ├─ Image-6.12.43-cip7-yocto-standard-ga91d362c6626
     └─ r9a09g087m44-dev.dtb
    ├── dev
    ├── etc
    ├── home
    ├── lib
    ├── media
    ├── mnt
    ├── proc
    ├── root
    ├── run
    ├── sbin
    ├── srv
    ├── sys
    ├── tmp
    ├── usr
    └── var

Setting the U-boot and boot with eSD boot mode

To set the board to eSD Boot mode, set the SW14 as below:

SW14-1SW14-2SW14-3SW14-4SW14-5SW14-6SW14-7SW14-8
OFFOFFONOFFOFFOFFONOFF

Then, change CN78 on the module to select micro SD card slot.

Please insert the micro SD card into the slot.

To set the board to eSD Boot mode, set the DSW3 as below:

DSW3-1DSW3-2DSW3-3DSW3-4DSW3-5DSW3-6DSW3-7DSW3-8
OFFOFFONOFFOFFOFFONOFF

Then, change JP23 on the module to select micro SD card slot.

Please insert the micro SD card into the slot.

Power on and boot

After Turn ON the power switch (SW16) and RESET button is pressed, Linux will be booted from eSD.

After Turn ON the power switch (SW1) and RESET button is pressed, Linux will be booted from eSD.