[U-Boot] [PATCH] tools: env: Use getline rather than fgets when reading config/script

2018-06-07 Thread Alex Kiernan
When reading the config file, or a script file, use getline rather than fgets so line lengths aren't limited by the size of a compiled in buffer (128 characters for config, 1024 for scripts). Rename 'dump' to 'line' so it's clear we're working with a line of text. Signed-off-by: Alex Kiernan

[U-Boot] [PATCH 3/3] rockchip: veyron: Set vcc33_sd regulator value

2018-06-07 Thread Carlo Caione
From: Carlo Caione On the veyron board the vcc33_sd regulator is used as vmmc-supply for the SD card. This regulator is powered in the MMC core during power on but its value is never actually set. In the veyron platform the reset value for the LDO output is 1.8V while the standard (min and max)

Re: [U-Boot] [PATCH 2/2] mx6cuboxi: fix 4GB ddr memory detection

2018-06-07 Thread Fabio Estevam
On Thu, Jun 7, 2018 at 10:17 AM, Baruch Siach wrote: > From: Jon Nettleton > > The soms with 4GB ddr have a rowaddr of 16 not 15, this allows > the detection mechanism to properly identify them as 4GB. > However these soms can be populated with whatever amount of > memory the customer requests

Re: [U-Boot] [PATCH 3/4] arm: zynq: Add Nand flash mini u-boot configuration for zynq

2018-06-07 Thread Michal Simek
On 5.6.2018 09:21, Siva Durga Prasad Paladugu wrote: > Add configuration files/dtses for mini u-boot configuration > which runs on smaller footprint of memory. This configuration > has only required nand flash support. > > Signed-off-by: Siva Durga Prasad Paladugu > --- > arch/arm/dts/Makefile

Re: [U-Boot] [PATCH 1/4] lib: fdtdec: Fill initial ram top with DDR start value from dt

2018-06-07 Thread Michal Simek
Hi, On 5.6.2018 09:20, Siva Durga Prasad Paladugu wrote: > Fill initial ram top with DDR base addr value from DT as not filling > it here always assumes it as zero while calculating relocation > offset and hence lead to failures in somecases. This will assumed > as zero if CONFIG_SYS_SDRAM_BASE

[U-Boot] [PATCH] u-boot: Fix several typos

2018-06-07 Thread Shyam Saini
's/environemnt/environment/' and 's/Environemnt/Environment/' Signed-off-by: Shyam Saini --- cmd/nvedit.c | 2 +- common/image.c| 2 +- common/spl/Kconfig| 2 +- env/Kconfig | 6 +++--- include/configs/mx28evk.h | 2 +-

[U-Boot] [PATCH 1/2] mx6cuboxi: consolidate board detection and add som revision checking

2018-06-07 Thread Baruch Siach
From: Jon Nettleton In order to properly detect the board the checks need to be done in a specific order. Move these tests back into a single enum function that will always return the proper the board it is checking. This also adds the best test we have for detecting the rev 1.5 som, and it

[U-Boot] [PATCH 2/2] mx6cuboxi: fix 4GB ddr memory detection

2018-06-07 Thread Baruch Siach
From: Jon Nettleton The soms with 4GB ddr have a rowaddr of 16 not 15, this allows the detection mechanism to properly identify them as 4GB. However these soms can be populated with whatever amount of memory the customer requests therefor we need a ram stride test. We can not use the

Re: [U-Boot] [PATCH] tools: env: Use getline rather than fgets when reading config/script

2018-06-07 Thread Lukasz Majewski
On Thu, 7 Jun 2018 12:20:05 + Alex Kiernan wrote: > When reading the config file, or a script file, use getline rather > than fgets so line lengths aren't limited by the size of a compiled > in buffer (128 characters for config, 1024 for scripts). > > Rename 'dump' to 'line' so it's clear

Re: [U-Boot] [PATCH 1/2] mx6cuboxi: consolidate board detection and add som revision checking

2018-06-07 Thread Fabio Estevam
On Thu, Jun 7, 2018 at 10:17 AM, Baruch Siach wrote: > From: Jon Nettleton > > In order to properly detect the board the checks need to be done > in a specific order. Move these tests back into a single enum > function that will always return the proper the board it is checking. > > This also

Re: [U-Boot] [PATCH 4/4] arm: zynq: Add parallel NOR flash mini u-boot configuration for zynq

2018-06-07 Thread Michal Simek
On 5.6.2018 09:21, Siva Durga Prasad Paladugu wrote: > Add configuration files/dtses for mini u-boot configuration > which runs on smaller footprint OCM memory. This configuration > only has required parallel nor flash support. > > Signed-off-by: Siva Durga Prasad Paladugu > --- >

[U-Boot] [PATCH 2/3] rk3288: Disable JTAG function from sdmmc0 IO

2018-06-07 Thread Carlo Caione
From: Carlo Caione The GRF_SOC_CON0.grf_force_jtag bit is automatically set at boot and it is preventing the SDMMC to work correctly. Disable the JTAG function on the assumption that a working SD has higher priority over JTAG. Signed-off-by: Carlo Caione ---

[U-Boot] [PATCH 0/3] rk3288: veyron: Enable SDMMC when booting from SPI

2018-06-07 Thread Carlo Caione
From: Carlo Caione These patches toghether with the previously submitted patch [0] enable the chromebook veyron jerry to use the SDMMC interface when U-Boot is not chainloaded by depthcharge but booted directly from SPI. [0] https://marc.info/?l=u-boot=152836928803742=2 Carlo Caione (3):

[U-Boot] [PATCH 1/3] rk3288: veyron: Init boot-on regulators

