Skip to content

Commit 3bbdf5a

Browse files
nathanchanceSasha Levin
authored andcommitted
MIPS: generic: Update node names to avoid unit addresses
commit e607ff6 upstream. With the latest mkimage from U-Boot 2021.04, the generic defconfigs no longer build, failing with: /usr/bin/mkimage: verify_header failed for FIT Image support with exit code 1 This is expected after the linked U-Boot commits because '@' is forbidden in the node names due to the way that libfdt treats nodes with the same prefix but different unit addresses. Switch the '@' in the node name to '-'. Drop the unit addresses from the hash and kernel child nodes because there is only one node so they do not need to have a number to differentiate them. Cc: stable@vger.kernel.org Link: https://source.denx.de/u-boot/u-boot/-/commit/79af75f7776fc20b0d7eb6afe1e27c00fdb4b9b4 Link: https://source.denx.de/u-boot/u-boot/-/commit/3f04db891a353f4b127ed57279279f851c6b4917 Suggested-by: Simon Glass <sjg@chromium.org> Signed-off-by: Nathan Chancellor <nathan@kernel.org> Reviewed-by: Tom Rini <trini@konsulko.com> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de> [nathan: Backport to 5.10, only apply to .its.S files that exist] Signed-off-by: Nathan Chancellor <nathan@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 03096a4 commit 3bbdf5a

5 files changed

Lines changed: 30 additions & 30 deletions

File tree

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
/ {
22
images {
3-
fdt@boston {
3+
fdt-boston {
44
description = "img,boston Device Tree";
55
data = /incbin/("boot/dts/img/boston.dtb");
66
type = "flat_dt";
77
arch = "mips";
88
compression = "none";
9-
hash@0 {
9+
hash {
1010
algo = "sha1";
1111
};
1212
};
1313
};
1414

1515
configurations {
16-
conf@boston {
16+
conf-boston {
1717
description = "Boston Linux kernel";
18-
kernel = "kernel@0";
19-
fdt = "fdt@boston";
18+
kernel = "kernel";
19+
fdt = "fdt-boston";
2020
};
2121
};
2222
};
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
/ {
22
images {
3-
fdt@ni169445 {
3+
fdt-ni169445 {
44
description = "NI 169445 device tree";
55
data = /incbin/("boot/dts/ni/169445.dtb");
66
type = "flat_dt";
77
arch = "mips";
88
compression = "none";
9-
hash@0 {
9+
hash {
1010
algo = "sha1";
1111
};
1212
};
1313
};
1414

1515
configurations {
16-
conf@ni169445 {
16+
conf-ni169445 {
1717
description = "NI 169445 Linux Kernel";
18-
kernel = "kernel@0";
19-
fdt = "fdt@ni169445";
18+
kernel = "kernel";
19+
fdt = "fdt-ni169445";
2020
};
2121
};
2222
};
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,40 @@
11
/* SPDX-License-Identifier: (GPL-2.0 OR MIT) */
22
/ {
33
images {
4-
fdt@ocelot_pcb123 {
4+
fdt-ocelot_pcb123 {
55
description = "MSCC Ocelot PCB123 Device Tree";
66
data = /incbin/("boot/dts/mscc/ocelot_pcb123.dtb");
77
type = "flat_dt";
88
arch = "mips";
99
compression = "none";
10-
hash@0 {
10+
hash {
1111
algo = "sha1";
1212
};
1313
};
1414

15-
fdt@ocelot_pcb120 {
15+
fdt-ocelot_pcb120 {
1616
description = "MSCC Ocelot PCB120 Device Tree";
1717
data = /incbin/("boot/dts/mscc/ocelot_pcb120.dtb");
1818
type = "flat_dt";
1919
arch = "mips";
2020
compression = "none";
21-
hash@0 {
21+
hash {
2222
algo = "sha1";
2323
};
2424
};
2525
};
2626

2727
configurations {
28-
conf@ocelot_pcb123 {
28+
conf-ocelot_pcb123 {
2929
description = "Ocelot Linux kernel";
30-
kernel = "kernel@0";
31-
fdt = "fdt@ocelot_pcb123";
30+
kernel = "kernel";
31+
fdt = "fdt-ocelot_pcb123";
3232
};
3333

34-
conf@ocelot_pcb120 {
34+
conf-ocelot_pcb120 {
3535
description = "Ocelot Linux kernel";
36-
kernel = "kernel@0";
37-
fdt = "fdt@ocelot_pcb120";
36+
kernel = "kernel";
37+
fdt = "fdt-ocelot_pcb120";
3838
};
3939
};
4040
};
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
/ {
22
images {
3-
fdt@xilfpga {
3+
fdt-xilfpga {
44
description = "MIPSfpga (xilfpga) Device Tree";
55
data = /incbin/("boot/dts/xilfpga/nexys4ddr.dtb");
66
type = "flat_dt";
77
arch = "mips";
88
compression = "none";
9-
hash@0 {
9+
hash {
1010
algo = "sha1";
1111
};
1212
};
1313
};
1414

1515
configurations {
16-
conf@xilfpga {
16+
conf-xilfpga {
1717
description = "MIPSfpga Linux kernel";
18-
kernel = "kernel@0";
19-
fdt = "fdt@xilfpga";
18+
kernel = "kernel";
19+
fdt = "fdt-xilfpga";
2020
};
2121
};
2222
};

‎arch/mips/generic/vmlinux.its.S‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#address-cells = <ADDR_CELLS>;
77

88
images {
9-
kernel@0 {
9+
kernel {
1010
description = KERNEL_NAME;
1111
data = /incbin/(VMLINUX_BINARY);
1212
type = "kernel";
@@ -15,18 +15,18 @@
1515
compression = VMLINUX_COMPRESSION;
1616
load = /bits/ ADDR_BITS <VMLINUX_LOAD_ADDRESS>;
1717
entry = /bits/ ADDR_BITS <VMLINUX_ENTRY_ADDRESS>;
18-
hash@0 {
18+
hash {
1919
algo = "sha1";
2020
};
2121
};
2222
};
2323

2424
configurations {
25-
default = "conf@default";
25+
default = "conf-default";
2626

27-
conf@default {
27+
conf-default {
2828
description = "Generic Linux kernel";
29-
kernel = "kernel@0";
29+
kernel = "kernel";
3030
};
3131
};
3232
};

0 commit comments

Comments
 (0)