[U-Boot] [GIT] Pull request: u-boot-dfu (24.11.2018)

2018-11-24 Thread Lukasz Majewski
Dear Marek, The following changes since commit 5830791d91d1200854ef78fcb32f808c8080f0f0: Merge tag 'pull-tg18' of git://git.denx.de/u-boot-dm (2018-11-23 17:25:27 -0500) are available in the git repository at: git://git.denx.de/u-boot-dfu.git for you to fetch changes up to

Re: [U-Boot] [PATCH 08/21] sandbox: Allow running from valgrind

2018-11-24 Thread Alexander Graf
On 24.11.18 05:29, Simon Glass wrote: > It is useful to run sandbox from valgrind to find memory errors, etc. At > present this works OK until U-Boot jumps into the next phase (e.g. from > SPL to U-Boot). Update os_jump_to_file() to use valgrind for each > subsequent phase also. > >

Re: [U-Boot] [PATCH v15 1/4] sandbox: smbios: Update to support sandbox

2018-11-24 Thread Alexander Graf
On 22.11.18 21:46, Simon Glass wrote: > At present this code casts addresses to pointers so cannot be used with > sandbox. Update it to use mapmem instead. > > Signed-off-by: Simon Glass The patch looks good to me now. I can't apply it right now because patchwork is down though :/. Alex

Re: [U-Boot] [PATCH v15 4/4] efi: Rename bootefi_test_finish() to bootefi_run_finish()

2018-11-24 Thread Alexander Graf
On 22.11.18 21:46, Simon Glass wrote: > This function can be used from do_bootefi_exec() so that we use mostly the > same code for a normal EFI application and an EFI test. > > Rename the function and use it in both places. > > Signed-off-by: Simon Glass > --- > > Changes in v15: > - Add a

Re: [U-Boot] [PATCH 70/93] arm: Remove ap121 board

2018-11-24 Thread Tom Rini
On Sat, Nov 24, 2018 at 12:42:21PM -0700, Simon Glass wrote: > Hi Tom, > > On Thu, 22 Nov 2018 at 16:23, Tom Rini wrote: > > > > On Thu, Nov 22, 2018 at 01:50:08PM -0700, Simon Glass wrote: > > > Hi Daniel, > > > > > > On Wed, 21 Nov 2018 at 17:47, Daniel Schwierzeck > > > wrote: > > > > > > >

Re: [U-Boot] [PATCH 1/3] Makefile: Add a warning for boards that don't use CONFIG_BLK

2018-11-24 Thread Tom Rini
On Sat, Nov 24, 2018 at 12:42:15PM -0700, Simon Glass wrote: > Hi Tom, > > On Thu, 22 Nov 2018 at 16:16, Tom Rini wrote: > > > > On Thu, Nov 22, 2018 at 01:09:16PM -0700, Simon Glass wrote: > > > > > The deadline for this has passed and we are starting to remove boards that > > > do not use

Re: [U-Boot] [PATCH 1/3] Makefile: Add a warning for boards that don't use CONFIG_BLK

2018-11-24 Thread Simon Glass
Hi Tom, On Thu, 22 Nov 2018 at 16:16, Tom Rini wrote: > > On Thu, Nov 22, 2018 at 01:09:16PM -0700, Simon Glass wrote: > > > The deadline for this has passed and we are starting to remove boards that > > do not use driver model for block devices. > > > > Add a noisy Makefile warning. > > > >

Re: [U-Boot] [PATCH 70/93] arm: Remove ap121 board

2018-11-24 Thread Simon Glass
Hi Tom, On Thu, 22 Nov 2018 at 16:23, Tom Rini wrote: > > On Thu, Nov 22, 2018 at 01:50:08PM -0700, Simon Glass wrote: > > Hi Daniel, > > > > On Wed, 21 Nov 2018 at 17:47, Daniel Schwierzeck > > wrote: > > > > > > Hi Simon, > > > > > > Am 19.11.18 um 16:53 schrieb Simon Glass: > > > > This

Re: [U-Boot] [PATCH 00/93] dm: Move towards completing CONFIG_BLK migration

2018-11-24 Thread Simon Glass
Hi Tom, On Fri, 23 Nov 2018 at 12:38, Tom Rini wrote: > > On Fri, Nov 23, 2018 at 05:04:46AM -0700, Simon Glass wrote: > > Hi Tom, > > > > On Thu, 22 Nov 2018 at 16:31, Tom Rini wrote: > > > > > > On Thu, Nov 22, 2018 at 01:50:34PM -0700, Simon Glass wrote: > > > > Hi Tom, > > > > > > > > On

Re: [U-Boot] [PATCH] arm: socfpga: crc-protect SPL on warm boot

2018-11-24 Thread Simon Goldschmidt
On 21.11.2018 15:08, Marek Vasut wrote: On 11/21/2018 06:09 AM, Simon Goldschmidt wrote: Am Mi., 21. Nov. 2018, 00:11 hat Marek Vasut mailto:ma...@denx.de>> geschrieben: On 11/20/2018 09:54 PM, Simon Goldschmidt wrote: > On 20.11.2018 20:33, Marek Vasut wrote: >> On 11/20/2018

Re: [U-Boot] [PATCH 2/2] net: designware: clear padding bytes

2018-11-24 Thread Simon Goldschmidt
On 17.11.2018 17:03, Joe Hershberger wrote: On Sat, Nov 17, 2018 at 3:26 AM Simon Goldschmidt wrote: Short frames are padded to the minimum allowed size of 60 bytes. However, the designware driver sends old data in these padding bytes. It is common practice to zero out these padding bytes ro

Re: [U-Boot] [PATCH v15 2/4] efi: Split out test init/uninit into functions

2018-11-24 Thread Simon Glass
Hi Heinrich, On Fri, 23 Nov 2018 at 16:23, Heinrich Schuchardt wrote: > > On 11/22/18 9:46 PM, Simon Glass wrote: > > The functions in bootefi are very long because they mix high-level code > > and control with the low-level implementation. To help with this, create > > functions which handle

Re: [U-Boot] [PATCH] RFC: checkpatch: Add a check for tests needed for uclasses

2018-11-24 Thread Simon Glass
Hi Heinrich, On Fri, 23 Nov 2018 at 01:28, Heinrich Schuchardt wrote: > > On 11/22/18 9:50 PM, Simon Glass wrote: > > Hi Heinrich, > > > > On Wed, 21 Nov 2018 at 07:35, Heinrich Schuchardt > > wrote: > >> > >> On 11/18/18 4:16 PM, Simon Glass wrote: > >>> This is an experimental check for

Re: [U-Boot] [PATCH v14 0/4] efi_loader: Code refactoring and improvement

2018-11-24 Thread Simon Glass
Hi Heinrich, On Mon, 19 Nov 2018 at 12:46, Heinrich Schuchardt wrote: > > On 11/19/18 2:49 AM, Simon Glass wrote: > > Hi Heinrich, > > > > On Sun, 18 Nov 2018 at 08:20, Simon Glass wrote: > >> > >> Hi Alex, > >> > >> On Wed, 14 Nov 2018 at 16:11, Simon Glass wrote: > >>> > >>> This collects

Re: [U-Boot] [PATCH v14 4/4] efi: Rename bootefi_test_finish() to bootefi_run_finish()

2018-11-24 Thread Simon Glass
Hi Heinrich, On Fri, 23 Nov 2018 at 00:53, Heinrich Schuchardt wrote: > > On 11/22/18 9:50 PM, Simon Glass wrote: > > Hi Heinrich, > > > > On Mon, 19 Nov 2018 at 12:41, Heinrich Schuchardt > > wrote: > >> > >> On 11/15/18 12:11 AM, Simon Glass wrote: > >>> This function can be used from

Re: [U-Boot] [PATCH v2 2/3] Only attempt to build USB driver model in SPL when required

2018-11-24 Thread Marek Vasut
On 11/23/2018 05:47 PM, Martyn Welch wrote: > Current define usage causes tooling to attempt to build for USB driver > model when building non-DM SPL. Update logic to avoid this. > > Signed-off-by: Martyn Welch > > --- Isn't this exact problem fixed in u-boot-usb/master ? -- Best regards,

Re: [U-Boot] [PATCH] x86: tsc: Add support for APL soc