2018-06-07 Thread Carlo Caione
From: Carlo Caione Use regulators_enable_boot_on() to init all the regulators with regulator-boot-on property. Signed-off-by: Carlo Caione --- arch/arm/mach-rockchip/rk3288-board.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/mach-rockchip/rk3288-board.c

Re: [U-Boot] [PATCH v3 1/2] common: Add support for Android DT image

2018-06-07 Thread Andrew F. Davis
On 06/06/2018 09:06 AM, Sam Protsenko wrote: > Android documentation recommends new image format for storing DTB/DTBO > files: [1]. To support that format, this patch adds helper functions for > Android DTB/DTBO format. In image-android-dt.* files you can find helper > functions to work with

Re: [U-Boot] [PATCH v3 1/2] common: Add support for Android DT image

2018-06-07 Thread Andrew F. Davis
On 06/07/2018 10:55 AM, Sam Protsenko wrote: > On 7 June 2018 at 17:50, Andrew F. Davis wrote: >> On 06/06/2018 09:06 AM, Sam Protsenko wrote: >>> Android documentation recommends new image format for storing DTB/DTBO >>> files: [1]. To support that format, this patch adds helper functions for

Re: [U-Boot] [PATCH v3 1/2] common: Add support for Android DT image

2018-06-07 Thread Sam Protsenko
On 7 June 2018 at 17:50, Andrew F. Davis wrote: > On 06/06/2018 09:06 AM, Sam Protsenko wrote: >> Android documentation recommends new image format for storing DTB/DTBO >> files: [1]. To support that format, this patch adds helper functions for >> Android DTB/DTBO format. In image-android-dt.*

Re: [U-Boot] [RFC][DO NOT APPLY] binman: Switch to 'python-coverage'

2018-06-07 Thread Simon Glass
Hi Tom, On 1 June 2018 at 09:36, Tom Rini wrote: > On Fri, Jun 01, 2018 at 08:27:03AM -0600, Simon Glass wrote: > >> Hi Tom, >> >> On 26 May 2018 at 11:06, Tom Rini wrote: >> > The most portable way to get access to coverage is to invoke it as >> > 'python-coverage'. >> > >> > Cc: Simon Glass

Re: [U-Boot] [PATCH v3 1/1] board: arm: Add support for Broadcom BCM7445

2018-06-07 Thread Florian Fainelli
On 06/06/2018 11:35 AM, Thomas Fitzsimmons wrote: > Add support for loading U-Boot on the Broadcom 7445 SoC. This port > assumes Broadcom's BOLT bootloader is acting as the second stage > bootloader, and U-Boot is acting as the third stage bootloader, loaded > as an ELF program by BOLT. > >

[U-Boot] Verified boot production uses question

2018-06-07 Thread Teddy Reed
Hi all, question, is anyone using the U-Boot verified-boot in production? I am using configuration verification for several OpenCompute/OpenBMC boards. After a deep-dive review I found some edge cases that in rare circumstances could lead to a signature check bypass. I think this is low-risk at

[U-Boot] [PATCH] mtd: nand: denali: Replace the ad-hoc cache management with bouncebuf

2018-06-07 Thread Marek Vasut
Replace the ad-hoc DMA cache management functions with common bouncebuf, since those functions are not handling cases where unaligned buffer is passed in, while common bouncebuf does handle all that. Signed-off-by: Marek Vasut Cc: Masahiro Yamada Cc: Tom Rini --- drivers/mtd/nand/denali.c |

Re: [U-Boot] [PATCH] fit: Verify all configuration signatures

2018-06-07 Thread Simon Glass
Hi Marek, On 31 May 2018 at 07:59, Marek Vasut wrote: > Rather than verifying configuration signature of the configuration node > containing the kernel image types, verify all configuration nodes, even > those that do not contain kernel images. This is useful when the nodes > contain ie.

Re: [U-Boot] [PATCH 07/13] x86: chromebook_link: Remove dm-pre-reloc property in the cpu nodes

2018-06-07 Thread Simon Glass
On 3 June 2018 at 18:04, Bin Meng wrote: > The 206ax cpu driver does not require pre-relocation flag to work. > > Signed-off-by: Bin Meng > --- > > arch/x86/dts/chromebook_link.dts | 5 - > 1 file changed, 5 deletions(-) > Reviewed-by: Simon Glass

Re: [U-Boot] [PATCH 08/13] x86: cougarcanyon2: Enable CPU driver and SMP support

2018-06-07 Thread Simon Glass
On 3 June 2018 at 18:04, Bin Meng wrote: > This enables the 206ax cpu driver on Intel Cougar Canyon 2 board, > so that SMP can be supported too. > > Signed-off-by: Bin Meng > --- > > arch/x86/dts/cougarcanyon2.dts | 33 + > configs/cougarcanyon2_defconfig | 3

Re: [U-Boot] [PATCH v4 04/16] sandbox: smbios: Update to support sandbox

2018-06-07 Thread Alexander Graf
On 07.06.18 22:25, Simon Glass wrote: > Hi Alex, > > On 3 June 2018 at 04:13, Alexander Graf wrote: >> >> >> On 25.05.18 04:42, Simon Glass wrote: >>> Hi Alex, >>> >>> On 24 May 2018 at 06:24, Alexander Graf wrote: On 16.05.18 17:42, Simon Glass wrote: > At present this

Re: [U-Boot] [PATCH 13/13] x86: cougarcanyon2: Add missing chipset interrupt information

2018-06-07 Thread Simon Glass
On 3 June 2018 at 18:04, Bin Meng wrote: > Add Panther Point chipset interrupt pin/PIRQ information, and > enable the generation of PIRQ routing table and MP table. > > Signed-off-by: Bin Meng > > --- > > arch/x86/dts/cougarcanyon2.dts | 36 >

