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

From Renesas.info
(Created page with "{{DISPLAYTITLE:RZ/G2 ARM Trusted Firmware}} ← RZ-G = Locations for each code section = '''File containing #defines''' If you look in file sa6.c, you will find the #de...")
Β 
Β 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
__FORCETOC__
{{DISPLAYTITLE:RZ/G2 ARM Trusted Firmware}}
{{DISPLAYTITLE:RZ/G2 ARM Trusted Firmware}}
← [[RZ-G]]
← [[RZ-G]]


= Locations for each code section =
= Updating TF-A on Your Board =
Β 
* [[RZ-G/RZ-G2_Update_Trusted-firmware_and_U-boot_Under_Linux|Update Trusted Firmware under Linux]]
'''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.

Latest revision as of 21:23, 1 August 2022


← RZ-G

Updating TF-A on Your Board