RZ-G/RZ-G2L SMARC: Difference between revisions

From Renesas.info
Line 27: Line 27:
4. '''Prepare an SD Card''' : The evaluation boards can be booted from SD Cards. The SD card must be formatted and loaded using a Linux PC. A helpful script has been created ([https://github.com/renesas-rz/rzg2_bsp_scripts/tree/master/usb_sd_partition usb_sd_partition]) that you can run on your Linux PC.
4. '''Prepare an SD Card''' : The evaluation boards can be booted from SD Cards. The SD card must be formatted and loaded using a Linux PC. A helpful script has been created ([https://github.com/renesas-rz/rzg2_bsp_scripts/tree/master/usb_sd_partition usb_sd_partition]) that you can run on your Linux PC.


4a. Insert your micro SD card into a '''USB-SD-Card reader''' and then plug into a Linux PC.
* Insert your micro SD card into a '''USB-SD-Card reader''' and then plug into a Linux PC.


4b. Use the commands below to download the formatting script and run. Please select your card and choose the default settings.
* Use the commands below to download the formatting script and run. Please select your card and choose the default settings.


<pre>
<pre>
Line 36: Line 36:
$ ./usb_sd_partition.sh
$ ./usb_sd_partition.sh
</pre>
</pre>
4c. Use the commands below to copy the files you build with the BSP to the SD card. '''Start in the base of your Yocto BSP'''.
* Use the commands below to copy the files you build with the BSP to the SD card. '''Start in the base of your Yocto BSP'''.
<pre>
<pre>
# Change to the Yocto output directory that contains the files
# Change to the Yocto output directory that contains the files
Line 52: Line 52:
</pre>
</pre>


4d. Safely remove your USB card reader by right clicking on the drive icon (either RZ_FAT or RZ_ext) in Ubuntu and selecting "Eject"
* Safely remove your USB card reader by right clicking on the drive icon (either RZ_FAT or RZ_ext) in Ubuntu and selecting "Eject"


5. '''Boot the Board''' :
5. '''Power the Board and Connect to the Serial Port '''
* Supply power the board using the '''USB-C connection''' on the carrier board labeled "Power Input"
* Supply power the board using the '''USB-C connection''' on the carrier board labeled "Power Input"
* On the carrier board, press the '''red button''' in order to turn on power to the board. The green LED labeled "Carrier PWR On" will be lit when power is on.
* On the carrier board, press the '''red button''' in order to turn on power to the board. The green LED labeled "Carrier PWR On" will be lit when power is on.
* Plug a USB micro cable into the carrier board to the USB connector labeled '''"SER 3 UART"'''. Use a '''serial terminal program''' to interact as you board. With a Linux PC, we recommend using "putty" (connects to /dev/USB0), and with a Windows PC we recommend "TeraTerm" that connects to COMx. The baud rate of the Serial connection is '''115200 bps'''.
* Now that the board is powered, plug a USB micro cable into the carrier board to the USB connector labeled '''"SER 3 UART"'''. Use a '''serial terminal program''' to interact as you board. With a Linux PC, we recommend using "putty" (connects to /dev/USB0), and with a Windows PC we recommend "TeraTerm" that connects to COMx. The baud rate of the Serial connection is '''115200 bps'''.
* Set the '''switches on the SOM board''' to boot from SD card. On the SOM (CPU) board, there is a little switch (SW1) by the SD card socket. Set both 1 and 2 to the "ON" position.
* Press the '''blue reset button''', and then "u-boot" will start. Within 3 seconds, '''press the space bar''' on your keyboard in order to stop the auto-boot sequence.
 
6. '''Switch settings for the CPU SOM board.'''
* The SOM board contains a eMMC Flash device and a Micro SD Card socket. On the SOM board, you can only use one or the other because they are both connected to the same peripheral channel on the RZ/G2L.
* Set the switches on the SOM board to what you want to use.
* Note that the SD Card slot on the Carrier board will always work because it uses a separate peripheral channel on the RZ/G2L.
* On the SOM (CPU) board, there is a little switch (SW1) by the SD card socket.
<pre>
<pre>
Boot from SD Card                             Boot from eMMC
SOM board uses SD Card socket                SOM board uses eMMC Flash
SW1-1 = ON                                    SW1-1 = ON
SW1-1 = ON                                    SW1-1 = ON
SW1-2 = ON                                    SW1-2 = OFF
SW1-2 = ON                                    SW1-2 = OFF
Line 70: Line 76:
       +-----+                                      +-----+
       +-----+                                      +-----+
</pre>
</pre>
7-1. '''Boot the Board using eMMC Flash on SOM board'''
* Set switch SW1 ON,OFF
* The boot loader (u-boot) by default will try to boot from eMMC after 3 seconds.
* Press the '''blue reset button''' and wait.
7-2. '''Boot the Board using SD Card on SOM board'''
* Set switch SW1 ON,ON
* Insert the '''SD card''' into the socket on '''SMARC SOM CPU board''' (not the carrier board).
* Insert the '''SD card''' into the socket on '''SMARC SOM CPU board''' (not the carrier board).
* Press the '''blue reset button''', and then "u-boot" will start. Within 3 seconds, '''press the space bar''' on your keyboard in order to stop the auto-boot sequence.
* Press the '''blue reset button''', and then "u-boot" will start. Within 3 seconds, '''press the space bar''' on your keyboard in order to stop the auto-boot sequence.
Line 75: Line 89:
<pre>
<pre>
=> mmc dev 0 ; fatload mmc 0:1 0x48080000 Image ; fatload mmc 0:1 0x48000000 /r9a07g044l2-smarc.dtb
=> mmc dev 0 ; fatload mmc 0:1 0x48080000 Image ; fatload mmc 0:1 0x48000000 /r9a07g044l2-smarc.dtb
=> setenv bootargs 'root=/dev/mmcblk0p2' ; booti 0x48080000 - 0x48000000
=> setenv bootargs 'root=/dev/mmcblk0p2 rootwait' ; booti 0x48080000 - 0x48000000
</pre>
 
7-3. '''Boot the Board using SD Card on Carrier board'''
* Insert the '''SD card''' into the socket on '''SMARC SOM CPU board''' (not the carrier board).
* Press the '''blue reset button''', and then "u-boot" will start. Within 3 seconds, '''press the space bar''' on your keyboard in order to stop the auto-boot sequence.
* At the u-boot prompt ( => ), enter the following commands to boot the board:
<pre>
=> mmc dev 1 ; fatload mmc 1:1 0x48080000 Image ; fatload mmc 1:1 0x48000000 /r9a07g044l2-smarc.dtb
=> setenv bootargs 'root=/dev/mmcblk1p2 rootwait' ; booti 0x48080000 - 0x48000000
</pre>
</pre>


8. '''Linux Login'''
* The login will be "root" (no password is needed)
* The login will be "root" (no password is needed)



Revision as of 21:23, 23 July 2021

<img height="200" style="float:right" src=renesas_rzg2l_carrier.jpg> ← RZ-G

General Information

Getting Started

1. Download the Linux BSP : Download the Linux BSP from renesas.com. More information can be found here

2. Build Environment : To build the BSP, you will need a Linux PC running Ubuntu 20.04.

3. Build the BSP : The instructions for building the BSP are located in the "Release Note" document that can also be downloaded from renesas.com .

4. Prepare an SD Card : The evaluation boards can be booted from SD Cards. The SD card must be formatted and loaded using a Linux PC. A helpful script has been created (usb_sd_partition) that you can run on your Linux PC.

  • Insert your micro SD card into a USB-SD-Card reader and then plug into a Linux PC.
  • Use the commands below to download the formatting script and run. Please select your card and choose the default settings.
$ wget https://raw.githubusercontent.com/renesas-rz/rzg2_bsp_scripts/master/usb_sd_partition/usb_sd_partition.sh
$ chmod +x usb_sd_partition.sh
$ ./usb_sd_partition.sh
  • Use the commands below to copy the files you build with the BSP to the SD card. Start in the base of your Yocto BSP.
# Change to the Yocto output directory that contains the files
$ cd build/tmp/deploy/images/smarc-rzg2l

# Copy the Linux kernel and Device Tree to partition 1
$ sudo cp -v Image /media/$USER/RZ_FAT
$ sudo cp -v r9a07g044l2-smarc.dtb /media/$USER/RZ_FAT

# Copy and expand the Root File System to partition 2
$ sudo tar -xvf core-image-minimal-smarc-rzg2l.tar.gz   -C /media/$USER/RZ_ext

# Make sure all files are finished writing before removing the USB card reader from the PC
$ sync
  • Safely remove your USB card reader by right clicking on the drive icon (either RZ_FAT or RZ_ext) in Ubuntu and selecting "Eject"

5. Power the Board and Connect to the Serial Port

  • Supply power the board using the USB-C connection on the carrier board labeled "Power Input"
  • On the carrier board, press the red button in order to turn on power to the board. The green LED labeled "Carrier PWR On" will be lit when power is on.
  • Now that the board is powered, plug a USB micro cable into the carrier board to the USB connector labeled "SER 3 UART". Use a serial terminal program to interact as you board. With a Linux PC, we recommend using "putty" (connects to /dev/USB0), and with a Windows PC we recommend "TeraTerm" that connects to COMx. The baud rate of the Serial connection is 115200 bps.
  • Press the blue reset button, and then "u-boot" will start. Within 3 seconds, press the space bar on your keyboard in order to stop the auto-boot sequence.

6. Switch settings for the CPU SOM board.

  • The SOM board contains a eMMC Flash device and a Micro SD Card socket. On the SOM board, you can only use one or the other because they are both connected to the same peripheral channel on the RZ/G2L.
  • Set the switches on the SOM board to what you want to use.
  • Note that the SD Card slot on the Carrier board will always work because it uses a separate peripheral channel on the RZ/G2L.
  • On the SOM (CPU) board, there is a little switch (SW1) by the SD card socket.
SOM board uses SD Card socket                 SOM board uses eMMC Flash
SW1-1 = ON                                    SW1-1 = ON
SW1-2 = ON                                    SW1-2 = OFF
      +-----+                                       +-----+
      | ON  |                                       | ON  |
      | = = |                                       | =   |
      |     |                                       |   = |
      | 1 2 |                                       | 1 2 |
      +-----+                                       +-----+

7-1. Boot the Board using eMMC Flash on SOM board

  • Set switch SW1 ON,OFF
  • The boot loader (u-boot) by default will try to boot from eMMC after 3 seconds.
  • Press the blue reset button and wait.

7-2. Boot the Board using SD Card on SOM board

  • Set switch SW1 ON,ON
  • Insert the SD card into the socket on SMARC SOM CPU board (not the carrier board).
  • Press the blue reset button, and then "u-boot" will start. Within 3 seconds, press the space bar on your keyboard in order to stop the auto-boot sequence.
  • At the u-boot prompt ( => ), enter the following commands to boot the board:
=> mmc dev 0 ; fatload mmc 0:1 0x48080000 Image ; fatload mmc 0:1 0x48000000 /r9a07g044l2-smarc.dtb
=> setenv bootargs 'root=/dev/mmcblk0p2 rootwait' ; booti 0x48080000 - 0x48000000

7-3. Boot the Board using SD Card on Carrier board

  • Insert the SD card into the socket on SMARC SOM CPU board (not the carrier board).
  • Press the blue reset button, and then "u-boot" will start. Within 3 seconds, press the space bar on your keyboard in order to stop the auto-boot sequence.
  • At the u-boot prompt ( => ), enter the following commands to boot the board:
=> mmc dev 1 ; fatload mmc 1:1 0x48080000 Image ; fatload mmc 1:1 0x48000000 /r9a07g044l2-smarc.dtb
=> setenv bootargs 'root=/dev/mmcblk1p2 rootwait' ; booti 0x48080000 - 0x48000000

8. Linux Login

  • The login will be "root" (no password is needed)

Board Setup Information

board configuration.png
RZ/G2L Evaluation Board Kit Configuration
smarc module board top.png
RZ/G2L SMARC Module Board (TOP)
smarc module board bottom.png
RZ/G2L SMARC Module Board (Bottom)
smarc series carrier board.png
RZ SMARC Series Carrier Board
 
power supply.png
Power Supply
The following power supply environment is used in the evaluation of Renesas:
● USB Type-C cable CB-CD23BK (manufactured by Aukey)
● USB PD Charger Anker PowerPort III 65W Pod (manufactured by Anker)
JTAG connection ice debug.png
JTAG Cable Connection for ICE Debugging
When connecting JTAG debugger, please set the DIP SW1 settings as shown.
The JTAG connector is 10pin.
 
boot mode.png
How to set Boot Modes

Board Operation Information

power on.png
Power ON
● Connect USB-PD Power Charger to USB Type-C Connector. Then LED1(VBUS PWR On) and LED3(Module PWR On) lights up.
● Press SW9 to turn on the power. Then LED4(Carrier PWR On) lights up.
debug serial.png
Debug Serial (Console Output)
● Debug serial uses CN14. The baud rate is 115200bps.
● Since the serial-USB conversion IC is not always powered, the Windows PC will recognize it after the power switch is turned on.
● If it is not recognized by your Windows PC, please install the driver�https://www.ftdichip.com/Drivers/VCP.htm