Re: [U-Boot] [PATCH] spl: spi: Support full fitImage handling

2018-06-07 Thread Marek Vasut
On 06/07/2018 10:28 PM, Simon Glass wrote: > Hi Marek, > On 31 May 2018 at 07:59, Marek Vasut wrote: >> Handle the case where the full fitImage support is enabled. In this >> case, the whole fitImage must be loaded up front as some parts of the >> fitImage code require memory-mapped access to the

Re: [U-Boot] Generic uclass ID

2018-06-07 Thread Ramon Fried
On Thu, Jun 7, 2018 at 11:28 PM, Simon Glass wrote: > Hi Ramon, > > On 3 June 2018 at 14:32, Ramon Fried wrote: >> On Sat, Jun 2, 2018 at 10:19 PM, Ramon Fried wrote: >>> On Sat, Jun 2, 2018 at 9:03 PM, Heinrich Schuchardt >>> wrote: On 06/02/2018 06:25 PM, Ramon Fried wrote: > Hi

Re: [U-Boot] Verified boot production uses question

2018-06-07 Thread Teddy Reed
On Thu, Jun 7, 2018 at 3:45 PM, Sam Voss wrote: > Teddy, > > On Thu, Jun 7, 2018 at 12:27 PM, Teddy Reed wrote: >> >> Hi all, question, is anyone using the U-Boot verified-boot in production? > > I have been digging into this lately as well, and actually noticed a > few other things on top of

Re: [U-Boot] [PATCH] vboot: Add FIT_SIGNATURE_MAX_SIZE protection

2018-06-07 Thread Simon Glass
Hi Teddy, On 3 June 2018 at 15:28, Teddy Reed wrote: > This adds a new config value FIT_SIGNATURE_MAX_SIZE, which controls the > max size of a FIT header's totalsize field. The max size is checked before > signature checks are applied to prevent reading past defined FIT regions. > > This field

Re: [U-Boot] [PATCH v4 04/16] sandbox: smbios: Update to support sandbox

2018-06-07 Thread Simon Glass
Hi Alex, On 3 June 2018 at 04:13, Alexander Graf wrote: > > > On 25.05.18 04:42, Simon Glass wrote: >> Hi Alex, >> >> On 24 May 2018 at 06:24, Alexander Graf wrote: >>> >>> >>> On 16.05.18 17:42, Simon Glass wrote: At present this code casts addresses to pointers so cannot be used with

Re: [U-Boot] [PATCH 1/1] rockchip: doc: clarify usage of CONFIG_SPL_ROCKCHIP_BACK_TO_BROM

2018-06-07 Thread Simon Glass
On 3 June 2018 at 10:41, Heinrich Schuchardt wrote: > Change the description relating to CONFIG_SPL_ROCKCHIP_BACK_TO_BROM to > clarify that both RK3288 and RK3036 use > > CONFIG_SPL_ROCKCHIP_BACK_TO_BROM=y > > Signed-off-by: Heinrich Schuchardt > --- > doc/README.rockchip | 8 >

Re: [U-Boot] [PATCH 05/13] x86: ivybridge: Enable 206ax cpu driver for FSP build

2018-06-07 Thread Simon Glass
On 3 June 2018 at 18:04, Bin Meng wrote: > At present this 206ax cpu driver is only built when FSP is not used. > This updates the Makefile to enable the build for both cases. > > Signed-off-by: Bin Meng > --- > > arch/x86/cpu/ivybridge/Makefile | 2 +- > 1 file changed, 1 insertion(+), 1

Re: [U-Boot] [PATCH 03/13] x86: cougarcanyon2: Update dts for SPI lock down

2018-06-07 Thread Simon Glass
On 3 June 2018 at 18:04, Bin Meng wrote: > It turns out that like Braswell, Intel FSP for IvyBridge requires > SPI controller settings to be locked down, as the U-Boot ICH SPI > driver fails with the following message on Cougar Canyon 2 board: > > "ICH SPI: Opcode 9f not found" > > Update the

Re: [U-Boot] Verified boot production uses question

2018-06-07 Thread Sam Voss
Teddy, On Thu, Jun 7, 2018 at 12:27 PM, Teddy Reed wrote: > > Hi all, question, is anyone using the U-Boot verified-boot in production? I have been digging into this lately as well, and actually noticed a few other things on top of what you are seeing, mentioned below. I don't want to derail

Re: [U-Boot] [PATCH 01/13] usb: xhci-pci: Fix compiler warning

2018-06-07 Thread Simon Glass
On 3 June 2018 at 18:04, Bin Meng wrote: > This fixes the following compiler warning: > > "warning: cast from pointer to integer of different size > [-Wpointer-to-int-cast]" > > Signed-off-by: Bin Meng > --- > > drivers/usb/host/xhci-pci.c | 5 ++--- > 1 file changed, 2 insertions(+), 3

Re: [U-Boot] Generic uclass ID

2018-06-07 Thread Simon Glass
Hi Ramon, On 3 June 2018 at 14:32, Ramon Fried wrote: > On Sat, Jun 2, 2018 at 10:19 PM, Ramon Fried wrote: >> On Sat, Jun 2, 2018 at 9:03 PM, Heinrich Schuchardt >> wrote: >>> On 06/02/2018 06:25 PM, Ramon Fried wrote: Hi Simon, all. I want to port a specific driver from Linux

Re: [U-Boot] [PATCH 3/3] cmd: add missing line breaks for pr_err()

2018-06-07 Thread Simon Glass
On 3 June 2018 at 23:04, Seung-Woo Kim wrote: > After the commit 9b643e312d52 ("treewide: replace with error() with > pr_err()"), there are some pr_err() with no line break. Add missing > line breaks. > > Signed-off-by: Seung-Woo Kim > --- > cmd/fastboot.c |2 +- > cmd/regulator.c

