-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
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
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 +++
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
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
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
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
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
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
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
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
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
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
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 +++
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
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
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
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
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
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
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
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
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
>
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
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
> >
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 ---
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
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
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
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
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
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
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
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
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
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 +--
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
>
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
72 matches
Mail list logo