Skip to contentSkip to conversation

board: Synology: common: Fix typo in Makefile

PATCH In review Phil Sutter 2 participants 4 messages Feb 4 – Feb 11 Library code

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 board: Synology: common: Fix typo in Makefile

Due to this, legacy.c was neither compiled nor linked into the binary and thus booting legacy DS414 firmware failed. Missing atag setup led to no console output (and probably stalled boot) after:

| Uncompressing Linux... done, booting the kernel.

Fixes 9774462e34faa ("arm: Disable ATAGs support")
---
 board/Synology/common/Makefile | 2 +-
 lib/fdtdec.c                   | 5 +++++
 2 files changed, 6 insertions(+), 1 deletion(-)
board/Synology/common/Makefile +1 -1
index f688b5490631c..87be53321ee64 100644
@@ -2,4 +2,4 @@
 #
 # Copyright (C) 2021 Phil Sutter <[email protected]>
 
-obj-$(SUPPORT_PASSING_ATAGS)	+= legacy.o
+obj-$(CONFIG_SUPPORT_PASSING_ATAGS)	+= legacy.o
lib/fdtdec.c +5 -0
index c38738b48c79f..89f4de6110bf1 100644
@@ -624,6 +624,11 @@ int fdtdec_get_chosen_node(const void *blob, const char *name)
  */
 static int fdtdec_prepare_fdt(const void *blob)
 {
+	printf("%s: blob at %p\n", __func__, blob);
+	if (blob) {
+		printf("%s: blob & 3 = %d\n", __func__, (uintptr_t)blob & 3);
+		printf("%s: fdt_check_header() returns %d\n", __func__, fdt_check_header(blob));
+	}
 	if (!blob || ((uintptr_t)blob & 3) || fdt_check_header(blob)) {
 		if (xpl_phase() <= PHASE_SPL) {
 			puts("Missing DTB\n");
Signature · 1 line
2.52.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 8 lines · Phil Sutter

Due to this, legacy.c was neither compiled nor linked into the binary and thus booting legacy DS414 firmware failed. Missing atag setup led to no console output (and probably stalled boot) after:

| Uncompressing Linux... done, booting the kernel.

Fixes 9774462e34faa ("arm: Disable ATAGs support")

Whoops! Thanks.

Signature · 1 line
Tom
#2 lore raw
In reply to Phil Sutter
Quoted 11 lines · Phil Sutter

Due to this, legacy.c was neither compiled nor linked into the binary and thus booting legacy DS414 firmware failed. Missing atag setup led to no console output (and probably stalled boot) after:

| Uncompressing Linux... done, booting the kernel.

Fixes 9774462e34faa ("arm: Disable ATAGs support")
---
 board/Synology/common/Makefile | 2 +-
 lib/fdtdec.c                   | 5 +++++

OK, whoops. The lib/fdtec.c change was just a debug thing to drop. However, the Makefile portion leads to failure to build on ds109 and ds116.

Signature · 1 line
Tom
#3 lore raw
Quoted 14 lines · Tom Rini
Quoted 11 lines · Phil Sutter

Due to this, legacy.c was neither compiled nor linked into the binary and thus booting legacy DS414 firmware failed. Missing atag setup led to no console output (and probably stalled boot) after:

| Uncompressing Linux... done, booting the kernel.

Fixes 9774462e34faa ("arm: Disable ATAGs support")
---
 board/Synology/common/Makefile | 2 +-
 lib/fdtdec.c                   | 5 +++++
Quoted 3 lines

OK, whoops. The lib/fdtec.c change was just a debug thing to drop. However, the Makefile portion leads to failure to build on ds109 and ds116.

Oh crap, yes. The ftdec.c change was not supposed to end up in this patch, sorry!

Let me check what's going on when building for the other devices, will ideally submit a v2 this evening.

Thanks, Phil