[U-Boot] [PATCH v2 3/3] efi_selftest: test writing to file

2018-05-27 Thread Heinrich Schuchardt
Provide a unit test for writing to a FAT file system. Add some additional comments in block device unit test. Signed-off-by: Heinrich Schuchardt --- v2 Avoid use after free due to calling root->close(root) too often. --- lib/efi_selftest/efi_selftest_block_device.c |

[U-Boot] [PATCH v2 1/3] fs: fat: cannot write to subdirectories

2018-05-27 Thread Heinrich Schuchardt
fs_fat_write() is not able to write to subdirectories. Currently if a filepath with a leading slash is passed, the slash is treated as part of the filename to be created in the root directory. Strip leading (back-)slashes. Check that the remaining filename does not contain any illegal

Re: [U-Boot] Parallel make issue with helloworld.efi

2018-05-27 Thread Heinrich Schuchardt
On 11/07/2017 04:57 PM, Tuomas Tynkkynen wrote: > Hi, > > Every now and then I see parallel builds failing, e.g. with > Linksprite_pcDuino3_Nano_defconfig: > >   CC  lib/efi_loader/efi_bootmgr.o >   CC  lib/efi_loader/efi_disk.o >   CC  lib/efi_loader/efi_net.o > make[2]: *** No rule

[U-Boot] Initialization of TI AM335x MII connected to Marvell's 88e6341 switch

2018-05-27 Thread Avner Flesch
Hi, I have costume board based on Beagle Bone Black board except the networking - instead of Ethernet PHY, we put a Marvell switch 88e6341 (The CPU port connected with MII). So, I need the u-boot source modification for it If someone can point me to a reference or send me the files, I will

Re: [U-Boot] RFC: Alternative boot_jump_linux() function

2018-05-27 Thread Nicolas Dechesne
Ramon, Tom, On Sat, May 26, 2018 at 7:58 AM, Ramon Fried wrote: > On Sat, May 26, 2018 at 5:18 AM, Tom Rini wrote: > > On Fri, May 25, 2018 at 05:41:31PM +0300, Ramon Fried wrote: > >> On Fri, May 25, 2018 at 3:11 PM, Tom Rini

[U-Boot] [PATCH v2 2/3] efi_selftest: imply FAT, FAT_WRITE

2018-05-27 Thread Heinrich Schuchardt
efi_selftest_block_device accesses a FAT file system. Signed-off-by: Heinrich Schuchardt --- lib/efi_selftest/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/efi_selftest/Kconfig b/lib/efi_selftest/Kconfig index 3b5f3a1230b..59f9f36801c 100644 ---

[U-Boot] [PATCH v2 0/3] efi_loader: allow writing to FAT

2018-05-27 Thread Heinrich Schuchardt
Running the UEFI Self-Certifcation Test (SCT) will require to support writing to a FAT file system. Writing to the FAT root directory from EFI fails because the leading slash of the file path is interpreted as part of the filename. With the 1st patch we can write to the root directory. A unit

Re: [U-Boot] [PATCH v2 1/2] sunxi-mmc: use new mode on A64

2018-05-27 Thread Jagan Teki
On Mon, May 14, 2018 at 8:57 PM, Vasily Khoruzhick wrote: > That is necessary for using automatic calibration on A64 eMMC. > > Signed-off-by: Vasily khoruzhick > --- > arch/arm/mach-sunxi/Kconfig | 1 + > drivers/mmc/sunxi_mmc.c | 2 +- > 2 files

Re: [U-Boot] env: mmc: Fix misaligned buffer address when saving envvars to FAT

2018-05-27 Thread Tom Rini
On Thu, May 17, 2018 at 01:19:41PM +0530, Vipul Kumar wrote: > From: Gary Mussar > > When doing a u-boot saveenv with the environment in FAT we see the > following warning: > > ZynqMP> saveenv > Saving Environment to FAT... > writing uboot.env > FAT: Misaligned buffer

Re: [U-Boot] [U-Boot, v4, 09/32] tpm: prepare introduction of TPMv2.x support in Kconfig

2018-05-27 Thread Miquel Raynal
Hi Tom, On Sat, 26 May 2018 11:54:29 -0400, Tom Rini wrote: > On Tue, May 15, 2018 at 11:57:05AM +0200, Miquel Raynal wrote: > > > Because both major revisions are not compatible at all, let's make them > > mutually exclusive in Kconfig. This way we will be sure, when using

Re: [U-Boot] [PATCH 6/6] common: iotrace: fix behaviour when buffer is full

2018-05-27 Thread Ramon Fried
On Sun, May 27, 2018 at 1:18 AM, Simon Glass wrote: > Hi Ramon, > > On 26 May 2018 at 00:05, Ramon Fried wrote: >> On Sat, May 26, 2018 at 5:07 AM, Simon Glass wrote: >>> Hi Ramon, >>> >>> On 25 May 2018 at 04:41, Ramon Fried

Re: [U-Boot] [PATCH] patman: add option for limiting the Cc list

2018-05-27 Thread Chris Packham
On Sun, 27 May 2018, 12:53 PM Simon Glass, wrote: > Hi Chris, > > On 26 May 2018 at 17:10, Chris Packham wrote: > > Many mailing-lists consider a long Cc list a sign of spam and will > > either drop the message or mark it for moderation. Because

[U-Boot] [PATCH v2] patman: add option for limiting the Cc list

2018-05-27 Thread Chris Packham
Many mailing-lists consider a long Cc list a sign of spam and will either drop the message or mark it for moderation. Because patman automatically invokes get_maintainer.pl the Cc list can expand unexpectedly. Allow the user to specify a limit for the Cc list. This limit is applied after removing

Re: [U-Boot] [PATCH v2 1/2] drivers; add DM_NO_OF Kconfig option

2018-05-27 Thread Angelo Dureghello
Hi Simon, On Sat, May 26, 2018 at 04:18:57PM -0600, Simon Glass wrote: > Hi Angelo, > > On 3 May 2018 at 16:01, Angelo Dureghello wrote: > > To be able to build spi driver with DM support, a new config > > option has been introduced (DM_NO_OF) since m68k architecture > > does

Re: [U-Boot] [PATCH 1/1] efi_loader: efi_allocate_pages is too restrictive

2018-05-27 Thread Heinrich Schuchardt
On 03/12/2018 11:48 AM, Alexander Graf wrote: > On 03/09/2018 05:35 PM, Heinrich Schuchardt wrote: >> On 03/09/2018 05:19 PM, Alexander Graf wrote: >>> On 03/09/2018 04:58 PM, Heinrich Schuchardt wrote: On 03/09/2018 01:48 PM, Alexander Graf wrote: > On 03/03/2018 03:48 PM, Heinrich

Re: [U-Boot] [PATCH v2 1/2] drivers; add DM_NO_OF Kconfig option

2018-05-27 Thread Simon Glass
+Tom Hi Angelo, On 27 May 2018 at 01:22, Angelo Dureghello wrote: > Hi Simon, > > On Sat, May 26, 2018 at 04:18:57PM -0600, Simon Glass wrote: >> Hi Angelo, >> >> On 3 May 2018 at 16:01, Angelo Dureghello wrote: >> > To be able to build spi driver with DM

Re: [U-Boot] [PATCH 6/6] common: iotrace: fix behaviour when buffer is full

2018-05-27 Thread Simon Glass
Hi Ramon, On 27 May 2018 at 02:35, Ramon Fried wrote: > On Sun, May 27, 2018 at 1:18 AM, Simon Glass wrote: >> Hi Ramon, >> >> On 26 May 2018 at 00:05, Ramon Fried wrote: >>> On Sat, May 26, 2018 at 5:07 AM, Simon Glass

Re: [U-Boot] [PATCH v2] patman: add option for limiting the Cc list

