]> git.dujemihanovic.xyz Git - u-boot.git/commit
cmd: mbr: Allow 4 MBR partitions without need for extended
authorAlexander Gendin <agendin@matrox.com>
Mon, 9 Oct 2023 01:24:36 +0000 (01:24 +0000)
committerTom Rini <trini@konsulko.com>
Tue, 24 Oct 2023 21:05:24 +0000 (17:05 -0400)
commit04291ee0aba6d731bd66bcae5080e126d6c0411b
treeecc87083ddf3df1f18d455bc45aef2e839762a2e
parent9859edd3fc10ffb63f53e1d21aa6eb34b688f6da
cmd: mbr: Allow 4 MBR partitions without need for extended

Current code allows up to 3 MBR partitions without extended one.
If more than 3 partitions are required, then extended partition(s)
must be used.
This commit allows up to 4 primary MBR partitions without the
need for extended partition.

Add mbr test unit. In order to run the test manually, mmc6.img file
of size 12 MiB or greater is required in the same directory as u-boot.
Test also runs automatically via ./test/py/test.py tool.
Running mbr test is only supported in sandbox mode.

Signed-off-by: Alex Gendin <agendin@matrox.com>
[ And due to some further changes for testing ]
Signed-off-by: Simon Glass <sjg@chromium.org>
arch/Kconfig
arch/sandbox/dts/test.dts
configs/sandbox_defconfig
configs/sandbox_flattree_defconfig
disk/part_dos.c
include/test/suites.h
test/cmd/Makefile
test/cmd/mbr.c [new file with mode: 0644]
test/cmd_ut.c
test/py/tests/test_ut.py