Re: [U-Boot] [PATCH 02/13] x86: ivybridge: Imply USB_XHCI_HCD

2018-06-07 Thread Simon Glass
On 3 June 2018 at 18:04, Bin Meng wrote: > The Panther Point chipset connected to Ivybridge has xHC integrated, > imply it. > > Signed-off-by: Bin Meng > --- > > arch/x86/cpu/ivybridge/Kconfig | 1 + > 1 file changed, 1 insertion(+) > Reviewed-by: Simon Glass

Re: [U-Boot] [PATCH 10/13] x86: irq: Change LINK_V2N and LINK_N2V to inline functions

2018-06-07 Thread Simon Glass
On 3 June 2018 at 18:04, Bin Meng wrote: > LINK_V2N and LINK_N2V are currently defines, so they cannot handle > complex logics. Change to inline functions for future extension. > > Signed-off-by: Bin Meng > --- > > arch/x86/cpu/irq.c | 18 +++--- > arch/x86/include/asm/irq.h

Re: [U-Boot] [PATCH 11/13] x86: irq: Introduce CONFIG_DISCRETE_PIRQ_ROUT

2018-06-07 Thread Simon Glass
Hi Bin, On 3 June 2018 at 18:04, Bin Meng wrote: > Currently both pirq_reg_to_linkno() and pirq_linkno_to_reg() assume > consecutive PIRQ routing control registers. But this is not always > the case on some platforms. Introduce a Kconfig option for this and > adjust the irq router driver to be

Re: [U-Boot] [PATCH v4 04/16] sandbox: smbios: Update to support sandbox

2018-06-07 Thread Alexander Graf
On 07.06.18 22:41, Simon Glass wrote: > Hi Alex, > > On 7 June 2018 at 12:36, Alexander Graf wrote: >> >> >> On 07.06.18 22:25, Simon Glass wrote: >>> Hi Alex, >>> >>> On 3 June 2018 at 04:13, Alexander Graf wrote: On 25.05.18 04:42, Simon Glass wrote: > Hi Alex, >

Re: [U-Boot] [PATCH] spl: fat: Support full fitImage handling

2018-06-07 Thread Marek Vasut
On 06/07/2018 10:27 PM, Simon Glass wrote: > Hi Marex, > > On 31 May 2018 at 07:59, Marek Vasut wrote: >> Handle the case where the full fitImage support is enabled. In this >> case, the whole fitImage must be loaded up front as some parts of the >> fitImage code require memory-mapped access to

Re: [U-Boot] [PATCH] spl: spi: Support full fitImage handling

2018-06-07 Thread Simon Glass
Hi Marek, On 7 June 2018 at 12:55, Marek Vasut wrote: > On 06/07/2018 10:28 PM, Simon Glass wrote: >> Hi Marek, >> On 31 May 2018 at 07:59, Marek Vasut wrote: >>> Handle the case where the full fitImage support is enabled. In this >>> case, the whole fitImage must be loaded up front as some

Re: [U-Boot] T1040RDB u-boot chain load u-boot

2018-06-07 Thread Chris Packham
On Thu, Jun 7, 2018 at 10:46 PM Nicolae Rosia wrote: > Scenario 4: > Remove RAMBOOT_PBL from defconfig: > -CONFIG_SYS_EXTRA_OPTIONS="RAMBOOT_PBL,SPL_FSL_PBL" > +CONFIG_SYS_EXTRA_OPTIONS="SPL_FSL_PBL" > > This results in a binary that is more than 3GB (??) > > Scenario 4.1: > I noticed that

Re: [U-Boot] [PATCH] vboot: Do not use hashed-strings offset

2018-06-07 Thread Teddy Reed
On Thu, Jun 7, 2018 at 4:28 PM, Simon Glass wrote: > Hi Teddy, > > On 3 June 2018 at 10:46, Teddy Reed wrote: >> >> The hashed-strings signature property includes two uint32_t values. >> The first is unneeded as there should never be a start offset into the >> strings region. The second, the

Re: [U-Boot] [PATCH] vboot: Add FIT_SIGNATURE_MAX_SIZE protection

2018-06-07 Thread Teddy Reed
On Thu, Jun 7, 2018 at 4:25 PM, Simon Glass wrote: > Hi Teddy, > > On 3 June 2018 at 15:28, Teddy Reed wrote: >> This adds a new config value FIT_SIGNATURE_MAX_SIZE, which controls the >> max size of a FIT header's totalsize field. The max size is checked before >> signature checks are applied

Re: [U-Boot] Verified boot production uses question

2018-06-07 Thread Sam Voss
Teddy, All, >> On Thu, Jun 7, 2018 at 12:27 PM, Teddy Reed wrote: >>> >>> Hi all, question, is anyone using the U-Boot verified-boot in production? >> >> I have been digging into this lately as well, and actually noticed a >> few other things on top of what you are seeing, mentioned below. I >>

Re: [U-Boot] [PATCH] spl: spi: Support full fitImage handling

2018-06-07 Thread Simon Glass
Hi Marek, On 31 May 2018 at 07:59, Marek Vasut wrote: > Handle the case where the full fitImage support is enabled. In this > case, the whole fitImage must be loaded up front as some parts of the > fitImage code require memory-mapped access to the entire fitImage. > > Signed-off-by: Marek Vasut

Re: [U-Boot] [PATCH] spl: fat: Support full fitImage handling

2018-06-07 Thread Simon Glass
Hi Marex, On 31 May 2018 at 07:59, Marek Vasut wrote: > Handle the case where the full fitImage support is enabled. In this > case, the whole fitImage must be loaded up front as some parts of the > fitImage code require memory-mapped access to the entire fitImage. > > Signed-off-by: Marek Vasut