2018-11-24 Thread Christian Gmeiner
Hi all. Starting with Monday I have access to an APL system (where I need to get coreboot running on). Maybe I can provide some additional information. Am Sa., 24. Nov. 2018, 16:39 hat Bin Meng geschrieben: > Hi Bernhard, > > On Fri, Nov 23, 2018 at 5:13 PM Bernhard Messerklinger > wrote: > >

Re: [U-Boot] [PATCH] x86: tsc: Add support for APL soc

2018-11-24 Thread Bin Meng
Hi Bernhard, On Fri, Nov 23, 2018 at 5:13 PM Bernhard Messerklinger wrote: > > Hi Bin, > > > Missing commit message > I will fix this. > > > > APL means ApolloLake? Could you please spell it out? > I will fix this. > > > > > Signed-off-by: Bernhard Messerklinger > automation.com> > > > --- > >

Re: [U-Boot] [PATCH v2] net: e1000: support 'write_hwaddr' in DM

2018-11-24 Thread Bin Meng
Hi Hannes, On Fri, Nov 23, 2018 at 3:34 PM Hannes Schmelzer wrote: > > > > On 30.10.2018 13:06, Hannes Schmelzer wrote: > > > > On 10/30/2018 09:13 AM, Bin Meng wrote: > >> On Thu, Oct 25, 2018 at 10:25 PM Hannes Schmelzer > >> wrote: > >>> This commit ports the existing (non-DM) function for

Re: [U-Boot] [PATCH] x86/bootm: fix compressed image boot

2018-11-24 Thread Bin Meng
Hi Hannes, On Fri, Nov 23, 2018 at 2:50 PM Hannes Schmelzer wrote: > > > > On 20.11.2018 16:34, Bin Meng wrote: > > Hi Hannes, > Hi Bin, > thanks for having a look into and sorry for my late response. > > > > > On Thu, Oct 11, 2018 at 2:41 PM Hannes Schmelzer > > wrote: > >> > >> On 11.10.2018

Re: [U-Boot] [U-Boot, v2, 1/2] rockchip: add support for veyron-speedy (ASUS Chromebook C201)

2018-11-24 Thread Marty E. Plummer
On Tue, Nov 13, 2018 at 01:35:48PM -0800, Simon Glass wrote: > Hi, > > On 13 November 2018 at 11:58, Vagrant Cascadian wrote: > > On 2018-09-13, Marty E. Plummer wrote: > >> This adds support for the ASUS C201, a RK3288-based clamshell > >> device. The device tree comes from linus's linux tree

[U-Boot] [PATCH v4 7/7] tftp: prevent overwriting reserved memory

2018-11-24 Thread Simon Goldschmidt
This fixes CVE-2018-18439 ("insufficient boundary checks in network image boot") by using lmb to check for a valid range to store received blocks. Signed-off-by: Simon Goldschmidt --- Changes in v4: - this was patch 8, is now patch 7 - lines changed because v3 patch 7 got removed and MCAST_TFTP

[U-Boot] [PATCH v4 6/7] lmb: remove unused extern declaration

2018-11-24 Thread Simon Goldschmidt
lmb.h includes an extern declaration of "struct lmb lmb;" which is not used anywhere, so remove it. Signed-off-by: Simon Goldschmidt --- Changes in v4: None Changes in v2: - this patch is new in v2 include/lmb.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/lmb.h

[U-Boot] [PATCH v4 5/7] bootm: use new common function lmb_init_and_reserve

2018-11-24 Thread Simon Goldschmidt
This reduces duplicate code only. Signed-off-by: Simon Goldschmidt --- Changes in v4: None Changes in v2: None common/bootm.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/common/bootm.c b/common/bootm.c index 8bf84ebcb7..31e4f0f794 100644 --- a/common/bootm.c

[U-Boot] [PATCH v4 3/7] lib: lmb: extend lmb for checks at load time

2018-11-24 Thread Simon Goldschmidt
This adds two new functions, lmb_alloc_addr and lmb_get_unreserved_size. lmb_alloc_addr behaves like lmb_alloc, but it tries to allocate a pre-specified address range. Unlike lmb_reserve, this address range must be inside one of the memory ranges that has been set up with lmb_add.

[U-Boot] [PATCH v4 2/7] fdt: parse "reserved-memory" for memory reservation

