Preparing the Root File System microSD Card

To boot the R-Car V4H SH using a microSD card, you must first flash a bootable Linux image onto it. Two options are described below: bmaptool on Ubuntu, or Balena Etcher on Windows, macOS, or Linux.

microSD Card Requirements

  • A host machine for flashing the image:

    • Ubuntu with bmaptool, or

    • Windows, macOS, or Linux with Balena Etcher

  • microSD card: 16 GB or larger. For best performance and compatibility, we recommend using the microSD card provided with the board.

  • Provided bootable files:

    The image files come from the software package you downloaded and extracted in Downloading the software package. You can find the following files under the board_setup folder:

    File name

    Description

    board_image/

    Board image files

    • ubuntu-24.04-server-arm64-rcarv4h-sparrowhawk.img.xz: Ubuntu 24.04 Server microSD card image file containing:

      • Linux kernel image

      • Linux device tree file

      • Ubuntu 24.04 root filesystem

      • Default credentials:

        • Username: ubuntu

        • Password: ubuntu

    • ubuntu-24.04-server-arm64-rcarv4h-sparrowhawk.img.bmap: Block map file for fast flashing with bmaptool

Option 1: Flash using bmaptool (Ubuntu)

bmaptool is a faster command-line tool for flashing images to microSD cards using block map files (bmap). It provides quicker flashing compared to traditional methods by skipping empty blocks and verifying data integrity automatically.

  1. Install bmaptool

    On Ubuntu:

    sudo apt-get install bmap-tools
    
  2. Flashing the Image

    1. Insert your microSD card into your machine.

    2. Identify the microSD card device name:

      lsblk
      

      Look for your microSD card (e.g., /dev/sdb). Make sure to identify it correctly.

      Warning

      Please confirm the microSD card device name carefully. Double-check to avoid overwriting your main disk.

    3. Unmount any auto-mounted partitions on the microSD card:

      sudo umount /dev/sdX*
      
    4. Flash the image directly (no need to extract):

      sudo bmaptool copy ubuntu-24.04-server-arm64-rcarv4h-sparrowhawk.img.xz /dev/sdX
      

      Replace /dev/sdX with your actual microSD card device (e.g., /dev/sdb, not /dev/sdb1).

      Note

      Please ensure that the .bmap file is in the same directory as the image file. bmaptool automatically detects the .bmap file with the same base name.

      You can also specify it explicitly:

      sudo bmaptool copy --bmap ubuntu-24.04-server-arm64-rcarv4h-sparrowhawk.img.bmap \
        ubuntu-24.04-server-arm64-rcarv4h-sparrowhawk.img.xz /dev/sdX
      
    5. Wait for the process to complete. bmaptool will display progress and verify the image after flashing.

    6. Before removing the microSD card, run:

      sync
      

Option 2: Flash using Balena Etcher

Balena Etcher is a user-friendly GUI tool to flash OS images to microSD cards and USB drives. It provides a simple and safe method.

It supports many OS platforms, including Windows, macOS, and Linux.

  1. Install Balena Etcher

    Download and install the software from the Balena Etcher Official Website.

  2. Decompress the image file

    If you downloaded the image as a compressed .xz file, decompress it first:

    # On Linux
    xz -dk ubuntu-24.04-server-arm64-rcarv4h-sparrowhawk.img.xz
    

    Or use a decompression tool on Windows or macOS to extract the .img file.

  3. Flashing the Image

    Once Etcher is open:

    Balena Etcher Application

    Balena Etcher Application

    1. Select Image: Click Flash from file and choose your image file (e.g., ubuntu-24.04-server-arm64-rcarv4h-sparrowhawk.img).

    2. Select Target: Insert your microSD card into the host machine and choose the correct device.

      Warning

      Please confirm the microSD card device name carefully. Double-check to avoid overwriting your main disk.

    3. Flashing: Click Flash to begin. Etcher will:

      • Write the image

      • Validate the image

      • Automatically unmount the microSD card

    4. Finish: Remove the microSD card safely after Etcher reports successful completion.