Re: [U-Boot] [PATCH v1 01/21] ARM: DTS: vybrid: Add vf-u-boot.dtsi to set 'u-boot, dm-pre-reloc' in soc

2019-01-14 Thread Lukasz Majewski
Hi Tom, > On Mon, Jan 14, 2019 at 03:17:20PM +0100, Lukasz Majewski wrote: > > > This property is necessary to allow pinctrl configuration before > > relocation (uart, DDR pins). > > > > Separate file will facilitate updating vf.dtsi from the Linux > > kernel. > > > > Signed-off-by: Lukasz

[U-Boot] [PATCH] arm64: versal: Setup DM_ETH/MMC if NET/MMC is enabled

2019-01-14 Thread Michal Simek
Setup proper ETH/MMC dependency for the whole platform. Signed-off-by: Michal Simek --- arch/arm/Kconfig | 2 ++ configs/xilinx_versal_virt_defconfig | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index

[U-Boot] Pull request: u-boot-riscv/master

2019-01-14 Thread uboot
Hi Tom, Please pull some riscv updates: 1. Improve cache implementation. 2. Fix and improve standalone applications https://travis-ci.org/rickchen36/u-boot-riscv/builds/479684449 Thanks Rick The following changes since commit d3689267f92c5956e09cc7d1baa4700141662bff: Prepare v2019.01

Re: [U-Boot] [PATCH 2/2] travis: Wire Xilinx Versal Virt platform

2019-01-14 Thread Michal Simek
On 07. 01. 19 23:59, Tom Rini wrote: > On Mon, Jan 07, 2019 at 09:15:17PM +0100, Alexander Graf wrote: >> >> >> On 07.01.19 18:13, Tom Rini wrote: >>> On Mon, Jan 07, 2019 at 05:57:10PM +0100, Alexander Graf wrote: On 01/07/2019 01:46 PM, Michal Simek wrote: > On 07. 01. 19 13:28, Tom

Re: [U-Boot] [PATCH v1 1/4] arm: socfpga: imply SPL config instead of select

2019-01-14 Thread Simon Goldschmidt
On Mon, Jan 14, 2019 at 11:26 PM Dinh Nguyen wrote: > > > > On 1/14/19 10:05 AM, Simon Goldschmidt wrote: > > Hi Dinh, > > > > Am 14.01.2019 um 16:58 schrieb Dinh Nguyen: > >> Hi Simon, > >> > >> On 1/14/19 9:50 AM, Simon Goldschmidt wrote: > >>> Am 11.01.2019 um 23:02 schrieb Marek Vasut: >

Re: [U-Boot] [PATCH 09/10] video: Kconfig: spelling fixes

2019-01-14 Thread Chris Packham
On Mon, Jan 14, 2019 at 11:00 PM Philipp Tomsich wrote: > > > > > On 13.01.2019, at 10:13, Chris Packham wrote: > > > > Signed-off-by: Chris Packham > > Reviewed-by: Philipp Tomsich > > Strictly speaking the “commit message” (i.e. anything beyond the summary > line) is > missing, even as this

[U-Boot] [PATCH] nds32: dts: Fix mmc node compatible string

2019-01-14 Thread Andes
From: Rick Chen In the two commits: cf3922dddc44a968685b535f2af195f1e51f4a7b mmc: ftsdc010_mci: Sync compatible with DT mmc node c14e90e8445e7b1c3531b4bdeb778c47bd6570eb riscv: dts: Sync DT with Linux Kernel ftsdc010_mci's compatible has been modified as "andestech,atfsdc010" for RISC-V

Re: [U-Boot] [PATCH v4 8/9] cmd: efitool: export uefi variable helper functions

2019-01-14 Thread Heinrich Schuchardt
On 1/15/19 3:55 AM, AKASHI Takahiro wrote: > Those function will be used for integration with 'env' command > so as to handle uefi variables. > > Signed-off-by: AKASHI Takahiro > --- > cmd/efitool.c | 38 ++ > include/command.h | 4 > 2 files

Re: [U-Boot] [PATCH v4 2/9] cmd: efitool: add devices command

2019-01-14 Thread Heinrich Schuchardt
On 1/15/19 3:55 AM, AKASHI Takahiro wrote: > "devices" command prints all the uefi variables on the system. > > => efi devices > Scanning disk ahci_scsi.id0lun0... > Scanning disk ahci_scsi.id1lun0... > Found 4 disks > D > e > vDevice Path > >

Re: [U-Boot] [PATCH v10 00/10] Fix CVE-2018-18440 and CVE-2018-18439

2019-01-14 Thread Simon Goldschmidt
Am Mo., 14. Jan. 2019, 23:55 hat Tom Rini geschrieben: > On Mon, Jan 14, 2019 at 10:38:13PM +0100, Simon Goldschmidt wrote: > > > This series fixes CVE-2018-18440 ("insufficient boundary checks in > > filesystem image load") by adding restrictions to the 'load' > > command and fixes

Re: [U-Boot] [PATCH v4 6/9] cmd: efitool: add images command

2019-01-14 Thread Heinrich Schuchardt
On 1/15/19 3:55 AM, AKASHI Takahiro wrote: > "images" command prints loaded images-related information. > > Signed-off-by: AKASHI Takahiro > --- > cmd/efitool.c | 13 - > 1 file changed, 12 insertions(+), 1 deletion(-) > > diff --git a/cmd/efitool.c b/cmd/efitool.c > index

Re: [U-Boot] [PATCH v4 5/9] cmd: efitool: add dh command

2019-01-14 Thread Heinrich Schuchardt
On 1/15/19 3:55 AM, AKASHI Takahiro wrote: > "dh" command prints all the uefi handles used in the system. > > => efi dh > 7ef3bfa0: Device Path, Device Path To Text, Device Path Utilities, > Unicode Collation 2 > 7ef31d30: Driver Binding > 7ef31da0: Simple

