Difference between revisions of "ATF"
From Rockchip open source Document
Line 26: | Line 26: | ||
Because there is a blob of code for cortex-M0, so you need a compiler for it. Install it by: | Because there is a blob of code for cortex-M0, so you need a compiler for it. Install it by: | ||
<pre>sudo apt-get install gcc-arm-none-eabi</pre> | <pre>sudo apt-get install gcc-arm-none-eabi</pre> | ||
+ | |||
+ | We can get bl31.bin when build complete. | ||
+ | |||
+ | = Install ATF = | ||
+ | |||
+ | == Support ATF with SPL FIT image[[http://10.10.10.12:8444/index.php?title=U-Boot&action=edit§ion=11 edit]] == | ||
+ | |||
+ | == Using Rockchip miniloader[[http://10.10.10.12:8444/index.php?title=U-Boot&action=edit§ion=12 edit]] == | ||
+ | |||
+ | Alternatively, you can use Rockchip miniloader and U-Boot instead which do not need SPL. | ||
+ | |||
+ | The miniloader is package as IDBlock, and the u-boot.bin need to package with rockchip tool: | ||
+ | <pre>loaderimage --pack --uboot u-boot.bin rk3288_uboot.img</pre> | ||
+ | |||
+ | According to the [http://10.10.10.12:8444/index.php?title=Partitions partitions] definition, this output should write to offset 0x4000. |
Revision as of 09:48, 16 March 2017
Contents
Download ARM Trusted Firmware
Get the source code from github:
git clone https://github.com/ARM-software/arm-trusted-firmware.git
Supported Devices[edit]
Upstream ARM Trusted Firmware support Rockchip SoCs:
Build ATF
Here is a mk-atf.sh script to build ATF.
$ cat mk-atf.sh #!/bin/bash make realclean CFLAGS='-gdwarf-2' \ CROSS_COMPILE=aarch64-linux-gnu- \ make PLAT=rk3399 DEBUG=1 ERROR_DEPRECATED=1 bl31
Because there is a blob of code for cortex-M0, so you need a compiler for it. Install it by:
sudo apt-get install gcc-arm-none-eabi
We can get bl31.bin when build complete.
Install ATF
Support ATF with SPL FIT image[edit]
Using Rockchip miniloader[edit]
Alternatively, you can use Rockchip miniloader and U-Boot instead which do not need SPL.
The miniloader is package as IDBlock, and the u-boot.bin need to package with rockchip tool:
loaderimage --pack --uboot u-boot.bin rk3288_uboot.img
According to the partitions definition, this output should write to offset 0x4000.