Re: [U-Boot] [PATCH] vboot: Do not use hashed-strings offset

2018-06-07 Thread Simon Glass
Hi Teddy, On 3 June 2018 at 10:46, Teddy Reed wrote: > > The hashed-strings signature property includes two uint32_t values. > The first is unneeded as there should never be a start offset into the > strings region. The second, the size, is needed because the added > signature node appends to

Re: [U-Boot] [PATCH 09/13] x86: irq: Remove chipset specific irq router drivers

2018-06-07 Thread Simon Glass
On 3 June 2018 at 18:04, Bin Meng wrote: > At present there are 3 irq router drivers. One is the common one > and the other two are chipset specific for queensbay and quark. > However these are really the same drivers as the core logic is > the same. The two chipset specific drivers configure

Re: [U-Boot] [PATCH 04/13] x86: cougarcanyon2: Remove CONFIG_HAVE_INTEL_ME

2018-06-07 Thread Simon Glass
On 3 June 2018 at 18:04, Bin Meng wrote: > As README.x86 already mentions, there are two SPI flashes mounted > on Intel Cougar Canyon 2 board, called SPI-0 and SPI-1 respectively. > SPI-0 stores the flash descriptor and the ME firmware. SPI-1 stores > the actual BIOS image which is U-Boot.

Re: [U-Boot] [PATCH 06/13] x86: ivybridge: Drop CONFIG_USBDEBUG

2018-06-07 Thread Simon Glass
On 3 June 2018 at 18:04, Bin Meng wrote: > This is not used anywhere. Clean this up. > > Signed-off-by: Bin Meng > --- > > arch/x86/cpu/intel_common/mrc.c | 5 - > arch/x86/cpu/ivybridge/model_206ax.c | 15 --- > scripts/config_whitelist.txt | 1 - > 3 files

Re: [U-Boot] [PATCH v4 04/16] sandbox: smbios: Update to support sandbox

2018-06-07 Thread Simon Glass
Hi Alex, On 7 June 2018 at 12:36, Alexander Graf wrote: > > > On 07.06.18 22:25, Simon Glass wrote: >> Hi Alex, >> >> On 3 June 2018 at 04:13, Alexander Graf wrote: >>> >>> >>> On 25.05.18 04:42, Simon Glass wrote: Hi Alex, On 24 May 2018 at 06:24, Alexander Graf wrote: >

[U-Boot] [PATCH] spl: Kconfig: SPL_LOAD_FIT_ADDRESS to Kconfig

2018-06-07 Thread Ibai Erkiaga
Create a new KConfig entry to define FIT image position for SPL RAM mode. Signed-off-by: Ibai Erkiaga --- Kconfig | 7 +++ common/spl/spl_ram.c | 4 scripts/config_whitelist.txt | 1 - 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Kconfig

Re: [U-Boot] [PATCH v2 08/12] binman: Allow a single test to be executed

2018-06-07 Thread Simon Glass
On 1 June 2018 at 07:38, Simon Glass wrote: > Provide an easy way to execute a single binman test by specifying it on > the command line. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > tools/binman/binman.py | 21 + > 1 file changed, 17 insertions(+), 4

Re: [U-Boot] [PATCH v2 05/12] binman: Avoid setting sys.path globally

2018-06-07 Thread Simon Glass
On 1 June 2018 at 07:38, Simon Glass wrote: > At present we set the Python path at the start of binman so we can read > modules in the 'etype' directory. This is a bit messy since it affects > 'import' statements through binman. > > Adjust the code to set the path locally, just where it is

Re: [U-Boot] [PATCH v2 09/12] binman: Tidy up some docs and comments

2018-06-07 Thread Simon Glass
On 1 June 2018 at 07:38, Simon Glass wrote: > Fix a few missing comments and tidy up some existing ones. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > tools/binman/README | 6 +++--- > tools/binman/ftest.py | 29 +++-- > tools/binman/image.py | 5

Re: [U-Boot] [PATCH v2 11/12] binman: Add support for adding a name prefix to entries

2018-06-07 Thread Simon Glass
On 1 June 2018 at 07:38, Simon Glass wrote: > Sometimes we have several sections which repeat the same entries (e.g. for > a read-only and read-write version of the same section). It is useful to > be able to tell these entries apart by name. > > Add a new 'name-prefix' property for sections,

Re: [U-Boot] [PATCH v2 07/12] binman: Add documentation for pos-unset property

2018-06-07 Thread Simon Glass
On 1 June 2018 at 07:38, Simon Glass wrote: > This property is not documented. Add a note to the README. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > tools/binman/README | 7 +++ > 1 file changed, 7 insertions(+) > Applied to u-boot-dm

Re: [U-Boot] [PATCH] sandbox_flattree: Switch to TPMv2 support

2018-06-07 Thread Simon Glass
Hi Miquel, On 6 June 2018 at 23:38, Miquel Raynal wrote: > Hello, > > Sorry for the delay. > > On Sat, 2 Jun 2018 10:15:17 -0600, Simon Glass wrote: > >> Hi Tom, >> >> On 1 June 2018 at 11:55, Tom Rini wrote: >> > >> > On Fri, Jun 01, 2018 at 09:25:19AM -0600, Simon Glass wrote: >> > > +Miquel

Re: [U-Boot] [PATCH 1/2] test: Fix sandbox_spl test filter

2018-06-07 Thread Simon Glass
On 15 May 2018 at 23:10, Simon Glass wrote: > This filter does not match the test it is intended to anymore. Update it > so that it works again. > > Signed-off-by: Simon Glass > --- > > test/run | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) Applied to u-boot-dm

Re: [U-Boot] [PATCH v3 2/2] buildman: Add support for environment delta in summary

