board: Synology: common: Fix typo in Makefile
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.
--- board/Synology/common/Makefile | 2 +- lib/fdtdec.c | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-)
board/Synology/common/Makefile +1 -1
@@ -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
@@ -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
Quoted 8 lines · Phil Sutter
Due to this,
legacy.cwas 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")Signed-off-by Phil Sutter <[email protected]>
Whoops! Thanks.
Signature · 1 line
Tom
Quoted 11 lines · Phil Sutter
Due to this,
legacy.cwas 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")Signed-off-by Phil Sutter <[email protected]>--- 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
Quoted 14 lines · Tom Rini
Quoted 11 lines · Phil Sutter
Due to this,
legacy.cwas 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")Signed-off-by Phil Sutter <[email protected]>--- board/Synology/common/Makefile | 2 +- lib/fdtdec.c | 5 +++++
Quoted 3 lines
OK, whoops. The
lib/fdtec.cchange was just a debug thing to drop. However, theMakefileportion 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