[U-Boot] [PATCH 1/1] efi_loader: remove duplicate GUID definition

2019-01-14 Thread Heinrich Schuchardt
Remove duplicate definition o EFI_SIMPLE_FILE_SYSTEM_PROTOCOL_GUID. Signed-off-by: Heinrich Schuchardt --- include/efi_api.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/include/efi_api.h b/include/efi_api.h index aef77b6319..9f63bf2487 100644 --- a/include/efi_api.h +++

Re: [U-Boot] [PATCH v4 7/9] cmd: efitool: add memmap command

2019-01-14 Thread Heinrich Schuchardt
On 1/15/19 3:55 AM, AKASHI Takahiro wrote: > "memmap" command prints uefi-specific memory map information. > => efi memmap > Type StartEnd Attributes > == > CONVENTIONAL

[U-Boot] [PATCH 4/4] nds32: Fix boot fail issue when build with elf-mculib.

2019-01-14 Thread Andes
From: Rick Chen Add -mcmodel=large can let elf-mculib have the same default behavior just like linux-glibc. And it help to pass U-Boot booting sequence. Signed-off-by: Rick Chen Cc: Greentime Hu --- arch/nds32/config.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[U-Boot] [PATCH 3/4] nds32: Generate SW fpu instruction.

2019-01-14 Thread Andes
From: Rick Chen Force it to generate SW fup instruction. It help to avoid bugs when running on no-HW-fpu board, but compile with v3f which support HW fpu instruction. Signed-off-by: Rick Chen Cc: Greentime Hu --- arch/nds32/config.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)

[U-Boot] [PATCH 2/4] nds32: Remove gcc unused option

2019-01-14 Thread Andes
From: Rick Chen -G0 is an old option, not support now, So remove it. It can help to fix compile error when build with nds32 pre-build toolchain. Signed-off-by: Rick Chen Cc: Greentime Hu --- arch/nds32/config.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[U-Boot] [PATCH 1/4] .travis.yml: Support nds32 prebuilt toolchain

2019-01-14 Thread Andes
From: Rick Chen Download nds32 prebuild toolchain from github which is base on gcc 8.0.1 version for regression. Signed-off-by: Rick Chen Cc: Greentime Hu --- .travis.yml | 9 + 1 file changed, 9 insertions(+) diff --git a/.travis.yml b/.travis.yml index 321fd79..4b7c696 100644 ---

[U-Boot] [PATCH 0/4] Support nds32 pre-build toolchain

2019-01-14 Thread Andes
From: Rick Chen 1. Support nds32 pre-build toolcahin for buildman. 2. Fix some bugs about fpu and toolchain issues. Rick Chen (4): .travis.yml: Support nds32 prebuilt toolchain nds32: Remove gcc unused option nds32: Generate SW fpu instruction. nds32: Fix boot fail issue when build with

Re: [U-Boot] [PATCH v4 9/9] cmd: env: add "-e" option for handling UEFI variables

2019-01-14 Thread Heinrich Schuchardt
On 1/15/19 3:55 AM, AKASHI Takahiro wrote: > "env [print|set] -e" allows for handling uefi variables without > knowing details about mapping to corresponding u-boot variables. Why do we need two alternative ways to achieve the same result? We already have 'efitool setvar' and 'efitool dumpvar'.

Re: [U-Boot] [PATCH v4 3/9] efi_driver: add name to driver binding protocol

2019-01-14 Thread Heinrich Schuchardt
On 1/15/19 3:55 AM, AKASHI Takahiro wrote: > This new field will be shown as a driver's name in "efitool drivers" > command. We can have drivers supplied by U-Boot and drivers supplied by an EFI binary that we recently installed via the bootefi command. A driver installed via the bootefi command

Re: [U-Boot] [PATCH v4 4/9] cmd: efitool: add drivers command

2019-01-14 Thread Heinrich Schuchardt
On 1/15/19 3:55 AM, AKASHI Takahiro wrote: > "drivers" command prints all the uefi drivers on the system. > > => efi drivers > D > r > vDriver Name Image Path > == > 7ef31d30 EFI block driver > > Signed-off-by:

Re: [U-Boot] [PATCH v4 1/9] cmd: add efitool command

2019-01-14 Thread Heinrich Schuchardt
On 1/15/19 3:55 AM, AKASHI Takahiro wrote: > Currently, there is no easy way to add or modify UEFI variables. > In particular, bootmgr supports BootOrder/Boot variables, it is > quite hard to define them as u-boot variables because they are represented > in a complicated and encoded format. >

Re: [U-Boot] [PATCH v2] efi_loader: move efi_init_obj_list() to a new efi_setup.c

2019-01-14 Thread Heinrich Schuchardt
On 1/15/19 3:54 AM, AKASHI Takahiro wrote: > # removed unnecessary "#if" statements from v1 > > The function, efi_init_obj_list(), can be shared in different pseudo efi > applications, like bootefi/bootmgr as well as my efishell. Moreover, it > will be utilized to extend efi initialization, for

[U-Boot] [PATCH v4 9/9] cmd: env: add "-e" option for handling UEFI variables

2019-01-14 Thread AKASHI Takahiro
"env [print|set] -e" allows for handling uefi variables without knowing details about mapping to corresponding u-boot variables. Signed-off-by: AKASHI Takahiro --- cmd/nvedit.c | 61 ++-- 1 file changed, 59 insertions(+), 2 deletions(-) diff

[U-Boot] [PATCH v4 8/9] cmd: efitool: export uefi variable helper functions

2019-01-14 Thread AKASHI Takahiro
Those function will be used for integration with 'env' command so as to handle uefi variables. Signed-off-by: AKASHI Takahiro --- cmd/efitool.c | 38 ++ include/command.h | 4 2 files changed, 38 insertions(+), 4 deletions(-) diff --git

