[BUG] [PATCH v2 1/3] cmd: fs: Use part_get_info_by_dev_and_name_or_num to parse partitions

Heinrich Schuchardt xypron.glpk at gmx.de
Sat May 15 14:36:31 CEST 2021


On 4/13/21 12:53 AM, Sean Anderson wrote:
> This allows using dev#partlabel syntax.
>
> Signed-off-by: Sean Anderson <sean.anderson at seco.com>

Since this patch was merged as commit 7194527b the command 'ls host'
leads to a segmentation violation:

=> host bind 0 ../sandbox.img
=> setenv bootdevice 0:1
=> ls host

Segmentation violation
pc = 0x55a5b66b7ec1, pc_reloc = 0x55a5a66b7ec1

Writing sandbox state

Before the patch:

=> host bind 0 ../sandbox.img
=> setenv bootdevice 0:1
=> ls host
       148   boot.scr
             Test/

1 file(s), 1 dir(s)

Please, provide a fix for your patch and a unit test using 'setenv
bootdevice' to avoid future mischief.

Best regards

Heinrich


More information about the U-Boot mailing list