Linux Interface Specification Yocto recipe Start-Up Guide
R01US0227EJ0212 Rev2.12 Page 19 of 37
Dec 31, 2020
This section explains the step by step procedure to flash the binaries into RZ/G1M/G1N SOM through JTAG
Debugger.
Note) Example for JTAG Debugger name: lauterbach, …
The prebuilt binaries are built by section 3.
Copy the JTAG debugger configuration file and the binary files uboot (uboot.bin), loader
(iw_rainbow_G21M_SPI_loader_v031.bin for RZ/G1H, iw_rainbow_g20m_SPI_loader_v020_ddr3.bin for
RZ/G1M, RZ/G1N, iw_rainbow_G22M_SPI_loader_v031.bin for RZ/G1E,
iW_RainboW_G23S_SPI_LOADER_V020_DDR3_E6300000_V100.bin for RZ/G1C) required for booting
RZ/G1M/G1N SOM into the SD card, insert this SD card into JTAG Debugger.
Open minicom for JTAG Debugger and Target board separately in host PC.
Power on the JTAG Debugger and then target board.
Once the JTAG Debugger is booted, set the following parameters in JTAG terminal to boot the target board.
To set the supervisor mode interrupts, execute the below command.
RZ/G1x > set cpsr 0x1D3
To set the stack pointer for loader, execute the below command.
RZ/G1x > set sp 0xE6303D00
To set the program counter for loader, execute the below command.
RZ/G1x > set pc 0xE6300000
To load loader binary image into memory from SD Card, execute the below command.
RZ/G1x > memory load card://loader.bin bin 0xE6300000
RZ/G1x > go
RZ/G1x > halt
To set the supervisor mode interrupts, execute the below command.
RZ/G1x > set cpsr 0x1D3
To set the stack pointer for u-boot, execute the below command.
RZ/G1x > set sp 0xE633FFFC
To set the program counter for u-boot, execute the below command.
o For RZ/G1H:
RZ/G1x > set pc 0xE8080000
o For RZ/G1M, RZ/G1N, RZ/G1E, RZ/G1C:
RZ/G1x > set pc 0xE6304000
To load loader.bin image into memory from SD Card, execute the below command.
o For RZ/G1H:
RZ/G1x > memory load card://u-boot.bin bin 0xE8080000
RZ/G1x > go
o For RZ/G1M, RZ/G1N, RZ/G1E, RZ/G1C:
RZ/G1x > memory load card://u-boot.bin bin 0xE6304000
RZ/G1x > go
Now, target board will boot and boot prints will appear in the target board console.
Stop in u-boot command prompt by pressing any key.
Once command prompt appears, execute the below command in JTAG board to halt the target board core.
RZ/G1x > halt