[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 partitions with one name does not equ

[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 > > gmail.com> you wrote: > > > > > > > > The idea behind the 'swa

Re: [U-Boot] [PATCH] mx6cuboxi: Add support for sata

2017-07-01 Thread Fabio Estevam
On Sat, Jul 1, 2017 at 2:44 PM, Peter Robinson wrote: > The Cubox-i and Hummingboard series of devices have an option of > SATA on board, and depending on how the fuses are blown even the > option to boot SPL from SATA. So enable support for it so it can > be used to boot the OS from if people des

[U-Boot] [PATCH] mx6cuboxi: Add support for sata

2017-07-01 Thread Peter Robinson
The Cubox-i and Hummingboard series of devices have an option of SATA on board, and depending on how the fuses are blown even the option to boot SPL from SATA. So enable support for it so it can be used to boot the OS from if people desire. Cc: Fabio Estevam Signed-off-by: Peter Robinson --- bo

Re: [U-Boot] [PATCH 03/16] usb: Remove unnecessary work in usb_setup_descriptor()

2017-07-01 Thread stefan.bruens
On Freitag, 30. Juni 2017 05:49:56 CEST Bin Meng wrote: > Hi, > > On Fri, Jun 23, 2017 at 5:54 PM, Bin Meng wrote: > > The only work we need do in usb_setup_descriptor() is to initialize > > dev->descriptor.bMaxPacketSize0, when do_read is false. Other steps > > are the same as do_read being true

[U-Boot] [PATCH] stm32: Correct positioning of declaration

2017-07-01 Thread Simon Glass
The current code gives a warning: arch/arm/mach-stm32/stm32f7/soc.c: In function 'arch_cpu_init': arch/arm/mach-stm32/stm32f7/soc.c:38:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode for (int i = 0; i < ARRAY_SIZE(stm32_region_config); i++) ^ arch/arm/mach-stm

Re: [U-Boot] [PATCH v2 1/1] mx7sabresd: Set VLD04 output to 2.8V in PMIC initialization.

2017-07-01 Thread Fabio Estevam
Hi Gautam, On Sat, Jul 1, 2017 at 3:56 AM, Gautam Bhat wrote: > This change sets the VLDO4 settings output to 2.8V in PMIC > initialization so that the MIPI DSI/CSI input voltage is 2.8V > as per the schematics. The original code provides an output of > 3.3V which violates the voltage mentioned i

Re: [U-Boot] [PATCH 5/5] fit: Introduce methods for applying overlays on fit-load

2017-07-01 Thread Marek Vasut
On 06/30/2017 06:23 PM, Pantelis Antoniou wrote: > Introduce an overlay based method for constructing a base DT blob > to pass to the kernel. > > Both canned and runtime feature selection is supported. > > Signed-off-by: Pantelis Antoniou [...] > @@ -1475,29 +1482,58 @@ int fit_conf_get_node(c

Re: [U-Boot] [PATCH 3/5] fdt: Allow stacked overlays phandle references

2017-07-01 Thread Marek Vasut
On 06/30/2017 06:23 PM, Pantelis Antoniou wrote: [...] > +static int overlay_symbol_update(void *fdt, void *fdto) > +{ > + int root_sym, ov_sym, prop, path_len, fragment, target; > + int len, frag_name_len, ret, rel_path_len; > + const char *s; > + const char *path; > + const

Re: [U-Boot] [PATCH 2/5] libfdt_env.h: Add in libfdt environment

2017-07-01 Thread Marek Vasut
On 06/30/2017 06:22 PM, Pantelis Antoniou wrote: > Overlays require malloc so add it in the libfdt environment. Include this where it's actually used, not in some header. > Signed-off-by: Pantelis Antoniou > --- > include/libfdt_env.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/in

Re: [U-Boot] [PATCH 1/5] libfdt.h: Introduce FDT_PATH_MAX

2017-07-01 Thread Marek Vasut
On 06/30/2017 06:22 PM, Pantelis Antoniou wrote: > Introduce FDT_PATH_MAX Because ... why ? The commit message is crap, please fix. > Signed-off-by: Pantelis Antoniou > --- > lib/libfdt/libfdt.h | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/lib/libfdt/libfdt.h b/lib/libfdt/libfdt

[U-Boot] Pull request: efi_loader: check CreateEvent() parameters

2017-07-01 Thread Heinrich Schuchardt
Dear Tom, could you, please, consider pulling [U-Boot,1/2] efi_loader: run CreateEvent() notify function based on flags https://patchwork.ozlabs.org/patch/737793/ [U-Boot,2/2] efi_loader: check CreateEvent() parameters https://patchwork.ozlabs.org/patch/737794/ I have reviewed the patches and t