[U-Boot] [PATCH v1 02/21] net: FEC: Add compatible for vybrid (vf610) to reuse fec_mxc.c driver

2019-01-14 Thread Lukasz Majewski
The NXP's FEC driver can be reused on vf610 device (with DM). Signed-off-by: Lukasz Majewski --- drivers/net/fec_mxc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/fec_mxc.c b/drivers/net/fec_mxc.c index 32fb34b793..be388ead30 100644 --- a/drivers/net/fec_mxc.c +++

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

2019-01-14 Thread Lukasz Majewski
This property is necessary to allow pinctrl configuration before relocation (uart, DDR pins). Separate file will facilitate updating vf.dtsi from the Linux kernel. Signed-off-by: Lukasz Majewski --- arch/arm/dts/vf-u-boot.dtsi | 11 +++ arch/arm/dts/vf.dtsi| 1 + 2 files

Re: [U-Boot] [PATCH v2 00/11] SF: Migrate to Linux SPI NOR framework

2019-01-14 Thread Vignesh R
Hi Jagan, Could you please review v2? If we plan to merge this series for v2019.04, we should probably plan to take it a bit early so as to address any regression or fall out in time. Thanks! Regards Vignesh On 21/12/18 12:08 PM, Vignesh R wrote: > U-Boot SPI NOR support (sf layer) is quite

Re: [U-Boot] [PATCH 1/2] net: designware: fix tx packet length

2019-01-14 Thread Simon Goldschmidt
Joe, Am 10.12.2018 um 05:08 schrieb Marek Vasut: On 12/09/2018 09:50 PM, Simon Goldschmidt wrote: Am 17.11.2018 um 17:02 schrieb Joe Hershberger: On Sat, Nov 17, 2018 at 3:25 AM Simon Goldschmidt wrote: The designware driver has a bug in setting the tx length into the dma descriptor: it

[U-Boot] [PATCH v1 14/21] config: bk4: Update include/configs/bk4r1.h file

2019-01-14 Thread Lukasz Majewski
The BK4's config file has changed since its initial posting to main line. This commit reflects those changes. Signed-off-by: Lukasz Majewski --- include/configs/bk4r1.h | 214 ++-- 1 file changed, 206 insertions(+), 8 deletions(-) diff --git

[U-Boot] [PATCH v1 13/21] config: pcm052: Use SZ_X{MK} from linux/sizes.h for include/configs/pcm052.h

2019-01-14 Thread Lukasz Majewski
Signed-off-by: Lukasz Majewski --- include/configs/pcm052.h | 17 + 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/include/configs/pcm052.h b/include/configs/pcm052.h index c2ecb7ec18..fb8f3c8609 100644 --- a/include/configs/pcm052.h +++ b/include/configs/pcm052.h

Re: [U-Boot] imx7d SPL driver fails to allocate memory.

2019-01-14 Thread Rens Dol
Finally found the issue, It was a ddr configuration issue after all,   I missed one value when copying the settings from our imximage.cfg to the structures required for 'mx7_dram_cfg(...)'. Should the register name "offset_lp_con0"  in the ddr_phy structure not be called  "lp_con0" as it is

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

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

Re: [U-Boot] [PATCH] serial: Get rid of CONFIG_DW_SERIAL

2019-01-14 Thread Tom Rini
On Mon, Jan 14, 2019 at 01:56:56PM +, Alexey Brodkin wrote: > Hi Simon, Tom, > > > -Original Message- > > From: Simon Glass [mailto:s...@chromium.org] > > Sent: Thursday, January 10, 2019 3:57 PM > > To: Alexey Brodkin > > Cc: U-Boot Mailing List ; > > uboot-snps-...@synopsys.com;

[U-Boot] [PATCH v1 05/21] vybrid: clock: Provide enable_i2c_clk() function for Vybrid

2019-01-14 Thread Lukasz Majewski
Provide function to enable I2C2 clock for vf610 (BK4) - in the generic code. Signed-off-by: Lukasz Majewski --- arch/arm/cpu/armv7/vf610/generic.c | 19 +++ arch/arm/include/asm/arch-vf610/clock.h | 3 +++ board/phytec/pcm052/pcm052.c| 2 +- 3 files changed,

[U-Boot] [PATCH v1 10/21] pcm052: board: cosmetic: Add copyright notice to pcm052.c

