[U-Boot] [PATCH] rsa: read out public_exponent value based on 32-bit alignment

2018-12-08 Thread Ooi, Joyce
Public_exponent is a 64-bit data, which is stored in the device tree blob in a 32-bit alignment address. This causes a problem for ARM64 when public_exponent is read out one shot as a 64-bit data from an unaligned address. Hence, to solve this problem, public_exponent is read out as two 32-bit data

[U-Boot] [BUG] ut overlay fails with v2018.03 and later on qemu-arm64_defconfig

2018-12-08 Thread Heinrich Schuchardt
Hello Simon, on qemu-arm_defconfig fails with => ut overlay Running 9 overlay tests Test: fdt_overlay_add_node_by_path test/overlay/cmd_ut_overlay.c:127, fdt_overlay_add_node_by_path(): off >= 0 Test: fdt_overlay_add_node_by_phandle test/overlay/cmd_ut_overlay.c:113, fdt_overlay_add_node_by_phand

[U-Boot] [PATCH 1/1] test: overlay: NULL passed as fdt

2018-12-08 Thread Heinrich Schuchardt
The uts created in do_ut_overlay() is not the one used in cmd_ut_category(). Currently all tests are therefore called with uts->priv = NULL and fail. Using a static variable is the easiest fix here. Fixes: e93232e15ec9 ("test: overlay: Use cmd_ut_category()") Signed-off-by: Heinrich Schuchardt -

[U-Boot] [PATCH v3] pinctrl: mscc: Add gpio and pinctrl driver for MSCC MIPS SoCs (VcoreIII based)

2018-12-08 Thread Gregory CLEMENT
This driver supports the pin and gpio controller found in the Ocelot and Luton SoCs. The driver was inspired from the pinctrl driver in Linux, but was simplified and was modified to allow supporting an other SoCs (Luton). For Ocelot and Luton the controller is the same, only the pins to program d

Re: [U-Boot] [PATCH v2] gpio: mscc-bitbang-spi: Add a simple gpio driver for bitbgang spi

2018-12-08 Thread Gregory CLEMENT
Hi, On mar., oct. 09 2018, Gregory CLEMENT wrote: > The VCore III SoCs such as the Luton but also the Ocelot can remap an SPI > flash directly in memory. However, for writing in the flash the > communication has to be done by software. > > Each of the signal used for the SPI are exposed in a s

[U-Boot] [BUG] Odroid-C2 does not boot with U-Boot master anymore

2018-12-08 Thread Heinrich Schuchardt
Hello Alex, the patch 7a82c3051c8f ("efi_loader: Align runtime section to 64kb") currently breaks booting Linux on the Odroid-C2. Output stops for kernel 4.18 after earlycon is replaced: [0.012518] console [tty0] enabled [0.015923] bootconsole [meson0] disabled Without your patch it conti

Re: [U-Boot] [PULL u-boot] Please pull u-boot-amlogic-20181207

2018-12-08 Thread Tom Rini
On Fri, Dec 07, 2018 at 11:02:03AM +0100, Neil Armstrong wrote: > Hi Tom, > > Two simple fixes for the pinctrl driver. > > Thanks, > Neil > > The following changes since commit d452f27b3ea806fd99aee4b73a723318032c1d5c: > > Prepare v2019.01-rc1 (2018-12-03 23:50:13 -0500) > > are available i

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

2018-12-08 Thread Tom Rini
On Sat, Dec 08, 2018 at 02:24:02AM +0530, Jagan Teki wrote: > Hi Tom, > > Please pull this PR. > > thanks, > Jagan. > > The following changes since commit 57dbc151437b36cc1105857d222df28b095236d7: > > rockchip: rk3399: Add MAINTAINERS entry (2018-12-06 10:24:12 -0500) > > are available in t

[U-Boot] [PATCH v5] pico-imx7d: Increase the CONFIG_ENV_OFFSET size

2018-12-08 Thread 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 problem to happen again in th

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

2018-12-08 Thread Fabio Estevam
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 2018.11+gf6206f8587 (Nov 16 2018 - 00:56:34 +) > Trying to boot from MMC1 > > U-Boot 2018.11

Re: [U-Boot] [PATCH v3 13/28] mtd: ensure MTD is compiled when ENV_IS_IN_FLASH is selected

2018-12-08 Thread Wolfgang Denk
Dear Miquel, In message <20181206162300.7ccfddda@xps13> you wrote: > > Do you see another significant impact that must prevent NOR flashes to > depend on MTD? My concern here is only resources. If the memory footprint really does not grow, I'm fine with that. But I somwhow doubt this is possibl

Re: [U-Boot] [PATCH] nand: fix up badblock skipping

2018-12-08 Thread Stefano Babic
Hi Jiri, Miquel, On 24/10/18 15:56, Miquel Raynal wrote: > Hi Jiri, > > Jiri Valek wrote on Fri, 19 Oct 2018 10:15:55 > +0200: > >> From: Jiri Valek >> >> Currently the badblock skipping fails. SPL loader fails to boot from NAND. >> End up on message "SPL: failed to boot from all boot devices"

Re: [U-Boot] New item at list end for backwards compatibility

2018-12-08 Thread Stefano Babic
Hi Marek, Robert, On 05/12/18 15:52, Marek Vasut wrote: > From: Robert Berger > > Signed-off-by: Robert Berger > > I received this off-list from Robert, it's a bugfix to mkimage, where > the IH_TYPE_ enumeration changed recently and broke backward mkimage > backward compatibility. > That's t

Re: [U-Boot] [PATCH v5] pico-imx7d: Increase the CONFIG_ENV_OFFSET size

2018-12-08 Thread Stefano Babic
Hi Fabio, On 08/12/18 14:53, Fabio Estevam wrote: > 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. >

Re: [U-Boot] [PATCH v1] tools: logos: crop Toradex logo slightly

2018-12-08 Thread Lukasz Majewski
Hi Stefan, > From: Stefan Agner > > The current bitmap is a bit larger than necessary, it has a black > border around the Toradex logo. Crop the logo slightly which safes > some space, useful especially on Colibri VFxx. I can confirm that those changes, as well as [PATCH v1] board: toradex: c

Re: [U-Boot] [PATCH 2/2] arm: imx8qxp: build u-boot-dtb.cfgout before checking files

2018-12-08 Thread Stefano Babic
Hi Peng, On 05/11/18 11:01, Peng Fan wrote: > Build u-boot-dtb.cfgout before checking files, otherwise > u-boot-dtb.cfgout is generated at late stage and cause final image not > generated. > > Signed-off-by: Peng Fan > --- > arch/arm/mach-imx/Makefile | 2 +- > 1 file changed, 1 insertion(+), 1

Re: [U-Boot] [PATCH V3 1/6] board: ge: Remove EEPROM bus param from read_vpd()

2018-12-08 Thread Stefano Babic
Hi Fabien, On 17/10/18 10:33, Fabien Lahoudere wrote: > From: Denis Zalevskiy > > The bus is statically defined, so remove redundant parameters > from read_vpd() for PPD and Bx50v3. > > Signed-off-by: Denis Zalevskiy > Signed-off-by: Fabien Lahoudere > --- Applied to u-boot-imx, master, thank

Re: [U-Boot] [PATCH V3 2/6] board: ge: Move VPD EEPROM configuration to the defconfig

2018-12-08 Thread Stefano Babic
On 17/10/18 10:33, Fabien Lahoudere wrote: > From: Denis Zalevskiy > > Use standard configuration logic to define EEPROM constants. > Names are based on VPD_EEPROM_ prefix because EEPROM_ is already > used by i2c_eeprom driver. > > Signed-off-by: Denis Zalevskiy > Signed-off-by: Fabien Lahoud

Re: [U-Boot] [PATCH V3 4/6] bootcount: Configure length limit for I2C bootcount

2018-12-08 Thread Stefano Babic
On 17/10/18 10:33, Fabien Lahoudere wrote: > From: Denis Zalevskiy > > Bootcount driver should verify size against the maximum available space. > New configuration parameter adds this capability and keeps backward > compatibility by providing default value. > > Signed-off-by: Denis Zalevskiy

Re: [U-Boot] [PATCH V3 3/6] bootcount: i2c: Add bus switching to the I2C bootcount driver

2018-12-08 Thread Stefano Babic
On 17/10/18 10:33, Fabien Lahoudere wrote: > From: Denis Zalevskiy > > If there is an I2C mux, current bus should be switched before > manipulating with I2C. > > Signed-off-by: Denis Zalevskiy > Signed-off-by: Fabien Lahoudere > --- Applied to u-boot-imx, master, thanks ! Best regards, Stef

Re: [U-Boot] [PATCH V3 5/6] board: ge: Move VPD reading to the vpd_reader

2018-12-08 Thread Stefano Babic
On 17/10/18 10:33, Fabien Lahoudere wrote: > From: Denis Zalevskiy > > Merge functionality duplicated in bx50v3 and mx53ppd: the logic > is the same except that process_vpd is called at different phases. > Also read_vpd could end up in error, so there is no VPD data in this > case - it shouldn'

Re: [U-Boot] [PATCH V3 6/6] board: ge: Store bootcount in EEPROM on PPD and Bx50v3

2018-12-08 Thread Stefano Babic
On 17/10/18 10:33, Fabien Lahoudere wrote: > From: Denis Zalevskiy > > u-boot's ext3/4 write/modify functionality sometimes corrupts > filesystem in the case if it requires recovery (e.g. after unexpected > shutdown) and we want to avoid the only filesystem modification we > have - bootcounter

Re: [U-Boot] [PATCH] warp7: configs: add CONFIG_FIT option

2018-12-08 Thread Stefano Babic
On 29/09/18 14:05, Pierre-Jean Texier wrote: > This enable FIT image support. > > Signed-off-by: Pierre-Jean Texier > --- > configs/warp7_defconfig | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/configs/warp7_defconfig b/configs/warp7_defconfig > index 15a6673..919d484 100644 > --

Re: [U-Boot] [PATCH v2 1/2] watchdog: driver support for fsl-lsch2

2018-12-08 Thread Stefano Babic
On 18/10/18 12:27, Xiaoliang Yang wrote: > Support watchdog driver for fsl-lsch2. It's disabled in default. > If you want to use it, please enable CONFIG_IMX_WATCHDOG. > Define CONFIG_WATCHDOG_TIMEOUT_MSECS to set watchdog timeout. > > Signed-off-by: Xiaoliang Yang > --- > v1->v2: Remove LSCH3

Re: [U-Boot] [PATCH v2 2/2] watchdog: imx: add config to disable wdog reset

2018-12-08 Thread Stefano Babic
On 18/10/18 12:27, Xiaoliang Yang wrote: > Add Kconfig option WATCHDOG_RESET_DISABLE to disable watchdog reset > in imx_watchdog driver, so that the watchdog will not be fed in > u-boot if CONFIG_WATCHDOG_RESET_DISABLE is enabled. > > Signed-off-by: Xiaoliang Yang > --- > arch/arm/cpu/armv8/fs

Re: [U-Boot] [PATCH] w1: Add driver for i.MX bus master controller

2018-12-08 Thread Stefano Babic
On 24/10/18 10:21, Martin Fuzzey wrote: > Two variants of controllers are supported: > V1 (bitwise only) found in > i.MX21, i.MX27, i.MX31, i.MX51 > V2 (byte operations) found in > i.MX25, i.MX35, i.MX50, i.MX53 > > Only tested on i.MX53 hardware but in both modes > (by modifying the

Re: [U-Boot] [PATCH 2/3] configs: mx23_olinuxino_defconfig: fix status led definition

2018-12-08 Thread Stefano Babic
On 29/10/18 20:21, Michael Heimpold wrote: > While migrating individual status led usages to Kconfig stuff, > a (random) value was introduced for this board which does not > work but produces the following error message during boot: > > __led_init: failed requesting GPIO59! > > Since Kconfig do

Re: [U-Boot] [PATCH 3/3] configs: mx23_olinuxino_defconfig: disable bootefi command

2018-12-08 Thread Stefano Babic
On 29/10/18 20:21, Michael Heimpold wrote: > CONFIG_CMD_BOOTEFI is enabled by Kconfig default, but rarely > used on this board/platform. > So let's disable it for the boards default config. > This also saves around 16 KiB in the final u-boot.sb. > > Signed-off-by: Michael Heimpold > --- > conf

Re: [U-Boot] [PATCH 1/2] imx: imx8qxp_mek: imximage: remove config.h

2018-12-08 Thread Stefano Babic
On 05/11/18 11:01, Peng Fan wrote: > config.h is not needed, remove it. > > Signed-off-by: Peng Fan > --- > board/freescale/imx8qxp_mek/imximage.cfg | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/board/freescale/imx8qxp_mek/imximage.cfg > b/board/freescale/imx8qxp_mek/imximage.cfg >

Re: [U-Boot] [PATCH 1/1] embestmx6boards: Add SPL support

2018-12-08 Thread Stefano Babic
On 08/11/18 11:28, Fabien Lahoudere wrote: > In order to boot faster with falcon mode, we need to add SPL > support to riotboard. > > Signed-off-by: Fabien Lahoudere > --- Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- ===

Re: [U-Boot] [PATCH] tools: improve portability of imx_cntr_image.sh

2018-12-08 Thread Stefano Babic
On 09/11/18 14:30, Martin Husemann wrote: > Replace non-portable operator == with = > > The operator == in sh(1) / test(1) is non-POSIX and only implemented by > some shells (like bash). It is equivalent to the standard defined operator =. > > --- > tools/imx_cntr_image.sh | 2 +- > 1 file cha

Re: [U-Boot] [PATCH 1/2] imx: mx8m: add memory mapping for CAAM and TCM

2018-12-08 Thread Stefano Babic
On 14/11/18 17:55, Gary Bisson wrote: > Otherwise can't boot the M4 core as it is impossible to load its > firmware into the TCM memory. > > Signed-off-by: Gary Bisson > --- > arch/arm/mach-imx/mx8m/soc.c | 16 > 1 file changed, 16 insertions(+) > > diff --git a/arch/arm/mach

Re: [U-Boot] [PATCH 2/2] imx: bootaux: fix stack and pc assignment on 64-bit platforms

2018-12-08 Thread Stefano Babic
On 14/11/18 17:55, Gary Bisson wrote: > Using ulong is wrong as its size depends on the Host CPU architecture > (32-bit vs. 64-bit) although the Cortex-M4 is always 32-bit. > > Without this patch, the stack and PC are obviously wrong and it > generates an abort when used on 64-bit processors suc

Re: [U-Boot] [PATCH v2] imx: hab: extend hab_auth_img to calculate ivt_offset

2018-12-08 Thread Stefano Babic
On 21/11/18 14:50, Parthiban Nallathambi wrote: > Current implementation of hab_auth_img command needs ivt_offset to > authenticate the image. But ivt header is placed at the end of image > date after padding. > > This leaves the usage of hab_auth_img command to fixed size or static > offset for

Re: [U-Boot] [PATCH V2 1/2] SPL: Add HAB image authentication to FIT

2018-12-08 Thread Stefano Babic
On 17/11/18 10:10, Peng Fan wrote: > From: Ye Li > > Introduce two board level callback functions to FIT image loading process, and > a SPL_FIT_FOUND flag to differentiate FIT image or RAW image. > > Implement functions in imx common SPL codes to call HAB funtion > to authenticate the FIT imag

Re: [U-Boot] [PATCH v2 0/3] ARM: pinctrl: Provide pinctrl driver for Vybrid (vf610)

2018-12-08 Thread Stefano Babic
On 20/11/18 00:38, Lukasz Majewski wrote: > This series enables pinctrl driver for the vybrid NXP SoC. > > > Changes in v2: > - Remove mux_mask from the imx_pinctrl_soc_info specific for vf610 > - Define vf610 mux_mask in the DTS (as it is read from there) > > Lukasz Majewski (3): > ARM: vyb

Re: [U-Boot] [PATCH] arm: imx7d: cl-som-imx7: migration to CONFIG_BLK

2018-12-08 Thread Stefano Babic
On 20/11/18 16:49, Yaniv Levinsky wrote: > Enable driver model for USB, MMC and REGULATOR drivers. > Set run-time configuration via Device Tree. > > Signed-off-by: Yaniv Levinsky > --- > configs/cl-som-imx7_defconfig | 6 +- > 1 file changed, 5 insertions(+), 1 deletion(-) > > diff --git

Re: [U-Boot] [PATCH v2] pcm058: fix NAND flash not using badblock table

2018-12-08 Thread Stefano Babic
Hi Harald, On 07/12/18 22:18, Harald Seiler wrote: > Hello Stefano, > > On Fri, 2018-12-07 at 19:55 +0100, Stefano Babic wrote: >> Hi Harald, >> >> On 07/12/18 13:18, Marek Vasut wrote: >>> On 12/07/2018 01:15 PM, Harald Seiler wrote: Hello Marek, >>> >>> Hi, >>> On Fri, 2018-12-07 at 1

[U-Boot] [PATCH] ARM: at91: Fix 'boot.bin' generation when CONFIG_SD_BOOT is enabled

2018-12-08 Thread Derald D. Woods
On AT91 platforms configured for SD_BOOT, this commit avoids the generation of the PMECC header used for booting from NAND flash. This issue was found by attempting to boot the SAMA5D3-XPLD board with the 'sama5d3_xplained_mmc_defconfig'. [PMECC Reference] http://www.at91.com/linux4sam/bin/view/Li

Re: [U-Boot] New item at list end for backwards compatibility

2018-12-08 Thread Tom Rini
On Sat, Dec 08, 2018 at 05:26:49PM +0100, Stefano Babic wrote: > Hi Marek, Robert, > > On 05/12/18 15:52, Marek Vasut wrote: > > From: Robert Berger > > > > Signed-off-by: Robert Berger > > > > I received this off-list from Robert, it's a bugfix to mkimage, where > > the IH_TYPE_ enumeration c

[U-Boot] [PATCH 1/1] efi_loader: revert "Align runtime section to 64kb"

2018-12-08 Thread Heinrich Schuchardt
Commit 7a82c3051c8f ("efi_loader: Align runtime section to 64kb") lets booting Linux fail at least on the Odroid C2. The patch alone applied to v2018.09 or v2018.11 causes the error. With the patch memory may be marked as code that contains variables. So let's revert it and look for a better solut

Re: [U-Boot] [BUG] Odroid-C2 does not boot with U-Boot master anymore

2018-12-08 Thread Alexander Graf
On 08.12.18 14:16, Heinrich Schuchardt wrote: > Hello Alex, > > the patch 7a82c3051c8f ("efi_loader: Align runtime section to 64kb") > currently breaks booting Linux on the Odroid-C2. > > Output stops for kernel 4.18 after earlycon is replaced: > [0.012518] console [tty0] enabled > [0.0

Re: [U-Boot] [U-Boot,1/2] lib: merge CRC16-CCITT into u-boot/crc.h

2018-12-08 Thread Tom Rini
On Sun, Nov 25, 2018 at 07:22:18PM +0100, Philipp Tomsich wrote: > This merges the CRC16-CCITT headers into u-boot/crc.h to prepare for > rolling CRC16 into the hash infrastructure. Given that CRC8, CRC32 > and CRC32-C already have their prototypes in a single header file, it > seems a good idea

Re: [U-Boot] [U-Boot, 2/2] Roll CRC16-CCITT into the hash infrastructure

2018-12-08 Thread Tom Rini
On Sun, Nov 25, 2018 at 07:22:19PM +0100, Philipp Tomsich wrote: > The CRC16-CCITT checksum function is useful for space-constrained > applications (such as obtaining a checksum across a 2KBit or 4KBit > EEPROM) in boot applications. It has not been accessible from boot > scripts until now (due to

Re: [U-Boot] Unable to saveenv to MMC

2018-12-08 Thread Robin Polak
How would I go about validating whether I can access the partition from u-boot? On Fri, Dec 7, 2018 at 1:47 AM Frank Wunderlich wrote: > can you try to access the partiton from uboot? > > ls mmc 0:0 > > regards Frank > > > Von: "Robin Polak" > > I'm having trouble persisting my environment va

Re: [U-Boot] [PATCH v4 00/11] mtd/sf: Various fixes

2018-12-08 Thread Boris Brezillon
+Tom for the question about missing SoBs. Hi Jagan, On Thu, 6 Dec 2018 00:48:47 +0530 Jagan Teki wrote: > On Sun, Dec 2, 2018 at 3:25 PM Boris Brezillon > wrote: > > > > Hello, > > > > This is the 4th version of the mtd / sf fixes patchset. This v4 just > > adds a new check in del_mtd_device()

Re: [U-Boot] [PATCH] ARM: mvebu: sync Armada-38x dts with Linux 4.20

2018-12-08 Thread Baruch Siach
Hi Chris, On Fri, Dec 07, 2018 at 04:21:47PM +1300, Chris Packham wrote: > Sync the Armada-38x device tree files with Linux 4.20-rc5. The changes > not taken are new compatible strings for the uart and nand flash > controller. The nand binding is best updated if/when the mtd/nand > infrastructure

Re: [U-Boot] [PATCH v4 01/11] mtd: Add a function to report when the MTD dev list has been updated

2018-12-08 Thread Lukasz Majewski
Hi Boris, > We need to parse mtdparts/mtids again everytime a device has been > added/removed from the MTD list, but there's currently no way to know > when such an update has been done. > > Add an ->updated field to the idr struct that we set to true every > time a device is added/removed and ex

Re: [U-Boot] [BUG] Odroid-C2 does not boot with U-Boot master anymore

2018-12-08 Thread Alexander Graf
On 08.12.18 14:16, Heinrich Schuchardt wrote: > Hello Alex, > > the patch 7a82c3051c8f ("efi_loader: Align runtime section to 64kb") > currently breaks booting Linux on the Odroid-C2. > > Output stops for kernel 4.18 after earlycon is replaced: > [0.012518] console [tty0] enabled > [0.0