[U-Boot] [PATCH v4 4/9] cmd: efitool: add drivers command

2019-01-14 Thread AKASHI Takahiro
"drivers" command prints all the uefi drivers on the system. => efi drivers D r vDriver Name Image Path == 7ef31d30 EFI block driver Signed-off-by: AKASHI Takahiro --- cmd/efitool.c | 84

[U-Boot] [PATCH v4 2/9] cmd: efitool: add devices command

2019-01-14 Thread AKASHI Takahiro
"devices" command prints all the uefi variables on the system. => efi devices Scanning disk ahci_scsi.id0lun0... Scanning disk ahci_scsi.id1lun0... Found 4 disks D e vDevice Path 7ef3bfa0 /VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b)

[U-Boot] [PATCH v4 6/9] cmd: efitool: add images command

2019-01-14 Thread AKASHI Takahiro
"images" command prints loaded images-related information. Signed-off-by: AKASHI Takahiro --- cmd/efitool.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/cmd/efitool.c b/cmd/efitool.c index 4bd6367b4bd9..e77273fc6e1e 100644 --- a/cmd/efitool.c +++

[U-Boot] [PATCH v2 3/5] cmd: bootefi: carve out fdt parameter handling

2019-01-14 Thread AKASHI Takahiro
The current way how command parameters, particularly "fdt addr," are handled makes it a bit complicated to add a subcommand-specific parameter. So just refactor the code and extract efi_handle_fdt(). This commit is a preparatory change for enhancing bootmgr sub-command. Signed-off-by: AKASHI

[U-Boot] [PATCH v4 5/9] cmd: efitool: add dh command

2019-01-14 Thread AKASHI Takahiro
"dh" command prints all the uefi handles used in the system. => efi dh 7ef3bfa0: Device Path, Device Path To Text, Device Path Utilities, Unicode Collation 2 7ef31d30: Driver Binding 7ef31da0: Simple Text Output 7ef31e10: Simple Text Input, Simple

[U-Boot] [PATCH v4 7/9] cmd: efitool: add memmap command

2019-01-14 Thread AKASHI Takahiro
"memmap" command prints uefi-specific memory map information. => efi memmap Type StartEnd Attributes == CONVENTIONAL 4000-7de27000 WB RUNTIME DATA

[U-Boot] [PATCH v2 5/5] cmd: run: add "-e" option to run an EFI application

2019-01-14 Thread AKASHI Takahiro
"run -e" allows for executing EFI application with a specific "Boot" variable. If no "Boot" is specified or "BootOrder" is specified, it tries to run an EFI application specified in the order of "bootOrder." Signed-off-by: AKASHI Takahiro --- cmd/bootefi.c | 31

[U-Boot] [PATCH v4 0/9] cmd: add efitool for efi environment

2019-01-14 Thread AKASHI Takahiro
This patch set is a collection of patches to enhance efi user interfaces /commands. It will help improve user experience on efi boot and make it more usable *without* edk2's shell utility. Let's see how it works: => efitool boot add 1 SHELL mmc 0:1 /Shell.efi "" => efitool boot add 2 HELLO mmc

[U-Boot] [PATCH v4 3/9] efi_driver: add name to driver binding protocol

2019-01-14 Thread AKASHI Takahiro
This new field will be shown as a driver's name in "efitool drivers" command. Signed-off-by: AKASHI Takahiro --- include/efi_driver.h| 1 + lib/efi_driver/efi_uclass.c | 1 + 2 files changed, 2 insertions(+) diff --git a/include/efi_driver.h b/include/efi_driver.h index

[U-Boot] [PATCH v4 1/9] cmd: add efitool command

2019-01-14 Thread AKASHI Takahiro
Currently, there is no easy way to add or modify UEFI variables. In particular, bootmgr supports BootOrder/Boot variables, it is quite hard to define them as u-boot variables because they are represented in a complicated and encoded format. The new command, efitool, helps address these issues

[U-Boot] [PATCH v2 4/5] cmd: bootefi: run an EFI application of a specific load option

2019-01-14 Thread AKASHI Takahiro
With this patch applied, we will be able to selectively execute an EFI application by specifying a load option, say "1" for Boot0001, "2" for Boot0002 and so on. => bootefi bootmgr 1, or bootefi bootmgr - 1 Please note that Boot need not be included in "BootOrder". Signed-off-by:

[U-Boot] [PATCH v2 1/5] efi_loader: bootmgr: support BootNext and BootCurrent variable behavior

