From: Devarsh Thakkar <devarsht@ti.com>
To: Martin Stolpe <martinstolpe@gmail.com>
Cc: "Ivan T. Ivanov" <iivanov@suse.de>, <u-boot@lists.denx.de>,
Francois Berder <fberder@outlook.fr>,
Matthias Brugger <mbrugger@suse.com>,
Nikhil M Jain <n-jain1@ti.com>,
Peter Robinson <pbrobinson@gmail.com>,
Rasmus Villemoes <rasmus.villemoes@prevas.dk>,
Tom Rini <trini@konsulko.com>
Subject: Re: [PATCH 1/1] rpi: Fix build error when CONFIG_VIDEO is disabled for Raspberry Pi
Date: Mon, 7 Oct 2024 18:32:59 +0530 [thread overview]
Message-ID: <dadefe22-2662-ddd1-cace-15d70f632232@ti.com> (raw)
In-Reply-To: <CAPHZmLaVVSckGeqU09WMy0s4rGA-w6pQ9ObPuh3SBf8uTBaD9Q@mail.gmail.com>
Hi Martin,
On 07/10/24 18:24, Martin Stolpe wrote:
> Hi Devarsh,
>
> Am Do., 26. Sept. 2024 um 18:45 Uhr schrieb Devarsh Thakkar <devarsht@ti.com
>> :
>
>>
>> Thanks for taking a look, I have posted them to the list [1], it would
>> be great if you could provide a Reviewed-by or Tested-by too.
>>
>
> I've tried to compile the project for am64x_evm_a53 with the patches
> applied and I've added the following line to
> am64x_evm_a53_defconfig: CONFIG_OF_BOARD_SETUP=y
> When I then try to compile U-Boot using the following command:
> make am64x_evm_a53_defconfig; make
>
> I get the following error message:
> aarch64-linux-gnu-ld.bfd: boot/image-fdt.o: in function
> `image_setup_libfdt':
> /home/mstolpe/repositories/build_base_station/build/workspace/sources/u-boot-copy/boot/image-fdt.c:633:(.text.image_setup_libfdt+0x150):
> undefined reference to `ft_board_setup'
> aarch64-linux-gnu-ld.bfd: cmd/fdt.o: in function `do_fdt':
> /home/mstolpe/repositories/build_base_station/build/workspace/sources/u-boot-copy/cmd/fdt.c:687:(.text.do_fdt+0xf98):
> undefined reference to `ft_board_setup'
> Segmentation fault (core dumped)
> make: *** [Makefile:1801: u-boot] Error 139
> make: *** Deleting file 'u-boot'
>
> I guess this shouldn't happen?
I think this is expected as you are trying to enable CONFIG_OF_BOARD_SETUP but
AM64 platform does not implement ft_board_setup.
Platforms need to implement ft_board_setup for platform specific knobs (for
e.g. simplefb for splash etc) if using CONFIG_OF_BOARD_SETUP as per below
snippet in boot/image-fdt.c :
if (IS_ENABLED(CONFIG_OF_BOARD_SETUP)) {
const char *skip_board_fixup;
skip_board_fixup = env_get("skip_board_fixup");
if (skip_board_fixup && ((int)simple_strtol(skip_board_fixup,
NULL, 10) == 1)) {
printf("skip board fdt fixup\n");
} else {
fdt_ret = ft_board_setup(blob, gd->bd);
if (fdt_ret) {
printf("ERROR: board-specific fdt fixup
failed: %s\n",
fdt_strerror(fdt_ret));
goto err;
}
}
}
Regards
Devarsh
>
> BR
> Martin
>
next prev parent reply other threads:[~2024-10-07 13:03 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-20 6:32 [PATCH 0/1] rpi: Fix compilation when CONFIG_VIDEO is disabled Martin Stolpe
2024-09-20 6:32 ` [PATCH 1/1] rpi: Fix build error when CONFIG_VIDEO is disabled for Raspberry Pi Martin Stolpe
2024-09-20 8:16 ` Ivan T. Ivanov
2024-09-24 6:26 ` Martin Stolpe
2024-09-24 6:38 ` Devarsh Thakkar
2024-09-26 12:26 ` Martin Stolpe
2024-09-26 16:45 ` Devarsh Thakkar
2024-10-07 12:54 ` Martin Stolpe
2024-10-07 13:02 ` Devarsh Thakkar [this message]
2024-10-11 12:22 ` Martin Stolpe
2024-10-11 12:33 ` Peter Robinson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=dadefe22-2662-ddd1-cace-15d70f632232@ti.com \
--to=devarsht@ti.com \
--cc=fberder@outlook.fr \
--cc=iivanov@suse.de \
--cc=martinstolpe@gmail.com \
--cc=mbrugger@suse.com \
--cc=n-jain1@ti.com \
--cc=pbrobinson@gmail.com \
--cc=rasmus.villemoes@prevas.dk \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.