]> git.dujemihanovic.xyz Git - u-boot.git/commit
spl: blk: partition numbers are hexadecimal
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 22 Jul 2023 10:45:44 +0000 (12:45 +0200)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sun, 30 Jul 2023 16:52:03 +0000 (18:52 +0200)
commitd62e7b8059847a06bc0f2222643425bff775320b
tree9bf6ed3e0ac4d72009bd241fb820d1a42a878267
parent350635fe837341e7ce7b7b900f18d7d306fdb42e
spl: blk: partition numbers are hexadecimal

Loading u-boot.itb from device 0x00, partition 0x0f fails with:

    Trying to boot from NVME

    Device 0: Vendor: 0x4x Rev: 8.0.50   Prod: nvme-1
                Type: Hard Disk
                Capacity: 3814.6 MB = 3.7 GB (7812500 x 512)
    ** Invalid partition 21 **
    Couldn't find partition nvme 0:15

Like the command line interface fs_det_blk_dev() expects that the device
number and the partition number are hexadecimal.

Fixes: 8ce6a2e17577 ("spl: blk: Support loading images from fs")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Mayuresh Chitale <mchitale@ventanamicro.com>
common/spl/spl_blk_fs.c