2018-06-07 Thread Simon Glass
On 30 May 2018 at 20:48, Alex Kiernan wrote: > When summarising the builds, add the -U option to emit delta lines for > the default environment built into U-Boot at each commit. > > Signed-off-by: Alex Kiernan > Reviewed-by: Simon Glass > --- > > Changes in v3: None > Changes in v2: > - update

Re: [U-Boot] [PATCH] patman: Fix unit tests for SPDX

2018-06-07 Thread Simon Glass
On 31 May 2018 at 20:34, Alex Kiernan wrote: > On Wed, May 16, 2018 at 7:48 AM Simon Glass wrote: >> >> The format of this line has changed. Update the patman test to suit. >> >> Signed-off-by: Simon Glass > > Tested-by: Alex Kiernan > >> --- >> >> tools/patman/test.py | 2 +- >> 1 file

Re: [U-Boot] Generic uclass ID

2018-06-07 Thread Simon Glass
Hi Ramon, On 7 June 2018 at 13:41, Ramon Fried wrote: > On Thu, Jun 7, 2018 at 11:28 PM, Simon Glass wrote: >> Hi Ramon, >> >> On 3 June 2018 at 14:32, Ramon Fried wrote: >>> On Sat, Jun 2, 2018 at 10:19 PM, Ramon Fried wrote: On Sat, Jun 2, 2018 at 9:03 PM, Heinrich Schuchardt

[U-Boot] Please pull u-boot-dm

2018-06-07 Thread Simon Glass
Hi Tom, Here are the binman patches (support for hierarchical images and map files), buildman environment support and a few test fixes. As you know there are more test fixes to come once we figure things out. The following changes since commit 3eceff642c01e03e055127c9cf21608faaff28ac:

Re: [U-Boot] [PATCH] vboot: Add FIT_SIGNATURE_MAX_SIZE protection

2018-06-07 Thread Simon Glass
Hi Teddy, On 7 June 2018 at 13:57, Teddy Reed wrote: > On Thu, Jun 7, 2018 at 4:25 PM, Simon Glass wrote: >> Hi Teddy, >> >> On 3 June 2018 at 15:28, Teddy Reed wrote: >>> This adds a new config value FIT_SIGNATURE_MAX_SIZE, which controls the >>> max size of a FIT header's totalsize field.

Re: [U-Boot] [PATCH v4 2/2] test/py: add test for whitelist of variables while importing environment

2018-06-07 Thread Stephen Warren
On 06/04/2018 03:47 AM, Quentin Schulz wrote: This tests that the importing of an environment with a specified whitelist works as intended. If there are variables passed as parameter to the env import command, those only should be imported in the current environment. For each variable

Re: [U-Boot] [PATCH v2 02/12] binman: Refactor much of the image code into 'section'

2018-06-07 Thread Simon Glass
On 1 June 2018 at 07:38, Simon Glass wrote: > We want to support multiple sections within a single image. To do this, > move most of the Image class implementation into a new Section class. An > Image contains only a single Section, but at some point we will support > a new 'section' entry, thus

Re: [U-Boot] [PATCH v2 04/12] binman: Rename Entry property to 'section'

2018-06-07 Thread Simon Glass
On 1 June 2018 at 07:38, Simon Glass wrote: > Entries are now passed a Section object rather than an Image. Rename this > property to avoid confusion. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > tools/binman/etype/_testing.py| 4 ++-- >

Re: [U-Boot] [PATCH v2 01/12] binman: Allow unit addresses for binaries

2018-06-07 Thread Simon Glass
On 1 June 2018 at 07:38, Simon Glass wrote: > Allow the same binary to appear multiple times in an image by using the > device-tree unit-address feature (u-boot@0, u-boot@1). > > Signed-off-by: Simon Glass > --- > > Changes in v2: > - Add SPDX tag to .dts file > > tools/binman/README

Re: [U-Boot] [PATCH v2 03/12] binman: Rename ELF parameters to 'section'

2018-06-07 Thread Simon Glass
On 1 June 2018 at 07:38, Simon Glass wrote: > We now pass a Section object to these functions rather than an Image. > Rename the parameters to avoid confusion. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > tools/binman/elf.py | 10 +- >

Re: [U-Boot] [PATCH v2 06/12] binman: Add support for sections

2018-06-07 Thread Simon Glass
On 1 June 2018 at 07:38, Simon Glass wrote: > It is useful to be able to split an image into multiple sections, > each with its own size and position, for cases where a flash device has > read-only and read-write portions. > > Add support for this. > > Signed-off-by: Simon Glass > --- > >

Re: [U-Boot] [PATCH v2 12/12] binman: Mark 'align-end' as implemented

2018-06-07 Thread Simon Glass
On 1 June 2018 at 07:38, Simon Glass wrote: > The documentation says this is not implemented, but it is. Update the > documentation, and clarify its operation. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > tools/binman/README | 7 +++ > 1 file changed, 3 insertions(+), 4

Re: [U-Boot] [PATCH v2 10/12] binman: Add support for outputing a map file

2018-06-07 Thread Simon Glass
On 1 June 2018 at 07:38, Simon Glass wrote: > It is useful to be able to see a list of regions in each image produced by > binman. Add a -m option to output this information in a '.map' file > alongside the image file. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > >

Re: [U-Boot] [PATCH v3 1/2] buildman: Extract environment as part of each build

2018-06-07 Thread Simon Glass
On 30 May 2018 at 20:48, Alex Kiernan wrote: > As we're building the boards, extract the default U-Boot environment to > uboot.env so we can interrogate it later. > > Signed-off-by: Alex Kiernan > Reviewed-by: Simon Glass > --- > > Changes in v3: > - update tests for our usage of objcopy > >

