Re: [U-Boot] [RFC v2 07/11] cmd: bootefi: move do_bootefi_bootmgr_exec() forward

2019-03-26 Thread Heinrich Schuchardt
On 3/27/19 5:40 AM, AKASHI Takahiro wrote: > This is a preparatory patch for reworking do_bootefi() in later patch. I would suggest as commit message: Move do_bootefi_bootmgr_exec() up in code to avoid a forward declaration in a later patch. Otherwise Reviewed-by: Heinrich Schuchardt > > Sign

Re: [U-Boot] [RFC v2 06/11] cmd: bootefi: carve out efi_selftest code from do_bootefi()

2019-03-26 Thread Heinrich Schuchardt
On 3/27/19 5:40 AM, AKASHI Takahiro wrote: > This is a preparatory patch for reworking do_bootefi() in later patch. > > Efi_selftest code is unusual in terms of execution path in do_bootefi(), > which make that function complicated and hard to understand. With this > patch, all efi_selftest related

Re: [U-Boot] [PATCH] mvebu: drop dangling SPI flash comments and #ifdefs

2019-03-26 Thread Stefan Roese
On 27.03.19 07:01, Baruch Siach wrote: Following commits abe66b1b5dec ("Convert CONFIG_ENV_SPI_* to Kconfig") and 14453fbfadc2f ("Convert CONFIG_SF_DEFAULT_* to Kconfig") remove dandling comment lines and empty #ifdef sections. Cc: Patrick Delaunay Signed-off-by: Baruch Siach --- include/con

Re: [U-Boot] [RFC v2 05/11] cmd: bootefi: merge efi_install_fdt() and efi_process_fdt()

2019-03-26 Thread Heinrich Schuchardt
On 3/27/19 5:40 AM, AKASHI Takahiro wrote: > This is a preparatory patch for reworking do_bootefi() in later patch. > For simplicity, merge two functions. > > Signed-off-by: AKASHI Takahiro > --- > cmd/bootefi.c | 67 +-- > 1 file changed, 28 insert

Re: [U-Boot] [RFC v2 04/11] cmd: bootefi: carve out fdt handling from do_bootefi()

2019-03-26 Thread Heinrich Schuchardt
On 3/27/19 5:40 AM, AKASHI Takahiro wrote: > This is a preparatory patch for reworking do_bootefi() in later patch. > > Signed-off-by: AKASHI Takahiro > --- > cmd/bootefi.c | 53 --- > 1 file changed, 38 insertions(+), 15 deletions(-) > > diff --git

Re: [U-Boot] [PATCH v5] board/fsl/lx2160a: Fix MC firmware loading during SD boot

2019-03-26 Thread Prabhakar Kushwaha
> -Original Message- > From: Pankaj Bansal > Sent: Monday, March 25, 2019 5:28 PM > To: Meenakshi Aggarwal ; Priyanka Jain > ; Prabhakar Kushwaha > > Cc: u-boot@lists.denx.de; Pankaj Bansal > Subject: [PATCH v5] board/fsl/lx2160a: Fix MC firmware loading during SD > boot > > during SD b

Re: [U-Boot] [RFC v2 03/11] efi_loader: device_path: handle special case of loading

2019-03-26 Thread Heinrich Schuchardt
On 3/27/19 5:40 AM, AKASHI Takahiro wrote: > This is a preparatory patch. > > efi_dp_split_file_path() is used to create device_path and file_path > from file_path for efi_setup_loaded_image(). > In a special case, however, of HARDWARE_DEVICE/MEMORY, it doesn't > work expectedly since this path doe

[U-Boot] [PATCH] mvebu: drop dangling SPI flash comments and #ifdefs

2019-03-26 Thread Baruch Siach
Following commits abe66b1b5dec ("Convert CONFIG_ENV_SPI_* to Kconfig") and 14453fbfadc2f ("Convert CONFIG_SF_DEFAULT_* to Kconfig") remove dandling comment lines and empty #ifdef sections. Cc: Patrick Delaunay Signed-off-by: Baruch Siach --- include/configs/clearfog.h| 2 -- include/con

Re: [U-Boot] [SoCFPGA] co-custodianship

2019-03-26 Thread Stefan Roese
Hi Marek, On 26.03.19 17:43, Marek Vasut wrote: I would like to nominate Simon Goldschmidt as a co-custodian for the SoCFPGA platform to help me review patches and collect them into PRs. Any objections ? Not at all. Simon is doing a magnificent job with his U-Boot contributions since quite a l

Re: [U-Boot] scan_peb ubi error sama5d36 nand flash v2019.01

2019-03-26 Thread Stefan Roese
Hi Dan, On 26.03.19 17:40, Daniel Evans wrote: After an install of Nand flash using an SD card and linux script on a custom sama5d36 board, setup with the following partitions: $ cat /proc/mtd dev:size erasesize name mtd0: 0004 0002 "at91bootstrap" mtd1: 000c 0002 "bootl

Re: [U-Boot] [RFC v2 01/11] efi_loader: boottime: add loaded image device path protocol to image handle

2019-03-26 Thread Heinrich Schuchardt
On 3/27/19 5:40 AM, AKASHI Takahiro wrote: > To meet UEFI spec v2.7a section 9.2, we should add > EFI_LOADED_IMAGE_DEVICE_PATH_PROTOCOL to image handle, > instead of EFI_DEVICE_PATH_PROTOCOL. > > Signed-off-by: AKASHI Takahiro > --- > include/efi_api.h | 4 > include/efi_loa

Re: [U-Boot] [PATCH] fastboot: getvar: fix broken 'fastboot flash' when partition has slots