2019-01-14 Thread AKASHI Takahiro
See UEFI v2.7, section 3.1.2 for details of the specification. With my efitool command, you can try as the following: => efi boot add 1 SHELL ... => efi boot add 2 HELLO ... => efi boot order 1 2 => efi bootmgr (starting SHELL ...) => efi boot next 2 => efi bootmgr (starting

[U-Boot] [PATCH v2 2/5] efi_loader: bootmgr: allow for running a given load option

2019-01-14 Thread AKASHI Takahiro
With an extra argument, efi_bootmgr_load() can now load an efi binary based on a "Boot" variable specified. Signed-off-by: AKASHI Takahiro --- cmd/bootefi.c| 3 ++- include/efi_loader.h | 5 - lib/efi_loader/efi_bootmgr.c | 9 - 3 files changed, 14

[U-Boot] [PATCH v2 0/5] efi_loader: run a specific efi application more easily

2019-01-14 Thread AKASHI Takahiro
This patch is a result from re-organizing my previous patches; a combination of [1] and part of [2] so as to solely provide several ways of executing a specific efi application explicitly. * bootmanager via BootNext variable * bootefi with boot id * run -e with Boot variable Changes in

[U-Boot] [PATCH v2] efi_loader: move efi_init_obj_list() to a new efi_setup.c

2019-01-14 Thread AKASHI Takahiro
# removed unnecessary "#if" statements from v1 The function, efi_init_obj_list(), can be shared in different pseudo efi applications, like bootefi/bootmgr as well as my efishell. Moreover, it will be utilized to extend efi initialization, for example, my "removable disk support" patch and

Re: [U-Boot] booting optee via SPL on imx6q

2019-01-14 Thread Kever Yang
Hi Shyam, On 01/04/2019 07:46 PM, Shyam Saini wrote: > Hi Kever, > > I've been trying to boot optee via SPL on my imx6 board. > > I see you added booting optee via SPL support in this commit. > http://git.denx.de/?p=u-boot.git;a=commit;h=70fe2876352939194ccd9091379453a5ddb64ddb > > I used fit

Re: [U-Boot] rk3288: firefly: flashing emmc from maskrom using USB

2019-01-14 Thread Kever Yang
HI Jack, On 01/15/2019 01:28 AM, Jack Mitchell wrote: > I'm having issues flashing the emmc on my firefly board using USB. For > some reason it seems as though trying to write to the emmc flash sector > 0x40 for uboot spl+proper from the Maskrom/Loader doesn't work. Can > anyone elaborate on

Re: [U-Boot] [PATCH 2/2] lib: fdtdec: fixup fdtdec_get_addr_size

2019-01-14 Thread J, KEERTHY
On 1/15/2019 6:23 AM, Simon Glass wrote: Hi Keerthy, On Thu, 3 Jan 2019 at 21:39, Keerthy wrote: On Thursday 03 January 2019 11:44 PM, s...@google.com wrote: On 12/21/18 9:24 AM, Keerthy wrote: fix up fdtdec_get_addr_size to use fdtdec_get_addr_size_auto_noparent so that the address

Re: [U-Boot] [PATCH 2/2] lib: fdtdec: fixup fdtdec_get_addr_size

2019-01-14 Thread Simon Glass
Hi Keerthy, On Thu, 3 Jan 2019 at 21:39, Keerthy wrote: > > > > On Thursday 03 January 2019 11:44 PM, s...@google.com wrote: > > On 12/21/18 9:24 AM, Keerthy wrote: > >> fix up fdtdec_get_addr_size to use fdtdec_get_addr_size_auto_noparent > >> so that the address cells and size cells are

Re: [U-Boot] [PATCH v3 3/9] clk: actions: Add common clock driver

2019-01-14 Thread André Przywara
On 14/01/2019 12:41, Amit Singh Tomar wrote: Hi, > CMU block on most of the actions SoC seems to be identical(at-least, S900 and > S700). Actually they are not. Not even for the small subset that we implement here. Try "diff -wu arch/arm/include/asm/arch-owl/regs_s*.h" for a start, plus the

Re: [U-Boot] [PATCH v2 1/9] arm: actions: Add common framework for Actions Semi SoCs

2019-01-14 Thread André Przywara
On 14/01/2019 12:41, Amit Singh Tomar wrote: Hi, > This adds common arch owl support that can drive, 64-bits SoCs > from Actions Semi. > > It also removes the Bubblegum specific board files. > > Signed-off-by: Amit Singh Tomar > --- > Changes since v1: > * Moved S700 specific changes to

Re: [U-Boot] [PATCH v2 8/9] serial: actions: add uart support for s700

2019-01-14 Thread André Przywara
On 14/01/2019 12:41, Amit Singh Tomar wrote: > UART controller present on S700 is compatible with existing > S900 controller, this patch simply adds a proper compatible string > so that owl uart driver can be reused for S700. > > Signed-off-by: Amit Singh Tomar Reviewed-by: Andre Przywara

Re: [U-Boot] [PATCH v2 6/9] arm: add Cubieboard7 board support

2019-01-14 Thread André Przywara
On 14/01/2019 12:41, Amit Singh Tomar wrote: > The Cubieboard is a single board computer containing a > Actions S700 SoC(with 4 ARMv8 Cortex-A53 cores). > > This patch adds respective defconfig alongwith device tree(sync with > Linux 4.20). This should come later in the series, as patch 8/9,

Re: [U-Boot] [PATCH v10 00/10] Fix CVE-2018-18440 and CVE-2018-18439

2019-01-14 Thread Tom Rini
On Mon, Jan 14, 2019 at 10:38:13PM +0100, Simon Goldschmidt wrote: > 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

Re: [U-Boot] [PATCH v2 2/9] arm: actions: Add owl memory map regions

2019-01-14 Thread André Przywara
On 14/01/2019 12:41, Amit Singh Tomar wrote: Hi, > This adds memory regions needed to setup MMU for actions > S900 and S700 SoCs. Please change this sentence and the subject to state that this just moves code, there is nothing new here that gets added. That helps later when people browse

Re: [U-Boot] [PATCH v1 1/4] arm: socfpga: imply SPL config instead of select

2019-01-14 Thread Dinh Nguyen
On 1/14/19 10:05 AM, Simon Goldschmidt wrote: > Hi Dinh, > > Am 14.01.2019 um 16:58 schrieb Dinh Nguyen: >> Hi Simon, >> >> On 1/14/19 9:50 AM, Simon Goldschmidt wrote: >>> Am 11.01.2019 um 23:02 schrieb Marek Vasut: On 1/11/19 9:39 PM, Simon Goldschmidt wrote: > Am 07.01.2019 um 23:53

[U-Boot] [ANN] U-Boot v2019.01 released

2019-01-14 Thread Tom Rini
Hey all, So we're a week after the original release day, but on time for when I said I would push things out to. We had some more regression fixes, and a few last minute reminders about other fixes, and here we are. For a changelog from v2018.11, please see the other RC emails. I'm now going

Re: [U-Boot] [PATCH v1 1/4] arm: socfpga: imply SPL config instead of select

2019-01-14 Thread Marek Vasut
On 1/14/19 10:53 PM, Simon Goldschmidt wrote: > > > Am Mo., 14. Jan. 2019, 22:50 hat Tom Rini > geschrieben: > > On Mon, Jan 14, 2019 at 10:30:36PM +0100, Marek Vasut wrote: > > On 1/14/19 10:28 PM, Tom Rini wrote: > > > On Mon, Jan 14, 2019 at 07:31:26PM

Re: [U-Boot] [PATCH v1 1/4] arm: socfpga: imply SPL config instead of select

2019-01-14 Thread Simon Goldschmidt
Am Mo., 14. Jan. 2019, 22:50 hat Tom Rini geschrieben: > On Mon, Jan 14, 2019 at 10:30:36PM +0100, Marek Vasut wrote: > > On 1/14/19 10:28 PM, Tom Rini wrote: > > > On Mon, Jan 14, 2019 at 07:31:26PM +0100, Marek Vasut wrote: > > >> On 1/14/19 5:05 PM, Simon Goldschmidt wrote: > > >>> Hi Dinh, >

Re: [U-Boot] [PATCH v1 1/4] arm: socfpga: imply SPL config instead of select

2019-01-14 Thread Tom Rini
On Mon, Jan 14, 2019 at 10:30:36PM +0100, Marek Vasut wrote: > On 1/14/19 10:28 PM, Tom Rini wrote: > > On Mon, Jan 14, 2019 at 07:31:26PM +0100, Marek Vasut wrote: > >> On 1/14/19 5:05 PM, Simon Goldschmidt wrote: > >>> Hi Dinh, > >> > >> Hi, > >> > >>> Am 14.01.2019 um 16:58 schrieb Dinh Nguyen:

[U-Boot] [PATCH v10 07/10] bootm: use new common function lmb_init_and_reserve

2019-01-14 Thread Simon Goldschmidt
This reduces duplicate code only. Signed-off-by: Simon Goldschmidt Reviewed-by: Simon Glass --- Changes in v10: - add reviewed-by Changes in v9: None Changes in v8: None Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: None Changes in v2: None common/bootm.c | 8

[U-Boot] [PATCH v10 08/10] lmb: remove unused extern declaration

2019-01-14 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 v10: None Changes in v9: None Changes in v8: None Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: None Changes in v2: -

[U-Boot] [PATCH v10 00/10] Fix CVE-2018-18440 and CVE-2018-18439

2019-01-14 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

[U-Boot] [PATCH v10 05/10] lib: lmb: extend lmb for checks at load time

2019-01-14 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 v10 09/10] tftp: prevent overwriting reserved memory

