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 microSD 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 microSD Card. This means that there is no need to flash the bootloaders to QSPI separately.

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

Extract Package

  1. Copy rz-ethos-u-v1-0_Prebuilt_Binaries.zip file to Linux Linux Host PC.
  2. Extract the zip file.
unzip rz-ethos-u-v1-0_Prebuilt_Binaries.zip -d Prebuilt_Binaries
  1. Extract the zip file by right-clicking on rz-ethos-u-v1-0_Prebuilt_Binaries.zip file and selecting Extract All.

Prepare microSD Card

  1. Connect microSD Card to Linux Host PC.

  2. Using bmaptool, write the WIC image to the microSD Card (replacing /dev/sda with your microSD 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 microSD Card.

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

  5. Connect the flashed microSD Card to the uSD0 slot on the RZ/G3E.

  1. Connect microSD Card to Windows PC.
  2. Using balenaEtcher, flash the microSD 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 microSD Card.
  4. Connect the microSD 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

Set Up the 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 '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. While the board is not powered, confirm the 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.

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

    Poky (Yocto Project Reference Distro) 5.0.14 smarc-rzg3e ttySC3
    smarc-rzg3e login: root