]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-firmware/system-firmware-image-gen.git/blob - README.md
linux-firmware: Update am65x sysfw to v2019.02
[processor-firmware/system-firmware-image-gen.git] / README.md
1 System Firmware (SYSFW) and Configuration Image Generator for AM65x
2 ===================================================================
4 Overview
5 --------
6 This tool is intended to be a simple solution to allow users to create an image
7 tree blob (a.k.a. FIT image) comprising a signed System Firmware image as well
8 as the binary configuration artifacts needed to bring up SYSFW as part of the
9 U-Boot SPL startup. Note that the final SYSFW configuration itself is expected
10 to be performed by the end user by directly modifying different C source files
11 included into this project as needed for an application and board-specific use
12 case. The domain-specific configuration artifacts to be tailored are:
14 * *board-cfg.c* contains the general board configuration
15 * *pm-cfg.c* contains the power management / clock related configuration
16 * *rm-cfg.c* contains the resource management / allocation related configuration
17 * *sec-cfg.c* contains the security configuration
19 The build process consumes a raw (unsigned) SYSFW binary image as released by
20 the SYSFW development team and signs it by adding an X.509 certificate using a
21 random key.
23 The signed SYSFW image as well as the configuration artifacts will then all get
24 build into an ITB blob (FIT image) named **sysfw.itb** ready for consumption by
25 U-Boot SPL.
28 Building SYSFW Image and Configuration Data
29 -------------------------------------------
30 First, ensure you have a current mkimage tool and ARMv7 cross toolchain
31 installed. The SYSFW configuration generator was developed and tested using...
33     $ mkimage -V
34     mkimage version 2013.10
36     $ arm-linux-gnueabihf-gcc --version
37     arm-linux-gnueabihf-gcc (Linaro GCC 7.2-2017.11) 7.2.1 20171011
38     Copyright (C) 2017 Free Software Foundation, Inc.
39     This is free software; see the source for copying conditions.  There is NO
40     warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
42 Also make sure to have a proper unsigned SYSFW image populated at the root of
43 this project, otherwise a version specified in the Makefile via Git commit hash
44 will be downloaded from the TI SYSFW release URL (see download location below).
46 The default SYSFW image consumed by the build process is called
47 **ti-sci-firmware-am65x-gp.bin** however this may be overwritten and customized
48 using the **SYSFW_PATH** make variable. The build process will fail if the
49 image can't be downloaded or no such file is provided.
51 In order to download the SYSFW release image (if needed) and build the final
52 **sysfw.itb** for consumption by U-Boot simply perform a make...
54     $ make
56 To extract and show the release version of the SYSFW image being used...
58     $ make sysfw_version
59     SYSFW Version: v2018.08a (Curious Crow)
61 The workspace can be cleaned up by doing...
63     $ make clean
65 To also remove the SYSFW image do this...
67     $ make mrproper
70 Important Notes
71 ---------------
72 There is a strong dependency of the used System Firmware release version and
73 how the board configuration data needs to be structured and/or filled in. Using
74 config data that is not compatible with a given SYSFW release may lead to
75 failures during loading of the data by U-Boot SPL, or failures later downstream
76 in U-Boot or during Linux boot.
78 It is strongly recommended to review System Firmware release documentation in
79 great detail(!) to make sure suitable board configuration is provided. Common
80 pitfalls preventing proper system operation include but are not limited to using
81 an unsuitable or invalid resource management configuration.
84 References
85 ----------
86 * [Latest SYSFW Release Documentation](http://software-dl.ti.com/tisci/esd/latest/)
87 * [Official SYSFW Release Download Location](https://git.ti.com/processor-firmware/ti-linux-firmware/trees/ti-linux-firmware-4.1.y/ti-sysfw)