See Renesas specification for M3 and H3 on renesas website.

Deploying the image for M3/H3 boards

It consists of copying raw image on an sdcard.

Download images

See Download Images section

Download m3 image from command line

wget -r -nd --no-parent -A "redpesk*" ''

Download h3 image from command line

wget -r -nd --no-parent -A "redpesk*" ''

Copy image

Find your device sdcard and be sure it is unmounted

DEVICE_TO_COPY=$(x=$(lsblk -dli -o PATH,VENDOR,TYPE,HOTPLUG | grep "disk\s\+1$") && [ $(echo $x | wc -l)  -gt 1 ] && echo "ERROR: more than one devices: \n $x" || echo $x | awk '{print $1}')

If more than one device, just the list and choose the right one:

lsblk -dli -o PATH,VENDOR,TYPE,HOTPLUG | grep "disk\s\+1$"

Use bmaptool


  • bmaptool installed
  • bmap file downloaded (it comes with images)
  • device plugged, find, unmounted
IMAGE=$(ls redpesk*.raw.xz)
BMAP_FILE=$(ls redpesk*.bmap)
sudo bmaptool copy $(IMAGE) --bmap $BMAP_FILE $DEVICE_TO_COPY

Use dd


  • device plugged, find, unmounted
unxz redpesk*.raw.xz
IMAGE=$(ls redpesk*.raw)
sudo dd if=$IMAGE of=DEVICE_TO_COPY status=progress

Power on m3/h3


  • sdcard copied and plugged into upboard
  • keyboard, screen plugged into upboard
  • ethernet cable plugged (optionnal)
  • serial console plugged (optionnal: for uboot configuration)

Uboot configuration

If not already done, you’ll have to configure Uboot parameters.

1. Connect serial console on M3 board and start a terminal emulator on the USB serial port.

Here, we use ‘screen’ on device /dev/ttyUSB0 but you could use any terminal emulator able to open the serial port at 115200 bauds (minicom , picocom …)

   minicom -b 115200 -D /dev/ttyUSB0


   picocom -b 115200 /dev/ttyUSB0


   screen /dev/ttyUSB0 115200

2. Power up the board

3. Break at uboot prompt (press any key)

4. Set the following uboot variables:

WARNING: don’t make a big copy/paste or some garbage characters may be sent to the console (issue with usb/serial port buffering?). Instead, copy one or two lines at a time.

4.1 Set right dtb file for your board:

  • H3
setenv dtbfile r8a7795-es1-h3ulcb.dtb
setenv dtbfile r8a7795-es1-h3ulcb-kf.dtb'
  • M3
setenv dtbfile r8a7796-m3ulcb.dtb
setenv dtbfile r8a7796-m3ulcb-kf.dtb

4.2 Set common uboot config:

setenv bootmmc '0:1'; setenv bootkaddr 0x48080000; setenv bootdaddr 0x48000000; setenv bootargs console=ttySC0,115200 ignore_loglevel vmalloc=384M video=HDMI-A-1:1920x1080-32@60 root=/dev/mmcblk1p2 rw rootfstype=ext4 rootwait rootdelay=2
setenv bootcmd 'ext4load mmc ${bootmmc} ${bootkaddr} Image; ext4load mmc ${bootmmc} ${bootdaddr} ${dtbfile}; booti ${bootkaddr} - ${bootdaddr}'

4.3 Save Uboot environment (optionnal)

If you want you can save environment in NV flash:


5. Boot the board

At uboot prompt, type:

   run bootcmd

Alternatively, simply reset the board.

Note: default credentials of images are login root, password root.

Wait and keep calm, it is booting!


It needs ethernet cable plugged into the board, and getting the ip.

  • User: root
  • Password: root

Getting the ip on target

ip a

On your computer:

ssh root@<ip_found>