2018-05-27 Thread Simon Glass
On 27 May 2018 at 03:52, Chris Packham wrote: > Many mailing-lists consider a long Cc list a sign of spam and will > either drop the message or mark it for moderation. Because patman > automatically invokes get_maintainer.pl the Cc list can expand > unexpectedly. Allow

[U-Boot] [PATCH 1/1] efi_loader: create handles from normal memory

2018-05-27 Thread Heinrich Schuchardt
Handles are not used at runtime. They are freed by the firmware when the last protocol interface is uninstalled. So there is no reason to use EFI memory when creating handles. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_boottime.c | 13 ++--- 1 file

[U-Boot] [PATCH] arm: mvebu: move i2c slave disable to generic SPL code

2018-05-27 Thread Baruch Siach
The hidden i2c slave that interferes the i2c bus is not board specific. All Armada 38x SoCs are affected. Move the code disabling this slave to generic code to make it work on all affected hardware. Cc: Marek Behún Cc: Rabeeh Khoury Signed-off-by:

[U-Boot] [PATCH] mvebu: a38x: Force receiver detected on PCIe lanes

2018-05-27 Thread Baruch Siach
From: Rabeeh Khoury Some QCA988x based modules presence is not detected by the SERDES lanes, so force this detection which will trigger the LTSSM state machine to negotiate link. An example of such a card is WLE900VX. Signed-off-by: Rabeeh Khoury

[U-Boot] [PATCH 1/1] Remove snapshot.commit

2018-05-27 Thread Heinrich Schuchardt
The file is not referenced anywhere. To display a change log we have the 'git log' command. Signed-off-by: Heinrich Schuchardt --- snapshot.commit | 1 - 1 file changed, 1 deletion(-) delete mode 100644 snapshot.commit diff --git a/snapshot.commit b/snapshot.commit deleted

Re: [U-Boot] Parallel make issue with helloworld.efi

2018-05-27 Thread Tuomas Tynkkynen
Hi Heinrich, Thanks for taking a look. On 05/27/2018 08:11 PM, Heinrich Schuchardt wrote: On 11/07/2017 04:57 PM, Tuomas Tynkkynen wrote: Hi, Every now and then I see parallel builds failing, e.g. with Linksprite_pcDuino3_Nano_defconfig:   CC  lib/efi_loader/efi_bootmgr.o   CC 

Re: [U-Boot] [PATCH v1] rockchip: utilize CONFIG_DEFAULT_FDT_FILE

2018-05-27 Thread Vagrant Cascadian
On 2018-05-25, Klaus Goger wrote: > Currently the fdtfile environment variable is set to > CONFIG_DEFAULT_DEVICE_TREE which is іnternally used as U-Boot devicetree > source. The OS can use a different filename and Kconfig gives us the > ability to select a default devicetree via

Re: [U-Boot] [PATCH v1] rockchip: utilize CONFIG_DEFAULT_FDT_FILE

2018-05-27 Thread klaus . goger
> On 27.05.2018, at 21:16, Vagrant Cascadian wrote: > > On 2018-05-25, Klaus Goger wrote: >> Currently the fdtfile environment variable is set to >> CONFIG_DEFAULT_DEVICE_TREE which is іnternally used as U-Boot devicetree >> source. The OS can use a different filename and

[U-Boot] [PATCH 1/1] efi_loader: avoid make race condition

2018-05-27 Thread Heinrich Schuchardt
When building .efi targets a race condition was observed: If %_efi.so is not yet built before trying to build %.efi and error *** No rule to make target '%.efi' occurs. By explicitly adding %_efi.so to the targets this is avoided. Reported-by: Tuomas Tynkkynen

[U-Boot] [PATCH 1/1] efi_loader: efi_mem_carve_out should return s64

2018-05-27 Thread Heinrich Schuchardt
efi_mem_carve_out() is used to remove memory pages from a mapping. As the number of pages to be removed is a 64bit type the return type should be 64bit too. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_memory.c | 32 ++-- 1 file