2019-01-14 Thread Lukasz Majewski
Signed-off-by: Lukasz Majewski --- board/phytec/pcm052/pcm052.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/board/phytec/pcm052/pcm052.c b/board/phytec/pcm052/pcm052.c index 5f2c9a9c12..95df0be6c1 100644 --- a/board/phytec/pcm052/pcm052.c +++ b/board/phytec/pcm052/pcm052.c @@ -1,5

[U-Boot] [PATCH v1 19/21] pcm052: board: Add code to setup LED default states

2019-01-14 Thread Lukasz Majewski
As one has moved to DM based LEDs, this code is required to setup the default state. Signed-off-by: Lukasz Majewski --- board/phytec/pcm052/pcm052.c | 4 1 file changed, 4 insertions(+) diff --git a/board/phytec/pcm052/pcm052.c b/board/phytec/pcm052/pcm052.c index d4f170a503..721e25105a

[U-Boot] [PATCH v1 11/21] ARM: DTS: Update pcm052 based dts files (bk4r1/pcm052.dts)

2019-01-14 Thread Lukasz Majewski
This commit provides update to the bk4r1.dts file with more on SoC HW description. Moreover, a new vf610-pcm052.drsi file has been introduced to reuse the common code between devices based on Phytec's pcm052 modules. Ported from Linux kernel - v4.20 (tag) Signed-off-by: Lukasz Majewski ---

[U-Boot] [PATCH v1 20/21] pcm052: mac: Provide board specific imx_get_mac_from_fuse() function

2019-01-14 Thread Lukasz Majewski
This commit introduces the board specific function to read fused mac address. Signed-off-by: Lukasz Majewski --- board/phytec/pcm052/pcm052.c | 41 + 1 file changed, 41 insertions(+) diff --git a/board/phytec/pcm052/pcm052.c

[U-Boot] [PATCH v1 12/21] defconfig: bk4/pcm052: Update bk4r1|pcm052_defconfig to support DM/DT

2019-01-14 Thread Lukasz Majewski
This commit updates BK4's and PCM052's config files to support as much as possible device tree and model in u-boot. Moreover, remove CONFIG_* from pmc052.h (as those are now in bk4|pcm052_defconfig) Signed-off-by: Lukasz Majewski --- configs/bk4r1_defconfig | 46

Re: [U-Boot] [PATCH v2 00/11] SF: Migrate to Linux SPI NOR framework

2019-01-14 Thread Tom Rini
On Mon, Jan 14, 2019 at 08:32:29PM +0530, Vignesh R wrote: > Hi Jagan, > > Could you please review v2? If we plan to merge this series for > v2019.04, we should probably plan to take it a bit early so as to > address any regression or fall out in time. Thanks! Yes, please, thanks! -- Tom

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

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

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

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

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

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

[U-Boot] [PATCH v1 00/21] imx: vybrid: Update BK4 and PCM052 boards to only use DM/DTS

2019-01-14 Thread Lukasz Majewski
This patch series converts PCM052 and BK4 to use Driver Model and Device Tree. Some notable changes: - The way how MAC address is read from fuses can now be adjusted - DTS improvement/sync with kernel - Using generic code instead of one from board The output of u-boot boot: U-Boot

[U-Boot] [PATCH v1 08/21] pcm052: board: vybrid: Update the board name for BK4 device

2019-01-14 Thread Lukasz Majewski
This commit provides distinction between PCM052 and BK4. Signed-off-by: Lukasz Majewski --- board/phytec/pcm052/pcm052.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/board/phytec/pcm052/pcm052.c b/board/phytec/pcm052/pcm052.c index 4e4b870304..5f2c9a9c12 100644 ---

[U-Boot] [PATCH v1 18/21] pcm052: bk4: sdcard: Add support for SD card booting/recovery

2019-01-14 Thread Lukasz Majewski
This code allows reusing the default u-boot as in the late board init, the default envs are restored and proper recovery scripts executed. Signed-off-by: Lukasz Majewski --- arch/arm/cpu/armv7/vf610/Kconfig | 1 + arch/arm/include/asm/arch-vf610/imx-regs.h | 2 ++

[U-Boot] [PATCH v1 21/21] pcm052: bk4: Add board_phy_config() for BK4 to setup ksz8081 phy

2019-01-14 Thread Lukasz Majewski
BK4 requires setup of 50MHz reference clock for its KSZ8081 PHY devices. Signed-off-by: Lukasz Majewski --- board/phytec/pcm052/pcm052.c | 16 1 file changed, 16 insertions(+) diff --git a/board/phytec/pcm052/pcm052.c b/board/phytec/pcm052/pcm052.c index

Re: [U-Boot] [PATCH v1 11/21] ARM: DTS: Update pcm052 based dts files (bk4r1/pcm052.dts)

2019-01-14 Thread Tom Rini
On Mon, Jan 14, 2019 at 03:17:30PM +0100, Lukasz Majewski wrote: > This commit provides update to the bk4r1.dts file with > more on SoC HW description. > Moreover, a new vf610-pcm052.drsi file has been introduced > to reuse the common code between devices based on Phytec's > pcm052 modules. >

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

2019-01-14 Thread Simon Goldschmidt
Tom, Am 11.12.2018 um 02:07 schrieb Simon Glass: On Wed, 28 Nov 2018 at 13:52, Simon Goldschmidt wrote: SPL currently does not check uImage CRCs when loading U-Boot. This patch adds checking the uImage CRC when SPL loads U-Boot. It does this by reusing the existing config option

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

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

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

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

[U-Boot] [PATCH v1 04/21] vybrid: ddr: Extend vf610-pinfunc.h with DDR pads definitions

2019-01-14 Thread Lukasz Majewski
This patch provides definitions necessary for VF610 DDR pad configurations. Signed-off-by: Lukasz Majewski --- arch/arm/dts/vf610-pinfunc.h | 50 1 file changed, 50 insertions(+) diff --git a/arch/arm/dts/vf610-pinfunc.h

[U-Boot] [PATCH v1 06/21] vybrid: Define the imx_get_mac_from_fuse() as a __weak function

2019-01-14 Thread Lukasz Majewski
The proposed way of reading fused MAC in the imx_get_mac_from_fuse() may be different for other boards. This commit defines the imx_get_mac_from_fuse() as a weak function to allow board file overriding it with customized function. Signed-off-by: Lukasz Majewski ---

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

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

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

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

[U-Boot] [PATCH v1 03/21] net: Kconfig: FEC: Add dependency on VF610

2019-01-14 Thread Lukasz Majewski
Signed-off-by: Lukasz Majewski --- drivers/net/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig index 7044c6adf3..539db6d9f2 100644 --- a/drivers/net/Kconfig +++ b/drivers/net/Kconfig @@ -187,7 +187,7 @@ config

[U-Boot] [PATCH v1 09/21] ARM: DTS: vybrid: Update vf.dtsi file to descibe more vf610 hardware

2019-01-14 Thread Lukasz Majewski
This patch allows moving vf610 based boards to a device tree and model. Ported from Linux kernel - v4.20 (tag) Signed-off-by: Lukasz Majewski --- arch/arm/dts/vf.dtsi | 62 1 file changed, 62 insertions(+) diff --git a/arch/arm/dts/vf.dtsi

[U-Boot] [PATCH v1 07/21] pcm052: board: Remove "m4go" command as it is superseded by "bootaux"

2019-01-14 Thread Lukasz Majewski
The "m4go" provides exactly the same functionality as the IMX generic "bootaux" command. Remove it to not duplicate the code. Signed-off-by: Lukasz Majewski --- board/phytec/pcm052/pcm052.c | 38 -- 1 file changed, 38 deletions(-) diff --git

[U-Boot] [PATCH v1 17/21] config: bk4: Update u-boot envs to support NOR memories initial setup

2019-01-14 Thread Lukasz Majewski
Signed-off-by: Lukasz Majewski --- include/configs/bk4r1.h | 18 ++ 1 file changed, 18 insertions(+) diff --git a/include/configs/bk4r1.h b/include/configs/bk4r1.h index 7bd3411ff2..05ebb7d9c5 100644 --- a/include/configs/bk4r1.h +++ b/include/configs/bk4r1.h @@ -200,6 +200,24

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

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

Re: [U-Boot] [PATCH v6 6/9] fs: prevent overwriting reserved memory

2019-01-14 Thread Simon Goldschmidt
On Sat, Jan 5, 2019 at 2:56 AM Simon Glass wrote: > > Hi Simon, > > On Fri, 14 Dec 2018 at 13:14, Simon Goldschmidt > wrote: > > > > This fixes CVE-2018-18440 ("insufficient boundary checks in filesystem > > image load") by using lmb to check the load size of a file against > > reserved memory

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

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

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

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

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

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

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

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

