Skip to content

Deploy Prebuilt Binaries

The following prebuilt binaries are used for the eSD boot mode:

  • core-image-weston-smarc-rzg3e.rootfs.wic.bmap: A map for the WIC image that speeds up flashing by detailing which SD Card blocks need data and which are empty.
  • core-image-weston-smarc-rzg3e.rootfs.wic.gz: Compressed Linux disk image containing the partition table, bootloaders and rootfs (Linux kernel, drivers, applications and system configurations).

By using the eSD boot mode, the bootloaders are loaded directly from the SD Card. This means that there is no need to flash the bootloaders to QSPI separately.

The SD Card can be formatted using a Linux or Windows PC.

Extract Package

  1. Copy rzg3e-ethosu-v3.0_Prebuilt_Binaries.zip file to Linux Host PC.
  2. Extract the zip file.
unzip rzg3e-ethosu-v3.0_Prebuilt_Binaries.zip -d Prebuilt_Binaries
  1. Extract the zip file by right-clicking on rzg3e-ethosu-v3.0_Prebuilt_Binaries.zip file and selecting Extract All.

Prepare SD Card

  1. Connect SD Card to Linux Host PC.

  2. Using bmaptool, write the WIC image to the SD Card (replacing /dev/sda with your SD Card device).

    sudo bmaptool copy --bmap Prebuilt_Binaries/Linux/core-image-weston-smarc-rzg3e.rootfs.wic.bmap Prebuilt_Binaries/Linux/core-image-weston-smarc-rzg3e.rootfs.wic.gz /dev/sda
    
  3. Make sure all of the data has been written to the SD Card.

    sync
    
  4. Eject and remove the SD Card from Linux Host PC.

  5. Connect the formatted SD Card to the uSD0 slot on the RZ/G3E.

  1. Connect SD Card to Windows PC.
  2. Using balenaEtcher, flash the SD Card with the core-image-weston-smarc-rzg3e.rootfs.wic.gz file found under the Linux directory in the package extracted in the previous step.
  3. Once the flash is completed, eject and remove the SD Card.
  4. Connect the SD Card to the uSD0 slot on the RZ/G3E.

Boot Procedure

Switch Settings

SW_MODE Switch Bank
SW_MODE Switch Bank

Set SW_MODE switch bank on the SMARC Carrier Board for eSD Boot.

Switch Bank SW1 SW2 SW3 SW4
SW_MODE ON ON OFF ON

Setup U-Boot Environment

U-Boot Hardware Setup
U-Boot Hardware Setup
  1. Start up a serial terminal connection (e.g. TeraTerm or Minicom) on Host PC, making sure the correct COM port and settings are used.

    Variable Value
    Baud rate 115200 bps
    Data 8 bit
    Parity none
    Stop 1 bit
    Flow control none
  2. Power ON the board by pressing the POWER button for at least 1 second until the CARRIER ON LED lights up.
    The CARRIER ON LED is located above the POWER button.

  3. Press any key to stop the autoboot within 3 seconds of U-Boot starting.
    If U-Boot attempts to boot, press the RESET button and try again.

  4. Set up the U-Boot environment.

    env default -a
    setenv bootargs 'console=ttySC0,115200 rw rootwait earlycon root=/dev/mmcblk0p2'
    setenv bootcmd 'mmc dev 0;ext4load mmc 0:2 0x48080000 /boot/Image;ext4load mmc 0:2 0x48000000 /boot/r9a09g047e57-smarc.dtb;booti 0x48080000 - 0x48000000'
    saveenv
    
  5. Power OFF the board by pressing the POWER button for at least 1 second until the CARRIER ON LED turns off.
    The CARRIER ON LED is located above the POWER button.

Boot The Board

  1. Whilst the board is not powered, confirm that following hardware configuration is being used.

    Hardware Setup for eSD Boot
    Hardware Setup for eSD Boot

  2. Power ON the board by pressing the POWER button for at least 1 second until the CARRIER ON LED lights up.
    The CARRIER ON LED is located above the POWER button.

    Note

    Since the U-Boot environment is saved, autoboot no longer needs to be stopped in the future.

  3. Once Linux has booted up, login with root (no password).

    Poky (Yocto Project Reference Distro) 5.0.8 smarc-rzg3e ttySC0
    smarc-rzg3e login: root