[PATCH v2] android_ab: Fixes: Fix backup offset calculation

2024-08-28 Thread Joshua Watt
-off-by: Joshua Watt --- boot/android_ab.c | 9 +++-- common/Kconfig| 3 ++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/boot/android_ab.c b/boot/android_ab.c index 143f373aae..1196a189ed 100644 --- a/boot/android_ab.c +++ b/boot/android_ab.c @@ -139,8 +139,13 @@ static

[PATCH] android_ab: Fix backup offset calculation

2024-08-07 Thread Joshua Watt
The backup offset is in bytes, but was incorrectly be interpreted as blocks, leading to it being written to the wrong location. Fix the calculation and clarify that ANDROID_AB_BACKUP_OFFSET is in bytes and must be a multiple of the block size. Signed-off-by: Joshua Watt --- boot/android_ab.c

[PATCH v5 8/8] cmd: gpt: Add command to swap partition order

2023-08-31 Thread Joshua Watt
om is hard coded to look for the bootloader in a specific index in the GPT partition table. Signed-off-by: Joshua Watt --- cmd/gpt.c | 46 --- doc/usage/cmd/gpt.rst | 25 + test/py/tests/test_gpt.py | 19 +++

[PATCH v5 7/8] cmd: gpt: Preserve bootable flag

2023-08-31 Thread Joshua Watt
Sets the bootable flag when constructing the partition string from the current partition configuration. This ensures that when the partitions are written back (for example, when renaming a partition), the flag is preserved. Signed-off-by: Joshua Watt --- cmd/gpt.c | 3 +++ test

[PATCH v5 6/8] cmd: gpt: Preserve type GUID if enabled

2023-08-31 Thread Joshua Watt
preserved. Signed-off-by: Joshua Watt --- cmd/gpt.c | 16 ++ test/py/tests/test_gpt.py | 65 +++ 2 files changed, 81 insertions(+) diff --git a/cmd/gpt.c b/cmd/gpt.c index 45fbe07404..0090e02110 100644 --- a/cmd/gpt.c +++ b/cmd/gpt.c @@ -173,6

[PATCH v5 5/8] cmd: gpt: Add command to set bootable flags

2023-08-31 Thread Joshua Watt
Adds a command that can be used to modify the GPT partition table to indicate which partitions should have the bootable flag set Signed-off-by: Joshua Watt --- cmd/gpt.c | 80 +++ doc/usage/cmd/gpt.rst | 12 ++ test/py/tests

[PATCH v5 4/8] cmd: gpt: Add gpt_partition_bootable variable

2023-08-31 Thread Joshua Watt
Adds an additional variable called gpt_partition_bootable that indicates if the given partition is bootable or not. Signed-off-by: Joshua Watt --- cmd/gpt.c | 9 +++-- doc/usage/cmd/gpt.rst | 5 + test/py/tests/test_gpt.py | 33 + 3

[PATCH v5 3/8] tests: gpt: Remove test order dependency

2023-08-31 Thread Joshua Watt
Re-create a clean disk image for each test to prevent modifications from one test affecting another Signed-off-by: Joshua Watt --- test/py/tests/test_gpt.py | 20 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/test/py/tests/test_gpt.py b/test/py/tests

[PATCH v5 2/8] doc: Add gpt command documentation

2023-08-31 Thread Joshua Watt
Adds initial documentation for the gpt command Signed-off-by: Joshua Watt --- doc/usage/cmd/gpt.rst | 184 ++ doc/usage/index.rst | 1 + 2 files changed, 185 insertions(+) create mode 100644 doc/usage/cmd/gpt.rst diff --git a/doc/usage/cmd/gpt.rst b

[PATCH v5 1/8] cmd: gpt: Remove confusing help text

2023-08-31 Thread Joshua Watt
This help text appears to be a fragment of the text shown when CONFIG_CMD_GPT_RENAME is enabled, but is confusing so remove it. Signed-off-by: Joshua Watt --- cmd/gpt.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/cmd/gpt.c b/cmd/gpt.c index 964056bd28..fe9e06681c 100644 --- a/cmd/gpt.c

[PATCH v5 0/8] cmd: gpt: GPT manipulation improvements

2023-08-31 Thread Joshua Watt
e 'gpt swap-position' -> 'gpt transpose', taking inspiration from `sgdisk --transpose` Joshua Watt (8): cmd: gpt: Remove confusing help text doc: Add gpt command documentation tests: gpt: Remove test order dependency cmd: gpt: Add gpt_partition_bootable variable

Re: [PATCH v4 5/8] cmd: gpt: Add command to set bootable flags

2023-08-29 Thread Joshua Watt
On Mon, Aug 28, 2023, 4:53 PM Heinrich Schuchardt wrote: > On 8/28/23 23:56, Joshua Watt wrote: > > Adds a command that can be used to modify the GPT partition table to > > indicate which partitions should have the bootable flag set > > > > Signed-off-by: Joshua Wa

Re: [PATCH v4 2/8] doc: Add gpt command documentation

2023-08-29 Thread Joshua Watt
On Mon, Aug 28, 2023, 4:58 PM Heinrich Schuchardt wrote: > On 8/29/23 00:45, Heinrich Schuchardt wrote: > > /On 8/28/23 23:56, Joshua Watt wrote: > >> Adds initial documentation for the gpt command > >> > >> Signed-off-by: Joshua Watt > &g

[PATCH v4 8/8] cmd: gpt: Add command to swap partition order

2023-08-28 Thread Joshua Watt
bootrom is hard coded to look for the bootloader in a specific index in the GPT partition table. Signed-off-by: Joshua Watt --- cmd/gpt.c | 46 --- doc/usage/cmd/gpt.rst | 25 + test/py/tests/test_gpt.py | 19 +++

[PATCH v4 7/8] cmd: gpt: Preserve bootable flag

2023-08-28 Thread Joshua Watt
Sets the bootable flag when constructing the partition string from the current partition configuration. This ensures that when the partitions are written back (for example, when renaming a partition), the flag is preserved. Signed-off-by: Joshua Watt --- cmd/gpt.c | 3 +++ test

[PATCH v4 6/8] cmd: gpt: Preserve type GUID if enabled

2023-08-28 Thread Joshua Watt
preserved. Signed-off-by: Joshua Watt --- cmd/gpt.c | 16 ++ test/py/tests/test_gpt.py | 65 +++ 2 files changed, 81 insertions(+) diff --git a/cmd/gpt.c b/cmd/gpt.c index 45fbe07404..0090e02110 100644 --- a/cmd/gpt.c +++ b/cmd/gpt.c @@ -173,6

[PATCH v4 5/8] cmd: gpt: Add command to set bootable flags

2023-08-28 Thread Joshua Watt
Adds a command that can be used to modify the GPT partition table to indicate which partitions should have the bootable flag set Signed-off-by: Joshua Watt --- cmd/gpt.c | 80 +++ doc/usage/cmd/gpt.rst | 12 ++ test/py/tests

[PATCH v4 4/8] cmd: gpt: Add gpt_partition_bootable variable

2023-08-28 Thread Joshua Watt
Adds an additional variable called gpt_partition_bootable that indicates if the given partition is bootable or not. Signed-off-by: Joshua Watt --- cmd/gpt.c | 9 +++-- doc/usage/cmd/gpt.rst | 5 + test/py/tests/test_gpt.py | 33 + 3

[PATCH v4 3/8] tests: gpt: Remove test order dependency

2023-08-28 Thread Joshua Watt
Re-create a clean disk image for each test to prevent modifications from one test affecting another Signed-off-by: Joshua Watt --- test/py/tests/test_gpt.py | 20 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/test/py/tests/test_gpt.py b/test/py/tests

[PATCH v4 2/8] doc: Add gpt command documentation

2023-08-28 Thread Joshua Watt
Adds initial documentation for the gpt command Signed-off-by: Joshua Watt --- doc/usage/cmd/gpt.rst | 184 ++ doc/usage/index.rst | 1 + 2 files changed, 185 insertions(+) create mode 100644 doc/usage/cmd/gpt.rst diff --git a/doc/usage/cmd/gpt.rst b

[PATCH v4 1/8] cmd: gpt: Remove confusing help text

