mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: "Uwe Kleine-König" <uwe@kleine-koenig.org>
To: Ahmad Fatoum <a.fatoum@pengutronix.de>
Cc: barebox@lists.infradead.org, Andrei Lalaev <andrey.lalaev@gmail.com>
Subject: Re: [PATCH master] fastboot: populate is-logical:$partition variable
Date: Tue, 22 Jul 2025 16:55:48 +0200	[thread overview]
Message-ID: <hsyr5332sek4aznlf4f6j47epjt7bixdffmsczx3hwumq7ujoo@aek4que2ydc6> (raw)
In-Reply-To: <20250722140534.3349443-1-a.fatoum@pengutronix.de>

[-- Attachment #1: Type: text/plain, Size: 1372 bytes --]

Hello Ahmad,

On Tue, Jul 22, 2025 at 04:05:34PM +0200, Ahmad Fatoum wrote:
> Uwe reports on IRC that fastboot tries to read some default variables
> that barebox doesn't define, which triggers host-side error output:
> 
>   ERROR: fastboot: no such variable: is-logical:kernel
> 
> Flashing didn't seem impacted though.
> 
> Referring to the documentation[1], is-logical is related to a number of
> commands that create/delete/resize logical partitions.
> 
> We have support for modifying partition tables in barebox, but we don't expose
> it over Fastboot. Until we do, let's report all partitions as physical
> partitions, which is the default value.
> 
> This issue has always existed, but only became apparent once we started
> returning an error for non-existent variables.
> 
> [1]: https://android.googlesource.com/platform/system/core/+show/refs/heads/main/fastboot/README.md#237
> 
> Fixes: dd377c937f8b ("common: fastboot: send FAIL if variable does not exist")
> Fixes: 3d5080aae90d ("USB: gadget: Add Android fastboot support")
> Reported-by: Uwe Kleine-König <uwe@kleine-koenig.org>
> Cc: Andrei Lalaev <andrey.lalaev@gmail.com>
> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
> ---
> @Uwe, can you give this a test?

I did, and with it the error messages I wailed about are gone.

Thanks, 🌟🌟🌟🌟🌟
Uwe

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

      reply	other threads:[~2025-07-22 15:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-22 14:05 Ahmad Fatoum
2025-07-22 14:55 ` Uwe Kleine-König [this message]

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=hsyr5332sek4aznlf4f6j47epjt7bixdffmsczx3hwumq7ujoo@aek4que2ydc6 \
    --to=uwe@kleine-koenig.org \
    --cc=a.fatoum@pengutronix.de \
    --cc=andrey.lalaev@gmail.com \
    --cc=barebox@lists.infradead.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox