Difference between revisions of "ATF"
From Rockchip open source Document
(Created page with "<pre>git clone https://github.com/ARM-software/arm-trusted-firmware.git</pre> <pre>sudo apt-get install gcc-arm-none-eabi</pre> <pre>$ cat mk-atf.sh #!/bin/b...") |
|||
Line 1: | Line 1: | ||
+ | |||
+ | = Download ARM Trusted Firmware = | ||
+ | |||
+ | Get the source code from github: | ||
<pre>git clone https://github.com/ARM-software/arm-trusted-firmware.git</pre> | <pre>git clone https://github.com/ARM-software/arm-trusted-firmware.git</pre> | ||
− | & | + | = Supported Devices[[http://10.10.10.12:8444/index.php?title=U-Boot&action=edit§ion=4 edit]] = |
− | + | ||
+ | Upstream ARM Trusted Firmware support Rockchip SoCs: | ||
+ | |||
+ | [http://10.10.10.12:8444/index.php?title=RK3399 RK3399] | ||
+ | |||
+ | = Build ATF = | ||
− | + | Here is a ''mk-atf.sh'' script to build ATF. | |
<pre>$ cat mk-atf.sh | <pre>$ cat mk-atf.sh | ||
Line 14: | Line 23: | ||
CROSS_COMPILE=aarch64-linux-gnu- \ | CROSS_COMPILE=aarch64-linux-gnu- \ | ||
make PLAT=rk3399 DEBUG=1 ERROR_DEPRECATED=1 bl31</pre> | make PLAT=rk3399 DEBUG=1 ERROR_DEPRECATED=1 bl31</pre> | ||
+ | |||
+ | 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> |
Revision as of 09:45, 16 March 2017
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