2023-08-28 Thread Joshua Watt
This help text appears to be a fragment of the text shown when CONFIG_CMD_GPT_RENAME is enabled, but is confusing so remove it. Signed-off-by: Joshua Watt --- cmd/gpt.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/cmd/gpt.c b/cmd/gpt.c index 964056bd28..fe9e06681c 100644 --- a/cmd/gpt.c

[PATCH v4 0/8] cmd: gpt: GPT manipulation improvements

2023-08-28 Thread Joshua Watt
one which can swap the order of partitions in the table, and another that lets it change which partitions have the bootable flag. V2: Add documentation and tests V3: Review Feedback V4: More review feedback. Fixed 'gpt swap-partition' to work with missing partition indexes. Joshua

Re: [PATCH v3 2/8] doc: Add gpt command documentation

2023-08-28 Thread Joshua Watt
On Fri, Aug 25, 2023 at 5:53 PM Simon Glass wrote: > > Hi Joshua, > > On Fri, 25 Aug 2023 at 13:38, Joshua Watt wrote: > > > > Adds initial documentation for the gpt command > > > > Signed-off-by: Joshua Watt >

Re: [PATCH v3 2/8] doc: Add gpt command documentation

2023-08-28 Thread Joshua Watt
On Mon, Aug 28, 2023 at 2:00 PM Heinrich Schuchardt wrote: > > On 8/28/23 21:29, Joshua Watt wrote: > > On Fri, Aug 25, 2023 at 7:57 PM Heinrich Schuchardt > > wrote: > >> > >> On 8/25/23 21:38, Joshua Watt wrote: > >>> Adds initial documentatio

Re: [PATCH v3 2/8] doc: Add gpt command documentation

2023-08-28 Thread Joshua Watt
On Fri, Aug 25, 2023 at 7:57 PM Heinrich Schuchardt wrote: > > On 8/25/23 21:38, Joshua Watt wrote: > > Adds initial documentation for the gpt command > > Thanks a lot for filling the gap. > > > > > Signed-off-by: Joshua Watt > >

[PATCH v3 8/8] cmd: gpt: Add command to swap partition order

2023-08-25 Thread Joshua Watt
Adds a command called "gpt swap-postition" which will swap the order two partitions are listed in the GPT partition table (but leaves them pointing to the same locations on disk). Signed-off-by: Joshua Watt --- cmd/gpt.c | 52 ---

[PATCH v3 7/8] cmd: gpt: Preserve bootable flag

2023-08-25 Thread Joshua Watt
Sets the bootable flag when constructing the partition string from the current partition configuration. This ensures that when the partitions are written back (for example, when renaming a partition), the flag is preserved. Signed-off-by: Joshua Watt --- cmd/gpt.c | 3 +++ test

[PATCH v3 6/8] cmd: gpt: Preserve type GUID if enabled

2023-08-25 Thread Joshua Watt
preserved. Signed-off-by: Joshua Watt --- cmd/gpt.c | 16 ++ test/py/tests/test_gpt.py | 66 +++ 2 files changed, 82 insertions(+) diff --git a/cmd/gpt.c b/cmd/gpt.c index 1fe7f1a7db..b7d861aa1e 100644 --- a/cmd/gpt.c +++ b/cmd/gpt.c @@ -173,6

[PATCH v3 5/8] cmd: gpt: Add command to set bootable flags

2023-08-25 Thread Joshua Watt
Adds a command that can be used to modify the GPT partition table to indicate which partitions should have the bootable flag set Signed-off-by: Joshua Watt --- cmd/gpt.c | 80 +++ doc/usage/cmd/gpt.rst | 9 + test/py/tests/test_gpt.py

[PATCH v3 4/8] cmd: gpt: Add gpt_partition_bootable variable

2023-08-25 Thread Joshua Watt
Adds an additional variable called gpt_partition_bootable that indicates if the given partition is bootable or not. Signed-off-by: Joshua Watt --- cmd/gpt.c | 9 +++-- doc/usage/cmd/gpt.rst | 3 +++ test/py/tests/test_gpt.py | 33 + 3

[PATCH v3 3/8] tests: gpt: Remove test order dependency

2023-08-25 Thread Joshua Watt
Re-create a clean disk image for each test to prevent modifications from one test affecting another Signed-off-by: Joshua Watt --- test/py/tests/test_gpt.py | 20 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/test/py/tests/test_gpt.py b/test/py/tests

[PATCH v3 2/8] doc: Add gpt command documentation

2023-08-25 Thread Joshua Watt
Adds initial documentation for the gpt command Signed-off-by: Joshua Watt --- doc/usage/cmd/gpt.rst | 141 ++ doc/usage/index.rst | 1 + 2 files changed, 142 insertions(+) create mode 100644 doc/usage/cmd/gpt.rst diff --git a/doc/usage/cmd/gpt.rst b

[PATCH v3 1/8] cmd: gpt: Remove confusing help text

2023-08-25 Thread Joshua Watt
This help text appears to be a fragment of the text shown when CONFIG_CMD_GPT_RENAME is enabled, but is confusing so remove it. Signed-off-by: Joshua Watt --- cmd/gpt.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/cmd/gpt.c b/cmd/gpt.c index 007a68eaa7..e6f7b0319a 100644 --- a/cmd/gpt.c

[PATCH v3 0/8] cmd: gpt: GPT manipulation improvements

2023-08-25 Thread Joshua Watt
one which can swap the order of partitions in the table, and another that lets it change which partitions have the bootable flag. V2: Add documentation and tests V3: Review Feedback Joshua Watt (8): cmd: gpt: Remove confusing help text doc: Add gpt command documentation tests: gpt: Remove

Re: [PATCH v2 3/8] tests: gpt: Remove test order dependency

2023-08-23 Thread Joshua Watt
On Wed, Aug 23, 2023 at 5:59 PM Simon Glass wrote: > > Hi Joshua, > > On Wed, 23 Aug 2023 at 10:48, Joshua Watt wrote: > > > > Re-create a clean disk image for each test to prevent modifications from > > one test affecting another > > > > Signed-off-b

[PATCH v2 8/8] cmd: gpt: Add command to swap partition order

2023-08-23 Thread Joshua Watt
Adds a command called "gpt swap-postition" which will swap the order two partitions are listed in the GPT partition table (but leaves them pointing to the same locations on disk). Signed-off-by: Joshua Watt --- cmd/gpt.c | 50 +--

[PATCH v2 7/8] cmd: gpt: Preserve bootable flag

2023-08-23 Thread Joshua Watt
Sets the bootable flag when constructing the partition string from the current partition configuration. This ensures that when the partitions are written back (for example, when renaming a partition), the flag is preserved. Signed-off-by: Joshua Watt --- cmd/gpt.c | 3 +++ test

[PATCH v2 6/8] cmd: gpt: Preserve type GUID if enabled

2023-08-23 Thread Joshua Watt
preserved. Signed-off-by: Joshua Watt --- cmd/gpt.c | 16 +++ test/py/tests/test_gpt.py | 57 +++ 2 files changed, 73 insertions(+) diff --git a/cmd/gpt.c b/cmd/gpt.c index 70a01f7da1..fdd9c429f6 100644 --- a/cmd/gpt.c +++ b/cmd/gpt.c

[PATCH v2 5/8] cmd: gpt: Add command to set bootable flags

2023-08-23 Thread Joshua Watt
Adds a command that can be used to modify the GPT partition table to indicate which partitions should have the bootable flag set Signed-off-by: Joshua Watt --- cmd/gpt.c | 79 +++ doc/usage/cmd/gpt.rst | 9 + test/py/tests/test_gpt.py

[PATCH v2 4/8] cmd: gpt: Add gpt_partition_bootable variable

2023-08-23 Thread Joshua Watt
Adds an additional variable called gpt_partition_bootable that indicates if the given partition is bootable or not. Signed-off-by: Joshua Watt --- cmd/gpt.c | 9 +++-- doc/usage/cmd/gpt.rst | 3 +++ test/py/tests/test_gpt.py | 33 + 3

[PATCH v2 3/8] tests: gpt: Remove test order dependency

2023-08-23 Thread Joshua Watt
Re-create a clean disk image for each test to prevent modifications from one test affecting another Signed-off-by: Joshua Watt --- test/py/tests/test_gpt.py | 20 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/test/py/tests/test_gpt.py b/test/py/tests

[PATCH v2 2/8] doc: Add gpt command documentation

2023-08-23 Thread Joshua Watt
Adds initial documentation for the gpt command Signed-off-by: Joshua Watt --- doc/usage/cmd/gpt.rst | 139 ++ 1 file changed, 139 insertions(+) create mode 100644 doc/usage/cmd/gpt.rst diff --git a/doc/usage/cmd/gpt.rst b/doc/usage/cmd/gpt.rst new file

[PATCH v2 1/8] cmd: gpt: Remove confusing help text

2023-08-23 Thread Joshua Watt
This help text appears to be a fragment of the text shown when CONFIG_CMD_GPT_RENAME is enabled, but is confusing so remove it. Signed-off-by: Joshua Watt --- cmd/gpt.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/cmd/gpt.c b/cmd/gpt.c index 007a68eaa7..e6f7b0319a 100644 --- a/cmd/gpt.c

[PATCH v2 0/8] cmd: gpt: GPT manipulation improvements

2023-08-23 Thread Joshua Watt
one which can swap the order of partitions in the table, and another that lets it change which partitions have the bootable flag. V2: Add documentation and tests Joshua Watt (8): cmd: gpt: Remove confusing help text doc: Add gpt command documentation tests: gpt: Remove test order dependency

[PATCH 5/6] cmd: gpt: Preserve bootable flag

2023-08-15 Thread Joshua Watt
Sets the bootable flag when constructing the partition string from the current partition configuration. This ensures that when the partitions are written back (for example, when renaming a partition), the flag is preserved. Signed-off-by: Joshua Watt --- cmd/gpt.c | 3 +++ 1 file changed, 3

[PATCH 6/6] cmd: gpt: Add command to swap partition order

2023-08-15 Thread Joshua Watt
Adds a command called "gpt swap-postition" which will swap the order two partitions are listed in the GPT partition table (but leaves them pointing to the same locations on disk). Signed-off-by: Joshua Watt --- cmd/gpt.c | 50 -- 1 fi

[PATCH 4/6] cmd: gpt: Preserve type GUID if enabled