2018-11-24 Thread Simon Goldschmidt
boot_fdt_add_mem_rsv_regions() adds reserved memory sections to an lmb struct. Currently, it only parses regions described by /memreserve/ entries. Extend this to the more commonly used scheme of the "reserved-memory" node. Signed-off-by: Simon Goldschmidt --- Changes in v4: - fixed invalid

[U-Boot] [PATCH v4 1/7] lib: lmb: reserving overlapping regions should fail

2018-11-24 Thread Simon Goldschmidt
lmb_add_region handles overlapping regions wrong: instead of merging or rejecting to add a new reserved region that overlaps an existing one, it just adds the new region. Since internally the same function is used for lmb_alloc, change lmb_add_region to reject overlapping regions. Signed-off-by:

[U-Boot] [PATCH v4 4/7] fs: prevent overwriting reserved memory

2018-11-24 Thread Simon Goldschmidt
This fixes CVE-2018-18440 ("insufficient boundary checks in filesystem image load") by using lmb to check the load size of a file against reserved memory addresses. Signed-off-by: Simon Goldschmidt --- Changes in v4: None Changes in v2: None fs/fs.c | 56

[U-Boot] [PATCH v4 0/7] Fix CVE-2018-18440 and CVE-2018-18439

2018-11-24 Thread Simon Goldschmidt
This series fixes CVE-2018-18440 ("insufficient boundary checks in filesystem image load") by adding restrictions to the 'load' command and fixes CVE-2018-18439 ("insufficient boundary checks in network image boot") by adding restrictions to the tftp code. The functions from lmb.c are used to

Re: [U-Boot] [PATCH 1/1] efi_loader: remove efi_exit_caches()

2018-11-24 Thread Emmanuel Vadot
On Thu, 15 Nov 2018 21:23:31 +0100 Alexander Graf wrote: > > > On 15.11.18 06:34, Jonathan Gray wrote: > > On Sun, Sep 23, 2018 at 02:33:47PM +0200, Heinrich Schuchardt wrote: > >> Since GRUB patch d0c070179d4d ("arm/efi: Switch to arm64 linux loader", > >> 2018-07-09) we do not need a

[U-Boot] [PATCH] spl: implement CRC check on U-Boot uImage

2018-11-24 Thread Simon Goldschmidt
SPL currently does not check uImage CRCs when loading U-Boot. This patch adds checking the uImage CRC when SPL loads U-Boot. It does this by reusing the existing config option SPL_CRC32_SUPPORT to allow leaving out the CRC check on boards where the additional code size or boot time is a problem

Re: [U-Boot] [PATCH v2 1/3] Enable FEC driver to retrieve PHY address from device tree

2018-11-24 Thread Lukasz Majewski
On Fri, 23 Nov 2018 16:47:30 + Martyn Welch wrote: > Currently if we have more than one phy on the MDIO bus, we do not > have a good mechanism for determining which should be used at > runtime. Enable the FEC driver to determine the address for the PHY > from the device tree. > >

[U-Boot] [PATCH v4 3/3] dm: platform_data: spi: s/pl022_spi.h/spi_pl022.h

2018-11-24 Thread Jagan Teki
Rename platform_data include file as spi_pl022.h from pl022_spi.h, this is generic notation used for spi platdata include files. Cc: Quentin Schulz Signed-off-by: Jagan Teki --- Changes for v4: - none Changes for v3: - split patch from previous drivers/spi/pl022_spi.c

[U-Boot] [PATCH v4 2/3] spi: pl022: Drop unnecessary include files

2018-11-24 Thread Jagan Teki
This patch can drop unnecessary include files in pl022_spi driver. Cc: Quentin Schulz Signed-off-by: Jagan Teki --- Changes for v4: - none Changes for v3: - split patch from previous drivers/spi/pl022_spi.c | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/spi/pl022_spi.c

[U-Boot] [PATCH v4 1/3] spi: pl022: Simplify platdata code

2018-11-24 Thread Jagan Teki
pl022 spi driver support both OF_CONTROL and PLATDATA, this patch is trying to simplify the code that differentiating platdata vs of_control. - Move OF_CONTROL code at one place - Handle clock setup code directly in pl022_spi_ofdata_to_platdata Cc: Quentin Schulz Signed-off-by: Jagan Teki ---

[U-Boot] [PATCH v2 6/6] board_r: Remove initr_spi

2018-11-24 Thread Jagan Teki
Drop unused initr_spi, which just return 0, no usage. Signed-off-by: Jagan Teki --- common/board_r.c | 11 --- 1 file changed, 11 deletions(-) diff --git a/common/board_r.c b/common/board_r.c index 3ccef5467b..2f982b1646 100644 --- a/common/board_r.c +++ b/common/board_r.c @@ -36,7

[U-Boot] [PATCH v2 5/6] spi: Zap CONFIG_HARD_SPI

2018-11-24 Thread Jagan Teki
In legacy CONFIG_HARD_SPI initalizing spi_init code, which was removed during dm conversion cleanup. So remove the dead instances of CONFIG_HARD_SPI, and related code. Signed-off-by: Jagan Teki --- README| 8 arch/powerpc/include/asm/config.h

[U-Boot] [PATCH v2 2/6] spi: Remove used spi_init

2018-11-24 Thread Jagan Teki
spi_init used in some areas in tree, but the respective drivers will remove in future patches. So remove the same instances. Signed-off-by: Jagan Teki --- common/board_f.c| 2 -- doc/driver-model/spi-howto.txt | 5 - examples/standalone/atmel_df_pow2.c | 2 --

[U-Boot] [PATCH v2 4/6] spi: Remove unused mpc8xx code

2018-11-24 Thread Jagan Teki
- spi_init_f - spi_init_r - spi_read - spi_write these spi calls are exclusively for mpc8xx, but the relevant driver is not available so remove it. Signed-off-by: Jagan Teki --- cmd/eeprom.c | 15 +-- common/board_r.c | 7 --- include/common.h | 7 --- 3 files

[U-Boot] [PATCH v2 3/6] spi: mpc8xx: Migrate to DM_SPI

2018-11-24 Thread Jagan Teki
From: Christophe Leroy Drop non-dm code and migrate into DM_SPI. Signed-off-by: Christophe Leroy [jagan: Move config menu in DM_SPI area] Signed-off-by: Jagan Teki --- drivers/spi/Kconfig | 12 +-- drivers/spi/mpc8xx_spi.c | 179 +++ 2 files changed,

[U-Boot] [PATCH v2 1/6] spi: Remove unused spi_init

2018-11-24 Thread Jagan Teki
Remove spi_init definition which never used on respective code since from many years. Signed-off-by: Jagan Teki --- drivers/net/e1000_spi.c | 3 --- drivers/spi/atmel_spi.c | 5 - drivers/spi/davinci_spi.c | 5 - drivers/spi/fsl_dspi.c| 5 -

Re: [U-Boot] [PATCH v3 1/3] spi: pl022: Simplify platdata code

2018-11-24 Thread Jagan Teki
On Thu, Nov 22, 2018 at 1:48 PM Quentin Schulz wrote: > > Hi Jagan, > > On Thu, Nov 22, 2018 at 01:31:25PM +0530, Jagan Teki wrote: > > On Thu, Nov 22, 2018 at 1:21 PM Quentin Schulz > > wrote: > > > > > > Hi Jagan, > > > > > > On Thu, Nov 22, 2018 at 12:03:47PM +0530, Jagan Teki wrote: > > > >

[U-Boot] [PATCH v2] usb: gadget: f_sdp: Provide filesize env variable for downloaded images

2018-11-24 Thread Petr Štetiar
Currently it's not possible to get filesize of downloaded images and it's impossible to automate some tasks in scripts. So this patch adds `filesize` environment variable with size (as hex number in bytes) of the last successfully downloaded file via `sdp` command. Cc: Lukasz Majewski Cc: Marek

Re: [U-Boot] [PATCH 16/21] video: backlight: Fix log message in enable_sequence()

2018-11-24 Thread Anatolij Gustschin
On Fri, 23 Nov 2018 21:29:39 -0700 Simon Glass s...@chromium.org wrote: > This has an extra argument. Remove it. > > Signed-off-by: Simon Glass Acked-by: Anatolij Gustschin ___ U-Boot mailing list U-Boot@lists.denx.de