2019-03-26 Thread Alex Kiernan
On Wed, Mar 27, 2019 at 5:44 AM Alex Kiernan wrote: > > On Wed, Mar 27, 2019 at 1:04 AM Eugeniu Rosca wrote: > > > > With eMMC partitioning [1], 'fastboot getvar has-slot:' > > returns 'yes' only for 'system' and 'boot', while it is clear that [1] > > has more partitions featuring slots (i.e. dtb

Re: [U-Boot] [PATCH] fastboot: getvar: fix broken 'fastboot flash' when partition has slots

2019-03-26 Thread Alex Kiernan
On Wed, Mar 27, 2019 at 1:04 AM Eugeniu Rosca wrote: > > With eMMC partitioning [1], 'fastboot getvar has-slot:' > returns 'yes' only for 'system' and 'boot', while it is clear that [1] > has more partitions featuring slots (i.e. dtb, dtbo, vbmeta and vendor). > > One not so obvious consequence is

Re: [U-Boot] [PATCH] Revert "arm: config: fix default console only to specify the device"

2019-03-26 Thread Anand Moon
Hi Seung-Woo Kim, On Tue, 26 Mar 2019 at 10:04, Seung-Woo Kim wrote: > > Hello Anand, > > > -Original Message- > > From: Anand Moon [mailto:linux.am...@gmail.com] > > Sent: Monday, March 25, 2019 3:45 PM > > To: Seung-Woo Kim > > Cc: U-Boot Mailing List; Lukasz Majewski > > Subject: Re: [

[U-Boot] [RFC v2 10/11] efi_loader: rework bootmgr/bootefi using load_image API

2019-03-26 Thread AKASHI Takahiro
In the current implementation, bootefi command and EFI boot manager don't use load_image API, instead, use more primitive and internal functions. This will introduce duplicated code and potentially unknown bugs as well as inconsistent behaviours. With this patch, do_efibootmgr() and do_boot_efi()

[U-Boot] [RFC v2 08/11] cmd: bootefi: carve out bootmgr code from do_bootefi()

2019-03-26 Thread AKASHI Takahiro
This is a preparatory patch for reworking do_bootefi() in later patch. do_bootmgr_exec() is renamed to do_efibootmgr() as we put all the necessary code into this function. Signed-off-by: AKASHI Takahiro --- cmd/bootefi.c | 42 ++ 1 file changed, 34 inserti

[U-Boot] [RFC v2 02/11] efi_loader: boottime: export efi_[un]load_image()

2019-03-26 Thread AKASHI Takahiro
This is a preparatory patch. Those two functions will be used later for reworking do_bootefi(). Signed-off-by: AKASHI Takahiro Reviewed-by: Heinrich Schuchardt --- include/efi_loader.h | 9 + lib/efi_loader/efi_boottime.c | 14 +++--- 2 files changed, 16 insertions(+),

[U-Boot] [RFC v2 04/11] cmd: bootefi: carve out fdt handling from do_bootefi()

2019-03-26 Thread AKASHI Takahiro
This is a preparatory patch for reworking do_bootefi() in later patch. Signed-off-by: AKASHI Takahiro --- cmd/bootefi.c | 53 --- 1 file changed, 38 insertions(+), 15 deletions(-) diff --git a/cmd/bootefi.c b/cmd/bootefi.c index 3619a20e6433..aba8

[U-Boot] [RFC v2 11/11] cmd: add efibootmgr command

2019-03-26 Thread AKASHI Takahiro
Add CONFIG_CMD_STANDALONE_EFIBOOTMGR. With this patch, EFI boot manager can be kicked in by a standalone command, efibootmgr. Signed-off-by: AKASHI Takahiro --- cmd/Kconfig | 8 cmd/bootefi.c | 35 +++ 2 files changed, 43 insertions(+) diff --git a/cm

[U-Boot] [RFC v2 09/11] cmd: bootefi: carve out do_boot_efi() from do_bootefi()

2019-03-26 Thread AKASHI Takahiro
This is a preparatory patch for reworking do_bootefi() in later patch. All the non-boot-manager-based (that is, bootefi ) code is put into one function, do_boot_efi(). Signed-off-by: AKASHI Takahiro --- cmd/bootefi.c | 122 -- 1 file changed, 68 in

[U-Boot] [RFC v2 07/11] cmd: bootefi: move do_bootefi_bootmgr_exec() forward

2019-03-26 Thread AKASHI Takahiro
This is a preparatory patch for reworking do_bootefi() in later patch. Signed-off-by: AKASHI Takahiro --- cmd/bootefi.c | 42 +- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/cmd/bootefi.c b/cmd/bootefi.c index 1267d895472c..e9d4881997a1

[U-Boot] [RFC v2 05/11] cmd: bootefi: merge efi_install_fdt() and efi_process_fdt()

2019-03-26 Thread AKASHI Takahiro
This is a preparatory patch for reworking do_bootefi() in later patch. For simplicity, merge two functions. Signed-off-by: AKASHI Takahiro --- cmd/bootefi.c | 67 +-- 1 file changed, 28 insertions(+), 39 deletions(-) diff --git a/cmd/bootefi.c b/c

[U-Boot] [RFC v2 06/11] cmd: bootefi: carve out efi_selftest code from do_bootefi()

2019-03-26 Thread AKASHI Takahiro
This is a preparatory patch for reworking do_bootefi() in later patch. Efi_selftest code is unusual in terms of execution path in do_bootefi(), which make that function complicated and hard to understand. With this patch, all efi_selftest related code will be put in a separate function. The chang

[U-Boot] [RFC v2 03/11] efi_loader: device_path: handle special case of loading

2019-03-26 Thread AKASHI Takahiro
This is a preparatory patch. efi_dp_split_file_path() is used to create device_path and file_path from file_path for efi_setup_loaded_image(). In a special case, however, of HARDWARE_DEVICE/MEMORY, it doesn't work expectedly since this path doesn't contain any FILE_PATH sub-type. This patch makes

[U-Boot] [RFC v2 01/11] efi_loader: boottime: add loaded image device path protocol to image handle

2019-03-26 Thread AKASHI Takahiro
To meet UEFI spec v2.7a section 9.2, we should add EFI_LOADED_IMAGE_DEVICE_PATH_PROTOCOL to image handle, instead of EFI_DEVICE_PATH_PROTOCOL. Signed-off-by: AKASHI Takahiro --- include/efi_api.h | 4 include/efi_loader.h | 1 + lib/efi_loader/efi_boottime.c

[U-Boot] [RFC v2 00/11] efi_loader: rework bootefi/bootmgr

2019-03-26 Thread AKASHI Takahiro
There are several reasons that I want to rework/refactor bootefi command as well as bootmgr: * Some previous commits on bootefi.c have made the code complicated and a bit hard to understand. * do_bootefi_exec() would better be implemented using load_image() along with start_image() to be align

Re: [U-Boot] saveenv corrupts QSPI flash with latest commit U-Boot 2019.04-rc4-00047-gcfb3e102c4

2019-03-26 Thread Vignesh Raghavendra
On 26/03/19 7:11 PM, Ashish Kumar wrote: >> >> On 26/03/19 10:36 AM, Ashish Kumar wrote: >>> Hello Maintainers, >>> >>> >>> >>> With latest commit I see that saveenv command corrupts QSPI-flash, >>> meaning if I read QSPI-flash at 0x0 offset RCW(reset configuration >>> word) is erased after savee

Re: [U-Boot] [PATCH 5/5] pico-imx7d: Add bl33 config

2019-03-26 Thread Jun Nie
Otavio Salvador 于2019年3月26日周二 下午8:23写道: > > On Tue, Mar 26, 2019 at 6:23 AM Jun Nie wrote: > > > > Add default configuration to run u-boot as BL33 in the boot flow case > > of ATF(ARM Trusted Firmware) -> OPTEE -> U-boot. > > > > Signed-off-by: Jun Nie > > Please base it on pico-imx7d_defconfig

Re: [U-Boot] [U-Boot,7/7] Convert CONFIG_ENV_SPI_* to Kconfig

2019-03-26 Thread Tom Rini
On Wed, Feb 27, 2019 at 03:20:38PM +0100, Patrick Delaunay wrote: > This converts the following to Kconfig: > CONFIG_ENV_SPI_BUS > CONFIG_ENV_SPI_CS > CONFIG_ENV_SPI_MAX_HZ > CONFIG_ENV_SPI_MODE > > Most of time these value are not needed, CONFIG_SF_DEFAULT > with same value is used, so I

Re: [U-Boot] [U-Boot,5/7] Convert CONFIG_SF_DEFAULT_* to Kconfig

2019-03-26 Thread Tom Rini
On Wed, Feb 27, 2019 at 03:20:36PM +0100, Patrick Delaunay wrote: > This converts the following to Kconfig: > CONFIG_SF_DEFAULT_BUS > CONFIG_SF_DEFAULT_CS > CONFIG_SF_DEFAULT_MODE > CONFIG_SF_DEFAULT_SPEED > > I use moveconfig script and then manual check on generated u-boot.cfg > to solv

Re: [U-Boot] [U-Boot, 4/7] tqma6s_wru4_mmc: manage board_spi_cs_gpio correctly

2019-03-26 Thread Tom Rini
On Wed, Feb 27, 2019 at 03:20:35PM +0100, Patrick Delaunay wrote: > Define the function board_spi_cs_gpio only when needed, > only called in drivers/spi/mxc_spi.c. > That avoid compilation issue for tqma6s_wru4_mmc_defconfig > when CONFIG_SF_DEFAULT_BUS and CONFIG_SF_DEFAULT_CS are not > defined (

Re: [U-Boot] [U-Boot,6/7] Convert CONFIG_DEFAULT_SPI_* to Kconfig

2019-03-26 Thread Tom Rini
On Wed, Feb 27, 2019 at 03:20:37PM +0100, Patrick Delaunay wrote: > This converts the following to Kconfig: >CONFIG_DEFAULT_SPI_BUS >CONFIG_DEFAULT_SPI_MODE > > Signed-off-by: Patrick Delaunay Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] [U-Boot, 3/7] exynos: replace CONFIG_ENV_SPI_BASE by CONFIG_SYS_SPI_BASE

2019-03-26 Thread Tom Rini
On Wed, Feb 27, 2019 at 03:20:34PM +0100, Patrick Delaunay wrote: > Replace CONFIG_ENV_SPI_BASE by the better CONFIG_SYS_SPI_BASE > (it is not the location for environment but the location for U-Boot) > and, as it is the only platform with use this define, remove > it from whitelist. > > Signed-o

Re: [U-Boot] [U-Boot, 1/7] bcm7445: move some configuration in defconfig file

2019-03-26 Thread Tom Rini
On Wed, Feb 27, 2019 at 03:20:32PM +0100, Patrick Delaunay wrote: > Move some configurations in defconfig file > - CONFIG_DM_SPI (removed by syncing defconfigs ) > - CONFIG_CMD_SF > - CONFIG_CMD_SPI > - CONFIG_CMD_SF_TEST > > This allow correct dependency handling in Kconfig. > > Signed-off-by:

Re: [U-Boot] [U-Boot, 2/7] controlcenterdc: move some configuration in defconfig file

2019-03-26 Thread Tom Rini
On Wed, Feb 27, 2019 at 03:20:33PM +0100, Patrick Delaunay wrote: > Move some configurations in defconfig file > - CONFIG_CMD_I2C > - CONFIG_CMD_SPI > > This allow correct dependency handling in Kconfig. > > Signed-off-by: Patrick Delaunay Applied to u-boot/master, thanks! -- Tom signature

Re: [U-Boot] [RFC 1/8] efi_loader: boottime: don't add device path protocol to image handle

2019-03-26 Thread AKASHI Takahiro
On Wed, Mar 06, 2019 at 06:29:14AM +0100, Heinrich Schuchardt wrote: > On 3/6/19 6:04 AM, Heinrich Schuchardt wrote: > > On 3/6/19 1:27 AM, AKASHI Takahiro wrote: > >> On Tue, Mar 05, 2019 at 08:48:37PM +0100, Heinrich Schuchardt wrote: > >>> On 3/5/19 6:53 AM, AKASHI Takahiro wrote: > It is j

[U-Boot] [PATCH] fastboot: getvar: fix broken 'fastboot flash' when partition has slots

2019-03-26 Thread Eugeniu Rosca
With eMMC partitioning [1], 'fastboot getvar has-slot:' returns 'yes' only for 'system' and 'boot', while it is clear that [1] has more partitions featuring slots (i.e. dtb, dtbo, vbmeta and vendor). One not so obvious consequence is that 'fastboot flash {dtb,dtbo,vbmeta,vendor} img' will fail [2]

Re: [U-Boot] [PATCH 2/2] fastboot: getvar_partition_type: Return 'raw' when FS-unaware

2019-03-26 Thread Eugeniu Rosca
On Tue, Mar 19, 2019 at 11:57:06PM +0100, Eugeniu Rosca wrote: [..] > - fastboot_fail("failed to set partition", response); > + fastboot_okay("raw", response); [..] Checking recent upstream fastboot implementation [1], I can see [2] that returning success or

Re: [U-Boot] [PATCH] fastboot: getvar: correct/rename "has_slot" to "has-slot"

2019-03-26 Thread Alex Kiernan
On Tue, Mar 26, 2019 at 4:46 PM Eugeniu Rosca wrote: > > Since its inception in upstream fastboot android-n-preview-1 [1], > "has-slot" option has never taken the form of "has_slot". Amongst the > users of "getvar has-slot:" is the upstream bootloadertest.py [2]. > > Current U-Boot "has_slot" vers

[U-Boot] [PATCH 1/2] efi_loader: rearrange boottime service functions

2019-03-26 Thread Heinrich Schuchardt
To avoid forward declarations move efi_start_image() and efi_exit() down. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_boottime.c | 218 +- 1 file changed, 109 insertions(+), 109 deletions(-) diff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loade

[U-Boot] [PATCH 2/2] efi_loader: parameter checks in StartImage and Exit()

2019-03-26 Thread Heinrich Schuchardt
Add parameter checks in the StartImage() and Exit() boottime services: - check that the image handle is valid and has the loaded image protocol installed - in StartImage() record the current image - in Exit() check that the image is the current image Signed-off-by: Heinrich Schuchardt --- lib/

[U-Boot] [PATCH 0/2] efi_loader: parameter checks in StartImage and Exit()

2019-03-26 Thread Heinrich Schuchardt
Add parameter checks in the StartImage() and Exit() boottime services: - check that the image handle is valid and has the loaded image protocol installed - in StartImage() record the current image - in Exit() check that the image is the current image Heinrich Schuchardt (2): efi_loader: rearra

Re: [U-Boot] [PATCH] pico-imx7: Disable video support

2019-03-26 Thread Fabio Estevam
Hi Michael, On Tue, Mar 26, 2019 at 5:21 AM Michael Nazzareno Trimarchi wrote: > > Not sure why setting GPIO1_6 is causing the board to hang. > > Maybe you drain to much power ;) Yes, that was the issue. This issue can be avoided by powering the board via an externally powered USB hub. The new

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

2019-03-26 Thread Marek Vasut
The following changes since commit cfb3e102c4bdf96a41cbd3eeb1d3a9a56c69c46c: Merge branch '2019-03-22-master-imports' (2019-03-22 19:09:58 -0400) are available in the Git repository at: git://git.denx.de/u-boot-socfpga.git master for you to fetch changes up to 3d0cc01d101abc3efd5feabe85f22a

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

2019-03-26 Thread Marek Vasut
Various fixes for bugs found by u-boot test.py The following changes since commit cfb3e102c4bdf96a41cbd3eeb1d3a9a56c69c46c: Merge branch '2019-03-22-master-imports' (2019-03-22 19:09:58 -0400) are available in the Git repository at: git://git.denx.de/u-boot-sh.git master for you to fetch c

[U-Boot] [SoCFPGA] co-custodianship

2019-03-26 Thread Marek Vasut
Hi, I would like to nominate Simon Goldschmidt as a co-custodian for the SoCFPGA platform to help me review patches and collect them into PRs. Any objections ? Thanks -- Best regards, Marek Vasut ___ U-Boot mailing list U-Boot@lists.denx.de https://li

Re: [U-Boot] [PATCH v2] mmc: correct the HS400 initialization process

2019-03-26 Thread Marek Vasut
On 3/26/19 7:24 AM, BOUGH CHEN wrote: > After the commit b9a2a0e2e9c0 ("mmc: Add support for downgrading > HS200/HS400 to HS mode"), it add a parameter in mmc_set_card_speed() > which indicates that the HS200/HS400 to HS downgrade is happening. > > During the HS400 initialization, first select to

Re: [U-Boot] [PATCH 1/3] usb: dwc3: Add Meson G12A USB Glue

2019-03-26 Thread Marek Vasut
On 3/26/19 4:15 PM, Neil Armstrong wrote: > Adds support for Amlogic G12A USB Control Glue HW. > > The Amlogic G12A SoC Family embeds 2 USB Controllers : > - a DWC3 IP configured as Host for USB2 and USB3 > - a DWC2 IP configured as Peripheral USB2 Only > > A glue connects these both controllers

Re: [U-Boot] [PATCH v2 00/15] ARM: tegra: Add NVIDIA Jetson Nano Developer Kit support

2019-03-26 Thread Thierry Reding
On Tue, Mar 26, 2019 at 04:06:46PM +, Peter Robinson wrote: > > > > This set of patches move some code from the Tegra186 SoC specific > > > > directory to a common location so that it can be more easily shared. > > > > Since the differences between Tegra186 and earlier generations are > > > > n

[U-Boot] [PATCH] fastboot: getvar: correct/rename "has_slot" to "has-slot"

2019-03-26 Thread Eugeniu Rosca
Since its inception in upstream fastboot android-n-preview-1 [1], "has-slot" option has never taken the form of "has_slot". Amongst the users of "getvar has-slot:" is the upstream bootloadertest.py [2]. Current U-Boot "has_slot" version must be a typo. Fix it. [1] https://android.googlesource.com

[U-Boot] scan_peb ubi error sama5d36 nand flash v2019.01

2019-03-26 Thread Daniel Evans
After an install of Nand flash using an SD card and linux script on a custom sama5d36 board, setup with the following partitions: $ cat /proc/mtd dev:size erasesize name mtd0: 0004 0002 "at91bootstrap" mtd1: 000c 0002 "bootloader" mtd2: 0008 0002 "bootloader env" mt

Re: [U-Boot] [PATCH] configs: ti: Move FIT image load address to avoid overwrite

2019-03-26 Thread Andrew F. Davis
On 3/26/19 11:21 AM, Tom Rini wrote: > On Tue, Mar 26, 2019 at 10:12:01AM -0500, Andrew F. Davis wrote: > >> The FIT image is loaded to 0x8700_ followed by extracting from that >> several large images also into the 0x8x00_ range. Large images >> can end up overwriting the FIT image as it i

Re: [U-Boot] [PATCH] configs: ti: Move FIT image load address to avoid overwrite

2019-03-26 Thread Tom Rini
On Tue, Mar 26, 2019 at 10:12:01AM -0500, Andrew F. Davis wrote: > The FIT image is loaded to 0x8700_ followed by extracting from that > several large images also into the 0x8x00_ range. Large images > can end up overwriting the FIT image as it is being extracted from. > Move the FIT load

Re: [U-Boot] [PATCH v2 00/15] ARM: tegra: Add NVIDIA Jetson Nano Developer Kit support

2019-03-26 Thread Peter Robinson
> > > This set of patches move some code from the Tegra186 SoC specific > > > directory to a common location so that it can be more easily shared. > > > Since the differences between Tegra186 and earlier generations are > > > now very small, the builds are unified to avoid duplication of code. > >

Re: [U-Boot] [PATCH v2 00/15] ARM: tegra: Add NVIDIA Jetson Nano Developer Kit support

2019-03-26 Thread Thierry Reding
On Wed, Mar 20, 2019 at 11:22:44AM +, Peter Robinson wrote: > Hi Thierry, > > > This set of patches move some code from the Tegra186 SoC specific > > directory to a common location so that it can be more easily shared. > > Since the differences between Tegra186 and earlier generations are > >

[U-Boot] [PATCH 3/3] mach-meson: g12a: add DWC2 peripheral mode support

2019-03-26 Thread Neil Armstrong
Adds support for Amlogic G12A USB Device mode. The DWC2 Controller behind the Glue can be connected to an OTG capable PHY. The Glue setups the PHY mode. This patch implements Device mode support by adding a board_usb_init/cleanup setting up the DWC2 controller and switch the OTG capable port to D

[U-Boot] [PATCH 2/3] phy: meson: add Amlogic G12A USB2 and USB3+PCIE PHY drivers

2019-03-26 Thread Neil Armstrong
This adds support for the USB PHYs found in the Amlogic G12A SoC Family. The USB2 PHY supports Host and/or Peripheral mode, depending on it's position. The first PHY is only used as Host, but the second supports Dual modes defined by the USB Control Glue HW in front of the USB Controllers. The se

[U-Boot] [PATCH 1/3] usb: dwc3: Add Meson G12A USB Glue

2019-03-26 Thread Neil Armstrong
Adds support for Amlogic G12A USB Control Glue HW. The Amlogic G12A SoC Family embeds 2 USB Controllers : - a DWC3 IP configured as Host for USB2 and USB3 - a DWC2 IP configured as Peripheral USB2 Only A glue connects these both controllers to 2 USB2 PHYs, and optionnally to an USB3+PCIE Combo PH

[U-Boot] [PATCH 0/3] ARM: meson: Add G12A USB Support

2019-03-26 Thread Neil Armstrong
This patchset adds support for USB on Amlogic G12A SoCs. This patchset is composed with : - PHY Drivers - USB Control Glue driver - G12A board setup for Device mode Device Tree nodes will be added in a separate patchset when applied on a tagged Linux tree. The Amlogic G12A USB Complex is compose

Re: [U-Boot] [PATCH 5/5] pico-imx7d: Add bl33 config

2019-03-26 Thread Jun Nie
Otavio Salvador 于2019年3月26日周二 下午8:23写道: > > On Tue, Mar 26, 2019 at 6:23 AM Jun Nie wrote: > > > > Add default configuration to run u-boot as BL33 in the boot flow case > > of ATF(ARM Trusted Firmware) -> OPTEE -> U-boot. > > > > Signed-off-by: Jun Nie > > Please base it on pico-imx7d_defconfig

[U-Boot] [PATCH] configs: ti: Move FIT image load address to avoid overwrite

2019-03-26 Thread Andrew F. Davis
The FIT image is loaded to 0x8700_ followed by extracting from that several large images also into the 0x8x00_ range. Large images can end up overwriting the FIT image as it is being extracted from. Move the FIT load address clear out to 0x9000_, this will require a board to have at lea

[U-Boot] [PATCH 5/6] ARM: dts: Import Amlogic G12A u200 DT from Linux 5.1-rc1

2019-03-26 Thread Neil Armstrong
Import Linux 5.1-rc1 DT from 9e98c678c2d6 ("Linux 5.1-rc1") for the meson-g12a-u200 board, the meson-g12a.dtsi and the corresponding bindings. Signed-off-by: Neil Armstrong --- arch/arm/dts/Makefile | 3 +- arch/arm/dts/meson-g12a-u200.dts | 29 +++ arch/a

[U-Boot] [PATCH 6/6] boards: meson: add g12a u200

2019-03-26 Thread Neil Armstrong
From: Jerome Brunet The Amlogic U200 board is based on the Amlogic S905D2 SoC from the Amlogic G12A SoC family. The board has the following specifications : - Amlogic S905D2 ARM Cortex-A53 quad-core SoC - XGB DDR4 SDRAM - 10/100 Ethernet (Internal PHY) - 1 x USB 3.0 Host - eMMC - SDcard -

[U-Boot] [PATCH 2/6] clk: create meson directory and move related drivers

2019-03-26 Thread Neil Armstrong
From: Jerome Brunet In order to support the Amlogic G12A clock controller, re-architect the clock files into a meson directory. No functionnal changes. MAINTAINERS entry is also updated. Signed-off-by: Jerome Brunet Signed-off-by: Neil Armstrong --- MAINTAINERS

[U-Boot] [PATCH 4/6] ARM: meson: add G12a support

2019-03-26 Thread Neil Armstrong
From: Jerome Brunet Add support for the Amlogic G12A SoC, which is a mix between the new physical memory mapping of AXG and the functionnalities of the previous Amlogic GXL/GXM SoCs. To handle the internal ethernet PHY, the Amlogic G12A SoCs now embeds a dedicated PLL to feed the internal PHY.

[U-Boot] [PATCH 0/6] ARM: meson: Add support for G12A based U200 board

2019-03-26 Thread Neil Armstrong
This patchset adds basic support for the recent Amlogic G12A SoC family. This SoC family embeds 4xCortex A53 CPUs, and is very similar to the AXG SoC Family with the multimedia features of previous families. This patchset adds : - pinctrl support - clk driver atfer a rework of the drivers files -

[U-Boot] [PATCH 3/6] clk: meson: add g12a support

2019-03-26 Thread Neil Armstrong
From: Jerome Brunet Add basic support for the Amlogic G12A clock controller based on the AXG driver. Signed-off-by: Jerome Brunet Signed-off-by: Neil Armstrong --- arch/arm/include/asm/arch-meson/clock-g12a.h | 104 ++ drivers/clk/meson/Kconfig| 8 + drivers/clk/meso

[U-Boot] [PATCH 1/6] pinctrl: meson: add g12a support

2019-03-26 Thread Neil Armstrong
From: Jerome Brunet Add pinctrl support for the Amlogic G12A SoC, which is very similar to the Amlogic AXG support but with an additionnal drive-strength register bank. Signed-off-by: Jerome Brunet Signed-off-by: Neil Armstrong --- drivers/pinctrl/meson/Kconfig |4 + drivers/

Re: [U-Boot] [PATCH 12/12 v2] arm: at91: Add gardena-gateway-at91sam support

2019-03-26 Thread Stefan Roese
On 26.03.19 15:12, eugen.hris...@microchip.com wrote: On 26.03.2019 16:01, Stefan Roese wrote: On 26.03.19 14:58, eugen.hris...@microchip.com wrote: On 26.03.2019 14:16, Stefan Roese wrote: The GARDENA smart Gateway boards are equipped with an Atmel / Microchip AT91SAM9G25 SoC and with

Re: [U-Boot] [PATCH] Revert "env: add spi_flash_read_env function"

2019-03-26 Thread Horatiu Vultur
Hi Heiko, Sorry, for late reply. I have seen that this patch was accepted, so I have only few things bellow. The 03/15/2019 05:34, Heiko Schocher wrote: > External E-Mail > > > Hello Horatiu, > > Am 14.03.2019 um 13:53 schrieb Horatiu Vultur: > > Hi Heiko, > > > > I managed to reproduce the i

Re: [U-Boot] [PATCH 12/12 v2] arm: at91: Add gardena-gateway-at91sam support

2019-03-26 Thread Eugen.Hristev
On 26.03.2019 16:01, Stefan Roese wrote: > > On 26.03.19 14:58, eugen.hris...@microchip.com wrote: >> >> >> On 26.03.2019 14:16, Stefan Roese wrote: >> >>> The GARDENA smart Gateway boards are equipped with an Atmel / Microchip >>> AT91SAM9G25 SoC and with 128 MiB of RAM and 256 MiB of NAND sto

Re: [U-Boot] [PATCH 12/12 v2] arm: at91: Add gardena-gateway-at91sam support

2019-03-26 Thread Stefan Roese
On 26.03.19 14:58, eugen.hris...@microchip.com wrote: On 26.03.2019 14:16, Stefan Roese wrote: The GARDENA smart Gateway boards are equipped with an Atmel / Microchip AT91SAM9G25 SoC and with 128 MiB of RAM and 256 MiB of NAND storage. This patch adds support for this board including SPL su

Re: [U-Boot] [PATCH 12/12 v2] arm: at91: Add gardena-gateway-at91sam support

2019-03-26 Thread Eugen.Hristev
On 26.03.2019 14:16, Stefan Roese wrote: > The GARDENA smart Gateway boards are equipped with an Atmel / Microchip > AT91SAM9G25 SoC and with 128 MiB of RAM and 256 MiB of NAND storage. > This patch adds support for this board including SPL support. Therefore > the AT91Boostrap is not needed on

Re: [U-Boot] [PATCH v2] spl: spl_nand.c: Add NAND loading message

2019-03-26 Thread Tom Rini
On Tue, Mar 26, 2019 at 01:04:00PM +0100, Stefan Roese wrote: > This patch adds a short message to the SPL NAND loader, which displays > the source and destinations addresses including the size of the > loaded image, like this: > > U-Boot SPL 2019.04-rc3-00113-g486efd8aaf (Mar 15 2019 - 14:18:02

[U-Boot] [PATCH v2 2/2] Revert "cmd: Kconfig: Do not include EEPROM if DM_I2C is used without DM_I2C_COMPAT"

2019-03-26 Thread Simon Goldschmidt
This reverts commit 65a97e7fcf54feb7c4ebe1aee8a572830af4cf51. The 'eeprom' command has been converted to work with DM_I2C in a patch submitted around the same time as this commit: commit 0c07a9b4078d ("eeprom: Add device model based I2C support to eeprom command") Signed-off-by: Simon Goldschmid

[U-Boot] [PATCH v2 1/2] eeprom: fix DM_I2C support without CONFIG_SYS_I2C_EEPROM_BUS

2019-03-26 Thread Simon Goldschmidt
The current device model enabled eeprom code only works if CONFIG_SYS_I2C_EEPROM_BUS is set. This patch makes it work without that define so that the bus number passed to 'eeprom_init' is used. Signed-off-by: Simon Goldschmidt --- Changes in v2: None cmd/eeprom.c | 23 +++

Re: [U-Boot] [PATCH 5/5] pico-imx7d: Add bl33 config

2019-03-26 Thread Otavio Salvador
On Tue, Mar 26, 2019 at 6:23 AM Jun Nie wrote: > > Add default configuration to run u-boot as BL33 in the boot flow case > of ATF(ARM Trusted Firmware) -> OPTEE -> U-boot. > > Signed-off-by: Jun Nie Please base it on pico-imx7d_defconfig so user is asked for the base board to use and it provides

[U-Boot] [PATCH 03/12 v2] serial: atmel_usart: Use fixed clock value in SPL version with DM_SERIAL

2019-03-26 Thread Stefan Roese
This patch adds an alterative SPL version of atmel_serial_enable_clk(). This enables the usage of this driver without full clock support (in drivers and DT nodes). This saves some space in the SPL image. Please note that this fixed clock support is only added to the SPL code in the DM_SERIAL part

[U-Boot] [PATCH 11/12 v2] arm: at91: at91sam9x5.dtsi: Add watchdog handle

2019-03-26 Thread Stefan Roese
This makes it possible to reference the watchdog DT node via "&watchdog" from board dts files. Signed-off-by: Stefan Roese Cc: Heiko Schocher Cc: Andreas Bießmann Cc: Eugen Hristev --- v2: - New patch arch/arm/dts/at91sam9x5.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --

[U-Boot] [PATCH 09/12 v2] Makefile: Add Kconfig option CONFIG_SPL_IMAGE to select the SPL binary

2019-03-26 Thread Stefan Roese
This patch adds the CONFIG_SPL_IMAGE option to select the SPL image that shall be used to generate the combined SPL + U-Boot image. The default value is the current value "spl/u-boot-spl.bin". This patch also sets CONFIG_SPL_IMAGE to "spl/boot.bin" for AT91 targets which use SPL NAND support (boot

[U-Boot] [PATCH 01/12 v2] arm: at91: Makefile: Compile lowlevel_init only when really necessary

2019-03-26 Thread Stefan Roese
Make sure that lowlevel_init is not compiled when CONFIG_SKIP_LOWLEVEL_INIT_ONLY is configured. Signed-off-by: Stefan Roese Cc: Heiko Schocher Cc: Andreas Bießmann Cc: Eugen Hristev --- v2: - No change arch/arm/mach-at91/arm926ejs/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git

[U-Boot] [PATCH 06/12 v2] arm: at91: Enable watchdog support

2019-03-26 Thread Stefan Roese
This patch enables and starts the watchdog on the AT91 platform if configured. Currently the WD timeout is configured to 16 seconds, which is the longest value for this timer. Signed-off-by: Stefan Roese Cc: Heiko Schocher Cc: Andreas Bießmann Cc: Eugen Hristev --- v2: - Remove #ifdef to enabl

[U-Boot] [PATCH 05/12 v2] watchdog: at91sam9_wdt: Fix WDT setup in at91_wdt_start()

2019-03-26 Thread Stefan Roese
This patch fixes the timer register setup in at91_wdt_start() to correctly configure the register again. The input timeout value is now in milli-seconds instead of seconds with the new watchdog API. Make sure to take this into account and only use a max timeout value of 16 seconds as appropriate fo

[U-Boot] [PATCH 02/12 v2] arm: at91: spl_at91.c: Call spl_early_init() if OF_CONTROL is enabled

2019-03-26 Thread Stefan Roese
This patch adds a call to spl_early_init() to board_init_f() which is needed when CONFIG_SPL_OF_CONTROL is configured. This is necessary for the early SPL setup including the DTB setup for later usage. Please note that this call might also be needed for non SPL_OF_CONTROL board, like the smartweb

[U-Boot] [PATCH 12/12 v2] arm: at91: Add gardena-gateway-at91sam support

2019-03-26 Thread Stefan Roese
The GARDENA smart Gateway boards are equipped with an Atmel / Microchip AT91SAM9G25 SoC and with 128 MiB of RAM and 256 MiB of NAND storage. This patch adds support for this board including SPL support. Therefore the AT91Boostrap is not needed on this platform any more. Signed-off-by: Stefan Roese

[U-Boot] [PATCH 10/12 v2] arm: at91: siemens: Add support to generate combined SPL+U-Boot image

2019-03-26 Thread Stefan Roese
This patch adds the necessary defines to the Siemens AT91SAM based boards (smartweb, corvus and taurus) to generate the combined binary image with SPL and main U-Boot image combined (u-boot-with-spl.bin). Signed-off-by: Stefan Roese Cc: Heiko Schocher Cc: Andreas Bießmann Cc: Eugen Hristev ---

[U-Boot] [PATCH 04/12 v2] watchdog: Handle SPL build with watchdog disabled

2019-03-26 Thread Stefan Roese
This patch adds some checks, so that the watchdog can be enabled in main U-Boot proper but can be disabled in SPL. This will be used by some AT91SAM based boards, which might enable the watchdog in the main U-Boot proper and not in SPL. It will be enabled in SPL by default there, so no need to con

[U-Boot] [PATCH 07/12 v2] arm: at91: arm926ejs/u-boot-spl.lds: Add _image_binary_end to SPL lds

2019-03-26 Thread Stefan Roese
This patch adds _image_binary_end to the SPL linker script. This will be used be the upcoming GARDENA AT91SAM based platform, which uses DT in SPL and configures CONFIGURE_SPL_SEPARATE_BSS. Signed-off-by: Stefan Roese Cc: Heiko Schocher Cc: Andreas Bießmann Cc: Eugen Hristev --- v2: - No chang

[U-Boot] [PATCH 08/12 v2] Makefile.spl: Move generated AT91SAM NAND image boot.bin to spl directory

2019-03-26 Thread Stefan Roese
This patch moves the AT91SAM NAND booting SPL image "boot.bin" which includes the ECC values from the root directory into the spl directory, where all SPL related images are located. Signed-off-by: Stefan Roese Cc: Heiko Schocher Cc: Andreas Bießmann Cc: Eugen Hristev --- v2: - No change scr

[U-Boot] [PATCH v2] spl: spl_nand.c: Add NAND loading message

2019-03-26 Thread Stefan Roese
This patch adds a short message to the SPL NAND loader, which displays the source and destinations addresses including the size of the loaded image, like this: U-Boot SPL 2019.04-rc3-00113-g486efd8aaf (Mar 15 2019 - 14:18:02 +0100) Trying to boot from NAND Loading U-Boot from 0x0004 (size 0x00

Re: [U-Boot] paralella board support

2019-03-26 Thread Martin Husemann
On Tue, Mar 26, 2019 at 12:29:11PM +0100, Belisko Marek wrote: > Hi, > > I became owner or parallella board and it seems they still have custom fork > of u-boot [1] (not up to date). Does anyone work on mainlining this device? > I can give some hand. Thanks. Not working on it myself, but would be

[U-Boot] paralella board support

2019-03-26 Thread Belisko Marek
Hi, I became owner or parallella board and it seems they still have custom fork of u-boot [1] (not up to date). Does anyone work on mainlining this device? I can give some hand. Thanks. [1] - https://github.com/parallella/parallella-uboot BR, marek -- as simple and primitive as possible

Re: [U-Boot] [REGRESSION: PATCH 34/34] drivers/net/fec: phy_init: remove redundant logic

2019-03-26 Thread Marcel Ziswiler
Hi Hannes On Tue, 2019-03-26 at 10:15 +0100, Hannes Schmelzer wrote: > On 3/25/19 5:07 PM, Marcel Ziswiler wrote: > > Hi Stefano > > > > On Wed, 2019-03-13 at 08:28 +, sba...@denx.de wrote: > > > > The phy_connect_dev(...) function from phy.c does all the > > > > handling > > > > (inclusive c

[U-Boot] [PATCH] reset-meson: Add AXG reset compatible

2019-03-26 Thread Neil Armstrong
Signed-off-by: Neil Armstrong --- drivers/reset/reset-meson.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/reset/reset-meson.c b/drivers/reset/reset-meson.c index 92f04695ec..31aa4d41e8 100644 --- a/drivers/reset/reset-meson.c +++ b/drivers/reset/reset-meson.c @@ -69,6 +69,7 @@ str

[U-Boot] [PATCH 2/2] boards: Amlogic: Add support for Libretech-AC

2019-03-26 Thread Neil Armstrong
LibreTech AC is a single board computer manufactured by Libre Technology with the following specifications: - Amlogic S805X ARM Cortex-A53 quad-core SoC @ 1.2GHz - ARM Mali 450 GPU - 512MiB DDR4 SDRAM - 10/100 Ethernet - HDMI 2.0 4K/60Hz display - 40-pin GPIO header - 4 x USB 2.0 Host - eM

[U-Boot] [PATCH 1/2] ARM: dts: Import libretech-ac DT from Linux 5.0

2019-03-26 Thread Neil Armstrong
Import Linux 5.0 DT from 1c163f4c7b3f ("Linux 5.0") for the meson-gxl-s805x-libretech-ac board and the corresponding changes in meson-gxl.dtsi. Signed-off-by: Neil Armstrong --- arch/arm/dts/Makefile | 1 + arch/arm/dts/meson-gxl-s805x-libretech-ac.dts | 248 +++

[U-Boot] [PATCH 0/2] ARM: meson: Add support for Libretech-AC

2019-03-26 Thread Neil Armstrong
LibreTech AC is a single board computer manufactured by Libre Technology with the following specifications: - Amlogic S805X ARM Cortex-A53 quad-core SoC @ 1.2GHz - ARM Mali 450 GPU - 512MiB DDR4 SDRAM - 10/100 Ethernet - HDMI 2.0 4K/60Hz display - 40-pin GPIO header - 4 x USB 2.0 Host - eM

Re: [U-Boot] [PATCH v2] ARM: meson: display Amlogic SoC Information

2019-03-26 Thread Neil Armstrong
Hi Julien, On 25/03/2019 11:55, Julien Masson wrote: > The Amlogic SoCs have a registers containing the die revision > and packaging type to determine the SoC family and package marketing > name like S905X for the GXL SoC Family. > > This code is taken from the Linux meson-gx-socinfo driver and a

Re: [U-Boot] [PATCH v5 0/5] ARM: meson: add support for p200 and p201 boards

2019-03-26 Thread Neil Armstrong
Hi Mohammad, On 23/03/2019 12:52, Mohammad Rasim wrote: > This adds support for p200 and p201 reference boards from amlogic > > Mohammad Rasim (5): > ARM: board: meson: rename odroid-c2 to p200 > ARM: dts: meson: add p200 and p201 boards > ARM: dts: meson: add u-boot.dtsi for p200 and p201

[U-Boot] [PATCH 4/5] pico-imx7d: Add boot option for verified boot

2019-03-26 Thread Jun Nie
Add boot option to boot from fitimage to support verified boot. The boot script plain text file should be packed into fit blob as image with name of bootscr. Signed-off-by: Jun Nie --- include/configs/pico-imx7d.h | 38 +++--- 1 file changed, 35 insertions(+), 3 d

  1   2   >