2023-08-15 Thread Joshua Watt
preserved. Signed-off-by: Joshua Watt --- cmd/gpt.c | 16 1 file changed, 16 insertions(+) diff --git a/cmd/gpt.c b/cmd/gpt.c index bc08799512..c6fbd94ba2 100644 --- a/cmd/gpt.c +++ b/cmd/gpt.c @@ -173,6 +173,9 @@ static int calc_parts_list_len(int numparts) /* see part.h for

[PATCH 3/6] cmd: gpt: Add gpt_partition_bootable variable

2023-08-15 Thread Joshua Watt
Adds an additional variable called gpt_partition_bootable that indicates if the given partition is bootable or not. Signed-off-by: Joshua Watt --- cmd/gpt.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/cmd/gpt.c b/cmd/gpt.c index a4b8b2b286..bc08799512 100644

[PATCH 2/6] cmd: gpt: Add command to set bootable flags

2023-08-15 Thread Joshua Watt
Adds a command that can be used to modify the GPT partition table to indicate which partitions should have the bootable flag set Signed-off-by: Joshua Watt --- cmd/gpt.c | 80 +++ 1 file changed, 80 insertions(+) diff --git a/cmd/gpt.c b/cmd

[PATCH 1/6] cmd: gpt: Remove confusing help text

2023-08-15 Thread Joshua Watt
This help text appears to be a fragment of the text shown when CONFIG_CMD_GPT_RENAME is enabled, but is confusing so remove it. Signed-off-by: Joshua Watt --- cmd/gpt.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/cmd/gpt.c b/cmd/gpt.c index 007a68eaa7..e6f7b0319a 100644 --- a/cmd/gpt.c

[PATCH 0/6] cmd: gpt: GPT manipulation improvements

2023-08-15 Thread Joshua Watt
one which can swap the order of partitions in the table, and another that lets it change which partitions have the bootable flag. Joshua Watt (6): cmd: gpt: Remove confusing help text cmd: gpt: Add command to set bootable flags cmd: gpt: Add gpt_partition_bootable variable cmd: gpt: Pre

Re: [PATCH] android_ab: Add option to skip decrementing tries

2023-07-17 Thread Joshua Watt
Ping? On Fri, Jun 23, 2023 at 4:06 PM Joshua Watt wrote: > > It is is sometimes desired to be able to skip decrementing the number of > tries remaining in an Android A/B boot, and instead just check which > slot will be tried later. This can commonly be be the case for platforms >

[PATCH] android_ab: Try backup booloader_message

2023-07-03 Thread Joshua Watt
fails its CRC check. Signed-off-by: Joshua Watt --- boot/android_ab.c | 77 ++ common/Kconfig | 9 ++ doc/android/ab.rst | 6 3 files changed, 80 insertions(+), 12 deletions(-) diff --git a/boot/android_ab.c b/boot/android_ab.c index

[PATCH v2 5/5] cmd: mbr: Force DOS driver to be used for verify

2023-07-03 Thread Joshua Watt
Forces the DOS partition type driver to be used when verifying the MBR. This is particularly useful when using a hybrid MBR & GPT layout as otherwise MBR verification would mostly likely fail since the GPT partitions will be returned, even if the MBR is actually valid. Signed-off-by: Joshua

[PATCH v2 4/5] dm: test: Add test for part_get_info_by_type

2023-07-03 Thread Joshua Watt
Adds a test suite to ensure that part_get_info_by_type works correctly by creating a hybrid GPT/MBR partition table and reading both. Signed-off-by: Joshua Watt --- configs/sandbox_defconfig | 2 + test/dm/part.c| 87 +++ 2 files changed, 89

[PATCH v2 3/5] disk: part: Add API to get partitions with specific driver

2023-07-03 Thread Joshua Watt
Adds part_driver_get_type() API which can be used to force a specific driver to be used when getting partition information instead of relying on auto detection. Signed-off-by: Joshua Watt --- disk/part.c| 38 +++--- include/part.h | 19 ++- 2

[PATCH v2 2/5] dm: test: Improve partition test error output

2023-07-03 Thread Joshua Watt
Improve the logging when the partition test fails so that it is clear what went wrong, shown with actual values. Signed-off-by: Joshua Watt --- test/dm/part.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/test/dm/part.c b/test/dm/part.c index d5c58d6e3f

[PATCH v2 1/5] dm: test: Fix partition test to use mmc2

2023-07-03 Thread Joshua Watt
d94d9844bc ("dm: part: Update test to use mmc2") attempted to make the test use mmc2, but the change was incomplete in that it didn't also change the strings that reference a specific partition. Fix these so that the test passes again Signed-off-by: Joshua Watt --- test

[PATCH v2 0/5] Fix 'mbr' command with hybrid MBR/GPT

2023-07-03 Thread Joshua Watt
ed tests for new API Joshua Watt (5): dm: test: Fix partition test to use mmc2 dm: test: Improve partition test error output disk: part: Add API to get partitions with specific driver dm: test: Add test for part_get_info_by_type cmd: mbr: Force DOS driver to be used for verify cmd/mbr.c

[PATCH] tests: Fix exception when cleaning up skipped test

2023-07-03 Thread Joshua Watt
If test_cat and test_xxd cannot create the required file, the test will be skipped, but this would result in an exception being raised in the finally block because the file didn't exist to be cleaned up. This caused the test to be marked as failed instead of skipped. Signed-off-by: Joshua

Re: [PATCH 1/2] disk: part: Add API to get partitions with specific driver

2023-06-28 Thread Joshua Watt
On Mon, Jun 26, 2023 at 4:07 AM Simon Glass wrote: > > Hi Joshua, > > On Fri, 23 Jun 2023 at 21:01, Joshua Watt wrote: > > > > Adds part_driver_get_type() API which can be used to force a specific > > driver to be used when getting partition information instead of

[PATCH 0/2] Fix 'mbr' command with hybrid MBR/GPT

2023-06-24 Thread Joshua Watt
When dealing with a hybrid MBR/GPT partition table, the 'mbr' command would misbehave because it was reading the GPT partitions instead of reading from the MBR when verifying. Fix this by forcing 'mbr verify' to read MBR partitions. Joshua Watt (2): disk: part: Add API to

[PATCH 1/2] disk: part: Add API to get partitions with specific driver

2023-06-24 Thread Joshua Watt
Adds part_driver_get_type() API which can be used to force a specific driver to be used when getting partition information instead of relying on auto detection. Signed-off-by: Joshua Watt --- disk/part.c| 38 +++--- include/part.h | 2 ++ 2 files changed, 33

[PATCH 2/2] cmd: mbr: Force DOS driver to be used for verify

2023-06-24 Thread Joshua Watt
Forces the DOS partition type driver to be used when verifying the MBR. This is particularly useful when using a hybrid MBR & GPT layout as otherwise MBR verification would mostly likely fail since the GPT partitions will be returned, even if the MBR is actually valid. Signed-off-by: Joshua

[PATCH] android_ab: Add option to skip decrementing tries

2023-06-24 Thread Joshua Watt
MBR and rebooting until all the retries are used up. Signed-off-by: Joshua Watt --- boot/android_ab.c| 9 ++--- cmd/ab_select.c | 20 include/android_ab.h | 3 ++- 3 files changed, 24 insertions(+), 8 deletions(-) diff --git a/boot/android_ab.c b/boot

Re: [U-Boot] [PATCH v3] qemu-x86: Use config_distro_bootcmd

2019-07-16 Thread Joshua Watt
ping? On 7/3/19 12:45 PM, Joshua Watt wrote: Converts qemu x86 machines to boot using distro_config. The intent is to allow u-boot in qemu to be maximally compatible with many boot methods without having to change the config. Previously, u-boot would only boot in a very limited set of

[U-Boot] [PATCH v3] qemu-x86: Use config_distro_bootcmd

2019-07-03 Thread Joshua Watt
with no ramdisk. Signed-off-by: Joshua Watt --- configs/qemu-x86_64_defconfig | 1 + configs/qemu-x86_defconfig| 1 + doc/README.x86| 17 + include/configs/qemu-x86.h| 25 + 4 files changed, 44 insertions(+) diff --git a/configs

Re: [U-Boot] [PATCH v2] qemu-x86: Use config_distro_bootcmd

2019-07-02 Thread Joshua Watt
On 7/2/19 9:24 AM, Bin Meng wrote: Hi Joshua, On Tue, Jul 2, 2019 at 9:26 PM Joshua Watt wrote: Converts qemu x86 machines to boot using distro_config. The intent is to allow u-boot in qemu to be maximally compatible with many boot methods without having to change the config. Previously, u

[U-Boot] [PATCH v2] qemu-x86: Use config_distro_bootcmd

2019-07-02 Thread Joshua Watt
with no ramdisk. Signed-off-by: Joshua Watt --- configs/qemu-x86_64_defconfig | 1 + configs/qemu-x86_defconfig| 1 + doc/README.x86| 5 + include/configs/qemu-x86.h| 25 + 4 files changed, 32 insertions(+) diff --git a/configs/qemu

[U-Boot] [RFC PATCH] qemu-x86: Use config_distro_bootcmd

2019-06-21 Thread Joshua Watt
with no ramdisk. If distro_bootcmd fails, u-boot will fall back to the original method. Signed-off-by: Joshua Watt --- include/configs/qemu-x86.h | 30 ++ 1 file changed, 30 insertions(+) diff --git a/include/configs/qemu-x86.h b/include/configs/qemu-x86.h index

[U-Boot] [PATCH] config_distro_bootcmd: Init IDE devices

2019-06-20 Thread Joshua Watt
IDE devices are no longer automatically probed by u-boot, so it should be done by the distro boot command before attempting to boot from IDE (just like scsi and nvme) Signed-off-by: Joshua Watt --- include/config_distro_bootcmd.h | 16 +++- 1 file changed, 15 insertions(+), 1

[U-Boot] qemu x86 ide device not probing automatically with 2018.11

2018-12-12 Thread Joshua Watt
y add a "ide reset" as the first line of CONFIG_BOOTCOMMAND, or is there a more "correct" way to get u-boot to probe the driver? Thanks, -- Joshua Watt ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot