Skip to main content

Platform Software Setup

Procedure to Flash the Bootloader Firmware (QSPI)

Bootloader updates are typically not required, as firmware is usually updated during normal operation. However, the bootloader flashing procedure is described below.

File NamesDetails
DEF_XENO_R2L100_DDR4_2GB_1PCS.motFlash Writer image downloaded to RAM and used for flash programming.
XENO_R2L100_bl2_bp.srecBL2 stage bootloader image programmed into QSPI flash.
XENO_R2L100_fip.srecCombined TF-A and U-Boot image programmed into QSPI flash.

Step-by-step procedure:

  1. Download Required Software

    • Download the latest Bootloader and Kernel image package from the Eoxys download portal.
    • Extract all files into a working folder on the development PC.
  2. Connect Hardware

    • Type-C Cable (Debug UART)
    • +12 V Power Adapter (≥ 2 A)
NOTE:
  1. If a power adapter is not available, place a jumper across J11 pins 2 and 3 (refer to the highlighted yellow box in the figure). In this configuration, the board receives 5V power supply through the USB connection.

  2. When using an external power adapter, place a jumper across J11 pins 1 and 2 (refer to the highlighted red box in the figure), then connect a +12V DC supply to the board

Banner_alt

  1. Serial Terminal Configuration
    Configure the serial terminal application with the following parameters:

    • Baud Rate: 115200 bps
    • Data Bits: 8bits
    • Parity: None
    • Stop Bits: 1bit
    • Flow control: None
  2. Enable SCIF Download Mode
    Set the SW2 boot switch to the SCIF download configuration as shown in the figure below.

    Banner_alt

  3. Enter Download Mode
    After completing the above configuration, press the RESET button (S1). Status messages indicating SCIF download mode will appear on the serial terminal.

    Banner_alt

    info

    NOTE When using a Linux development system, perform the following steps before opening the serial console:

    1. Identify serial device:
      Banner_alt

    2. Grant permission:
      Banner_alt

    3. Start communication:
      Banner_alt

  4. Download Flash Writer to RAM

    • Power ON board (SW1).
    • Wait until download prompt appears in terminal.
    • Send Flash Writer image through serial terminal.
    • Use file: DEF_XENO_R2L100_DDR4_2GB_1PCS.mot.
    • Tera Term:
      File → Send File → Select image → Open

    Once the image transfer finishes, the Flash Writer starts automatically and displays the prompt shown below Banner_alt

    When using a Linux development PC, open a separate terminal window to transfer the Flash Writer image through the serial interface.

    Use the cat command to send the image file to the detected serial device (ttyUSB0). Banner_alt

  5. Bootloader Programming (QSPI Flash)
    Two bootloader images must be programmed into the QSPI flash to enable system boot on the XENO_R2L100 board.

    A. Increase Serial Transfer Speed
    Banner_alt

    The Flash Writer switches to high-speed communication.
    Change the terminal baud rate from 115200 bps to 921600 bps, then press Enter to continue

    B. Program Boot Loader Stage 2 (BL2)
    Banner_alt

    Enter the following values when prompted:

    ParameterValue
    Program Load Address11E00
    QSPI Save Address00000

    When the terminal displays “please send!”, transfer the file
    Banner_alt

    If confirmation is requested, enter:

    Banner_alt

    C. Program Firmware Image Package (FIP)
    Run the command again:

    Banner_alt

    ParameterValue
    Program Load Address00000
    QSPI Save Address1D200

    Banner_alt

    If confirmation is requested, enter
    Banner_alt

    D. Restore Default Speed
    After both images are written:

    • Change terminal speed back to 115200 bps
    • Power OFF the board using SW1

    Bootloader Programming Summary:

    File NameRAM Load AddressQSPI Address
    XENO_R2L100_bl2_bp.srec0x11E000x00000
    XENO_R2L100_fip.srec0x000000x1D200
  6. Change Back to Normal Boot Mode set the SW2 boot switch to the SPI (QSPI) boot configuration as shown in the figure below.
    Banner_alt

    Power ON the board using SW1, then press the RESET button (S1). After reset, verify that boot messages similar to the following are displayed on the serial terminal:
    Banner_alt

    The appearance of the U-Boot prompt (=>) confirms that the bootloader has been programmed correctly and the system is booting from QSPI flash.


