[PATCH] Fix out of bound access of ep array.

2022-09-22 Thread Alison Huffman
: Alison Huffman --- drivers/usb/gadget/dwc2_udc_otg_xfer_dma.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/usb/gadget/dwc2_udc_otg_xfer_dma.c b/drivers/usb/gadget/dwc2_udc_otg_xfer_dma.c index f17009a29e..1c34b75351 100644 --- a/drivers/usb/gadget

RE: [PATCH] configs: ls1021a: Append CMA configuration to bootargs

2020-04-23 Thread Alison Wang
Hi, Priyanka, > -Original Message- > From: Priyanka Jain > Sent: Thursday, April 23, 2020 6:32 PM > To: Alison Wang ; u-boot@lists.denx.de; Jagdish > Gediya > Cc: Shengzhou Liu > Subject: RE: [PATCH] configs: ls1021a: Append CMA configuration to bootargs >

[PATCH v2] configs: ls1021a: Append CMA configuration to bootargs

2020-04-23 Thread Alison Wang
Signed-off-by: Alison Wang --- Change in v2: - Update the comment. include/configs/ls1021atwr.h | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/configs/ls1021atwr.h b/include/configs/ls1021atwr.h index a6289850ca..45ce460dca 100644 --- a/include/configs

[PATCH] configs: ls1021a: Append CMA configuration to bootargs

2020-04-22 Thread Alison Wang
According to commit , this patch appends CMA configuration to bootargs for LS1021ATWR. Signed-off-by: Shengzhou Liu Signed-off-by: Alison Wang --- include/configs/ls1021atwr.h | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/configs/ls1021atwr.h b/include

[PATCH v2] configs: ls1021a: Append othbootargs to bootargs

2020-03-24 Thread Alison Wang
This patch appends CMA configuration to bootargs for LS1021ATWR board. Signed-off-by: Shengzhou Liu Signed-off-by: Alison Wang --- Changes for v2: - Append CMA configuration to bootargs directly include/configs/ls1021atwr.h | 8 1 file changed, 4 insertions(+), 4 deletions

[PATCH] configs: ls1021a: Append othbootargs to bootargs

2020-03-16 Thread Alison Wang
This patch appends othbootargs to bootargs for LS1021ATWR board. Signed-off-by: Alison Wang --- include/configs/ls1021atwr.h | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/include/configs/ls1021atwr.h b/include/configs/ls1021atwr.h index 8e2784b..266107c 100644 --- a

[PATCH] ls1021a: Set CONFIG_SYS_BOOTMAPSZ to the memory for relocation

2020-02-02 Thread Alison Wang
This patch sets CONFIG_SYS_BOOTMAPSZ to the amount of memory available to safely contain a kernel, device tree and initrd for relocation. The way to set fdt_high as 0x to disable device tree relocation is removed. Signed-off-by: Alison Wang --- include/configs/ls1021aiot.h | 5

[PATCH] configs: ls1021a: Reserve low memory for CMA

2020-01-20 Thread Alison Wang
The default reserved memory for CMA is high memory. If LPAE is enabled, highmem pages are non-remapped and can not be used with dma_alloc_coherent. This patch will reserve low memory for CMA and fix the issue on LS1021A. Signed-off-by: Peng Ma Signed-off-by: Shengzhou Liu Signed-off-by: Alison

[PATCH] configs: Enable SPL_FSL_PBL for some LayerScape platforms

2019-12-03 Thread Alison Wang
-off-by: Alison Wang --- common/spl/Kconfig | 8 ++-- configs/ls1021aiot_sdcard_defconfig | 1 + configs/ls1021aqds_nand_defconfig | 1 + configs/ls1021aqds_sdcard_ifc_defconfig | 1 + configs

[U-Boot] [PATCH] armv8: ls1046afrwy: Define CONFIG_ENV_ADDR for QSPI Boot

2019-07-22 Thread Alison Wang
This patch defines CONFIG_ENV_ADDR for QSPI Boot which specifies the start address of the flash sector containing the environment. It fixes the issue that bootcmd is always set as default at bootup. Signed-off-by: Alison Wang --- include/configs/ls1046afrwy.h | 3 +++ 1 file changed, 3

[U-Boot] [PATCH] video: Add dependency for VIDEO_IMX_HDP_LOAD

2019-05-21 Thread Alison Wang
As VIDEO_IMX_HDP_LOAD is supported on LS1028A, this patch adds ARCH_LS1028A dependency for VIDEO_IMX_HDP_LOAD. Signed-off-by: Alison Wang --- drivers/video/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig index 7aa1727e5b

[U-Boot] [PATCH] armv7: ls102xa: Add workaround for DDR erratum A-008850

2019-03-05 Thread Alison Wang
Barrier transactions from CCI400 need to be disabled till the DDR is configured, otherwise it may lead to system hang. The patch adds workaround to fix the erratum. Signed-off-by: Shengzhou Liu Signed-off-by: Alison Wang --- arch/arm/cpu/armv7/ls102xa/Kconfig| 6 +++ arch/arm/cpu

Re: [U-Boot] Regression: vf610twr build error

2018-10-23 Thread Alison Wang
Hi, Stefano, I don't have vf610 boards now. I am afraid I could not verify it too. Best Regards, Alison Wang >-Original Message- >From: Stefano Babic >Sent: 2018年10月23日 0:05 >To: Alison Wang >Cc: U-Boot@lists.denx.de >Subject: Regression: vf610twr build error &

[U-Boot] [PATCH] arm: ls1021a: Add timer_init() in board_init_f for SPL

2018-10-16 Thread Alison Wang
calling hang(). This patch will add timer_init() in board_init_f for SPL and fix a series of issues it caused. Signed-off-by: Alison Wang --- board/freescale/ls1021aqds/ls1021aqds.c |1 + board/freescale/ls1021atwr/ls1021atwr.c |1 + 2 files changed, 2 insertions(+), 0 deletions(-) diff

[U-Boot] [PATCH] armv8: ls2080ardb: update copyright claim

2018-06-18 Thread Alison Wang
This patch updates the copyright claim for the issues reported by Legal Review. Signed-off-by: Alison Wang --- board/freescale/ls2080ardb/ls2080ardb.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/board/freescale/ls2080ardb/ls2080ardb.c b/board/freescale/ls2080ardb

Re: [U-Boot] [PATCH] arm: ls1021atwr: Rework local commands to not be included in SPL

2018-01-04 Thread Alison Wang
On Wed, Jan 3, 2018 at 10:02 PM, Tom Rini wrote: > > Move some of the code for the "lane_bank" and "cpld" code local commands > so that they are not built for SPL as they can only be used in full > U-Boot. This means we can mark a few functions as static as well

[U-Boot] [PATCH v3] armv8: errata: Implement workaround for Cortex-A53 Erratum 855873

2017-12-27 Thread Alison Wang
to implement the workaround for this erratum. Signed-off-by: Alison Wang --- Changes in v3: - Check the major revision of Cortex-A53. Changes in v2: - Check the revision of Cortex-A53 and apply the erratum to r0p3 and later release. - Fix the mistake in the commit description. arch/arm/Kconfig

[U-Boot] [PATCHv2] GPT: fix memory leaks identified by Coverity

2017-09-26 Thread alison
From: Alison Chaiken Create a common exit for most of the error handling code in do_rename_gpt_parts. Delete the list elements in disk_partitions before calling INIT_LIST_HEAD from get_gpt_info() a second time. The SIZEOF_MISMATCH error is not addressed, since that problem was already fixed

[U-Boot] [PATCHv2] GPT: fix memory leaks identified by Coverity

2017-09-26 Thread alison
From: Alison Chaiken Create a common exit for most of the error handling code in do_rename_gpt_parts. Delete the list elements in disk_partitions before calling INIT_LIST_HEAD from get_gpt_info() a second time. The SIZEOF_MISMATCH error is not addressed, since that problem was already fixed

[U-Boot] [PATCH] GPT: fix memory leaks identified by Coverity

2017-09-24 Thread alison
From: Alison Chaiken Create a common exit for most of the error handling code in do_rename_gpt_parts. Delete the list elements in disk_partitions before calling INIT_LIST_HEAD from get_gpt_info() a second time. The SIZEOF_MISMATCH error is not addressed, since that problem was already fixed

Re: [U-Boot] [PATCH] test/py: gpt: make use of infra-structure

2017-09-16 Thread Alison Chaiken
se, the tests will all fail if the gdisk package is not installed. Assuredly anyone who does not have gdisk installed does not care about these tests anyway. If people agree, I can submit a patch, or perhaps Stephen could just add it to his. Best wishes, Alison Chaiken Peloton Technology On Fri

Re: [U-Boot] [PATCH] cmd/gpt.c: Fix warning over memset args in allocate_disk_part

2017-09-16 Thread Alison Chaiken
it by the number of elements)? > memset(newpart, '\0', sizeof(newpart)); > ^~~ > > As we should have been passing sizeof(*newpart) not sizeof(newpart) > here. > > Agreed. I'm happy to have now read how u-boot can be compiled with clang. -- Alison >

[U-Boot] [PATCH v2 1/3] add pytests for 'gpt rename' and 'gpt swap'

2017-09-09 Thread alison
From: Alison Chaiken On Tue, Sep 5, 2017 at 1:55 AM, Simon Glass wrote: > How about we add this to sandbox_defconfig instead? So done. -- Alison Alison Chaiken (1): add pytests for 'gpt rename' and 'gpt swap' configs/sandbox_defconfig | 1 + test/py

[U-Boot] [PATCH 1/1] add pytests for 'gpt rename' and 'gpt swap'

2017-09-09 Thread alison
From: Alison Chaiken Add unit tests for the 'gpt rename' and 'gpt swap' commands that rely on the block device created by test/py/make_test_disk.py. Add CONFIG_CMD_GPT_RENAME to the sandbox_defconfig. Remove the testdisk.raw test device at the end of the tests. Signed-of

[U-Boot] [PATCH 1/2] GPT: create block device for sandbox testing

2017-09-09 Thread alison
From: Alison Chaiken Provide a Python function that creates a small block device for the purpose of testing the cmd/gpt.c or cmd/part.c functions in the u-boot sandbox. Signed-off-by: Alison Chaiken --- board/sandbox/README.sandbox | 5 + test/py/make_test_disk.py| 19

[U-Boot] [PATCH 2/2] add pytests for 'gpt guid' command in sandbox

2017-09-09 Thread alison
From: Alison Chaiken Run unit tests for the 'gpt guid' command, making use of the block device created by test/py/make_test_disk.py. Remove this device at the end of the tests. Signed-off-by: Alison Chaiken --- test/py/tests/test_gpt.py | 38

[U-Boot] [PATCH 0/2] GPT: create block device for guid testing

2017-09-09 Thread alison
From: Alison Chaiken Simon Glass asked: > Can you please move this into the Python script so that it is created > automatically and deleted at the end. In this version, the device creation is moved to a Python function that the pytest framework can invoke, and a description of the funct

[U-Boot] [PATCH] doc: remove duplicate text in README.gpt

2017-09-04 Thread alison
From: Alison Chaiken Signed-off-by: Alison Chaiken --- doc/README.gpt | 10 -- 1 file changed, 10 deletions(-) diff --git a/doc/README.gpt b/doc/README.gpt index 517df551e7..d3db8bce1c 100644 --- a/doc/README.gpt +++ b/doc/README.gpt @@ -233,16 +233,6 @@ The GPT functionality may be

[U-Boot] [PATCH 3/3] add pytests for 'gpt rename' and 'gpt swap'

2017-09-02 Thread alison
From: Alison Chaiken Add unit tests for the 'gpt rename' and 'gpt swap' commands that rely on the block device created by test/gpt/make-test-disk.sh. Create a new configs/sandbox_gpt_rename_defconfig file to enable testing with CONFIG_CMD_GPT_RENAME. Remove the disk.raw te

[U-Boot] [PATCH 2/3] add pytest for 'gpt guid' command in sandbox

2017-09-02 Thread alison
From: Alison Chaiken Run unit tests for the 'gpt guid' command, making use of the disk.raw block device created by test/gpt/make-test-disk.sh script. Remove this device at the end of the tests. Signed-off-by: Alison Chaiken --- test/py/tests/test_g

[U-Boot] [PATCH 1/3] GPT: create block device for sandbox testing

2017-09-02 Thread alison
From: Alison Chaiken Provide a shell script that creates a small block device for the purpose of testing the cmd/gpt.c functions in the u-boot sandbox. Running the tests removes the device file. Signed-off-by: Alison Chaiken --- test/gpt/make-test-disk.sh | 8 1 file changed, 8

Re: [U-Boot] [PATCH v2 5/6] rename GPT partitions to detect boot failure

2017-08-27 Thread Chaiken, Alison
in test/ makes more sense? If the build system did create the object, then we could modify board/sandbox/README.sandbox to so indicate. Then the test should go in test/py/tests presumably. Thanks for feedback, Alison --- Alison Chaiken ali...@she-devel.com http://{ she-deve

Re: [U-Boot] [PATCH v2] armv8: errata: Implement workaround for Cortex-A53 Erratum 855873

2017-07-24 Thread Alison Wang
> On 21/07/17 09:00, Alison Wang wrote: > > Hi, > > > 855873: An eviction might overtake a cache clean operation > > Workaround: The erratum can be avoided by upgrading cache clean by > > address operations to cache clean and invalidate operations. For > > Cor

[U-Boot] [PATCH v2] armv8: errata: Implement workaround for Cortex-A53 Erratum 855873

2017-07-21 Thread Alison Wang
to implement the workaround for this erratum. Signed-off-by: Alison Wang --- Changes in v2: - Check the revision of Cortex-A53 and apply the erratum to r0p3 and later release. - Fix the mistake in the commit description. arch/arm/Kconfig | 3 +++ arch/arm/cpu/armv8/fsl

Re: [U-Boot] [PATCH] armv8: errata: Implement workaround for Cortex-A53 Erratum 855873

2017-07-20 Thread Alison Wang
Hi, Andre, > On 20/07/17 03:09, Alison Wang wrote: > > 855873: An eviction might overtake a cache clean operation > > Workaround: The erratum can be avoided by upgrading cache clean by > > address operations to cache clean and invalidate operations. For > > Cortex

[U-Boot] [PATCH] armv8: errata: Implement workaround for Cortex-A53 Erratum 855873

2017-07-19 Thread Alison Wang
to implement the workaround for this erratum. Signed-off-by: Alison Wang --- arch/arm/Kconfig | 3 +++ arch/arm/cpu/armv8/fsl-layerscape/Kconfig | 2 ++ arch/arm/cpu/armv8/start.S| 15 ++- 3 files changed, 19 insertions(+), 1 deletion(-) diff

Re: [U-Boot] Targets with xHCI but without DM_USB

2017-07-07 Thread Alison Wang
Hi, Bin, I have sent a patch to enable driver model for USB for LS1021A boards. Thanks for reminding. Best Regards, Alison Wang > -Original Message- > From: Bin Meng [mailto:bmeng...@gmail.com] > Sent: Tuesday, July 04, 2017 10:16 PM > To: Vignesh R ; Alison Wang ; >

[U-Boot] [PATCH] dm: arm: ls1021a: Move to driver model for USB

2017-07-07 Thread Alison Wang
This patch enables driver model for USB in defconfigs for LS1021A platforms. Signed-off-by: Alison Wang --- configs/ls1021aqds_nand_defconfig | 1 + configs/ls1021aqds_nor_SECURE_BOOT_defconfig| 1 + configs/ls1021aqds_qspi_defconfig | 1 + configs

[U-Boot] [PATCH v2 10/10] gpt: harden set_gpt_info() against non NULL-terminated strings

2017-07-04 Thread alison
From: Alison Chaiken Strings read from devices may sometimes fail to be NULL-terminated. The functions in lib/string.c are subject to failure in this case. Protect against observed failures in set_gpt_info() by switching to length-checking variants with a length limit of the maximum possible

[U-Boot] [PATCH v8 09/10] GPT: provide commands to selectively rename partitions

2017-07-04 Thread alison
From: Alison Chaiken This patch provides support in u-boot for renaming GPT partitions. The renaming is accomplished via new 'gpt swap' and 'gpt rename' commands. The 'swap' mode returns an error if no matching partition names are found, or if the number of par

[U-Boot] [PATCH v8 08/10] GPT: read partition table from device into a data structure

2017-07-04 Thread alison
From: Alison Chaiken Make the partition table available for modification by reading it from the user-specified device into a linked list. Provide an accessor function for command-line testing. Signed-off-by: Alison Chaiken --- cmd/gpt.c | 121

[U-Boot] [PATCH 10/10] gpt: harden set_gpt_info() against non NULL-terminated strings

2017-07-01 Thread alison
From: Alison Chaiken Strings read from devices may sometimes fail to be NULL-terminated. The functions in lib/string.c are subject to failure in this case. Protect against observed failures in set_gpt_info() by switching to length-checking variants with a length limit of the maximum possible

[U-Boot] [PATCH 09/10] GPT: provide commands to selectively rename partitions

2017-07-01 Thread alison
From: Alison Chaiken This patch provides support in u-boot for renaming GPT partitions. The renaming is accomplished via new 'gpt swap' and 'gpt rename' commands. The 'swap' mode returns an error if no matching partition names are found, or if the number of par

[U-Boot] [PATCH v8 8/10] GPT: read partition table from device into a data structure

2017-07-01 Thread alison
From: Alison Chaiken Make the partition table available for modification by reading it from the user-specified device into a linked list. Provide an accessor function for command-line testing. Signed-off-by: Alison Chaiken --- Changes since v7: The failure-handling logic of get_gpt_info

Re: [U-Boot] [PATCH v6 3/3] GPT: provide commands to selectively rename partitions

2017-07-01 Thread Alison Chaiken
On Tue, Jun 27, 2017 at 12:05 AM, Lothar Waßmann wrote: > > Hi, > > On Sun, 25 Jun 2017 14:54:56 -0700 Alison Chaiken wrote: > > On Sun, Jun 18, 2017 at 4:03 AM, Wolfgang Denk wrote: > > > > > Dear Alison, > > > > > > In message > >

[U-Boot] [PATCH v7 9/9] GPT: provide commands to selectively rename partitions

2017-06-25 Thread alison
From: Alison Chaiken This patch provides support in u-boot for renaming GPT partitions. The renaming is accomplished via new 'gpt swap' and 'gpt rename' commands. The 'swap' mode returns an error if no matching partition names are found, or if the number of par

[U-Boot] [PATCH v7 4/9] sandbox: README: fix partition command invocation

2017-06-25 Thread alison
From: Alison Chaiken The instructions for creating a disk image that are presently in README.sandbox fail because sfdisk doesn't know about GPT. Changes since v6: none. Signed-off-by: Alison Chaiken --- board/sandbox/README.sandbox | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[U-Boot] [PATCH v7 5/9] cmd gpt: test in sandbox

2017-06-25 Thread alison
From: Alison Chaiken Make minor changes to README.gpt and sandbox_defconfig to support testing of the gpt command's functionality in the sandbox. Changes since v6: none. Signed-off-by: Alison Chaiken --- doc/README.gpt | 10 ++ 1 file changed, 10 insertions(+) diff --git

[U-Boot] [PATCH v7 6/9] partitions: increase MAX_SEARCH_PARTITIONS and move to part.h

2017-06-25 Thread alison
From: Alison Chaiken Move MAX_SEARCH_PARTITIONS to part.h so that functions in cmd directory can find it. At the same time, increase the value to 64 since some operating systems use many, and the resources consumed by a larger value are minimal. Changes since v6: none. Signed-off-by: Alison

[U-Boot] [PATCH v7 7/9] GPT: add accessor function for disk GUID

2017-06-25 Thread alison
From: Alison Chaiken In order to read the GPT, modify the partition name strings, and then write out a new GPT, the disk GUID is needed. While there is an existing accessor for the partition UUIDs, there is none yet for the disk GUID. Changes since v6: none. Signed-off-by: Alison Chaiken

[U-Boot] [PATCH v7 1/9] EFI: replace number with UUID_STR_LEN macro

2017-06-25 Thread alison
From: Alison Chaiken Changes since v6: none. Signed-off-by: Alison Chaiken --- disk/part_efi.c | 2 +- include/part.h | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/disk/part_efi.c b/disk/part_efi.c index 1b7ba27..20d33ef 100644 --- a/disk/part_efi.c +++ b/disk

[U-Boot] [PATCH v7 9/9] GPT: provide commands to selectively rename partitions

2017-06-25 Thread alison
From: Alison Chaiken This patch provides support in u-boot for renaming GPT partitions. The renaming is accomplished via new 'gpt swap' and 'gpt rename' commands. The 'swap' mode returns an error if no matching partition names are found, or if the number of par

[U-Boot] [PATCH v7 2/9] disk_partition: introduce macros for description string lengths

2017-06-25 Thread alison
From: Alison Chaiken Changes since v6: none. Signed-off-by: Alison Chaiken --- include/part.h | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/include/part.h b/include/part.h index 6ace09f..87b 100644 --- a/include/part.h +++ b/include/part.h @@ -47,12 +47,15

[U-Boot] [PATCH v7 3/9] GPT: fix error in partitions string doc

2017-06-25 Thread alison
From: Alison Chaiken The existing partitions-list parsing in cmd/gpt.c passes a value from gpt_default() to set_gpt_info() that README.gpt suggests should begin with 'partitions='. Partition-list strings should in fact begin with 'uuid_disk', as otherwise the call fr

[U-Boot] [PATCH v7 0/9] add support for GPT partition name manipulation

2017-06-25 Thread alison
From: Alison Chaiken Here is a resubmission of the 9-part patch series, the first 8 of which have already been marked 'applied', 'reviewed', or 'ack'ed' by Lukasz Majewski, Simon Glass or Tom Rini. I'm reposting them all as a set at Tom Rini's sugge

[U-Boot] [PATCH v7 8/9] GPT: read partition table from device into a data structure

2017-06-25 Thread alison
From: Alison Chaiken Make the partition table available for modification by reading it from the user-specified device into a linked list. Provide an accessor function for command-line testing. Change since v6: -- Removed a cast in allocate_disk_part() as suggested by Lothar. Signed-off-by

Re: [U-Boot] [PATCH v6 3/3] GPT: provide commands to selectively rename partitions

2017-06-25 Thread Alison Chaiken
On Sun, Jun 18, 2017 at 4:03 AM, Wolfgang Denk wrote: > Dear Alison, > > In message gmail.com> you wrote: > > > > The idea behind the 'swap' mode is that a storage device can have two > sets > > of partitions, one set all named 'primary'

Re: [U-Boot] [PATCH] arm: ls1021atwr: Add distro boot support

2017-06-14 Thread Alison Wang
Hi, York, > On 05/26/2017 01:01 AM, Alison Wang wrote: > > This patch includes common config_distro_defaults.h and > > config_distro_bootcmd.h for u-boot enviroments to support distro boot > > which automatically scan boot.scr from storage devices(e.g. > > SD/USB/

Re: [U-Boot] [PATCH v6 3/3] GPT: provide commands to selectively rename partitions

2017-06-12 Thread Alison Chaiken
On Mon, Jun 12, 2017 at 12:45 AM, Wolfgang Denk wrote: > Dear Alison, > > In message <1497137617-772-1-git-send-email-ali...@peloton-tech.com> you > wrote: > > > > This patch provides support in u-boot for renaming GPT > > partitions. The renaming is accompli

[U-Boot] [PATCH v7] GPT: provide commands to selectively rename partitions

2017-06-11 Thread alison
From: Alison Chaiken This patch provides support in u-boot for renaming GPT partitions. The renaming is accomplished via new 'gpt swap' and 'gpt rename' commands. The 'swap' mode returns an error if no matching partition names are found, or if the number of par

[U-Boot] [PATCH v6 3/3] GPT: provide commands to selectively rename partitions

2017-06-10 Thread alison
From: Alison Chaiken This patch provides support in u-boot for renaming GPT partitions. The renaming is accomplished via new 'gpt swap' and 'gpt rename' commands. The 'swap' mode prints a warning if no matching partition names are found. If only one matching na

Re: [U-Boot] [PATCH v5 3/3] rename GPT partitions to detect boot failure

2017-06-10 Thread Alison Chaiken
eave more freedom > for the user's creativity. > Lukasz has already made similar suggestions. In the following message is a new version which attempts to implement them. Thanks to Lothar and Lukasz for all their help. Best wishes, Alison Chaiken Peloton Technology ___

[U-Boot] [PATCH v5 3/3] rename GPT partitions to detect boot failure

2017-06-09 Thread alison
From: Alison Chaiken This patch provides support in u-boot for renaming GPT partitions. The renaming is accomplished via a new 'gpt flip' command. The concept for the bootloader state machine is the following: -- u-boot renames ‘primary’ partitions as ‘candidate’ and tries to

[U-Boot] [PATCH v5 2/3] GPT: read partition table from device into a data structure

2017-06-09 Thread alison
From: Alison Chaiken Make the partition table available for modification by reading it from the user-specified device into a linked list. Provide an accessor function for command-line testing. Changes since v4: -- Made do_get_gpt_info() return 0 upon success so that now, in the sandbox, u

[U-Boot] [PATCH v5 1/3] GPT: add accessor function for disk GUID

2017-06-09 Thread alison
From: Alison Chaiken In order to read the GPT, modify the partition name strings, and then write out a new GPT, the disk GUID is needed. While there is an existing accessor for the partition UUIDs, there is none yet for the disk GUID. Changes since v4: -- Made do_disk_guid() return 0 upon

[U-Boot] [PATCH] armv8: Remove duplicate definition for IH_ARCH_ARM and IH_ARCH_ARM64

2017-06-08 Thread Alison Wang
The duplicate definitions for IH_ARCH_ARM and IH_ARCH_ARM64 are removed. The definitions in are used. According to this modification, the comparison between os arch and cpu arch is done in C programming instead of ASM programming. Signed-off-by: Alison Wang --- arch/arm/cpu/armv8/fsl

Re: [U-Boot] [PATCH] armv8: Support loading 32-bit OS which is not in the form of FIT

2017-06-08 Thread Alison Wang
Hi, Tom, > On Tue, Jun 06, 2017 at 03:32:40PM +0800, Alison Wang wrote: > > > As only FIT image is supported now, this patch is to support loading > > 32-bit uImage, dtb and rootfs separately. > > > > Signed-off-by: Alison Wang > > Reviewed-by: Tom Rini

[U-Boot] [PATCH] armv8: Support loading 32-bit OS which is not in the form of FIT

2017-06-06 Thread Alison Wang
As only FIT image is supported now, this patch is to support loading 32-bit uImage, dtb and rootfs separately. Signed-off-by: Alison Wang --- include/image.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/image.h b/include/image.h index 8d380e0..fcfe730 100644

[U-Boot] [PATCH v4 1/5] GPT: read partition table from device into a data structure

2017-06-04 Thread alison
From: Alison Chaiken Make the partition table available for modification by reading it from the user-specified device into a linked list. Provide an accessor function for command-line testing. Changes since v3: Fixed problem with NULL termination of the newly created uuid[] member of the

[U-Boot] [PATCH 4/5] sandbox: README: fix partition command invocation

2017-06-04 Thread alison
From: Alison Chaiken The instructions for creating a disk image that are presently in README.sandbox fail because sfdisk doesn't know about GPT. Signed-off-by: Alison Chaiken --- board/sandbox/README.sandbox | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/sa

[U-Boot] [PATCH v4 3/5] GPT: fix error in partitions string doc

2017-06-04 Thread alison
From: Alison Chaiken The existing partitions-list parsing in cmd/gpt.c passes a value from gpt_default() to set_gpt_info() that README.gpt suggests should begin with 'partitions='. Partition-list strings should in fact begin with 'uuid_disk', as otherwise the call fr

[U-Boot] [PATCH 5/5] cmd gpt: test in sandbox

2017-06-04 Thread alison
From: Alison Chaiken Make minor changes to README.gpt and sandbox_defconfig to support testing of the gpt command's functionality in the sandbox. Signed-off-by: Alison Chaiken --- doc/README.gpt | 10 ++ 1 file changed, 10 insertions(+) diff --git a/doc/README.gpt b/doc/READM

[U-Boot] [PATCH v4 2/5] rename GPT partitions to detect boot failure

2017-06-04 Thread alison
From: Alison Chaiken This patch provides support in u-boot for renaming GPT partitions. The renaming is accomplished via a new 'gpt flip' command. The concept for the bootloader state machine is the following: -- u-boot renames ‘primary’ partitions as ‘candidate’ and tries to

[U-Boot] [PATCH v4 0/5] add support for GPT partition name manipulation

2017-06-04 Thread alison
From: Alison Chaiken One way for userspace and the bootloader to exchange information about dynamic image selection is via the storage device partition table, as described at https://source.android.com/devices/tech/ota/ab_updates The scheme described there relies on setting partitions'

[U-Boot] [PATCH v3 4/5] rename GPT partitions to detect boot failure

2017-06-02 Thread alison
From: Alison Chaiken This patch provides support in u-boot for renaming GPT partitions. The renaming is accomplished via a new 'gpt flip' command. The concept for the bootloader state machine is the following: -- u-boot renames ‘primary’ partitions as ‘candidate’ and tries to

[U-Boot] [PATCH v3 5/5] GPT: fix error in partitions string doc

2017-06-02 Thread alison
From: Alison Chaiken The existing partitions-list parsing in cmd/gpt.c passes a value from gpt_default() to set_gpt_info() that README.gpt suggests should begin with 'partitions='. Partition-list strings should in fact begin with 'uuid_disk', as otherwise the call fr

[U-Boot] [PATCH v3 2/5] partitions: increase MAX_SEARCH_PARTITIONS and move to part.h

2017-06-02 Thread alison
From: Alison Chaiken Move MAX_SEARCH_PARTITIONS to part.h so that functions in cmd directory can find it. At the same time, increase the value to 64 since some operating systems use many, and the resources consumed by a larger value are minimal. Signed-off-by: Alison Chaiken --- disk/part.c

[U-Boot] [PATCH v3 3/5] GPT: read partition table from device into a data structure

2017-06-02 Thread alison
From: Alison Chaiken Make the partition table available for modification by reading it from the user-specified device into a linked list. Provide an accessor function for command-line testing. Signed-off-by: Alison Chaiken --- cmd/gpt.c | 112

[U-Boot] [PATCH v3 1/5] GPT: add accessor function for disk GUID

2017-06-02 Thread alison
From: Alison Chaiken In order to read the GPT, modify the partition name strings, and then write out a new GPT, the disk GUID is needed. While there is an existing accessor for the partition UUIDs, there is none yet for the disk GUID. Signed-off-by: Alison Chaiken --- cmd/gpt.c | 26

[U-Boot] [PATCH v3 0/5] add support for GPT partition name manipulation

2017-06-02 Thread alison
From: Alison Chaiken One way for userspace and the bootloader to exchange information about dynamic image selection is via the storage device partition table, as described at https://source.android.com/devices/tech/ota/ab_updates The scheme described there relies on setting partitions'

Re: [U-Boot] [PATCH v2 5/6] rename GPT partitions to detect boot failure

2017-06-01 Thread Chaiken, Alison
gpt flip mmc 0 which swaps the two name strings for all partitions where they're found. These two operations together with 'gpt write' then cover all the common use cases I can imagine. I'm open to any other suggestions, of course. I just p

Re: [U-Boot] [PATCH v2 5/6] rename GPT partitions to detect boot failure

2017-06-01 Thread Chaiken, Alison
ry to have omitted you, Lukasz, from the original submission, but I consulted an old version of MAINTAINERS from my original 2015.07. -- Alison --- Alison Chaiken ali...@she-devel.com, 650-279-5600 http://{ she-devel.com, exerciseforthereader.org } "We are

Re: [U-Boot] [PATCH v2 4/6] GPT: read partition table from device into a data structure

2017-06-01 Thread Chaiken, Alison
hanks, Alison --- Alison Chaiken ali...@she-devel.com, 650-279-5600 http://{ she-devel.com, exerciseforthereader.org } "We are giving up our privacy, one convenience at a time." -- Evangelos Simoudis ___ U-Boot mail

[U-Boot] [PATCH v2 4/6] GPT: read partition table from device into a data structure

2017-05-29 Thread alison
From: Alison Chaiken Make the partition table available for modification by reading it from the user-specified device into a linked list. Provide an accessor function for command-line testing. Signed-off-by: Alison Chaiken --- cmd/gpt.c | 112

[U-Boot] [PATCH v2 6/6] GPT: fix error in partitions string doc

2017-05-29 Thread alison
From: Alison Chaiken The existing partitions-list parsing in cmd/gpt.c passes a value from gpt_default() to set_gpt_info() that README.gpt suggests should begin with 'partitions='. Partition-list strings should in fact begin with 'uuid_disk', as otherwise the call fr

[U-Boot] [PATCH v2 5/6] rename GPT partitions to detect boot failure

2017-05-29 Thread alison
From: Alison Chaiken This patch provides support in u-boot for renaming GPT partitions. The renaming is accomplished via a new 'gpt flip' command which is enabled via a CONFIG_CMD_GPT_FLIP option. The concept for the bootloader state machine is the following: -- u-boot rename

[U-Boot] [PATCH v2 2/6] disk_partition: introduce macros for description string lengths

2017-05-29 Thread alison
From: Alison Chaiken Signed-off-by: Alison Chaiken --- include/part.h | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/include/part.h b/include/part.h index 6ace09f..87b 100644 --- a/include/part.h +++ b/include/part.h @@ -47,12 +47,15 @@ struct block_drvr

[U-Boot] [PATCH v2 3/6] GPT: add accessor function for disk GUID

2017-05-29 Thread alison
From: Alison Chaiken In order to read the GPT, modify the partition name strings, and then write out a new GPT, the disk GUID is needed. While there is an existing accessor for the partition UUIDs, there is none yet for the disk GUID. Signed-off-by: Alison Chaiken --- cmd/gpt.c | 30

[U-Boot] [PATCH v2 1/6] EFI: replace number with UUID_STR_LEN macro

2017-05-29 Thread alison
From: Alison Chaiken Signed-off-by: Alison Chaiken --- disk/part_efi.c | 2 +- include/part.h | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/disk/part_efi.c b/disk/part_efi.c index 1b7ba27..20d33ef 100644 --- a/disk/part_efi.c +++ b/disk/part_efi.c @@ -183,7 +183,7

[U-Boot] [PATCH v2 0/6] add support for GPT partition name manipulation

2017-05-29 Thread alison
From: Alison Chaiken One way for userspace and the bootloader to exchange information about dynamic image selection is via the storage device partition table, as described at https://source.android.com/devices/tech/ota/ab_updates The scheme described there relies on setting partitions'

[U-Boot] [PATCH] arm: ls1021atwr: Add distro boot support

2017-05-26 Thread Alison Wang
-off-by: Alison Wang --- configs/ls1021atwr_nor_defconfig | 1 + configs/ls1021atwr_sdcard_ifc_defconfig | 1 + configs/ls1021atwr_sdcard_qspi_defconfig | 1 + include/configs/ls1021atwr.h | 81 ++-- 4 files changed, 81 insertions(+), 3 deletions

[U-Boot] [PATCH 3/3] rename GPT partitions to detect boot failure

2017-05-21 Thread alison
From: Alison Chaiken This patch provides support in u-boot for renaming GPT partitions. The renaming is accomplished via a new 'gpt flip' command. The concept for the bootloader state machine is the following: -- u-boot renames ‘primary’ partitions as ‘candidate’ and tries to

[U-Boot] [PATCH 2/3] GPT: read partition table from device into a data structure

2017-05-21 Thread alison
From: Alison Chaiken Make the partition table available for modification by reading it from the user-specified device into a linked list. Provide an accessor function for command-line testing. Signed-off-by: Alison Chaiken --- cmd/gpt.c | 113

[U-Boot] [PATCH 1/3] GPT: add accessor function for disk GUID

2017-05-21 Thread alison
From: Alison Chaiken In order to read the GPT, modify the partition name strings, and then write out a new GPT, the disk GUID is needed. While there is an existing accessor for the partition UUIDs, there is none yet for the disk GUID. Signed-off-by: Alison Chaiken --- cmd/gpt.c | 29

[U-Boot] [PATCH 0/3] add support for GPT partition name manipulation

2017-05-21 Thread alison
From: Alison Chaiken One way for userspace and the bootloader to exchange information about dynamic image selection is via the storage device partition table, as described at https://source.android.com/devices/tech/ota/ab_updates The scheme described there relies on setting partitions'

Re: [U-Boot] [PATCH 2/3] armv8: layerscape: Adjust memory mapping for Flash/SD card on LS1043A

2017-05-15 Thread Alison Wang
On 04/27/2017 01:08 AM, Alison Wang wrote: > This patch is to adjust the memory mapping for FLash/SD card on > LS1043AQDS and LS1043ARDB, such as PPA firmware load address, FMAN > firmware load address, QE firmware load address, U-Boot start address > on serial flash and environ

[U-Boot] [PATCH v2 1/3] arm: ls1021a: Adjust memory mapping for Flash/SD card on LS1021AQDS/TWR

2017-05-15 Thread Alison Wang
This patch is to adjust the memory mapping for FLash/SD card on LS1021AQDS and LS1021ATWR, such as U-Boot start address on serial Flash, QE firmware load address and environment address. Signed-off-by: Alison Wang --- Changes: - None include/configs/ls1021aqds.h | 10 +- include

[U-Boot] [PATCH v3 3/3] armv8: layerscape: Adjust memory mapping for Flash/SD card on LS1046A

2017-05-15 Thread Alison Wang
This patch is to adjust the memory mapping for FLash/SD card on LS1046AQDS and LS1046ARDB, such as FMAN firmware load address, U-Boot start address on serial flash and environment address. Signed-off-by: Alison Wang --- Changes: - Update the comments and README. board/freescale/ls1046ardb

[U-Boot] [PATCH v2 2/3] armv8: layerscape: Adjust memory mapping for Flash/SD card on LS1043A

2017-05-15 Thread Alison Wang
This patch is to adjust the memory mapping for FLash/SD card on LS1043AQDS and LS1043ARDB, such as PPA firmware load address, FMAN firmware load address, QE firmware load address, U-Boot start address on serial flash and environment address. Signed-off-by: Alison Wang --- Changes: - Update the

[U-Boot] [PATCH 3/3] armv8: layerscape: Adjust memory mapping for Flash/SD card on LS1046A

2017-04-27 Thread Alison Wang
This patch is to adjust the memory mapping for FLash/SD card on LS1046AQDS and LS1046ARDB, such as FMAN firmware load address, U-Boot start address on serial flash and environment address. Signed-off-by: Alison Wang --- include/configs/ls1046a_common.h | 8 include/configs

  1   2   3   4   5   >