2019-01-14 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 Acked-by: Joe Hershberger --- Changes in v10: - add acked-by Changes in v9: None Changes in v8: None Changes in

[U-Boot] [PATCH v10 10/10] arm: bootm: fix sp detection at end of address range

2019-01-14 Thread Simon Goldschmidt
This fixes 'arch_lmb_reserve()' for ARM that tries to detect in which DRAM bank 'sp' is in. This code failed if a bank was at the end of physical address range (i.e. size + length overflowed to 0). To fix this, calculate 'bank_end' as 'size + length - 1' so that such banks end at 0x,

[U-Boot] [PATCH v10 03/10] lib: lmb: reserving overlapping regions should fail

2019-01-14 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. Also, to keep

[U-Boot] [PATCH v10 06/10] fs: prevent overwriting reserved memory

2019-01-14 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 Reviewed-by: Simon Glass --- Changes in v10: - return -ENOSPC from fs_read when read to reserved

[U-Boot] [PATCH v10 04/10] fdt: parse "reserved-memory" for memory reservation

2019-01-14 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 Reviewed-by: Simon Glass --- Changes

[U-Boot] [PATCH v10 02/10] lmb: fix allocation at end of address range

2019-01-14 Thread Simon Goldschmidt
The lmb code fails if base + size of RAM overflows to zero. Fix this by calculating end as 'base + size - 1' instead of 'base + size' where appropriate. Added tests to assert this is fixed. Signed-off-by: Simon Goldschmidt --- Changes in v10: None Changes in v9: None Changes in v8: None

[U-Boot] [PATCH v10 01/10] test: add test for lib/lmb.c

2019-01-14 Thread Simon Goldschmidt
Add basic tests for the lmb memory allocation code used to reserve and allocate memory during boot. Signed-off-by: Simon Goldschmidt Reviewed-by: Simon Glass --- Changes in v10: - add reviewed-by Changes in v9: None Changes in v8: None Changes in v7: None Changes in v6: None Changes in v5: -

Re: [U-Boot] [PATCH v1 1/4] arm: socfpga: imply SPL config instead of select

2019-01-14 Thread Simon Goldschmidt
Am 14.01.2019 um 22:30 schrieb Marek Vasut: On 1/14/19 10:28 PM, Tom Rini wrote: On Mon, Jan 14, 2019 at 07:31:26PM +0100, Marek Vasut wrote: On 1/14/19 5:05 PM, Simon Goldschmidt wrote: Hi Dinh, Hi, Am 14.01.2019 um 16:58 schrieb Dinh Nguyen: Hi Simon, On 1/14/19 9:50 AM, Simon

Re: [U-Boot] [PATCH v1 1/4] arm: socfpga: imply SPL config instead of select

2019-01-14 Thread Marek Vasut
On 1/14/19 10:28 PM, Tom Rini wrote: > On Mon, Jan 14, 2019 at 07:31:26PM +0100, Marek Vasut wrote: >> On 1/14/19 5:05 PM, Simon Goldschmidt wrote: >>> Hi Dinh, >> >> Hi, >> >>> Am 14.01.2019 um 16:58 schrieb Dinh Nguyen: Hi Simon, On 1/14/19 9:50 AM, Simon Goldschmidt wrote: >

