RZ-G/RZ-G2L Flash Programming: Difference between revisions

From Renesas.info
mNo edit summary
Line 25: Line 25:


=== Linux script ===
=== Linux script ===
TBD
A Linux bash script is available [https://github.com/seebe/rzg_stuff/tree/master/boards/rzg2l_smarc here]. Please refer to the README for help on the usage.


=== Windows TeraTerm macro ===
=== Windows TeraTerm macro ===
TBD
Usually dealing with this type of devices a Linux host PC is normally available. However sometimes it might be convenient to have a quick way to program the bootloaders using Windows.


== Use JTAG ==
== Use JTAG ==
TBD
TBD

Revision as of 14:20, 4 August 2021

RZ/G2L cannot boot from USB, so at the end-of-line there are two/three real viable options:

  1. Boot from SCIF
  2. Use JTAG
  3. It is worth to mention that, in general, if a QSPI FLASH is present on the custom board, it can also be bought preprogrammed

In any of the cases above the goal is to have U-Boot up and running, then there are plenty of options to program the rootfs: ethernet, USB as host, USB with Mass Storage gadget, fastboot or even boot the linux kernel + initramfs.

With option 1, you can download the flash writer and program the bootloaders, Arm Trusted Firmware (ATF) and U-Boot, into QSPI / eMMC boot partition, then reset and run U-Boot.

With option 2, you can download ATF and U-Boot via JTAG and then run the boot loaders without having to initially program them. Once U-Boot runs, you can program both bootloaders and rootfs.

With option 3, QSPI has already bootloaders pre-programmed, so U-Boot is already available.

All the options above may not require any human intervention and can be to a certain extent automatized.

Boot from SCIF

The main tool that can assist in performing external non-volatile memory (QSPI and eMMC) is Flash Writer. Depending on the host PC used, you can either use a script (link to be added) or a TeraTerm macro. In both cases what you would need are two files:

  • bl2_bp-smarc-rzg2l.bin
  • fip-smarc-rzg2l.bin

These are either the output of Yocto or generated by combining ATF and U-Boot binaries. Actually the first one is generated by ATF directly whereas the second is the generated by the Firmware Image Package (FIP) utility by combining BL3x binaries.

Linux script

A Linux bash script is available here. Please refer to the README for help on the usage.

Windows TeraTerm macro

Usually dealing with this type of devices a Linux host PC is normally available. However sometimes it might be convenient to have a quick way to program the bootloaders using Windows.

Use JTAG

TBD