RZ-G/RZG arm trusted firmware: Difference between revisions

From Renesas.info
(Added Updating TF-A on Your Board)
Β 
(One intermediate revision by the same user not shown)
Line 2: Line 2:
{{DISPLAYTITLE:RZ/G2 ARM Trusted Firmware}}
{{DISPLAYTITLE:RZ/G2 ARM Trusted Firmware}}
← [[RZ-G]]
← [[RZ-G]]
= Locations for each code section =
'''File containing #defines'''
If you look in file sa6.c, you will find the #defines for all the flash locations for both SPI boot and eMMC boot.
* arm-trusted-firmware/tools/dummy_create/sa6.c
'''eMMC partitions'''
All eMMC devices contain 3 separate Flash sections: 2 boot partitions and 1 main flash area.Β 
The partitions are selected as part of the eMMC command protocols.
The boot partitions are usually about 4MB each.
By default, the RZ/G2 BSP places the IPL (arm-trusted-firmware) in eMMC boot partition 1 and u-boot in eMMC boot partition 2. However, you can place both the IPL and u-boot in the same partition if you really wanted to (boot partition 1) and leave boot partition 2 blank (or do something else with it).
However it should be noted that the u-boot for the HiHope board is set up to use boot partition 2 for its environment variable area.
= Hardware setup code =
Since arm-trusted-firmware is the first software to run after RESET, a minimal set of peripherals need to be configured and used.
Some required configurations are as follows:
* PFC: For pin control setting to change from default GPIO pins to peripheral pins
* DBSC4, AXI: For memory DDR setting, and QoS setting
* GPIO, I2C: For controlling PMIC
* SCIF: For output message to debug serial
* WDT: If timeout detection is being used
* CPG: For enabling above modules
* SPI: If the bootloader images are stored in SPI flash
* SDHI, MMC: If the bootloader images are stored in SD card or eMMC.


= Updating TF-A on Your Board =
= Updating TF-A on Your Board =
* [[RZ-G/RZ-G2_Update_Trusted-firmware_and_U-boot_Under_Linux|Update Trusted Firmware under Linux]]
* [[RZ-G/RZ-G2_Update_Trusted-firmware_and_U-boot_Under_Linux|Update Trusted Firmware under Linux]]

Latest revision as of 21:23, 1 August 2022


← RZ-G

Updating TF-A on Your Board