Re: [U-Boot] [PATCH v1 1/4] arm: socfpga: imply SPL config instead of select

2019-01-14 Thread Tom Rini
On Mon, Jan 14, 2019 at 07:31:26PM +0100, Marek Vasut wrote: > On 1/14/19 5:05 PM, Simon Goldschmidt wrote: > > Hi Dinh, > > Hi, > > > Am 14.01.2019 um 16:58 schrieb Dinh Nguyen: > >> Hi Simon, > >> > >> On 1/14/19 9:50 AM, Simon Goldschmidt wrote: > >>> Am 11.01.2019 um 23:02 schrieb Marek

Re: [U-Boot] [PATCH v1 1/4] arm: socfpga: imply SPL config instead of select

2019-01-14 Thread Simon Goldschmidt
Am 14.01.2019 um 21:49 schrieb Marek Vasut: On 1/14/19 9:30 PM, Simon Goldschmidt wrote: On Mon, Jan 14, 2019 at 9:23 PM Marek Vasut wrote: On 1/14/19 9:12 PM, Simon Goldschmidt wrote: Am 14.01.2019 um 21:01 schrieb Marek Vasut: On 1/14/19 8:43 PM, Simon Goldschmidt wrote: Am 14.01.2019

Re: [U-Boot] [PATCH v1 1/4] arm: socfpga: imply SPL config instead of select

2019-01-14 Thread Marek Vasut
On 1/14/19 9:30 PM, Simon Goldschmidt wrote: > On Mon, Jan 14, 2019 at 9:23 PM Marek Vasut wrote: >> >> On 1/14/19 9:12 PM, Simon Goldschmidt wrote: >>> Am 14.01.2019 um 21:01 schrieb Marek Vasut: On 1/14/19 8:43 PM, Simon Goldschmidt wrote: > Am 14.01.2019 um 20:33 schrieb Marek Vasut:

[U-Boot] Proposed fastboot changes

2019-01-14 Thread Douglas Zobel
I've made some changes to the fastboot handlers to meet my needs. If there is interest, I can prepare patches and submit them upstream. The changes are: BUGFIX: Currently the 'fastboot format [partition]' command (run from PC) formats the partition smaller than expected. Change

Re: [U-Boot] [PATCH v1 1/4] arm: socfpga: imply SPL config instead of select

2019-01-14 Thread Simon Goldschmidt
On Mon, Jan 14, 2019 at 9:23 PM Marek Vasut wrote: > > On 1/14/19 9:12 PM, Simon Goldschmidt wrote: > > Am 14.01.2019 um 21:01 schrieb Marek Vasut: > >> On 1/14/19 8:43 PM, Simon Goldschmidt wrote: > >>> Am 14.01.2019 um 20:33 schrieb Marek Vasut: > On 1/14/19 7:58 PM, Simon Goldschmidt

Re: [U-Boot] [PATCH v1 1/4] arm: socfpga: imply SPL config instead of select

2019-01-14 Thread Marek Vasut
On 1/14/19 9:12 PM, Simon Goldschmidt wrote: > Am 14.01.2019 um 21:01 schrieb Marek Vasut: >> On 1/14/19 8:43 PM, Simon Goldschmidt wrote: >>> Am 14.01.2019 um 20:33 schrieb Marek Vasut: On 1/14/19 7:58 PM, Simon Goldschmidt wrote: > Am 14.01.2019 um 19:31 schrieb Marek Vasut: >> On

Re: [U-Boot] [PATCH v1 1/4] arm: socfpga: imply SPL config instead of select

2019-01-14 Thread Simon Goldschmidt
Am 14.01.2019 um 21:01 schrieb Marek Vasut: On 1/14/19 8:43 PM, Simon Goldschmidt wrote: Am 14.01.2019 um 20:33 schrieb Marek Vasut: On 1/14/19 7:58 PM, Simon Goldschmidt wrote: Am 14.01.2019 um 19:31 schrieb Marek Vasut: On 1/14/19 5:05 PM, Simon Goldschmidt wrote: Hi Dinh, Hi, Am

Re: [U-Boot] [PATCH v1 1/4] arm: socfpga: imply SPL config instead of select

2019-01-14 Thread Marek Vasut
On 1/14/19 8:43 PM, Simon Goldschmidt wrote: > Am 14.01.2019 um 20:33 schrieb Marek Vasut: >> On 1/14/19 7:58 PM, Simon Goldschmidt wrote: >>> Am 14.01.2019 um 19:31 schrieb Marek Vasut: On 1/14/19 5:05 PM, Simon Goldschmidt wrote: > Hi Dinh, Hi, > Am 14.01.2019 um

Re: [U-Boot] [PATCH v1 1/4] arm: socfpga: imply SPL config instead of select

2019-01-14 Thread Simon Goldschmidt
Am 14.01.2019 um 20:33 schrieb Marek Vasut: On 1/14/19 7:58 PM, Simon Goldschmidt wrote: Am 14.01.2019 um 19:31 schrieb Marek Vasut: On 1/14/19 5:05 PM, Simon Goldschmidt wrote: Hi Dinh, Hi, Am 14.01.2019 um 16:58 schrieb Dinh Nguyen: Hi Simon, On 1/14/19 9:50 AM, Simon Goldschmidt

Re: [U-Boot] [PATCH v1 1/4] arm: socfpga: imply SPL config instead of select

2019-01-14 Thread Marek Vasut
On 1/14/19 7:58 PM, Simon Goldschmidt wrote: > Am 14.01.2019 um 19:31 schrieb Marek Vasut: >> On 1/14/19 5:05 PM, Simon Goldschmidt wrote: >>> Hi Dinh, >> >> Hi, >> >>> Am 14.01.2019 um 16:58 schrieb Dinh Nguyen: Hi Simon, On 1/14/19 9:50 AM, Simon Goldschmidt wrote: > Am

