Re: [U-Boot] [PATCH] rpi: Do not use dtb loaded by firmware

2018-11-08 Thread Jun Nie
Alexander Graf 于2018年11月8日周四 下午4:59写道: > > On 11/08/2018 09:36 AM, Jun Nie wrote: > > Do not use dtb loaded by firmware if fit image signature is enabled. > > So that u-boot.dtb can be used. The u-boot.dtb contains the pulibc key > > that is to verify Linux kernel FIT image blob. > > > > The

Re: [U-Boot] [PATCH v1] fs: ubifs: Fix UBIFS decompression on 64 bit

2018-11-08 Thread Heiko Schocher
Hello Paul, Am 05.11.2018 um 06:09 schrieb Paul Davey: Add local size_t variable to crypto_comp_decompress as intermediate storage for destination length to avoid memory corruption and incorrect results on 64 bit targets. This is what linux does for the various lz compression implementations.

Re: [U-Boot] [PATCH v1 2/2] imx: mkimage: add size check to the u-boot.imx make target

2018-11-08 Thread Tom Rini
On Thu, Nov 08, 2018 at 09:43:56AM +0100, Stefano Babic wrote: > On 08/11/18 02:55, Fabio Estevam wrote: > > [Adding Stefano] > > > > On Wed, Nov 7, 2018 at 8:41 PM Marcel Ziswiler wrote: > >> > >> From: Marcel Ziswiler > >> > >> The make macro to check if the binary exceeds the board size

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

2018-11-08 Thread Fabien Lahoudere
In order to boot faster with falcon mode, we need to add SPL support to riotboard. Signed-off-by: Fabien Lahoudere --- arch/arm/mach-imx/mx6/Kconfig | 1 + board/embest/mx6boards/mx6boards.c | 48 ++ configs/riotboard_spl_defconfig| 48

[U-Boot] Antwort: [PATCH] fs: fat: fix reading non-cluster-aligned root directory

2018-11-08 Thread Bernhard Messerklinger
Hi Anssi, I tested your patch because i faced the same problem. But I need an addition to your patch to get everything to work. Since for fat12/16 the sect_to_clust() calculation is always a negative value the division through the cluster size with an odd negative value cuts the rest. With the

[U-Boot] [PATCH v3 4/5] linux/sizes.h: sync from kernel

2018-11-08 Thread Baruch Siach
The kernel added SZ_4G macro in commit f2b9ba871b (arm64/kernel: kaslr: reduce module randomization range to 4 GB). Include linux/const.h for the _AC macro. Drop a local SZ_4G definition in tegra code. Cc: Tom Warren Signed-off-by: Baruch Siach --- v3: Use linux/const.h v2: No change ---

[U-Boot] [PATCH v3 5/5] arm64: mvebu: a8k: autodetect RAM size

2018-11-08 Thread Baruch Siach
Some Armada 8K boards like Macchiatobin and Clearfog GT-8K use RAM from external DIMM. Hard coding the RAM size in the device-tree is not convenient. Fortunately, the ATF that initializes the RAM knows the size of RAM, and U-Boot can query the ATF using a SMC call. The ATF maps the lower 3G of

Re: [U-Boot] [PATCH v1 2/2] imx: mkimage: add size check to the u-boot.imx make target

2018-11-08 Thread Stefano Babic
Hi Marcel, On 08/11/18 02:55, Fabio Estevam wrote: > [Adding Stefano] > > On Wed, Nov 7, 2018 at 8:41 PM Marcel Ziswiler wrote: >> >> From: Marcel Ziswiler >> >> The make macro to check if the binary exceeds the board size limit is >> taken straight from the root Makefile. >> >> Without this

[U-Boot] [PATCH v3 1/5] MIPS: drop asm/const.h

2018-11-08 Thread Baruch Siach
Commit 86f21c96f467368 (mips: Use common _AC macro now.) removed the _AC definition from const.h. All other macros defined in const.h are not used anywhere. Remove this header. Cc: Daniel Schwierzeck Signed-off-by: Baruch Siach --- v3: New patch in this series --- arch/mips/include/asm/const.h

[U-Boot] [PATCH v3 3/5] Use _AC and UL macros from linux/const.h