Re: [U-Boot] [PATCH 2/4] arm: odroid: Increase default env size in preparation for distro_bootcmd.

2018-06-07 Thread Vagrant Cascadian
On 2018-06-07, Minkyu Kang wrote: > 2018년 6월 6일 (수) 06:16, Vagrant Cascadian 님이 작성: > >> Adding distro_bootcmd support bumps the default environment size over >> 4500. Increase to 16384 to allow for room to grow in the future. >> >> Signed-off-by: Vagrant Cascadian >> --- >> >>

[U-Boot] [PATCH v3 1/4] sunxi: clock: Fix EHCI and OHCI clocks on A64

2018-06-07 Thread Vasily Khoruzhick
EHCI0 is bit 24, EHCI1 - 25, OHCI0 - 28, OHCI1 - 29 Fixes commit fef73766d9ad ("sunxi: clock: Fix OHCI clock gating for H3/H5") Signed-off-by: Vasily Khoruzhick --- arch/arm/include/asm/arch-sunxi/clock_sun6i.h | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git

Re: [U-Boot] [PATCH 2/4] arm: odroid: Increase default env size in preparation for distro_bootcmd.

2018-06-07 Thread Minkyu Kang
Dear Vagrant Cascadian, 2018년 6월 6일 (수) 06:16, Vagrant Cascadian 님이 작성: > Adding distro_bootcmd support bumps the default environment size over > 4500. Increase to 16384 to allow for room to grow in the future. > > Signed-off-by: Vagrant Cascadian > --- > > include/configs/odroid.h | 2 +- > 1

[U-Boot] [PATCH v3 4/4] usb: sunxi: sun50i: enable OHCI0 clock when OHCI1 is in use

2018-06-07 Thread Vasily Khoruzhick
On A64 OHCI1 clock source is OHCI0 clock, so we need to enable OHCI0 clock when OHCI1 is in use. Fixes commit dd3228170ad7 ("usb: sunxi: Switch to use generic-phy") Signed-off-by: Vasily Khoruzhick --- drivers/usb/host/ohci-sunxi.c | 12 ++-- 1 file changed, 10 insertions(+), 2

[U-Boot] [PATCH v3 3/4] usb: sunxi: ohci: get rid of ifdefs

2018-06-07 Thread Vasily Khoruzhick
We can use compatibles instead. Signed-off-by: Vasily Khoruzhick --- v3: use ohci_sunxi_cfg instead of id drivers/usb/host/ohci-sunxi.c | 83 ++- 1 file changed, 63 insertions(+), 20 deletions(-) diff --git a/drivers/usb/host/ohci-sunxi.c

[U-Boot] [PATCH v3 2/4] usb: sunxi: ehci: get rid of ifdefs

2018-06-07 Thread Vasily Khoruzhick
We can use compatibles instead. Signed-off-by: Vasily Khoruzhick --- v3: use ehci_sunxi_cfg instead of id drivers/usb/host/ehci-sunxi.c | 83 ++- 1 file changed, 63 insertions(+), 20 deletions(-) diff --git a/drivers/usb/host/ehci-sunxi.c

[U-Boot] [PATCH v2] tegra: nyan-big: Update CONFIG_SYS_TEXT to the default in README.chromium

2018-06-07 Thread Peter Robinson
To build u-boot on a Nyan Big Chromebook the docs outline adjusting the Tegra124 defined CONFIG_SYS_TEXT_BASE but this has since been moved to individual config files. We should have the default required for u-boot chain loading on the chromebook as the default CONFIG_SYS_TEXT_BASE and update the

Re: [U-Boot] [PATCH] spl: Kconfig: SPL_LOAD_FIT_ADDRESS to Kconfig

2018-06-07 Thread Michal Simek
On 7.6.2018 14:29, Ibai Erkiaga wrote: > Create a new KConfig entry to define FIT image position for > SPL RAM mode. > > Signed-off-by: Ibai Erkiaga > --- > > Kconfig | 7 +++ > common/spl/spl_ram.c | 4 > scripts/config_whitelist.txt | 1 - > 3 files

Re: [U-Boot] [PATCH v3 1/2] i2c: mvtwsi: disable i2c slave on Armada 38x

2018-06-07 Thread Stefan Roese
On 06.06.2018 16:05, Baruch Siach wrote: Equivalent code that disables the hidden i2c0 slave already exists in the Turris Omnia platform specific code. But this hidden i2c0 slave that interferes the i2c bus is not board specific. Armada 38x SoCs and at least some Kirkwood variants are affected

[U-Boot] DM-SERIAL-SPL on MX6

2018-06-07 Thread Hannes Schmelzer
hi, i'm actually trying to convert my i.mx6 boards to DM, many things are already doing well. But I've trouble getting the console (UART) runnin SPL. The "preloader_console_init" is called very early in board_init_f, i guess that DM isn't ready at this point. has anyone experience in this?

Re: [U-Boot] [PATCH v3 1/2] i2c: mvtwsi: disable i2c slave on Armada 38x

2018-06-07 Thread Baruch Siach
Hi Stefan, On Thu, Jun 07, 2018 at 08:53:34AM +0200, Stefan Roese wrote: > On 06.06.2018 16:05, Baruch Siach wrote: > > Equivalent code that disables the hidden i2c0 slave already exists in > > the Turris Omnia platform specific code. But this hidden i2c0 slave that > > interferes the i2c bus is

Re: [U-Boot] [PATCH v3 1/2] i2c: mvtwsi: disable i2c slave on Armada 38x

2018-06-07 Thread Stefan Roese
Hi Baruch, On 07.06.2018 08:59, Baruch Siach wrote: Hi Stefan, On Thu, Jun 07, 2018 at 08:53:34AM +0200, Stefan Roese wrote: On 06.06.2018 16:05, Baruch Siach wrote: Equivalent code that disables the hidden i2c0 slave already exists in the Turris Omnia platform specific code. But this hidden

Re: [U-Boot] DM-SERIAL-SPL on MX6

2018-06-07 Thread Jagan Teki
+ Add few imx maintainers On Thu, Jun 7, 2018 at 12:25 PM, Hannes Schmelzer wrote: > hi, > > i'm actually trying to convert my i.mx6 boards to DM, many things are > already doing well. > But I've trouble getting the console (UART) runnin SPL. > > The "preloader_console_init" is called very early

Re: [U-Boot] [PATCH v3 1/2] i2c: mvtwsi: disable i2c slave on Armada 38x

2018-06-07 Thread Baruch Siach
Hi Stefan, On Thu, Jun 07, 2018 at 09:09:34AM +0200, Stefan Roese wrote: > On 07.06.2018 08:59, Baruch Siach wrote: > > On Thu, Jun 07, 2018 at 08:53:34AM +0200, Stefan Roese wrote: > > > On 06.06.2018 16:05, Baruch Siach wrote: > > > > Equivalent code that disables the hidden i2c0 slave already

Re: [U-Boot] Rewriting fw_{printenv,getenv} to not use fgets

2018-06-07 Thread Stefano Babic
Hi Alex, On 06/06/2018 18:33, Alex Kiernan wrote: > The line length limit that fw_{printenv,setenv} impose (1024 > characters) has tripped me up twice in as many days, so I figured I'd > rewrite it to use getline as we already have that in tools/. > > But in looking how I structure that change,

Re: [U-Boot] [PATCH v3] sunxi: add support for Banana Pi M2 Zero board

2018-06-07 Thread Maxime Ripard
On Wed, Jun 06, 2018 at 06:40:44PM +0800, Jun Nie wrote: > diff --git a/configs/bananapi_m2_zero_defconfig > b/configs/bananapi_m2_zero_defconfig > new file mode 100644 > index 000..668ade5 > --- /dev/null > +++ b/configs/bananapi_m2_zero_defconfig > @@ -0,0 +1,15 @@ > +CONFIG_ARM=y >

Re: [U-Boot] [PATCH v2 3/4] usb: sunxi: ohci: get rid of ifdefs

2018-06-07 Thread Maxime Ripard
Hi, On Wed, Jun 06, 2018 at 07:30:10PM -0700, Vasily Khoruzhick wrote: > We can use compatibles instead. > > Signed-off-by: Vasily Khoruzhick > --- > drivers/usb/host/ohci-sunxi.c | 88 +++ > 1 file changed, 68 insertions(+), 20 deletions(-) > > diff --git

[U-Boot] [PATCH v2] xilinx: zynq: Add support to secure images

2018-06-07 Thread Siva Durga Prasad Paladugu
This patch basically adds two new commands for loadig secure images/bitstreams. 1. zynq rsa adds support to load secure image which can be both authenticated or encrypted or both authenticated and encrypted image in xilinx bootimage(BOOT.bin) format. 2. zynq aes command adds support to

Re: [U-Boot] [PATCH v3 1/2] i2c: mvtwsi: disable i2c slave on Armada 38x

2018-06-07 Thread Heiko Schocher
Hello Baruch, Am 07.06.2018 um 09:18 schrieb Baruch Siach: Hi Stefan, On Thu, Jun 07, 2018 at 09:09:34AM +0200, Stefan Roese wrote: On 07.06.2018 08:59, Baruch Siach wrote: On Thu, Jun 07, 2018 at 08:53:34AM +0200, Stefan Roese wrote: On 06.06.2018 16:05, Baruch Siach wrote: Equivalent

Re: [U-Boot] [PATCH] sandbox_flattree: Switch to TPMv2 support

2018-06-07 Thread Miquel Raynal
Hello, Sorry for the delay. On Sat, 2 Jun 2018 10:15:17 -0600, Simon Glass wrote: > Hi Tom, > > On 1 June 2018 at 11:55, Tom Rini wrote: > > > > On Fri, Jun 01, 2018 at 09:25:19AM -0600, Simon Glass wrote: > > > +Miquel due to sandbox TPM issue > > > > > > Hi Tom, > > > > > > On 25 May

Re: [U-Boot] DM-SERIAL-SPL on MX6

2018-06-07 Thread Sébastien Szymanski
Hi, On 06/07/2018 09:14 AM, Jagan Teki wrote: > + Add few imx maintainers > > On Thu, Jun 7, 2018 at 12:25 PM, Hannes Schmelzer > wrote: >> hi, >> >> i'm actually trying to convert my i.mx6 boards to DM, many things are >> already doing well. >> But I've trouble getting the console (UART)

Re: [U-Boot] [PATCH] lsxl: Add documentation how to flash an unmodified board

2018-06-07 Thread Michael Walle
Am 6. Juni 2018 11:38:56 MESZ schrieb Bastian Germann : >Signed-off-by: Bastian Germann >--- > board/buffalo/lsxl/README | 17 - > 1 file changed, 16 insertions(+), 1 deletion(-) > >diff --git a/board/buffalo/lsxl/README b/board/buffalo/lsxl/README >index ef5ed42880..3ede081776

Re: [U-Boot] [PATCH 0/4] arm: odroid: Convert to distro_bootcmd.

2018-06-07 Thread Lukasz Majewski
On Tue, 5 Jun 2018 14:13:51 -0700 Vagrant Cascadian wrote: > Switch odroid platform to use distro_bootcmd, adjusting to use > standardized environment variable names, and use the default > bootdelay. > > The additional environment variables from distro_bootcmd requires > increasing the default

  1   2   >