* [PATCH] ARM: boards: protonic-imx6: Re-introduce generic boot target board string
@ 2025-03-27 10:01 Robin van der Gracht
2025-03-31 7:44 ` Sascha Hauer
0 siblings, 1 reply; 3+ messages in thread
From: Robin van der Gracht @ 2025-03-27 10:01 UTC (permalink / raw)
To: Sascha Hauer; +Cc: barebox, Robin van der Gracht
This allows using a single bootable usb drive for multiple boards.
Signed-off-by: Robin van der Gracht <robin@protonic.nl>
---
arch/arm/boards/protonic-imx6/board.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/boards/protonic-imx6/board.c b/arch/arm/boards/protonic-imx6/board.c
index 19e58627c6..e4debb1c66 100644
--- a/arch/arm/boards/protonic-imx6/board.c
+++ b/arch/arm/boards/protonic-imx6/board.c
@@ -374,7 +374,7 @@ static int prt_imx6_usb_boot(struct bootentry *entry, int verbose, int dryrun)
*second_word = 0;
- if (strcmp(buf, priv->name)) {
+ if (strcmp(buf, priv->name) && strcmp(buf, "prti6qp")) {
dev_err(dev, "Boot target for a different board! (got: %s expected: %s)\n",
buf, priv->name);
ret = -EINVAL;
--
2.43.0
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] ARM: boards: protonic-imx6: Re-introduce generic boot target board string
2025-03-27 10:01 [PATCH] ARM: boards: protonic-imx6: Re-introduce generic boot target board string Robin van der Gracht
@ 2025-03-31 7:44 ` Sascha Hauer
2025-03-31 8:01 ` Robin van der Gracht
0 siblings, 1 reply; 3+ messages in thread
From: Sascha Hauer @ 2025-03-31 7:44 UTC (permalink / raw)
To: Robin van der Gracht; +Cc: barebox
Hi Robin,
On Thu, Mar 27, 2025 at 11:01:22AM +0100, Robin van der Gracht wrote:
> This allows using a single bootable usb drive for multiple boards.
>
> Signed-off-by: Robin van der Gracht <robin@protonic.nl>
> ---
> arch/arm/boards/protonic-imx6/board.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/arm/boards/protonic-imx6/board.c b/arch/arm/boards/protonic-imx6/board.c
> index 19e58627c6..e4debb1c66 100644
> --- a/arch/arm/boards/protonic-imx6/board.c
> +++ b/arch/arm/boards/protonic-imx6/board.c
> @@ -374,7 +374,7 @@ static int prt_imx6_usb_boot(struct bootentry *entry, int verbose, int dryrun)
>
> *second_word = 0;
>
> - if (strcmp(buf, priv->name)) {
> + if (strcmp(buf, priv->name) && strcmp(buf, "prti6qp")) {
Where does this "prti6qp" string come from? It sounds like a very
specific machine, but is used as a generic value to short circuit the
compatible check.
Shouldn't it be something like "prt,generic-imx6" or whatever else this
image is supposed to work on?
Sascha
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] ARM: boards: protonic-imx6: Re-introduce generic boot target board string
2025-03-31 7:44 ` Sascha Hauer
@ 2025-03-31 8:01 ` Robin van der Gracht
0 siblings, 0 replies; 3+ messages in thread
From: Robin van der Gracht @ 2025-03-31 8:01 UTC (permalink / raw)
To: Sascha Hauer; +Cc: barebox
Hi Sascha,
On 31-03-2025 09:44, Sascha Hauer wrote:
> Hi Robin,
>
> On Thu, Mar 27, 2025 at 11:01:22AM +0100, Robin van der Gracht wrote:
>> This allows using a single bootable usb drive for multiple boards.
>>
>> Signed-off-by: Robin van der Gracht <robin@protonic.nl>
>> ---
>> arch/arm/boards/protonic-imx6/board.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/arch/arm/boards/protonic-imx6/board.c b/arch/arm/boards/protonic-imx6/board.c
>> index 19e58627c6..e4debb1c66 100644
>> --- a/arch/arm/boards/protonic-imx6/board.c
>> +++ b/arch/arm/boards/protonic-imx6/board.c
>> @@ -374,7 +374,7 @@ static int prt_imx6_usb_boot(struct bootentry *entry, int verbose, int dryrun)
>>
>> *second_word = 0;
>>
>> - if (strcmp(buf, priv->name)) {
>> + if (strcmp(buf, priv->name) && strcmp(buf, "prti6qp")) {
> Where does this "prti6qp" string come from? It sounds like a very
> specific machine, but is used as a generic value to short circuit the
> compatible check.
>
> Shouldn't it be something like "prt,generic-imx6" or whatever else this
> image is supposed to work on?
Ack. This is something that grew like this historically. But we can
still change
that to something more sensible. I like your suggestion and will create
a new patch.
Thank you.
Regards,
Robin
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-03-31 8:04 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-03-27 10:01 [PATCH] ARM: boards: protonic-imx6: Re-introduce generic boot target board string Robin van der Gracht
2025-03-31 7:44 ` Sascha Hauer
2025-03-31 8:01 ` Robin van der Gracht
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox