forked from openwrt/openwrt
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
Rafał Miłecki
committed
Jul 25, 2022
1 parent
8a77adb
commit 6ae2f7f
Showing
4 changed files
with
92 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT | ||
|
||
/include/ "bootfs.itsi" | ||
|
||
/ { | ||
images { | ||
uboot { | ||
data = /incbin/("${images_dir}/u-boot/u-boot-nodtb.bin"); | ||
}; | ||
|
||
fdt_uboot { | ||
data = /incbin/("${images_dir}/u-boot/u-boot.dtb"); | ||
}; | ||
|
||
fdt_uboot_RAX220 { | ||
description = "dtb"; | ||
data = /incbin/("${images_dir}/u-boot/RAX220.dtb"); | ||
type = "flat_dt"; | ||
compression = "none"; | ||
|
||
hash-1 { | ||
algo = "sha256"; | ||
}; | ||
}; | ||
|
||
fdt_linux_RAX220 { | ||
description = "dtb"; | ||
data = /incbin/("${dts_dir}/broadcom/bcm4908/bcm4908-netgear-raxe500.dtb"); | ||
arch = "arm64"; | ||
type = "flat_dt"; | ||
compression = "none"; | ||
}; | ||
}; | ||
|
||
configurations { | ||
conf_ub_RAX220 { | ||
description = "RAX220"; | ||
fdt = "fdt_uboot_RAX220"; | ||
loadables = "atf", "uboot"; | ||
}; | ||
|
||
conf_lx_RAX220 { | ||
description = "BRCM 63xxx linux"; | ||
kernel = "kernel"; | ||
fdt = "fdt_linux_RAX220"; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT | ||
|
||
/include/ "bootfs.itsi" | ||
|
||
/ { | ||
images { | ||
uboot { | ||
data = /incbin/("${images_dir}/u-boot/u-boot-nodtb.bin"); | ||
}; | ||
|
||
fdt_uboot { | ||
data = /incbin/("${images_dir}/u-boot/u-boot.dtb"); | ||
}; | ||
|
||
fdt_GTAX6000 { | ||
description = "dtb"; | ||
data = /incbin/("${images_dir}/u-boot/GTAX6000.dtb"); | ||
type = "flat_dt"; | ||
compression = "none"; | ||
|
||
hash-1 { | ||
algo = "sha256"; | ||
}; | ||
}; | ||
}; | ||
|
||
configurations { | ||
conf_ub_GTAX6000 { | ||
description = "GTAX6000"; | ||
fdt = "fdt_GTAX6000"; | ||
loadables = "atf", "uboot"; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters