Skip to content

Deploy Binaries

The following binaries are used for the Network boot mode:

  • bl2_bp_spi-smarc-rzg3e.srec: Bootloader for SPI memory that initializes the hardware components needed to run U-Boot.
  • fip-smarc-rzg3e.srec: Firmware package that bundles U-Boot and other secure components into one boot image.
  • Flash_Writer_SCIF_RZG3E_EVK_LPDDR4X.mot: Software that is loaded into the RZ/G3Es RAM to write bootloader files into flash memory.
  • core-image-minimal-smarc-rzg3e.rootfs.tar.gz: Compressed Linux disk image containing the rootfs (Linux kernel, drivers, applications and system configurations).
  • core-image-weston-smarc-rzg3e.rootfs.tar.gz: Compressed Linux disk image containing the rootfs (Linux kernel, drivers, applications and system configurations).

By using the Network boot mode, the bootloaders need to be manually flashed to the board.

Prepare Linux Host PC

  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
    
  3. Copy core-image-weston-smarc-rzg3e.rootfs.tar.gz file to a new directory in the TFTP/NFS directory.

    cp Prebuilt_Binaries/core-image-weston-smarc-rzg3e.rootfs.tar.gz /tftpboot/rzg3e/
    
  4. Navigate to TFTP/NFS directory and extract the tarball.

    cd /tftpboot/rzg3e/
    tar xf core-image-weston-smarc-rzg3e.rootfs.tar.gz
    
  1. Copy core-image-minimal-smarc-rzg3e.rootfs.tar.gz file under build/tmp/deploy/images/smarc-rzg3e/ to a new directory in the TFTP/NFS directory.

  2. Navigate to TFTP/NFS directory and extract the tarball.

cd /tftpboot/rzg3e/
tar xf core-image-minimal-smarc-rzg3e.rootfs.tar.gz
  1. Copy core-image-weston-smarc-rzg3e.rootfs.tar.gz file under build/tmp/deploy/images/smarc-rzg3e/ to a new directory in the TFTP/NFS directory.

  2. Navigate to TFTP/NFS directory and extract the tarball.

cd /tftpboot/rzg3e/
tar xf core-image-weston-smarc-rzg3e.rootfs.tar.gz

Prepare Bootloaders

  1. Copy bootloader files under build/tmp/deploy/images/smarc-rzg3e to the directory used for loading bootloader files.
    1. bl2_bp_spi-smarc-rzg3e.srec
    2. fip-smarc-rzg3e.srec
    3. Flash_Writer_SCIF_RZG3E_EVK_LPDDR4X.mot
  1. Copy bootloader files under build/tmp/deploy/images/smarc-rzg3e on Linux Host PC to Windows PC.
    1. bl2_bp_spi-smarc-rzg3e.srec
    2. fip-smarc-rzg3e.srec
    3. Flash_Writer_SCIF_RZG3E_EVK_LPDDR4X.mot

Write Bootloaders to SPI Flash

SW_MODE Switch Bank
SW_MODE Switch Bank
  1. Set SW_MODE switch bank on the SMARC Carrier Board to SCIF Download Mode.

    Switch Bank SW1 SW2 SW3 SW4
    SW_MODE OFF ON OFF ON
  2. 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
  3. 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.

    1. The following message should be printed to console.

      SCI Download mode (Normal SCI boot)
      
      -- Load Program to SRAM  ---------------
      
  4. Send the Flash_Writer_SCIF_RZG3E_EVK_LPDDR4X.mot file. If successful, the serial console should print the product code.

    Flash writer for RZ/G3E Series V0.91 May.15,2024
     Product Code : RZ/G3E
    
  5. Write BL2 Loader to memory.

    >xls2
    ===== Qspi writing of RZ/G3S Board Command =============
    Load Program to Spiflash
    Writes to any of SPI address.
     Dialog : AT25QL128A
    Program Top Address & Qspi Save Address
    ===== Please Input Program Top Address ============
      Please Input : H'8003600
    ===== Please Input Qspi Save Address ===
      Please Input : H'0
    please send ! ('.' & CR stop load)
    Erase SPI Flash memory...
    Erase Completed
    Write to SPI Flash memory.
    ======= Qspi  Save Information  =================
     SpiFlashMemory Stat Address : H'00000000
     SpiFlashMemory End Address  : H'00032D6F
    ===========================================================
    
  6. Send the bl2_bp_spi-smarc-rzg3e.srec file.

  7. Write FIP Loader to memory.

    >xls2
    ===== Qspi writing of RZ/G3S Board Command =============
    Load Program to Spiflash
    Writes to any of SPI address.
     Dialog : AT25QL128A
    Program Top Address & Qspi Save Address
    ===== Please Input Program Top Address ============
      Please Input : H'0
    ===== Please Input Qspi Save Address ===
      Please Input : H'60000
    please send ! ('.' & CR stop load)
    Erase SPI Flash memory...
    Erase Completed
    Write to SPI Flash memory.
    ======= Qspi  Save Information  =================
     SpiFlashMemory Stat Address : H'00060000
     SpiFlashMemory End Address  : H'00115CBE
    ===========================================================
    
  8. Send the fip-smarc-rzg3e.srec file.

  9. 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 Procedure

Switch Settings

SW_MODE Switch Bank
SW_MODE Switch Bank

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

Switch Bank SW1 SW2 SW3 SW4
SW_MODE OFF OFF 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 ipaddr '192.168.1.2'
    setenv serverip '192.168.1.1'
    setenv ethaddr '00:11:22:33:44:55'
    setenv bootcmd 'tftp 0x48080000 rzg3e/boot/Image; tftp 0x48000000 rzg3e/boot/r9a09g047e57-smarc.dtb; booti 0x48080000 - 0x48000000'
    setenv bootargs 'console=ttySC0,115200 debug rootwait root=/dev/nfs rw nfsroot=192.168.1.1:/tftpboot/rzg3e,v3 ip=192.168.1.2:::::eth0:off'
    saveenv
    

    Note

    The IP/MAC addresses should be set up according to the Linux Host PCs environment.

  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 Network Boot
    Hardware Setup for Network 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