[U-Boot] [PATCH 1/4] efi_loader: EFI_FILE_PROTOCOL.Write() check args

2019-09-07 Thread Heinrich Schuchardt
Check the parameters passed to Write(): * cannot write to directories (UEFI SCT 2017, 5.7.3.5.15) * cannot write to file opened read only (UEFI SCT 2017, 5.7.3.5.16) Add missing comments. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_file.c | 51

[U-Boot] [PATCH 3/4] efi_loader: correct reading of directories

2019-09-07 Thread Heinrich Schuchardt
EFI_FILE_PROTOCOL.Read() is used both to read files and directories. When reaching the end of a directory we always have to return buffer size zero irrespective of the incoming buffer size. (The described scenario for a Shim quirk cannot arise because every directory has at least '.' and '..' as

[U-Boot] [PATCH 2/4] efi_loader: eliminate inline function ascii2unicode()

2019-09-07 Thread Heinrich Schuchardt
ascii2unicode() can only convert characters 0x00-0x7f from UTF-8 to UTF-16. Use utf8_utf16_strcpy() instead. Signed-off-by: Heinrich Schuchardt --- include/efi_loader.h | 16 lib/efi_loader/efi_device_path_to_text.c | 10 +- lib/efi_loader/efi_file.c

[U-Boot] [PATCH 4/4] efi_loader: file size checks

2019-09-07 Thread Heinrich Schuchardt
The file size has to be determined in multiple places. Factor out a common function. If on entry into EFI_FILE_PROTOCOL.Read() the current position is beyond the end of the file, return EFI_DEVICE_ERROR. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_file.c | 69

[U-Boot] [PATCH 0/4] fixes for EFI_FILE_PROTOCOL

2019-09-07 Thread Heinrich Schuchardt
This series fixes problems in the EFI_FILE_PROTOCOL: * parameter checks for EFI_FILE_PROTOCOL.Write() * correct handling of directories in EFI_FILE_PROTOCOL.READ() * correct conversion of UTF-8 into UTF-16 * file position check in EFI_FILE_PROTOCOL.READ() Heinrich Schuchardt (4): efi_loader:

Re: [U-Boot] [RFC] FAT errors

2019-09-07 Thread Heinrich Schuchardt
On 9/5/19 10:37 AM, AKASHI Takahiro wrote: On Thu, Sep 05, 2019 at 08:43:43AM +0200, Heinrich Schuchardt wrote: Currently we do no have a maintainer for the FAT file system. Takahiro has done a great job fixing some of the most prominent deficiencies. But still the driver is not in good shape:

Re: [U-Boot] [PATCH] Revert "spi: Kconfig: Mark MXS_SPI has DEPRECATED"

2019-09-07 Thread Lukasz Majewski
Hi Tom, Jagan, > On Sat, Sep 07, 2019 at 09:06:39AM +0530, Jagan Teki wrote: > > On Sat, Sep 7, 2019 at 4:32 AM Tom Rini wrote: > > > > > > > > On Fri, Sep 06, 2019 at 11:32:46PM +0200, Lukasz Majewski wrote: > > > > Hi Jagan, > > > > > > > > > On Thu, Aug 1, 2019 at 9:27 PM Lukasz

Re: [U-Boot] [GIT PULL] rpi: updates for v2019.10

2019-09-07 Thread Tom Rini
On Fri, Sep 06, 2019 at 06:41:09PM +0200, Matthias Brugger wrote: > Hi Tom, > > Please have a look on the following updates for Raspberry Pi. > Especially we introduce basic RPi4 support \o/ > > I did some mistake while creating the tag, so I had to fix the rebase and > overwrite the tag.

[U-Boot] [PULL] u-boot-sh/master

2019-09-07 Thread Marek Vasut
The following changes since commit d22c8be964a870f59d2fdab6c67cefa0c4799364: Merge branch 'master' of git://git.denx.de/u-boot-sh (2019-09-01 13:33:12 -0400) are available in the Git repository at: git://git.denx.de/u-boot-sh.git master for you to fetch changes up to

Re: [U-Boot] [PATCH 1/1] MTD: SPI: revert removing SST26* flash IC protection ops

2019-09-07 Thread Tom Rini
On Sat, Sep 07, 2019 at 09:10:39AM +0530, Jagan Teki wrote: > On Wed, Sep 4, 2019 at 11:37 PM Eugeniy Paltsev > wrote: > > > > Commit c4e8862308d4 (mtd: spi: Switch to new SPI NOR framework) > > performs switch from previous 'spi_flash' infrastructure without > > proper testing/investigations

Re: [U-Boot] [PATCH] Revert "spi: Kconfig: Mark MXS_SPI has DEPRECATED"

2019-09-07 Thread Tom Rini
On Sat, Sep 07, 2019 at 09:06:39AM +0530, Jagan Teki wrote: > On Sat, Sep 7, 2019 at 4:32 AM Tom Rini wrote: > > > > On Fri, Sep 06, 2019 at 11:32:46PM +0200, Lukasz Majewski wrote: > > > Hi Jagan, > > > > > > > On Thu, Aug 1, 2019 at 9:27 PM Lukasz Majewski wrote: > > > > > > > > > > This

Re: [U-Boot] [PATCH] env: Add CONFIG_ENV_SUPPORT

2019-09-07 Thread Wolfgang Denk
Dear Patrick, In message <1567530547-14331-1-git-send-email-patrick.delau...@st.com> you wrote: > Add a new flag CONFIG_ENV_SUPPORT to compile all > the environment features in U-Boot (attributes, callbacks > and flags). It is the equivalent of the 2 existing flags I think this is a bda name,