[U-Boot] [PATCH v1 16/21] config: bk4: Update u-boot script to support recovery via SD card

2019-01-14 Thread Lukasz Majewski
Signed-off-by: Lukasz Majewski --- include/configs/bk4r1.h | 31 +++ 1 file changed, 31 insertions(+) diff --git a/include/configs/bk4r1.h b/include/configs/bk4r1.h index bbd3e4e636..7bd3411ff2 100644 --- a/include/configs/bk4r1.h +++ b/include/configs/bk4r1.h @@

[U-Boot] [PATCH v1 15/21] pcm052: board: Remove in-board setup code (it is now replaced by DM setup)

2019-01-14 Thread Lukasz Majewski
This commit cleans up the pcm052.c file to remove dead code after moving to DTS and DM. Signed-off-by: Lukasz Majewski --- board/phytec/pcm052/pcm052.c | 267 --- 1 file changed, 267 deletions(-) diff --git a/board/phytec/pcm052/pcm052.c

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

2019-01-14 Thread Simon Goldschmidt
Am 14.12.2018 um 14:28 schrieb Tom Rini: On Fri, Dec 14, 2018 at 09:56:19AM +0100, Simon Goldschmidt wrote: +Tom On Sun, Dec 9, 2018 at 9:51 PM Simon Goldschmidt wrote: Am 22.11.2018 um 17:06 schrieb Simon Goldschmidt: With CONFIG_REGEX enabled, ETHADDR_WILDCARD is set up for up to 10

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

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

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

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

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

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

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

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

[U-Boot] Proposed fastboot changes

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

2019-01-14 Thread Simon Goldschmidt
This adds two new functions, lmb_alloc_addr and lmb_get_unreserved_size. lmb_alloc_addr behaves like lmb_alloc, but it tries to allocate a pre-specified address range. Unlike lmb_reserve, this address range must be inside one of the memory ranges that has been set up with lmb_add.

[U-Boot] [PATCH v10 09/10] tftp: prevent overwriting reserved memory

2019-01-14 Thread Simon Goldschmidt
This fixes CVE-2018-18439 ("insufficient boundary checks in network image boot") by using lmb to check for a valid range to store received blocks. Signed-off-by: Simon Goldschmidt Acked-by: Joe Hershberger --- Changes in v10: - add acked-by Changes in v9: None Changes in v8: None Changes in

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

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

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

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

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

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

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

2019-01-14 Thread Simon Goldschmidt
lmb_add_region handles overlapping regions wrong: instead of merging or rejecting to add a new reserved region that overlaps an existing one, it just adds the new region. Since internally the same function is used for lmb_alloc, change lmb_add_region to reject overlapping regions. Also, to keep

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

2019-01-14 Thread Simon Goldschmidt
This fixes CVE-2018-18440 ("insufficient boundary checks in filesystem image load") by using lmb to check the load size of a file against reserved memory addresses. Signed-off-by: Simon Goldschmidt Reviewed-by: Simon Glass --- Changes in v10: - return -ENOSPC from fs_read when read to reserved

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

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

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

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

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

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

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

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

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

2019-01-14 Thread Simon Goldschmidt
boot_fdt_add_mem_rsv_regions() adds reserved memory sections to an lmb struct. Currently, it only parses regions described by /memreserve/ entries. Extend this to the more commonly used scheme of the "reserved-memory" node. Signed-off-by: Simon Goldschmidt Reviewed-by: Simon Glass --- Changes

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

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

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

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

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

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

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

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

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

2019-01-14 Thread Simon Goldschmidt
This series fixes CVE-2018-18440 ("insufficient boundary checks in filesystem image load") by adding restrictions to the 'load' command and fixes CVE-2018-18439 ("insufficient boundary checks in network image boot") by adding restrictions to the tftp code. The functions from lmb.c are used to

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

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

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

2019-01-14 Thread Simon Goldschmidt
lmb.h includes an extern declaration of "struct lmb lmb;" which is not used anywhere, so remove it. Signed-off-by: Simon Goldschmidt --- Changes in v10: None Changes in v9: None Changes in v8: None Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: None Changes in v2: -

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  1   2   >