Re: [U-Boot] ROCK64 fails to boot using U-Boot TPL

2019-09-20 Thread Matwey V. Kornilov
пт, 20 сент. 2019 г. в 20:28, Simon South : > > On 2019-09-20 12:43 p.m., Matwey V. Kornilov wrote: > > Could you please use u-boot console and try to locate and load dtb > > file manually using `ls` and `load` commands in both scenarios? > > Results attached. > > I'm using a regular microSD card,

[U-Boot] [PATCH v2] imx: wandboard: convert FEC support to DM_ETH

2019-09-20 Thread Anatolij Gustschin
Remove CONFIG_DM_ETH conversion warning to avoid board removal. Signed-off-by: Anatolij Gustschin --- Changes in v2: - drop legacy board_eth_init() - drop IOMUX_PADS() table for enet pads, these are already in dts arch/arm/dts/imx6qdl-wandboard.dtsi | 10 ++

[U-Boot] [PATCHv2 2/3] genboardscfg.py: Remove "warnings" print section

2019-09-20 Thread Tom Rini
We tell kconfiglib to not print any warnings to us so drop this code as it will be unused. Cc: Masahiro Yamada Signed-off-by: Tom Rini --- Changes in v2: - New patch --- tools/genboardscfg.py | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tools/genboardscfg.py

Re: [U-Boot] ROCK64 fails to boot using U-Boot TPL

2019-09-20 Thread Simon South
On 2019-09-20 1:27 p.m., Simon South wrote: I'm going to apply Elaine's patches and see if that changes things. Unfortunately no; other than this line now appearing in the output: PMIC: RK8050 (on=0x10, off=0x04) nothing seems to have changed. Either the machine hangs or NetBSD's

[U-Boot] [PATCH v2 7/8] pico-imx6: Add splashscreen support

2019-09-20 Thread Otavio Salvador
From: Fabio Estevam Add splashscreen support. Tested with the parallel FT5x06-WVGA panel. Signed-off-by: Fabio Estevam Signed-off-by: Otavio Salvador --- board/technexion/pico-imx6/pico-imx6.c | 210 + configs/pico-imx6_defconfig| 2 +

[U-Boot] [PATCH v2 2/8] mx53loco: Fix U-Boot corruption after saving the environment

2019-09-20 Thread Otavio Salvador
From: Fabio Estevam U-Boot binary has grown in such a way that it goes beyond the reserved area for the environment variables. Running "saveenv" causes U-Boot to hang because of this overlap. Fix this problem by increasing the CONFIG_ENV_OFFSET size. Also, in order to prevent this same

[U-Boot] [PATCH v2 5/8] pico-imx6: Fix bootmenu handling

2019-09-20 Thread Otavio Salvador
We should use a common script to allow booting the U-Boot console as fallback so we ended using a 'default_boot' and 'base_boot' environment scripts to accomplish that. Signed-off-by: Fabio Berton Signed-off-by: Otavio Salvador --- configs/pico-imx6_defconfig | 2 +-

[U-Boot] [PATCH] Kconfig: Migrate CONFIG_BOOTM_* options

2019-09-20 Thread Tom Rini
Migrate all of the existing OS support options that are under CONFIG_BOOTM_* to Kconfig. Signed-off-by: Tom Rini --- cmd/Kconfig | 48 configs/apalis-imx8qm_defconfig | 1 + configs/brsmarc1_defconfig | 3 +++

[U-Boot] [PATCH] imx: wandboard: convert FEC support to DM_ETH

2019-09-20 Thread Anatolij Gustschin
Remove CONFIG_DM_ETH conversion warning to avoid board removal. Signed-off-by: Anatolij Gustschin --- arch/arm/dts/imx6qdl-wandboard.dtsi | 10 ++ configs/wandboard_defconfig | 5 - include/configs/wandboard.h | 8 3 files changed, 14 insertions(+), 9

Re: [U-Boot] [PATCH v2 6/8] pico-imx6: Add Ethernet support

2019-09-20 Thread Anatolij Gustschin
Hi Otavio, On Fri, 20 Sep 2019 16:47:28 -0300 Otavio Salvador ota...@ossystems.com.br wrote: ... > +/* Ethernet Configuration */ > +#define CONFIG_FEC_MXC > +#define CONFIG_MII > +#define IMX_FEC_BASE ENET_BASE_ADDR > +#define CONFIG_FEC_XCV_TYPE RGMII > +#define

Re: [U-Boot] [PATCH v2] imx: wandboard: convert FEC support to DM_ETH