Re: [U-Boot] [PATCH v6 1/9] test: add test for lib/lmb.c

2019-01-14 Thread Simon Goldschmidt
Am 05.01.2019 um 02:56 schrieb Simon Glass: Hi Simon, On Fri, 14 Dec 2018 at 13:14, Simon Goldschmidt wrote: Add basic tests for the lmb memory allocation code used to reserve and allocate memory during boot. Signed-off-by: Simon Goldschmidt --- Changes in v6: None Changes in v5: - this

Re: [U-Boot] [PATCH v1 1/4] arm: socfpga: imply SPL config instead of select

2019-01-14 Thread Simon Goldschmidt
Am 14.01.2019 um 19:31 schrieb Marek Vasut: On 1/14/19 5:05 PM, Simon Goldschmidt wrote: Hi Dinh, Hi, Am 14.01.2019 um 16:58 schrieb Dinh Nguyen: Hi Simon, On 1/14/19 9:50 AM, Simon Goldschmidt wrote: Am 11.01.2019 um 23:02 schrieb Marek Vasut: On 1/11/19 9:39 PM, Simon Goldschmidt

Re: [U-Boot] [PATCH] arm: socfpga: make debug uart work on socfpga_gen5

2019-01-14 Thread Simon Goldschmidt
Am 14.01.2019 um 19:26 schrieb Marek Vasut: On 1/14/19 4:21 PM, Simon Goldschmidt wrote: Am 08.01.2019 um 13:56 schrieb Marek Vasut: On 1/8/19 1:42 PM, Simon Goldschmidt wrote: On Tue, Jan 8, 2019 at 1:08 PM Marek Vasut wrote: On 1/8/19 1:06 PM, Simon Goldschmidt wrote: On Tue, Jan 8,

Re: [U-Boot] [PATCH v1 1/4] arm: socfpga: imply SPL config instead of select

2019-01-14 Thread Marek Vasut
On 1/14/19 5:05 PM, Simon Goldschmidt wrote: > Hi Dinh, Hi, > Am 14.01.2019 um 16:58 schrieb Dinh Nguyen: >> Hi Simon, >> >> On 1/14/19 9:50 AM, Simon Goldschmidt wrote: >>> Am 11.01.2019 um 23:02 schrieb Marek Vasut: On 1/11/19 9:39 PM, Simon Goldschmidt wrote: > Am 07.01.2019 um 23:53

Re: [U-Boot] [PATCH] arm: socfpga: make debug uart work on socfpga_gen5

2019-01-14 Thread Marek Vasut
On 1/14/19 4:21 PM, Simon Goldschmidt wrote: > Am 08.01.2019 um 13:56 schrieb Marek Vasut: >> On 1/8/19 1:42 PM, Simon Goldschmidt wrote: >>> On Tue, Jan 8, 2019 at 1:08 PM Marek Vasut wrote: On 1/8/19 1:06 PM, Simon Goldschmidt wrote: > On Tue, Jan 8, 2019 at 12:20 PM Marek Vasut

Re: [U-Boot] [PATCH] net: fix env flags for eth10addr and above

2019-01-14 Thread Simon Goldschmidt
Hi Joe, Am 14.01.2019 um 19:19 schrieb Joe Hershberger: Hi Simon, On Mon, Jan 14, 2019 at 10:29 AM Tom Rini wrote: On Mon, Jan 14, 2019 at 04:42:10PM +0100, Simon Goldschmidt wrote: Am 14.12.2018 um 14:28 schrieb Tom Rini: On Fri, Dec 14, 2018 at 09:56:19AM +0100, Simon Goldschmidt wrote:

Re: [U-Boot] [PATCH] net: fix env flags for eth10addr and above

2019-01-14 Thread Joe Hershberger
Hi Simon, On Mon, Jan 14, 2019 at 10:29 AM Tom Rini wrote: > > On Mon, Jan 14, 2019 at 04:42:10PM +0100, Simon Goldschmidt wrote: > > Am 14.12.2018 um 14:28 schrieb Tom Rini: > > >On Fri, Dec 14, 2018 at 09:56:19AM +0100, Simon Goldschmidt wrote: > > > > > >>+Tom > > >> > > >>On Sun, Dec 9, 2018

Re: [U-Boot] [PATCH v2 5/9] arm: actions: add S700 SoC device tree

2019-01-14 Thread Rob Herring
On Mon, Jan 14, 2019 at 6:46 AM Amit Singh Tomar wrote: > > This patch adds .dtsi file(sync with Linux 4.20) and required binding > for S700 SoC that is a 64-bit Quad-core ARM Cortex-A53 cores. > > Signed-off-by: Amit Singh Tomar > --- > Changes since v1: > * Moved the u-boot specific

[U-Boot] rk3288: firefly: flashing emmc from maskrom using USB

2019-01-14 Thread Jack Mitchell
I'm having issues flashing the emmc on my firefly board using USB. For some reason it seems as though trying to write to the emmc flash sector 0x40 for uboot spl+proper from the Maskrom/Loader doesn't work. Can anyone elaborate on what I'm doing wrong, or another way I could achieve this? The

[U-Boot] Porting u-boot to flash micro with proprietary (non-GPL) flash programming library

2019-01-14 Thread Ulf Samuelsson
I am working in a project where we are considering using U-Boot as a bootloader for a flash microcontroller with an ARM Cortex-Rx core. The chip is currently not supported by U-Boot. The processor will not be running linux. Our board will use • On Chip Flash • External Parallel

Re: [U-Boot] [PATCH] net: fix env flags for eth10addr and above

