[PATCH] fdt: Add -q option to fdt addr for distro_bootcmd

Tom Rini trini at konsulko.com
Sat Apr 23 14:08:46 CEST 2022


On Thu, Mar 31, 2022 at 11:53:22AM +0100, Peter Hoyes wrote:

> From: Peter Hoyes <Peter.Hoyes at arm.com>
> 
> distro_bootcmd uses this construct a few times to test $fdt_addr_r,
> and fall back on $fdtcontroladdr if not set/invalid:
> 
>     if fdt addr ${fdt_addr_r}; then
>         ...
>     else
>         ...
>     fi
> 
> If the `fdt addr` test fails, it prints the following  message on the
> console, suggesting there is an error when there is not:
> 
>     libfdt fdt_check_header(): FDT_ERR_BADMAGIC
> 
> To remove this potentially confusing error message, this patch adds -q
> as a 'quiet' option for fdt addr, and uses this flag in
> config_distro_bootcmd.h
> 
> Signed-off-by: Peter Hoyes <Peter.Hoyes at arm.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20220423/525f6164/attachment.sig>


More information about the U-Boot mailing list