2019-09-20 Thread Fabio Estevam
Hi Anatolij, On Fri, Sep 20, 2019 at 5:49 PM Anatolij Gustschin wrote: > + mdio { > + #address-cells = <1>; > + #size-cells = <0>; > + > + ethphy: ethernet-phy@1 { > + reg = <1>; > + }; > + }; Could you

[U-Boot] [PATCH v2 1/8] configs: Sync all baseboard specific pico-imx7d

2019-09-20 Thread Otavio Salvador
This syncs all baseboard specific defconfig using the pico-imx7d_defconfig as base. It changes: - pico-dwarf-imx7d_defconfig - pico-hobbit-imx7d_defconfig - pico-nymph-imx7d_defconfig - pico-pi-imx7d_defconfig Signed-off-by: Otavio Salvador --- configs/pico-dwarf-imx7d_defconfig | 3 ++-

[U-Boot] [PATCH v2 3/8] mx6: clock: Allow enable_ipu_clock() to be built for SPL code

2019-09-20 Thread Otavio Salvador
From: Fabio Estevam Allow enable_ipu_clock() to be built for SPL code. This is done in preparation for configuring the NoC registers on i.MX6QP in SPL. Signed-off-by: Fabio Estevam Signed-off-by: Otavio Salvador --- arch/arm/mach-imx/mx6/clock.c | 32 1 file

[U-Boot] [PATCHv2 1/3] genboardscfg.py: Convert to Python 3

2019-09-20 Thread Tom Rini
Convert this tool to requiring Python 3. The bulk of this is done with the 2to3 tool In addition, we need to use the '//' operator to have our division result return an int rather than a float and ensure that we use UTF-8 when reading/writing files. Cc: Masahiro Yamada Signed-off-by: Tom Rini

Re: [U-Boot] ROCK64 fails to boot using U-Boot TPL

2019-09-20 Thread Simon South
On 2019-09-20 12:43 p.m., Matwey V. Kornilov wrote: Could you please use u-boot console and try to locate and load dtb file manually using `ls` and `load` commands in both scenarios? Results attached. I'm using a regular microSD card, not eMMC, but you're right: Using the U-Boot TPL the DTB

[U-Boot] [PATCH v2 4/8] pico-imx6: Add initial support

2019-09-20 Thread Otavio Salvador
From: Fabio Estevam Add the initial support for the pico-imx6 variants. DDR initialization is based on the TechNexion's U-Boot code. Signed-off-by: Fabio Estevam Signed-off-by: Fabio Berton Signed-off-by: Otavio Salvador --- arch/arm/dts/Makefile | 2 +

[U-Boot] [PATCH v2 8/8] pico-imx6: Add Falcon mode

2019-09-20 Thread Otavio Salvador
From: Fabio Estevam Add Falcon mode support, which allows the SPL to load and jump to the Linux kernel directly, without the need of loading U-Boot proper. CONFIG_SPL_OS_BOOT=y needs to be passed in the defconfig in order to use Falcon mode. Signed-off-by: Fabio Estevam Signed-off-by: Otavio

[U-Boot] [PATCH v2 6/8] pico-imx6: Add Ethernet support

2019-09-20 Thread Otavio Salvador
From: Fabio Estevam Add Ethernet support. Signed-off-by: Fabio Estevam Signed-off-by: Otavio Salvador --- board/technexion/pico-imx6/pico-imx6.c | 74 ++ include/configs/pico-imx6.h| 10 2 files changed, 84 insertions(+) diff --git

Re: [U-Boot] [PATCH v3 0/3] env: Add CONFIG_ENV_FULL_SUPPORT

2019-09-20 Thread Tom Rini
On Fri, Sep 20, 2019 at 11:09:14AM +0200, Stefan Roese wrote: > Hi Patrick, > > On 18.09.19 11:29, Patrick Delaunay wrote: > >This patchset is a the 3rd version of > > http://patchwork.ozlabs.org/project/uboot/list/?series=129339 > > "env: Add CONFIG_ENV_SUPPORT" > > > >The first patch of the

[U-Boot] [PATCH v2 00/08] Please pull https://github.com/OSSystems/u-boot for-imx

2019-09-20 Thread Otavio Salvador
The following changes since commit 053ed25ecc694087308e3313e35d7d977de8173f: configs: pico-imx7d: Convert to DM_VIDEO (2019-09-16 12:44:57 +0200) are available in the Git repository at: https://github.com/OSSystems/u-boot for-imx for you to fetch changes up to

Re: [U-Boot] ROCK64 fails to boot using U-Boot TPL

2019-09-20 Thread Simon South
On 2019-09-20 1:37 p.m., Matwey V. Kornilov wrote: What is the difference? In filesize? The EFI bootloader: 205136 bootaa64.efi The DTB file: 53513 rk3328-rock64.dtb It's about one quarter the size. It is strange the EFI bootloader and the kernel both seem always to load

Re: [U-Boot] [PATCH 1/7] image: android: Add functions for handling dtb field

2019-09-20 Thread Simon Glass
Hi Sam, On Thu, 19 Sep 2019 at 12:28, Sam Protsenko wrote: > > Android Boot Image v2 adds "DTB" payload (and corresponding field in the > image header). Provide functions for its handling: > > - android_image_get_dtb_by_index(): Obtain DTB file from "DTB" part of > boot image, by file

Re: [U-Boot] [PATCH 3/7] cmd: bootimg: Add bootimg command

2019-09-20 Thread Simon Glass
Hi, On Thu, 19 Sep 2019 at 12:28, Sam Protsenko wrote: > > This command can be used to extract fields and image payloads from > Android Boot Image. It can be used for example to implement boot flow > where dtb is taken from boot.img (as v2 incorporated dtb inside of > boot.img). Using this

[U-Boot] [PATCH v2] splash: fix splash banner output

2019-09-20 Thread Anatolij Gustschin
Old splash code in cfb_console driver displayed U-Boot version string by default. Restore this behaviour for DM_VIDEO enabled configurations. Signed-off-by: Anatolij Gustschin --- Changes in v2: - fix build breakage with sandbox, arc, arm7, arm11, etc. - fix typos (s/raw/row/)

[U-Boot] Pull request for UEFI sub-system for v2019.10-rc4 (5)

2019-09-20 Thread Heinrich Schuchardt
The following changes since commit aa8c6294ed32b4fcf7a9a27526c7346325d8c928: Merge branch '2019-09-19-master-imports' (2019-09-20 10:48:53 -0400) are available in the Git repository at: https://gitlab.denx.de/u-boot/custodians/u-boot-efi tags/efi-2019-10-rc4-5 for you to fetch changes up

[U-Boot] [PATCH 1/1] efi_loader: description efi_stri_coll()

2019-09-20 Thread Heinrich Schuchardt
Remove outdated TODO for efi_stri_coll(). efi_stri_coll() is already using the Unicode capitalization table. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_unicode_collation.c | 5 - 1 file changed, 5 deletions(-) diff --git a/lib/efi_loader/efi_unicode_collation.c

Re: [U-Boot] ROCK64 fails to boot using U-Boot TPL

2019-09-20 Thread Matwey V. Kornilov
пт, 20 сент. 2019 г. в 12:30, Simon South : > > On 2019-09-20 3:39 a.m., Matwey V. Kornilov wrote: > > Could you please provide us console logs for both successful and > > unsuccessful cases? > > Attached. > > The only differences I see are > > - The random Ethernet address assigned in each case,

Re: [U-Boot] ROCK64 fails to boot using U-Boot TPL

2019-09-20 Thread Simon South
On 2019-09-20 6:03 a.m., Mark Kettenis wrote: One thing to look at is whether (voltage) regulators and/or clocks are set up right... Thanks, Mark. This is helpful. But I believe the Linux kernel doesn't trust the bootloader and will configure such a regulator anyway. This is my assumption

Re: [U-Boot] ROCK64 fails to boot using U-Boot TPL

2019-09-20 Thread Martin Husemann
On Fri, Sep 20, 2019 at 01:07:12PM +0300, Matwey V. Kornilov wrote: > Do you have an idea where is correct FDT supposed to came from in > NetBSD case? For Linux, the file is placed on the boot partition and > retrieved by u-boot while looking for EFI application, etc. Same for NetBSD. Assuming

[U-Boot] [PATCH] at91: configs: Drop duplication of defconfig macros

2019-09-20 Thread Tudor.Ambarus
From: Tudor Ambarus 'commit a9221f3ebd6d ("at91, omap2plus: configs: migrate CONFIG_ENV_ to defconfigs")' migrated CONFIG_ENV_ macros to defconfigs but did not remove the identical redefinition of these macros in include/configs/. Since the duplicated macros have the same value as the ones in

[U-Boot] [PATCH] imx: replace CONFIG_SECURE_BOOT with CONFIG_IMX_HAB

2019-09-20 Thread Stefano Babic
CONFIG_SECURE_BOOT is too generic and forbids to use it for cross architecture purposes. If Secure Boot is required for imx, this means to enable and use the HAB processor in the soc. Signed-off-by: Stefano Babic --- Makefile | 4 ++--

[U-Boot] [PATCH] board: imx6dl_mamoj: set the value for CSF size

2019-09-20 Thread Stefano Babic
Default value is too high and it covers the worst case. SPL for imx6dl_mamoj becomes too big and cannot fit into the OCRAM, but CSF size can be reduced. Signed-off-by: Stefano Babic CC: Jagan Teki CC: Breno Lima --- configs/imx6dl_mamoj_defconfig | 3 ++- 1 file changed, 2 insertions(+), 1

[U-Boot] [PATCH] cmd: mtd: solve bad block support in erase command

2019-09-20 Thread Patrick Delaunay
This patch modify the loop in mtd erase command to erase one by one the blocks in the requested area. It solves issue on "mtd erase" command on nand with existing bad block, the command is interrupted on the first bad block with the trace: "Skipping bad block at 0x" In

[U-Boot] [PATCH v5 0/1] imx: support i.MX8QM ROM 7720 a1 board

2019-09-20 Thread Oliver Graute
Hello list, with this version its possible to create the bootstream directly from u-boot without using the imx-mkimage tool. Best Regards, Oliver Oliver Graute (1): imx: support i.MX8QM ROM 7720 a1 board arch/arm/dts/Makefile | 1 +

[U-Boot] [PATCH v5] imx: support i.MX8QM ROM 7720 a1 board

2019-09-20 Thread Oliver Graute
Add i.MX8QM ROM 7720a1 board support Boot log as below: U-Boot 2019.10-rc3-4-gd073e0242f (Sep 20 2019 - 08:24:13 +0200) CPU: NXP i.MX8QM RevB A53 at 1200 MHz Model: Advantech iMX8QM Qseven series Board: ROM-7720-A1 4GB Build: SCFW 65afe5f6 Boot: SD2 DRAM: 4 GiB MMC: FSL_SDHC: 0,

Re: [U-Boot] Odroid n1- booting hangs if we add memtest=4 to kernel command line.

2019-09-20 Thread Anand Moon
Hi Kever, On Wed, 18 Sep 2019 at 15:45, Anand Moon wrote: > > Hi Kevrer, > > On Wed, 18 Sep 2019 at 12:02, Kever Yang wrote: > > > > Hi Anand, > > > > > > On 2019/9/16 下午7:03, Anand Moon wrote: > > > > Hi Jagan / Kever, > > > > I have with me Odroid - N1 per-released development board, > > It's

Re: [U-Boot] ROCK64 fails to boot using U-Boot TPL

2019-09-20 Thread Matwey V. Kornilov
20.09.2019 3:06, Simon South пишет: > On 2019-09-19 11:48 a.m., Matwey V. Kornilov wrote: >> I have no idea what is going on. But are you sure that you tested the >> same u-boot binaries with or without binary TPL? > I believe so. Here's how I build U-Boot with its own TPL: > >     make -j2

Re: [U-Boot] [PATCH] spi: Fix manual relocation calling more times

2019-09-20 Thread Michal Simek
On 19. 09. 19 16:35, Simon Goldschmidt wrote: > > > Michal Simek mailto:michal.si...@xilinx.com>> > schrieb am Do., 19. Sep. 2019, 16:22: > > On 17. 09. 19 14:53, Simon Goldschmidt wrote: > > On Tue, Sep 17, 2019 at 2:48 PM Michal Simek > mailto:michal.si...@xilinx.com>> wrote: >

Re: [U-Boot] [PATCH] spi: Fix manual relocation calling more times

2019-09-20 Thread Simon Goldschmidt
Michal Simek schrieb am Fr., 20. Sep. 2019, 10:17: > On 19. 09. 19 16:35, Simon Goldschmidt wrote: > > > > > > Michal Simek mailto:michal.si...@xilinx.com>> > > schrieb am Do., 19. Sep. 2019, 16:22: > > > > On 17. 09. 19 14:53, Simon Goldschmidt wrote: > > > On Tue, Sep 17, 2019 at 2:48

Re: [U-Boot] [PATCH] spi: Fix manual relocation calling more times

2019-09-20 Thread Michal Simek
On 20. 09. 19 10:26, Simon Goldschmidt wrote: > > > Michal Simek mailto:michal.si...@xilinx.com>> > schrieb am Fr., 20. Sep. 2019, 10:17: > > On 19. 09. 19 16:35, Simon Goldschmidt wrote: > > > > > > Michal Simek

Re: [U-Boot] [PATCH v3 0/3] env: Add CONFIG_ENV_FULL_SUPPORT

2019-09-20 Thread Stefan Roese
Hi Patrick, On 18.09.19 11:29, Patrick Delaunay wrote: This patchset is a the 3rd version of http://patchwork.ozlabs.org/project/uboot/list/?series=129339 "env: Add CONFIG_ENV_SUPPORT" The first patch of the serie only solves the regression introduced by commit 7d4776545b0f ("env: solve

Re: [U-Boot] [PATCH] cmd: mtd: solve bad block support in erase command

2019-09-20 Thread Stefan Roese
Hi Patrick, On 20.09.19 09:20, Patrick Delaunay wrote: This patch modify the loop in mtd erase command to erase one by one the blocks in the requested area. It solves issue on "mtd erase" command on nand with existing bad block, the command is interrupted on the first bad block with the trace:

Re: [U-Boot] ROCK64 fails to boot using U-Boot TPL

2019-09-20 Thread Simon South
On 2019-09-20 3:39 a.m., Matwey V. Kornilov wrote: Could you please provide us console logs for both successful and unsuccessful cases? Attached. The only differences I see are - The random Ethernet address assigned in each case, and - The "FDT_ERR_BADMAGIC" error messages that are output

[U-Boot] [PATCH] armv8: fsl-layerscape: Make USB masters snoopable

2019-09-20 Thread Ran Wang
Program register bit of SCFG_SNPCNFGCR_USBxRDSNP and SCFG_SNPCNFGCR_USBxWRSNP(x = 1, 2, 3) to drive USBx read/write snoop signal on LS1043A and LS1046A. Signed-off-by: Ran Wang --- arch/arm/cpu/armv8/fsl-layerscape/soc.c| 9 +

Re: [U-Boot] [PATCH] cmd: mtd: solve bad block support in erase command

2019-09-20 Thread Miquel Raynal
Hi Patrick, Patrick Delaunay wrote on Fri, 20 Sep 2019 09:20:12 +0200: > This patch modify the loop in mtd erase command to erase one by one > the blocks in the requested area. > > It solves issue on "mtd erase" command on nand with existing bad block, > the command is interrupted on the first

Re: [U-Boot] [PATCH 2/6] spl: spi: introduce spl_spi_get_uboot_raw_sector

2019-09-20 Thread Peng Fan
> Subject: Re: [PATCH 2/6] spl: spi: introduce spl_spi_get_uboot_raw_sector > > Hi Peng, > > On 20.09.19 05:27, Peng Fan wrote: > > Introduce a weak function spl_spi_get_uboot_raw_sector, then platform > > could have their own implementation. > > > > Signed-off-by: Peng Fan > > Cc: Simon

Re: [U-Boot] [PATCH 2/6] spl: spi: introduce spl_spi_get_uboot_raw_sector

2019-09-20 Thread Stefan Roese
Hi Peng, On 20.09.19 05:27, Peng Fan wrote: Introduce a weak function spl_spi_get_uboot_raw_sector, then platform could have their own implementation. Signed-off-by: Peng Fan Cc: Simon Goldschmidt Cc: Tien Fong Chee Cc: Marek Vasut Cc: Andreas Dannenberg Cc: Alex Kiernan Cc: Stefan Roese

Re: [U-Boot] ROCK64 fails to boot using U-Boot TPL

2019-09-20 Thread Mark Kettenis
> From: Simon South > Date: Thu, 19 Sep 2019 04:56:57 -0400 > > I've been unable so far to boot NetBSD on my PINE64 ROCK64 (v2.0, > Rockchip RK3328) using U-Boot built with its own TPL, the default since > commit ff3dd0a474. > > The same NetBSD image boots fine using the binary TPL supplied

[U-Boot] [PATCH 04/12] board: atmel: Add sam9x60ek board

2019-09-20 Thread Tudor.Ambarus
From: Sandeep Sheriker Mallikarjun Add new board SAM9X60-EK using the ARM926 SAM9X60 SoC. Signed-off-by: Sandeep Sheriker Mallikarjun [tudor.amba...@microchip.com: - fix number of DRAM banks: One DDR2-SDRAM (W972GG6KB 2 Gbit = 16 Mbit x 16 x 8 banks] - drop SPL related macros - drop memtest

[U-Boot] [PATCH 02/12] ARM: dts: Add dts files for sam9x60ek

2019-09-20 Thread Tudor.Ambarus
From: Sandeep Sheriker Mallikarjun add device tree files for sam9x60ek board with below changes. - Add initial device nodes (pmc, pinctrl, sdhc, dbgu & pit) - Add the reg property for the pinctrl node. - Add the "u-boot,dm-pre-reloc" property to determine which nodes are used by the

[U-Boot] [PATCH 03/12] ARM: dts: at91: sam9x60: Add macb0 Ethernet controller

2019-09-20 Thread Tudor.Ambarus
From: Nicolas Ferre Add Ethernet controller to dtsi file and enable it on sam9x60ek platform connected with rmii. Signed-off-by: Nicolas Ferre --- arch/arm/dts/sam9x60.dtsi | 31 +++ arch/arm/dts/sam9x60ek.dts | 5 + 2 files changed, 36 insertions(+) diff

[U-Boot] [PATCH 09/12] configs: Add sam9x60ek_nandflash_defconfig

2019-09-20 Thread Tudor.Ambarus
From: Tudor Ambarus Boot from nand flash. Signed-off-by: Tudor Ambarus --- configs/sam9x60ek_nandflash_defconfig | 51 +++ 1 file changed, 51 insertions(+) create mode 100644 configs/sam9x60ek_nandflash_defconfig diff --git

[U-Boot] [PATCH 01/12] ARM: at91: Add sam9x60 soc

2019-09-20 Thread Tudor.Ambarus
From: Sandeep Sheriker Mallikarjun Add new Microchip sam9x60 SoC based on an ARM926. Signed-off-by: Sandeep Sheriker Mallikarjun [tudor.amba...@microchip.com: fix SFR definition] Signed-off-by: Tudor Ambarus --- arch/arm/mach-at91/Kconfig | 4 +

[U-Boot] [PATCH 06/12] ARM: at91: Rename sama5_sfr.h to at91_sfr.h

2019-09-20 Thread Tudor.Ambarus
From: Tudor Ambarus The Special Function Registers (SFR) are present in sam9x5 and sam9x60 too, rename sama5_sfr to at91_sfr.h. Signed-off-by: Tudor Ambarus --- arch/arm/mach-at91/armv7/sama5d4_devices.c | 2 +- arch/arm/mach-at91/atmel_sfr.c | 2

Re: [U-Boot] [PATCH] doc: fix: Replace SPL_OF_PLATDATA with OF_PLATDATA in examples

2019-09-20 Thread Tom Rini
On Tue, Sep 03, 2019 at 03:43:19PM +0200, Lukasz Majewski wrote: > The of-plat.rst file till this change has been using > > This is at best misleading as SPL_OF_PLATDATA is always defined when we > want to use this SPL tinification feature (also in U-Boot proper). > As a result the OF_PLATDATA

Re: [U-Boot] [PATCH] watchdog: omap_wdt: Fix WDT target reset when booted from emmc

2019-09-20 Thread Tom Rini
On Mon, Sep 16, 2019 at 01:39:17PM +0530, suni...@techveda.org wrote: > From: Suniel Mahesh > > AM335X based beaglebone black target gets reset by DM converted watchdog > if booted from emmc around 60sec. Fixed this by moving driver's private struct > variable initialization at different places

Re: [U-Boot] rtc: ds3231/ds3232: fix coding style

2019-09-20 Thread Tom Rini
On Tue, Aug 27, 2019 at 04:03:01PM +0800, Biwen Li wrote: > The patch fixes coding style > > Signed-off-by: Biwen Li Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___ U-Boot mailing list U-Boot@lists.denx.de

[U-Boot] [PATCH v5 04/15] spl: fit: allocate a temporary buffer to load the overlays

2019-09-20 Thread Jean-Jacques Hiblot
If the node describing an overlay does not specify a load address, it will be loaded at the address previously used. Fixing it by allocating a temporary buffer that will be used as a default load address. By default, the size of the buffer is 64kB which should be plenty for most use cases.

[U-Boot] [PATCH 2/3] ARM: imx: arch/arm/mach-imx/spl_qspi.cfg

2019-09-20 Thread Stefan Roese
Similar to "spl_sd.cfg", this patch introduces "spl_qspi.cfg" so that all i.MX6 based boards can use it, when they use SPL and QSPI boot mode. Signed-off-by: Stefan Roese Cc: Fabio Estevam Cc: Stefano Babic --- arch/arm/mach-imx/spl_qspi.cfg | 17 + 1 file changed, 17

[U-Boot] [PATCH 3/3] Kconfig: Set default BUILD_TARGET for ARCH_MX6 with SPL

2019-09-20 Thread Stefan Roese
Use BUILD_TARGET to automatically build "u-boot-with-spl.imx" on MX6 targets with SPL. Signed-off-by: Stefan Roese Cc: Fabio Estevam Cc: Stefano Babic --- Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/Kconfig b/Kconfig index 1f0904f704..66b059f749 100644 --- a/Kconfig +++

Re: [U-Boot] [PATCH PATCH v4 04/15] spl: fit: allocate a temporary buffer to load the overlays

2019-09-20 Thread Jean-Jacques Hiblot
Hi Simon, On 17/09/2019 07:48, Simon Glass wrote: Hi Jean-Jacques, On Wed, 11 Sep 2019 at 06:32, Jean-Jacques Hiblot wrote: Hi Simon, On 13/08/2019 11:33, Simon Glass wrote: Hi Jean-Jacques, On Mon, 5 Aug 2019 at 03:44, Jean-Jacques Hiblot wrote: If the node describing an overlay does

Re: [U-Boot] [PATCH] kconfig: doc: Update comment regarding CONFIG_IS_ENABLED(FOO) for TPL

2019-09-20 Thread Tom Rini
On Tue, Sep 03, 2019 at 03:43:55PM +0200, Lukasz Majewski wrote: > This patch adds some commit info for CONFIG_IS_ENABLED(FOO) when used in > TPL context. > > Signed-off-by: Lukasz Majewski Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

[U-Boot] [PATCH v5 08/15] Makefile: Fix tests for CONFIG_SPL_LOAD_FIT and CONFIG_SPL_FIT_GENERATOR

2019-09-20 Thread Jean-Jacques Hiblot
The current tests do to handle well the cases where those variables are not defined. When CONFIG_SPL_LOAD_FIT is not defined, U_BOOT_ITS gets defined as an empty string. Fixing it by using intermediate variables with the quotes removed Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Simon Glass

[U-Boot] [PATCH v5 09/15] Makefile: Fix u-boot.itb generation when building outside the source tree

2019-09-20 Thread Jean-Jacques Hiblot
Include the object tree and the source tree in the search path of the FIT compîler (dtc). This allows to use paths relative to the root of the source or object trees in the ITS instead of working backward from the actual location of the ITS. It also allows to use a build directory different of the

[U-Boot] [PATCH v5 06/15] spl: fit: be more verbose when an error occurs when applying the overlays

2019-09-20 Thread Jean-Jacques Hiblot
There are many ways the overlay application can fail. 2 of them are probably the most common: - the application itself failed. Usually this is comes from an unresolved reference - DTBO not available in FIT (could be because of a typo) In both case it is good to be more explicit about the error

Re: [U-Boot] [PATCH 3/7] imx: mx6sabresd: fix splash logo drawing

2019-09-20 Thread Anatolij Gustschin
Hi Fabio, On Thu, 19 Sep 2019 15:30:43 -0300 Fabio Estevam feste...@gmail.com wrote: ... > One thing I noticed is that now I don't see the U-Boot version string > shown in the splashscreen as we used to see before the DM conversion. Thanks for testing! I've sent a patch to address this:

[U-Boot] [PATCH 10/12] configs: sam9x60ek: Add QSPI_BOOT defines

2019-09-20 Thread Tudor.Ambarus
From: Tudor Ambarus Cope with the offsets defined at: https://www.at91.com/linux4sam/pub/Linux4SAM/SambaSubsections/demo_nandflash_map_lnx4sam6x.png The environment starts at 0x14 and it's of size 0x2. The device tree starts at 0x18 and it's of size 0x8. The zImage starts at

[U-Boot] [PATCH 08/12] board: sam9x60ek: Add NAND flash support

2019-09-20 Thread Tudor.Ambarus
From: Tudor Ambarus - EBI Chip Select Register is now in SFR, - the pins are set to default values, - timings are matching MT29F4G08BABWP's nand flash requirements. Signed-off-by: Tudor Ambarus --- board/atmel/sam9x60ek/sam9x60ek.c | 61 +++

[U-Boot] [PATCH 11/12] ARM: dts: at91: sam9x60ek: Enable qspi node

2019-09-20 Thread Tudor.Ambarus
From: Tudor Ambarus The sam9x60 qspi controller uses 2 clocks, one for the peripheral register access, the other for the qspi core and phy. Both are mandatory. Enable the qspi node together with the SST26VF064B qspi nor flash memory. Booting from the QSPI NOR flash is now possible.

[U-Boot] [PATCH] cmd: part: number: return hexadecimal value

2019-09-20 Thread Eugeniu Rosca
From: Roman Stratiienko At this point we are using part number sub-command to retrieve UUID of the partition using it's name. e.g.: part number mmc $mmcdev system_a system_a_index part uuid mmc $mmcdev:${system_a_index} system_a_uuid Since 'part uuid' sub-command expects partition index in

Re: [U-Boot] [PATCH] cmd: part: number: return hexadecimal value

2019-09-20 Thread Tom Rini
On Fri, Sep 20, 2019 at 03:59:18PM +0200, Eugeniu Rosca wrote: > From: Roman Stratiienko > > At this point we are using part number sub-command to retrieve UUID > of the partition using it's name. > > e.g.: > part number mmc $mmcdev system_a system_a_index > part uuid mmc

[U-Boot] [PATCH v5 03/15] spl: fit: Make room in the FDT before applying overlays

2019-09-20 Thread Jean-Jacques Hiblot
Make room in the FDT before applying the overlay, otherwise it may fail if the overlay is big. As the exact added size is not known in advance, just add the size of the overlay. Move after the end of the application of the overlays, the resize of the FDT for the injection of the details on the

[U-Boot] [PATCH] splash: fix splash banner output

2019-09-20 Thread Anatolij Gustschin
Old splash code in cfb_console driver displayed U-Boot version string by default. Restore this behaviour for DM_VIDEO enabled configurations. Signed-off-by: Anatolij Gustschin --- common/splash.c | 39 ++- 1 file changed, 38 insertions(+), 1 deletion(-) diff

[U-Boot] [PATCH 1/3] ARM: imx: Add QSPI boot mode for i.MX6UL/ULL

2019-09-20 Thread Stefan Roese
This patch adds the missing boot mode detection for QSPI boot on i.MX6UL/ULL. Without it, booting with SPL from QSPI NOR does not work. Signed-off-by: Stefan Roese Cc: Fabio Estevam Cc: Stefano Babic --- arch/arm/mach-imx/spl.c | 5 + 1 file changed, 5 insertions(+) diff --git

Re: [U-Boot] [PATCH] splash: fix splash banner output

2019-09-20 Thread Anatolij Gustschin
On Fri, 20 Sep 2019 17:43:55 +0200 Anatolij Gustschin ag...@denx.de wrote: ... > --- > common/splash.c | 39 ++- > 1 file changed, 38 insertions(+), 1 deletion(-) This has some build issues with sandbox and arc arch, I'll prepare v2 patch. -- Anatolij

[U-Boot] FDT: alignment of 64-bits integers

2019-09-20 Thread Jean-Jacques Hiblot
Hi Simon, while working with the FDT in the SPL, I came across an alignment issue. I have seen 64-bits integers not aligned on a 64-bit boundary, although is doesn't happen very often. According to the FDT spec, the requirement is to be aligned on 32-bits, so it is OK. However on ARM64,

Re: [U-Boot] rtc: ds3231/ds3232: fix coding style

2019-09-20 Thread Tom Rini
On Tue, Aug 27, 2019 at 04:39:17PM +0800, Biwen Li wrote: > The patch fixes coding style > > Signed-off-by: Biwen Li Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___ U-Boot mailing list U-Boot@lists.denx.de

Re: [U-Boot] rtc: ds3231/ds3232: fix coding style

2019-09-20 Thread Tom Rini
On Tue, Aug 27, 2019 at 04:32:50PM +0800, Biwen Li wrote: > The patch fixes coding style > > Signed-off-by: Biwen Li Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___ U-Boot mailing list U-Boot@lists.denx.de

Re: [U-Boot] [PATCH v2] travis.yml: change Ubuntu version to xenial

2019-09-20 Thread Tom Rini
On Mon, Aug 12, 2019 at 08:43:38PM +0300, Ramon Fried wrote: > trusty is getting old, move to xenial (16.04) > to get updated gcc and other tools. > > Signed-off-by: Ramon Fried Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] rtc: ds3231/ds3232: fix coding style

2019-09-20 Thread Tom Rini
On Tue, Aug 27, 2019 at 03:32:36PM +0800, Biwen Li wrote: > The patch fixes coding style > > Signed-off-by: Biwen Li Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___ U-Boot mailing list U-Boot@lists.denx.de

[U-Boot] [PATCH 00/12] add support for sam9x60ek

2019-09-20 Thread Tudor.Ambarus
From: Tudor Ambarus Add support for sam9x60 SOC, sam9x60ek board, dts, NAND and QSPI. Add defconfigs for MMC, NAND and QSPI. Nicolas Ferre (1): ARM: dts: at91: sam9x60: Add macb0 Ethernet controller Sandeep Sheriker Mallikarjun (4): ARM: at91: Add sam9x60 soc ARM: dts: Add dts files for

[U-Boot] [PATCH v5 07/15] Makefile.lib: include /__symbols__ in dtb if SPL_LOAD_FIT_APPLY_OVERLAY is enabled

2019-09-20 Thread Jean-Jacques Hiblot
In order to apply an overlay to a DTB. The DTB must have been generated with the option '-@'. Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Simon Glass --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None scripts/Makefile.lib | 4 1 file changed, 4

[U-Boot] [PATCH v5 15/15] spl: fit: Allow the board to tell if more images must be loaded from FIT

2019-09-20 Thread Jean-Jacques Hiblot
spl_fit_get_image_name() is used to get the names of the images that the SPL must load from the FIT. It relies on the content of a property present in the FIT. The list of images is thus statically defined in the FIT. With this scheme, it quickly becomes hard to manage combinations of more than a

[U-Boot] [PATCH v5 14/15] include: board: provide empty stubs when the BOARD option is not selected

2019-09-20 Thread Jean-Jacques Hiblot
Useful to avoid #ifdef throughout the code that uses the board driver API. Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Simon Glass --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None include/board.h | 37 + 1 file

Re: [U-Boot] [PATCH v2 1/1] dm: MIGRATION: Add migration plan for CONFIG_DM

2019-09-20 Thread Tom Rini
On Mon, Sep 16, 2019 at 06:41:42PM +0200, Heinrich Schuchardt wrote: > For many sub-systems we already require the driver model to be used. Yet > there is still a handful of boards that do not have CONFIG_DM enabled. > > We should make CONFIG_DM compulsory with release v2020.01 > > Conversion

Re: [U-Boot] [PATCH] disk: part_dos: Allocate at least one block size for mbr

2019-09-20 Thread Tom Rini
On Wed, Sep 04, 2019 at 08:10:12PM +0530, Faiz Abbas wrote: > The blk_dread() following the mbr allocation reads one block from the > device. This will lead to overflow if block size is greater than the > size of legacy_mbr. Fix this by allocating at least one block size. > > Signed-off-by: Faiz

Re: [U-Boot] Driving GPIO in SPL

2019-09-20 Thread Chris LaRocque
On Thu, Sep 19, 2019 at 12:10 PM Chris LaRocque wrote: > Hello > > I am trying to resolve an issue with a board based on the Beaglebone > black. I am using U-Boot 2015.10, it is being built with Buildroot 2016.2 > on OpenSuSE Leap 42.3 in a Virtualbox VM on a Windows 10 host. I want to > set the

Re: [U-Boot] [PATCHv2] scrapyard: Delete this file and script

2019-09-20 Thread Tom Rini
On Fri, Sep 13, 2019 at 11:51:42AM -0400, Tom Rini wrote: > The README.scrapyard file has been inconsistently updated. While well > intentioned, bad data is worse than no data, and in this case a pointer > to use the history that git provides. Remove the current content and > the script that

[U-Boot] [PATCH v5 12/15] drivers: board: Make the board drivers available in SPL

2019-09-20 Thread Jean-Jacques Hiblot
Make the board driver available in the SPL too. The board driver is a way to provide useful information about the board and that can be useful in the SPL too. Signed-off-by: Jean-Jacques Hiblot --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: - depend on SPL_DM -

[U-Boot] [PATCH v5 13/15] drivers: board: Add get_fit_loadable()

2019-09-20 Thread Jean-Jacques Hiblot
This function will be used by the SPL to get the names of images to load from the FIT. This allows to load different images based on runtime HW detection. Signed-off-by: Jean-Jacques Hiblot --- Changes in v5: - board_get_fit_loadable() returns an error code instead of a NULL string in case

[U-Boot] [PATCH v5 05/15] spl: fit: Do not fail immediately if an overlay is not available

2019-09-20 Thread Jean-Jacques Hiblot
If one overlay that must be applied cannot be found in the FIT, the current implementation stops applying the overlays. Let's make it skip only the failing overlay instead. Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Simon Glass --- Changes in v5: None Changes in v4: None Changes in v3:

[U-Boot] [PATCH v5 02/15] spl: fit: Add support for applying DT overlay

2019-09-20 Thread Jean-Jacques Hiblot
From: Michal Simek doc/uImage.FIT/overlay-fdt-boot.txt is describing how to create FIT image with DT overlays in it. Add support for this feature to SPL. Here is the ZynqMP fragment where dtb points to full DT and dtbo is overlay which should be applied on the top of dtb. config {

[U-Boot] [PATCH v5 11/15] spl: fit: constify the output parameter of spl_fit_get_image_name()

2019-09-20 Thread Jean-Jacques Hiblot
There is no need for it to be non-constant. Making it constant, allows to return constant string without warning. Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Simon Glass --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None common/spl/spl_fit.c | 6 +++--- 1

Re: [U-Boot] ROCK64 fails to boot using U-Boot TPL

2019-09-20 Thread Matwey V. Kornilov
пт, 20 сент. 2019 г. в 13:14, Martin Husemann : > > On Fri, Sep 20, 2019 at 01:07:12PM +0300, Matwey V. Kornilov wrote: > > Do you have an idea where is correct FDT supposed to came from in > > NetBSD case? For Linux, the file is placed on the boot partition and > > retrieved by u-boot while

[U-Boot] [PATCH 12/12] configs: Add sam9x60ek_qspiflash_defconfig

2019-09-20 Thread Tudor.Ambarus
From: Tudor Ambarus Boot from QSPI nor flash. The at91bootstrap, u-boot, u-boot env redundant, u-boot env, device tree and kernel will reside in the QSPI nor flash. The rootfs will reside in the NAND flash. Signed-off-by: Tudor Ambarus --- configs/sam9x60ek_qspiflash_defconfig | 73

[U-Boot] [PATCH 07/12] ARM: at91: Add SFR definitions

2019-09-20 Thread Tudor.Ambarus
From: Tudor Ambarus sama5's SFR has at offset 0x04 the DDR Configuration Register, while sam9x60's SFR contains the EBI Chip Select Register. Add a union to reconcile both boards. Signed-off-by: Tudor Ambarus --- arch/arm/mach-at91/include/mach/at91_sfr.h | 48 --

[U-Boot] [PATCH 05/12] configs: Add sam9x60ek_mmc_defconfig

2019-09-20 Thread Tudor.Ambarus
From: Sandeep Sheriker Mallikarjun add sam9x60ek_mmc_defconfig and for now only supports booting from sdcard. Signed-off-by: Sandeep Sheriker Mallikarjun Signed-off-by: Nicolas Ferre [nicolas.fe...@microchip.com: split patch, add Ethernet controller, phy and tools]

[U-Boot] [PATCH v5 01/15] spl: fit: don't load the firmware twice

2019-09-20 Thread Jean-Jacques Hiblot
When u-boot.img is a FIT image generated automatically by mkimage, the configuration node has the following structure: conf-1 { description = "k3-am654-base-board"; firmware = "firmware-1"; loadables = "firmware-1"; fdt = "fdt-1"; }; The firmware is referenced twice. Once by the

[U-Boot] [PATCH v5 00/15] Add support for applications of overlays in SPL

2019-09-20 Thread Jean-Jacques Hiblot
The purpose of this series is to provide the SPL with ability to apply overlays for u-boot. Our use-case is the support of the daughter boards of the AM65x EVM. In Linux, each board is supported by a unique overlay. The presence of the boards is detected at runtime, and some useful features (like

[U-Boot] [PATCH v5 10/15] Makefile: Query the SPL Fit Generator for its dependencies

2019-09-20 Thread Jean-Jacques Hiblot
To reduce the complexity of the Makefile, let the generator tell what its dependencies are. For this purpose use the "--deps" option. Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Simon Glass --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None Makefile

  1   2   >