45a4367ee543355a8f99c7a4898aca77ca2673a3
Several different firmware users have repetitive code to extract the firmware data from a FIT. Add some helper functions to reduce the amount of repetition. fit_conf_get_prop_node (eventually) calls fdt_check_node_offset_, so we can avoid an explicit if. In general, this version avoids printing on error because the callers are typically library functions, and because the FIT code generally has (debug) prints of its own. One difference in these helpers is that they use fit_image_get_data_and_size instead of fit_image_get_data, as the former handles external data correctly. Signed-off-by: Sean Anderson <sean.anderson@seco.com> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Peng Fan <peng.fan@nxp.com>
ATF and u-boot for mt798x
About bl-mt798x
Prepare
sudo apt install gcc-aarch64-linux-gnu build-essential flex bison libssl-dev device-tree-compiler
Build
Usage: SOC=[mt7981|mt7986] BOARD=<board name> MULTI_LAYOUT=[0|1] ./build.sh
eg: SOC=mt7981 BOARD=360t7 ./build.sh
eg: SOC=mt7981 BOARD=wr30u MULTI_LAYOUT=1 ./build.sh
eg: SOC=mt7981 BOARD=cmcc_rax3000m-emmc ./build.sh
eg: SOC=mt7986 BOARD=redmi_ax6000 MULTI_LAYOUT=1 ./build.sh
eg: SOC=mt7986 BOARD=jdcloud_re-cp-03 ./build.sh
xiaomi-wr30u multi-layout uboot firmware compatibility
| Firmware type | uboot (default) | uboot (immortalwrt-112m) | uboot (qwrt) |
|---|---|---|---|
| xiaomi stock mtd8/mtd9 | √ | × | × |
| immortalwrt-mt798x stock | √ | × | × |
| OpenWrt stock | √ | × | × |
| immortalwrt stock | √ | × | × |
| X-Wrt stock | √ | × | × |
| immortalwrt-mt798x 112m | × | √ | × |
| GL.iNet by 237176253 | × | √ | × |
| X-Wrt 112m nmbm | × | √ | × |
| OpenWrt 112m nmbm | × | √ | × |
| immortalwrt 112m nmbm | × | √ | × |
| X-Wrt 112m nmbm | × | √ | × |
| QWRT | × | × | √ |
| OpenWrt ubootmod | × | × | × |
| immortalwrt ubootmod | × | × | × |
| X-Wrt ubootmod | × | × | × |
redmi-ax6000 multi-layout uboot firmware compatibility
| Firmware type | uboot (default) | uboot (immortalwrt-110m) |
|---|---|---|
| xiaomi stock mtd8/mtd9 | √ | × |
| immortalwrt-mt798x stock | √ | × |
| OpenWrt stock | √ | × |
| immortalwrt stock | √ | × |
| X-Wrt stock | √ | × |
| immortalwrt-mt798x | × | √ |
| GL.iNet by 237176253 | × | √ |
| X-Wrt ubootlayout | × | √ |
| OpenWrt ubootmod | × | × |
| immortalwrt ubootmod | × | × |
| X-Wrt ubootmod | × | × |
Description
Languages
C
93.2%
Python
2.9%
Assembly
1.8%
Makefile
1.2%
Perl
0.3%
Other
0.2%
