aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/bcm4908/image/bootfs.itsi
diff options
context:
space:
mode:
authorRafał Miłecki <rafal@milecki.pl>2022-07-20 13:47:05 +0200
committerRafał Miłecki <rafal@milecki.pl>2022-07-28 00:50:13 +0200
commit066547b9742bb301981ec8941950399d3c7d8a6b (patch)
treea605238202f22130f441fc58aee46521b42f76c8 /target/linux/bcm4908/image/bootfs.itsi
parent506432a7839504b71b3efee92f9299386c707a99 (diff)
downloadupstream-066547b9742bb301981ec8941950399d3c7d8a6b.tar.gz
upstream-066547b9742bb301981ec8941950399d3c7d8a6b.tar.bz2
upstream-066547b9742bb301981ec8941950399d3c7d8a6b.zip
bcm4908: build bootfs image per-SoC
In theory we could have just 1 bootfs image for all devices as each device has its own entry in the "configurations" node. It doesn't work well with default configuration though. If something goes wrong U-Boot SPL can be interrupted (by pressing A) to enter its minimalistic menu. It allows ignoring boardid. In such case bootfs default configuration is used. For above reason each SoC family (BCM4908, BCM4912) should have its own bootfs built. It allows each of them to have working default configuration. Signed-off-by: Rafał Miłecki <rafal@milecki.pl> (cherry picked from commit 6ae2f7ff4737ec8dbec026fc6c02f7d1850b521c)
Diffstat (limited to 'target/linux/bcm4908/image/bootfs.itsi')
-rw-r--r--target/linux/bcm4908/image/bootfs.itsi73
1 files changed, 73 insertions, 0 deletions
diff --git a/target/linux/bcm4908/image/bootfs.itsi b/target/linux/bcm4908/image/bootfs.itsi
new file mode 100644
index 0000000000..ceaaf10b2b
--- /dev/null
+++ b/target/linux/bcm4908/image/bootfs.itsi
@@ -0,0 +1,73 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+
+/dts-v1/;
+
+/ {
+ description = "OpenWrt bootfs image";
+ #address-cells = <1>;
+
+ images {
+ atf {
+ description = "ATF";
+ data = /incbin/("${images_dir}/bl31.bin");
+ type = "firmware";
+ arch = "arm64";
+ os = "arm-trusted-firmware";
+ compression = "none";
+ load = <0x4000>;
+ entry = <0x4000>;
+
+ hash-1 {
+ algo = "sha256";
+ };
+ };
+
+ uboot {
+ description = "U-Boot";
+ os = "U-Boot";
+ arch = "arm64";
+ compression = "none";
+ load = <0x1000000>;
+ entry = <0x1000000>;
+
+ hash-1 {
+ algo = "sha256";
+ };
+ };
+
+ kernel {
+ description = "Linux kernel";
+ data = /incbin/("${kernel}");
+ type = "kernel";
+ os = "linux";
+ arch = "arm64";
+ compression = "lzma";
+ load = <0x80000>;
+ entry = <0x80000>;
+
+ hash-1 {
+ algo = "sha256";
+ };
+ };
+
+ fdt_uboot {
+ description = "dtb";
+ type = "flat_dt";
+ compression = "none";
+
+ hash-1 {
+ algo = "sha256";
+ };
+ };
+ };
+
+ configurations {
+ default = "conf_uboot";
+
+ conf_uboot {
+ description = "BRCM 63xxx with uboot";
+ fdt = "fdt_uboot";
+ loadables = "atf", "uboot";
+ };
+ };
+};