2018-11-08 Thread Baruch Siach
Drop the _AC and UL macros from common.h. Linux headers is the original source of this macro, so keep its definition in the same header. Update existing users of these macros to include const.h directly. Cc: Daniel Schwierzeck Cc: Rick Chen Signed-off-by: Baruch Siach --- v3: New patch in

Re: [U-Boot] [PATCH v3 2/5] linux/const.h: import from kernel

2018-11-08 Thread Tom Rini
On Thu, Nov 08, 2018 at 02:24:11PM +0200, Baruch Siach wrote: > Combine the uapi/linux/const.h header into the kernel linux/const.h. The > next commit will use the _AC macro this header instead of the common.h > definition. > > Signed-off-by: Baruch Siach > --- > v3: New patch in this series >

Re: [U-Boot] error in the make: bad value in the asm-offsets.c file

2018-11-08 Thread Sarah Wicker
Hi Chris, Ian, i tested with downloading and installing the package through the terminal, changing the CROSS_COMPILE value and redoing the make, it didn#t work. So i tried using the first link https://www.kernel.org/pub/tools/crosstool/ and later https://toolchains.bootlin.com/ but still the

[U-Boot] [PATCH usb RFC] usb: Make vbus-supply code common

2018-11-08 Thread Marek Behún
The code for vbus-supply regulator enabling/disabling is repeated in several drivers. Create a header file with static inline definitions of the funtions and use them in some of those drivers. Signed-off-by: Marek Behún --- drivers/usb/host/dwc2.c | 61 -

Re: [U-Boot] Issue with relocating code to DDR

2018-11-08 Thread SHEKHAR SINGH
Hi All, We got the issue, actually our DDR only supports 32bit access, 16bit and 8bit access are not supported. Is there any compiler option or any u-boot option, we need to configure so that u-boot use 32 bit access only. Thanks in advance. Regards Shekhar Singh On Thu, Nov 1, 2018 at 7:14 PM

[U-Boot] [PATCH v3 2/5] linux/const.h: import from kernel

2018-11-08 Thread Baruch Siach
Combine the uapi/linux/const.h header into the kernel linux/const.h. The next commit will use the _AC macro this header instead of the common.h definition. Signed-off-by: Baruch Siach --- v3: New patch in this series --- include/linux/const.h | 34 ++ 1 file

Re: [U-Boot] Issue with relocating code to DDR

2018-11-08 Thread Clément Péron
Hi, Maybe check the GCC option "-mno-unaligned-access" $>cat arch/arm/cpu/armv7/config.mk # # (C) Copyright 2002 # Gary Jennejohn, DENX Software Engineering, # # SPDX-License-Identifier: GPL-2.0+ # # On supported platforms we set the bit which causes us to trap on unaligned # memory access.

Re: [U-Boot] Booting i.MX6UL via SPL?

2018-11-08 Thread Martyn Welch
On Thu, 2018-11-08 at 11:25 +0100, Stefano Babic wrote: > Hi Martyn, > > On 07/11/18 21:46, Martyn Welch wrote: > > Hi All, > > > > I've been trying to boot a i.MX6UL based device I have here using > > SPL. > > It doesn't seem to want to work for me. > > > > I see there's a number of i.MX6UL

Re: [U-Boot] [PATCH v3 1/5] MIPS: drop asm/const.h

2018-11-08 Thread Tom Rini
On Thu, Nov 08, 2018 at 02:24:10PM +0200, Baruch Siach wrote: > Commit 86f21c96f467368 (mips: Use common _AC macro now.) removed the _AC > definition from const.h. All other macros defined in const.h are not > used anywhere. Remove this header. > > Cc: Daniel Schwierzeck > Signed-off-by: Baruch

Re: [U-Boot] [PATCH v3 4/5] linux/sizes.h: sync from kernel

2018-11-08 Thread Tom Rini
On Thu, Nov 08, 2018 at 02:24:13PM +0200, Baruch Siach wrote: > The kernel added SZ_4G macro in commit f2b9ba871b (arm64/kernel: kaslr: > reduce module randomization range to 4 GB). > > Include linux/const.h for the _AC macro. > > Drop a local SZ_4G definition in tegra code. > > Cc: Tom Warren

Re: [U-Boot] [PATCH v3 3/5] Use _AC and UL macros from linux/const.h

2018-11-08 Thread Tom Rini
On Thu, Nov 08, 2018 at 02:24:12PM +0200, Baruch Siach wrote: > Drop the _AC and UL macros from common.h. Linux headers is the original > source of this macro, so keep its definition in the same header. > > Update existing users of these macros to include const.h directly. > > Cc: Daniel

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

2018-11-08 Thread Heiko Schocher
Hello Tom, please pull from u-boot-ubi-git master as it is a Bugfix, I think it should go into current release. The following changes since commit dd610e616cceda16a81dfa6f9a134877f783548c: Merge tag 'u-boot-imx-20181106' of git://git.denx.de/u-boot-imx (2018-11-06 11:12:00 -0500) are

Re: [U-Boot] Booting i.MX6UL via SPL?

2018-11-08 Thread Heiko Schocher
Hello Martyn, Am 07.11.2018 um 21:46 schrieb Martyn Welch: Hi All, I've been trying to boot a i.MX6UL based device I have here using SPL. It doesn't seem to want to work for me. I see there's a number of i.MX6UL ports in U-Boot already, some use a custom DCD to configure the board, others

Re: [U-Boot] [PATCH 22/25] misc: Update read() and write() methods to return bytes xfered

2018-11-08 Thread Patrick DELAUNAY
Hi Simon, > From: Simon Glass > Sent: mardi 6 novembre 2018 23:22 > Subject: [PATCH 22/25] misc: Update read() and write() methods to return bytes > > At present these functions return 0 on success. For some devices we want to > know how many bytes were transferred. It seems useful to adjust

[U-Boot] [PATCH] rpi: Do not use dtb loaded by firmware

2018-11-08 Thread Jun Nie
Do not use dtb loaded by firmware if fit image signature is enabled. So that u-boot.dtb can be used. The u-boot.dtb contains the pulibc key that is to verify Linux kernel FIT image blob. The u-boot.dtb can be loaded by Arm Trusted Firmware(ATF) together with u-boot.bin to make sure the key is

Re: [U-Boot] [PATCH v1 2/2] imx: mkimage: add size check to the u-boot.imx make target

2018-11-08 Thread Stefano Babic
On 08/11/18 02:55, Fabio Estevam wrote: > [Adding Stefano] > > On Wed, Nov 7, 2018 at 8:41 PM Marcel Ziswiler wrote: >> >> From: Marcel Ziswiler >> >> The make macro to check if the binary exceeds the board size limit is >> taken straight from the root Makefile. >> >> Without this and e.g.

Re: [U-Boot] [PATCH] rpi: Do not use dtb loaded by firmware

2018-11-08 Thread Alexander Graf
On 11/08/2018 09:36 AM, Jun Nie wrote: Do not use dtb loaded by firmware if fit image signature is enabled. So that u-boot.dtb can be used. The u-boot.dtb contains the pulibc key that is to verify Linux kernel FIT image blob. The u-boot.dtb can be loaded by Arm Trusted Firmware(ATF) together

Re: [U-Boot] Booting i.MX6UL via SPL?

2018-11-08 Thread Stefano Babic
Hi Martyn, On 07/11/18 21:46, Martyn Welch wrote: > Hi All, > > I've been trying to boot a i.MX6UL based device I have here using SPL. > It doesn't seem to want to work for me. > > I see there's a number of i.MX6UL ports in U-Boot already, some use a > custom DCD to configure the board, others

[U-Boot] ARM64: armada3720: strange u-boot freeze (how to debug?)

2018-11-08 Thread Marek Behún
Hello, during my development for U-Boot on Turris Mox I keep encountering this strange bug when sometimes U-Boot gets compiled in such a way that it freezes after printing the first line: U-Boot 2018.11-rc3-00065-gfc69da4cb1-dirty (Nov 08 2018 - 15:51:52 +0100) This bug disappears if I

Re: [U-Boot] [PATCH v3 1/5] MIPS: drop asm/const.h

2018-11-08 Thread Daniel Schwierzeck
Am Do., 8. Nov. 2018 um 13:29 Uhr schrieb Baruch Siach : > > Commit 86f21c96f467368 (mips: Use common _AC macro now.) removed the _AC > definition from const.h. All other macros defined in const.h are not > used anywhere. Remove this header. > > Cc: Daniel Schwierzeck > Signed-off-by: Baruch

Re: [U-Boot] Ping failure

2018-11-08 Thread Paul Nader
Hi, I tried with x-over cable and the results were practically the same - no pings. I increased the tx-delay-ps to 700ps and then I started getting the occasional arp being responded to. Below that I wouldn't see any. Here is the relevant potion of my DT (attached): { pinctrl-names =

Re: [U-Boot] CVE-2018-18439, CVE-2018-18440 - U-Boot verified boot bypass vulnerabilities

2018-11-08 Thread Fabio Estevam
Hi Andrea, On Tue, Nov 6, 2018 at 12:57 PM Andrea Barisani wrote: > # load large file > => ext2load mmc 0 0x6000 fitimage.itb Does this change work for you? http://dark-code.bulix.org/u6gw3b-499924 ___ U-Boot mailing list U-Boot@lists.denx.de

Re: [U-Boot] error in the make: bad value in the asm-offsets.c file

2018-11-08 Thread Chris Packham
On Fri, 9 Nov 2018, 2:08 AM Sarah Wicker Hi Chris, Ian, > > i tested with downloading and installing the package through the terminal, > changing the CROSS_COMPILE value and redoing the make, it didn#t work. > > So i tried using the first link > https://www.kernel.org/pub/tools/crosstool/ and

Re: [U-Boot] [BUG] efi-x86_app_defconfig does not build with gcc 8.2

2018-11-08 Thread Bin Meng
On Thu, Nov 8, 2018 at 8:47 AM Andy Shevchenko wrote: > > On Thu, Nov 8, 2018 at 2:28 AM Bin Meng wrote: > > On Thu, Nov 8, 2018 at 2:02 AM Andy Shevchenko > > wrote: > > > On Mon, Oct 29, 2018 at 10:41:29PM +0800, Bin Meng wrote: > > > > > Here it is:

[U-Boot] [PATCH] armv8: lx2160ardb: Add TFABOOT Secure Boot support

2018-11-08 Thread Vinitha V Pillai
Signed-off-by: Vinitha V Pillai --- configs/lx2160ardb_tfa_SECURE_BOOT_defconfig | 83 include/configs/lx2160a_common.h | 12 ++- 2 files changed, 93 insertions(+), 2 deletions(-) create mode 100644 configs/lx2160ardb_tfa_SECURE_BOOT_defconfig diff --git

[U-Boot] [PATCH] armv8: Secure Boot: Modify boot_a_script definition

2018-11-08 Thread Vinitha V Pillai
boot_script_hdr does not exist, it should not continue to boot. So adding separate validation after loading boot_script Signed-off-by: Vinitha V Pillai --- include/configs/ls1012afrwy.h| 3 ++- include/configs/ls1012ardb.h | 3 ++- include/configs/ls1021atwr.h | 3 ++-

Re: [U-Boot] [PATCH v3 3/5] Use _AC and UL macros from linux/const.h

2018-11-08 Thread Rick Chen
> > > Drop the _AC and UL macros from common.h. Linux headers is the > > > original source of this macro, so keep its definition in the same header. > > > > > > Update existing users of these macros to include const.h directly. > > > > > > Cc: Daniel Schwierzeck > > > Cc: Rick Chen > > >

Re: [U-Boot] [PATCH 2/2] efi_loader: enumerate disk devices every time

2018-11-08 Thread Heinrich Schuchardt
On 11/9/18 7:22 AM, AKASHI Takahiro wrote: > Hi Heinrich, > > Thank you for your comments. > First of all, as I said [1], my essential question is whether my approach > here is a right way to go. What do think? The approach that you have chosen is surely an improvement. On the other hand let's

Re: [U-Boot] [PATCH 2/2] efi_loader: enumerate disk devices every time

2018-11-08 Thread AKASHI Takahiro
Hi Heinrich, Thank you for your comments. First of all, as I said [1], my essential question is whether my approach here is a right way to go. What do think? On Wed, Nov 07, 2018 at 08:36:48AM +0100, Heinrich Schuchardt wrote: > On 11/7/18 1:44 AM, AKASHI Takahiro wrote: > > Currently,