2019-01-14 Thread Tom Rini
On Mon, Jan 14, 2019 at 04:42:10PM +0100, Simon Goldschmidt wrote: > Am 14.12.2018 um 14:28 schrieb Tom Rini: > >On Fri, Dec 14, 2018 at 09:56:19AM +0100, Simon Goldschmidt wrote: > > > >>+Tom > >> > >>On Sun, Dec 9, 2018 at 9:51 PM Simon Goldschmidt > >> wrote: > >>> > >>>Am 22.11.2018 um 17:06

Re: [U-Boot] [U-Boot, v2] mmc: fsl_esdhc: Avoid infinite loop in esdhc_send_cmd_common()

2019-01-14 Thread Tom Rini
On Mon, Nov 19, 2018 at 10:31:53AM -0200, Fabio Estevam wrote: > The following hang is observed on a Hummingboard 2 MicroSOM > i2eX iMX6D - rev 1.3 with no eMMC populated on board: > > U-Boot SPL 2018.11+gf6206f8587 (Nov 16 2018 - 00:56:34 +) > Trying to boot from MMC1 > > U-Boot

Re: [U-Boot] [U-Boot, v2] imx8mq_evk_defconfig: Move file system options to Kconfig

2019-01-14 Thread Tom Rini
On Sat, Dec 29, 2018 at 10:02:24AM -0200, Fabio Estevam wrote: > Chris Spencer reports that when enabling ext4 read support without > also enabling write support the following error is seen: > > fs/fs.c:198:12: error: 'ext4_write_file' undeclared here (not in a > function); did you mean

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

2019-01-14 Thread Tom Rini
On Mon, Jan 14, 2019 at 04:38:24PM +0100, Simon Goldschmidt wrote: > Tom, > > Am 11.12.2018 um 02:07 schrieb Simon Glass: > >On Wed, 28 Nov 2018 at 13:52, Simon Goldschmidt > > wrote: > >> > >>SPL currently does not check uImage CRCs when loading U-Boot. > >> > >>This patch adds checking the

Re: [U-Boot] [PATCH u-boot] pinctrl: meson: add pinconf support

2019-01-14 Thread Neil Armstrong
Hi Jerome, On 04/01/2019 15:44, Jerome Brunet wrote: > Adding pinconf support is necessary to enable boot from SPI > without breaking the eMMC. When booting from SPI, the ROM code > leave pull downs on the eMMC pad. > > We need to set pinconf provided in DT to solve this > > Signed-off-by:

Re: [U-Boot] [PATCH v1 1/4] arm: socfpga: imply SPL config instead of select

2019-01-14 Thread Simon Goldschmidt
Hi Dinh, Am 14.01.2019 um 16:58 schrieb Dinh Nguyen: Hi Simon, On 1/14/19 9:50 AM, Simon Goldschmidt wrote: Am 11.01.2019 um 23:02 schrieb Marek Vasut: On 1/11/19 9:39 PM, Simon Goldschmidt wrote: Am 07.01.2019 um 23:53 schrieb Marek Vasut: On 1/7/19 10:14 PM, Simon Goldschmidt wrote: In

Re: [U-Boot] [PATCH v1 1/4] arm: socfpga: imply SPL config instead of select

2019-01-14 Thread Dinh Nguyen
Hi Simon, On 1/14/19 9:50 AM, Simon Goldschmidt wrote: > Am 11.01.2019 um 23:02 schrieb Marek Vasut: >> On 1/11/19 9:39 PM, Simon Goldschmidt wrote: >>> Am 07.01.2019 um 23:53 schrieb Marek Vasut: On 1/7/19 10:14 PM, Simon Goldschmidt wrote: > In order to build a smaller SPL, let's imply

Re: [U-Boot] [PATCH v2] imx8mq_evk_defconfig: Move file system options to Kconfig

2019-01-14 Thread Fabio Estevam
Hi Tom/Stefano, On Sat, Dec 29, 2018 at 10:02 AM Fabio Estevam wrote: > > Chris Spencer reports that when enabling ext4 read support without > also enabling write support the following error is seen: > > fs/fs.c:198:12: error: 'ext4_write_file' undeclared here (not in a > function); did you mean

Re: [U-Boot] [PATCH v2] mmc: fsl_esdhc: Avoid infinite loop in esdhc_send_cmd_common()

2019-01-14 Thread Fabio Estevam
Hi Tom/Stefano, On Sat, Dec 8, 2018 at 12:58 PM Fabio Estevam wrote: > > Hi Jaehoon, > > On Mon, Nov 19, 2018 at 10:31 AM Fabio Estevam wrote: > > > > The following hang is observed on a Hummingboard 2 MicroSOM > > i2eX iMX6D - rev 1.3 with no eMMC populated on board: > > > > U-Boot SPL

Re: [U-Boot] [PATCH v1 1/4] arm: socfpga: imply SPL config instead of select

2019-01-14 Thread Simon Goldschmidt
Am 11.01.2019 um 23:02 schrieb Marek Vasut: On 1/11/19 9:39 PM, Simon Goldschmidt wrote: Am 07.01.2019 um 23:53 schrieb Marek Vasut: On 1/7/19 10:14 PM, Simon Goldschmidt wrote: In order to build a smaller SPL, let's imply SPL_DM_RESET and SPL_WATCHDOG_SUPPORT instead of selecting them, so

Re: [U-Boot] [PATCH] net: remove duplicate definition of ETHADDR_WILDCARD

2019-01-14 Thread Simon Goldschmidt
Joe, Am 14.12.2018 um 14:43 schrieb Simon Goldschmidt: On Fri, Dec 14, 2018 at 2:28 PM Tom Rini wrote: On Fri, Dec 14, 2018 at 09:55:32AM +0100, Simon Goldschmidt wrote: + Tom On Sun, Dec 9, 2018 at 9:51 PM Simon Goldschmidt wrote: Am 22.11.2018 um 16:58 schrieb Simon Goldschmidt:

  1   2   >