Procedure to Flash the Linux System Image

The Linux system image on the XENO-R2L100 platform can be loaded using a USB storage device. Once the system boots successfully, the kernel, device tree, and root filesystem may be copied to the onboard eMMC storage for permanent operation.

Boot Linux from USB Device

This section describes the procedure to boot the XENO_R2L100 platform using a USB flash drive. The USB device must contain the Linux kernel, device tree, and root filesystem prepared as described below

  1. Prepare USB Boot Device
    This section explains how to prepare a USB flash drive for booting the XENO_R2L100 platform. The USB device requires two partitions:

    FAT32 → Kernel and Device Tree files
    EXT4 → Root filesystem

    1.1 Download Required Images
    A. Download the latest Kernel, Device Tree, and Root Filesystem packages from the Eoxys download portal.
    B. Extract the files into a working directory on the development PC.Example:

Banner_alt

File NameDescription
Image-XENO_R2L100.binLinux kernel image
r9a07g054l2-XENO_R2L100.dtbDevice tree file
core-image-weston-smarc-XENO_R2L100.bz2Root filesystem

1.2 Create USB Partitions Using Linux PC

  1. Insert the USB drive and identify the device
    Banner_alt
    Assume the USB device is /dev/sdb.

  2. Unmount Existing Partitions
    Banner_alt

  3. Create New Partition Table
    Banner_alt

    Inside fdisk, enter:
    Banner_alt

    Update partition table:
    Banner_alt

    Verify:
    Banner_alt

    Expected layout:
    Banner_alt

  4. Format Partitions
    Format FAT32 Boot Partition
    Banner_alt
    Format RootFS Partition
    Banner_alt

  5. Copy Boot Files (FAT32 Partition)
    Banner_alt

Verify:

Banner_alt

Unmount:

Banner_alt

  1. Extract Root Filesystem (EXT4 Partition) Banner_alt

Verify:

Banner_alt

Expected folders:

Banner_alt

  1. Finalize USB Drive
    Banner_alt

USB drive preparation is complete.
The device is now ready for USB boot configuration.

  1. Configure U-Boot to Boot from USB
    After preparing the USB drive, insert the USB pendrive into the board USB Host port and configure the U-Boot environment to boot the system from the USB device.
    When the system powers on, stop the autoboot process at the following prompt: Banner_alt

    Then execute the following commands:

    Banner_alt

    Boot Verification:

    After executing the reset command, the board reboots and starts booting from the USB device.The serial terminal displays messages similar to the following:

    Boot Log (Reference Output)

    Banner_alt

Install Linux System to Emmc

This section describes how to install the Linux system image to the onboard eMMC storage of the XENO-R2L100 platform.

The system must first be booted using the USB boot method described in Section 12.2.1. After logging into Linux, the kernel, device tree, and root filesystem can be copied to the eMMC storage for standalone operation.

  1. Boot the System Using USB
    Insert the prepared USB storage device and boot the system as described in Section 12.2.1.
    After the boot process completes, the Linux login prompt appears:

Banner_alt

Login as root.

  1. Identify the eMMC Device
    Check the available storage devices:

Banner_alt

Typical output:

Banner_alt

  1. Create eMMC Partitions
    Use fdisk to create partitions on the eMMC device.

Banner_alt

Inside fdisk, create two partitions:

Banner_alt

Example layout:

Banner_alt

  1. Format eMMC Partitions
    Format the boot partition:

Banner_alt

Format the root filesystem partition:

Banner_alt

  1. Copy Boot Files to eMMC
    Mount the boot partition:

Banner_alt

Copy kernel and device tree files from USB:

Banner_alt

Unmount the partition:

Banner_alt

  1. Copy Root Filesystem
    Mount the eMMC root partition:

Banner_alt

Copy the filesystem from the USB root partition:

Banner_alt

Unmount the partition:

Banner_alt

  1. Configure U-Boot to Boot from eMMC
    Reboot the board and stop at the U-Boot prompt.
    Set the boot parameters:

Banner_alt

Boot Verification:

After reboot, the system loads the kernel and root filesystem from eMMC storage.
The login prompt appears on the serial console:

Banner_alt

The board is now configured to boot Linux directly from the onboard eMMC.