Re: [U-Boot] [PATCH 1/2] spl_spi: Read default speed and mode values from DT

2018-11-08 Thread Simon Goldschmidt
On Thu, Nov 8, 2018 at 5:58 PM Patrick Delaunay wrote: > > In case of DT boot, don't read default speed and mode for SPI from > CONFIG_*, instead read from DT node. > > Signed-off-by: Christophe Kerello > Signed-off-by: Patrick Delaunay > --- > > common/spl/spl_spi.c | 9 - > 1 file

Re: [U-Boot] CVE-2018-18439, CVE-2018-18440 - U-Boot verified boot bypass vulnerabilities

2018-11-08 Thread Simon Goldschmidt
On Fri, Nov 9, 2018 at 1:37 AM Fabio Estevam wrote: > > Hi Andrea, > > On Tue, Nov 6, 2018 at 12:57 PM Andrea Barisani > wrote: > > > # load large file > > => ext2load mmc 0 0x6000 fitimage.itb > > Does this change work for you? > http://dark-code.bulix.org/u6gw3b-499924 My understanding

Re: [U-Boot] am33xx board with no external RTC crystal issue

2018-11-08 Thread Belisko Marek
Hi Alex, On Tue, Oct 30, 2018 at 7:12 AM Alex Kiernan wrote: > > On Mon, Oct 29, 2018 at 11:36 PM Belisko Marek > wrote: > > > > Hi, > > > > I'm working on custome am33xx based HW which have no external 32KHz > > crystal. Anyway I want to use bootcount feature. I was trying to use > > internal

Re: [U-Boot] error in the make: bad value in the asm-offsets.c file

2018-11-08 Thread Chris Packham
On Fri, Nov 9, 2018 at 1:16 PM Chris Packham wrote: > > > > On Fri, 9 Nov 2018, 2:08 AM Sarah Wicker > >> Hi Chris, Ian, >> >> i tested with downloading and installing the package through the terminal, >> changing the CROSS_COMPILE value and redoing the make, it didn#t work. >> >> So i tried

[U-Boot] [PATCH] MAINTAINERS: Update stm32mp entry

2018-11-08 Thread Patrick Delaunay
Add mailing list for stm32mp architecture and board. Signed-off-by: Patrick Delaunay --- MAINTAINERS | 1 + board/st/stm32mp1/MAINTAINERS | 1 + 2 files changed, 2 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index b39b6fc..abdb6dc 100644 --- a/MAINTAINERS +++

[U-Boot] [PATCH 0/2] Read default speed and mode values from DT

2018-11-08 Thread Patrick Delaunay
This serie generalize the commit 96907c0fe50a ("dm: spi: Read default speed and mode values from DT") In case of DT boot, don't read default speed and mode for SPI from CONFIG_*, instead read from DT node. This will make sure that boards with multiple SPI/QSPI controllers can be probed at

[U-Boot] [PATCH] video: add command cls

2018-11-08 Thread Patrick Delaunay
Implement the existing command cls, for clear screen, when CONFIG_DM_VIDEO is activated. This command was defined for old LCD framework (not dm) in common/lcd.c:251 U_BOOT_CMD(cls, 1, 1, do_lcd_clear, "clear screen", ""); This command is useful to clear existing output (vidconsole)

[U-Boot] [PATCH 1/2] spl_spi: Read default speed and mode values from DT

2018-11-08 Thread Patrick Delaunay
In case of DT boot, don't read default speed and mode for SPI from CONFIG_*, instead read from DT node. Signed-off-by: Christophe Kerello Signed-off-by: Patrick Delaunay --- common/spl/spl_spi.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/common/spl/spl_spi.c

[U-Boot] [PATCH 2/2] splash: sf: Read default speed and mode values from DT

2018-11-08 Thread Patrick Delaunay
In case of DT boot, don't read default speed and mode for SPI from CONFIG_*, instead read from DT node. Signed-off-by: Patrick Delaunay --- common/splash_source.c | 8 1 file changed, 8 insertions(+) diff --git a/common/splash_source.c b/common/splash_source.c index 62763b9..f0b3407