[U-Boot] [PATCH] igep00x0: Use the SRAM available for SPL.

2016-05-02 Thread Enric Balletbo i Serra
From: Enric Balletbo i Serra Move CONFIG_SPL_TEXT_BASE down to 0x4020 and set CONFIG_SPL_MAX_SIZE to (SRAM_SCRATCH_SPACE_ADDR - CONFIG_SPL_TEXT_BASE), so that it's clear what the limit is. This will also help some compilers to fit all the code into the allocated space. Signed-off-by: Enric

Re: [U-Boot] [PATCH] efi_loader: Add network access support

2016-05-02 Thread Alexander Graf
> Am 03.05.2016 um 01:11 schrieb Peter Robinson : > >> On Mon, May 2, 2016 at 10:43 PM, Alexander Graf wrote: >> We can now successfully boot EFI applications from disk, but users >> may want to also run them from a PXE setup. >> >> This patch implements rudimentary network support, allowing a

[U-Boot] [PATCH 17/18] fdt: Correct return value in fdtdec_decode_display_timing()

2016-05-02 Thread Simon Glass
This should return a non-zero value if there is a missing property. Update the return value accordingly. The only expected error is -FDT_ERR_NOTFOUND. Signed-off-by: Simon Glass --- lib/fdtdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fdtdec.c b/lib/fdtdec.c inde

Re: [U-Boot] [PATCH] test/py: Add support for extending timeout for large files

2016-05-02 Thread Michal Simek
On 2.5.2016 18:27, Stephen Warren wrote: > On 05/02/2016 06:29 AM, Michal Simek wrote: >> Slow network or big image filesize is not able to be finished >> in 30s. Add option to user to extend timeout(in miliseconds). >> >> env__net_tftp_readable_file = { >> "fn": "192.168.0.105:zc706/image.ub"

[U-Boot] [PATCH 15/18] at91: video: Prepare for driver-model conversion

2016-05-02 Thread Simon Glass
Adjust the driver to use struct display_timing for its display timing. This is what is used by driver-model and allows the LCD init code to be common. Signed-off-by: Simon Glass --- drivers/video/atmel_lcdfb.c | 106 +--- 1 file changed, 70 insertions(+),

Re: [U-Boot] chainloading u-boot on an acer cb5 chromebook (nyan_big)

2016-05-02 Thread Sjoerd Simons
On Mon, 2016-05-02 at 12:22 -0700, Thomas Hoff wrote: > Thanks Simon! > > Hey Sjoerd, > > Were you able to chainboot u-boot for your acer cb5? Yes, that's what the Nyan big in kernelci does constantly :). The trick is using the description from the mail Simon linked to, but making sure the offs

[U-Boot] [PATCH 13/18] at91: Add driver-model GPIO devices for AT91SAM9G45

2016-05-02 Thread Simon Glass
Add these definitions so that GPIOs can be used with driver model. Signed-off-by: Simon Glass --- arch/arm/mach-at91/arm926ejs/at91sam9m10g45_devices.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/arch/arm/mach-at91/arm926ejs/at91sam9m10g45_devices.c b/arch/arm/mach-

[U-Boot] [PATCH 14/18] at91: mtd: nand: Add dev_warn() to correct build error in driver

2016-05-02 Thread Simon Glass
The code does not compile if ECC is enabled. Signed-off-by: Simon Glass --- drivers/mtd/nand/atmel_nand.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mtd/nand/atmel_nand.c b/drivers/mtd/nand/atmel_nand.c index 8fac824..15958cb 100644 --- a/drivers/mtd/nand/atmel_nand.c +++ b/d

[U-Boot] [PATCH 16/18] at91: video: Support driver-model for the LCD driver

2016-05-02 Thread Simon Glass
Add driver-model support to this driver. Most features can be controlled from the device tree. Signed-off-by: Simon Glass --- drivers/video/atmel_lcdfb.c | 91 + include/atmel_lcd.h | 9 + 2 files changed, 100 insertions(+) diff --git a/

[U-Boot] [PATCH 12/18] mtd: nand: Drop a blank line in nand_wait()

2016-05-02 Thread Simon Glass
This empty line should not be there. Remove it. Signed-off-by: Simon Glass --- drivers/mtd/nand/nand_base.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c index 9e8fc1f..bcd4d70 100644 --- a/drivers/mtd/nand/nand_base.c +++ b/drive

[U-Boot] [PATCH 09/18] arm: at91: Add a header file for the real-time clock

2016-05-02 Thread Simon Glass
Add register definitions for the AT91 RTC so that this can potentially be used in U-Boot. Signed-off-by: Simon Glass --- arch/arm/mach-at91/include/mach/at91_rtc.h | 71 ++ 1 file changed, 71 insertions(+) create mode 100644 arch/arm/mach-at91/include/mach/at91_rtc.

[U-Boot] [PATCH 11/18] at91: nand: Set up the ECC strength correctly

2016-05-02 Thread Simon Glass
This needs to be set to avoid a fatal error when ECC is used. Signed-off-by: Simon Glass --- drivers/mtd/nand/atmel_nand.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mtd/nand/atmel_nand.c b/drivers/mtd/nand/atmel_nand.c index 4e278fa..8fac824 100644 --- a/drivers/mtd/nand/atmel

[U-Boot] [PATCH 08/18] arm: at91: dts: Bring in device tree file for AT91SAM9G45

2016-05-02 Thread Simon Glass
Add this file from Linux v4.5. Signed-off-by: Simon Glass --- arch/arm/dts/Makefile |1 + arch/arm/dts/at91sam9g45.dtsi | 1335 include/dt-bindings/clock/at91.h | 23 + include/dt-bindings/dma/at91.h | 52 ++ include/dt-bindin

[U-Boot] [PATCH 10/18] at91: Correct NAND ECC register access

2016-05-02 Thread Simon Glass
This uses the wrote base register value. Fix it. Signed-off-by: Simon Glass --- drivers/mtd/nand/atmel_nand.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/nand/atmel_nand.c b/drivers/mtd/nand/atmel_nand.c index 7cc1de0..4e278fa 100644 --- a/drivers/mtd/nan

[U-Boot] [PATCH 07/18] net: macb: Convert to driver model

2016-05-02 Thread Simon Glass
Add driver-model support to this driver. The old code remains for now so that we can convert boards one at a time. Signed-off-by: Simon Glass --- drivers/net/macb.c | 119 + 1 file changed, 119 insertions(+) diff --git a/drivers/net/macb.c b/

[U-Boot] [PATCH 06/18] net: macb: Flush correct cache portion when sending

2016-05-02 Thread Simon Glass
The end address of the cache flush must be cache-line-aligned since otherwise (at least on ARM926-EJS) the request is ignored. When the cache is enabled this means that packets are not sent. Signed-off-by: Simon Glass --- drivers/net/macb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[U-Boot] [PATCH 02/18] arm: Allow skipping of low-level init with I-cache on

2016-05-02 Thread Simon Glass
At present CONFIG_SKIP_LOWLEVEL_INIT prevents U-Boot from calling lowlevel_init(). This means that the instruction cache is not enabled and the board runs very slowly. What is really needed in many cases is to skip the call to lowlevel_init() but still perform CP15 init. Add an option to handle th

[U-Boot] [PATCH 05/18] net: macb: Prepare for driver-model conversion

2016-05-02 Thread Simon Glass
Adjust this driver to avoid using struct netdev in functions that driver model will call. Also refactor the receive function to be compatible with driver model. Signed-off-by: Simon Glass --- drivers/net/macb.c | 199 + 1 file changed, 124 ins

[U-Boot] [PATCH 04/18] net: Handle an empty bootp extension section

2016-05-02 Thread Simon Glass
Avoid generating this section if there is nothing in it. Signed-off-by: Simon Glass --- net/bootp.c | 9 + 1 file changed, 9 insertions(+) diff --git a/net/bootp.c b/net/bootp.c index d7852db..71f09bd 100644 --- a/net/bootp.c +++ b/net/bootp.c @@ -655,6 +655,15 @@ static int bootp_exte

[U-Boot] [PATCH 01/18] at91: Add support for the AT91 slow clock controller

2016-05-02 Thread Simon Glass
This is available on AT91SAM9G45. Add the peripheral address and flag definitions. Signed-off-by: Simon Glass --- arch/arm/mach-at91/include/mach/at91_sck.h| 21 + arch/arm/mach-at91/include/mach/at91sam9g45.h | 1 + 2 files changed, 22 insertions(+) create mode 100644

[U-Boot] [PATCH 03/18] bootm: Align cache flush end address correctly

2016-05-02 Thread Simon Glass
Flushing part of the cache should be done on cache boundaries. Trying to flush part of a cache line is not supported and the request may be ignored or print warnings. Adjust the bootm code to align the end address to prevent this problem. Signed-off-by: Simon Glass --- common/bootm.c | 2 +- 1

Re: [U-Boot] [PATCH] dm: at91: Add driver model support for the spi driver

2016-05-02 Thread Heiko Schocher
Hello Simon, Wenyou, Am 03.05.2016 um 02:47 schrieb Yang, Wenyou: Hi Simon, Thank you for your support. -Original Message- From: s...@google.com [mailto:s...@google.com] On Behalf Of Simon Glass Sent: 2016年5月2日 2:56 To: Yang, Wenyou Cc: U-Boot Mailing List Subject: Re: [U-Boot] [PAT

Re: [U-Boot] Porting Linux's MTD/NAND changes into U-Boot

2016-05-02 Thread Scott Wood
On Mon, 2016-04-25 at 22:53 +0200, Boris Brezillon wrote: > On Mon, 25 Apr 2016 13:36:46 -0400 > Tom Rini wrote: > > > On Mon, Apr 25, 2016 at 04:43:14PM +0200, Boris Brezillon wrote: > > > > > Hi Scott, > > > > > > I've recently contributed a lot of MTD/NAND related patches (and intend > > > t

Re: [U-Boot] [Patch v2] fsl-layerscape: fdt: add IFC fixup if no IFC is avaliable in U-Boot

2016-05-02 Thread Scott Wood
On Thu, 2016-04-28 at 14:04 +0800, Gong Qianyu wrote: > IFC is considered as a required component in Layerscape platforms' Linux. What does this mean? > But if IFC is not enabled in U-Boot on some boards, accessing IFC memory > space would cause kernel call trace. So disable IFC node in such case

Re: [U-Boot] [PATCH] Fix spelling of "occurred".

2016-05-02 Thread Scott Wood
On Mon, 2016-05-02 at 13:26 -0600, Simon Glass wrote: > Hi Scott, > > On 2 May 2016 at 13:03, Scott Wood wrote: > > On Mon, 2016-05-02 at 12:57 -0600, Simon Glass wrote: > > > Hi Scott, > > > > > > On 1 May 2016 at 17:34, Scott Wood wrote: > > > > On Sun, 2016-05-01 at 12:55 -0600, Simon Glass

[U-Boot] [PATCH] imx: correct speed grading info for i.MX6UL

2016-05-02 Thread Peng Fan
Correct speed grading info for i.MX6UL Signed-off-by: Peng Fan Cc: Stefano Babic --- arch/arm/cpu/armv7/mx6/soc.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/arm/cpu/armv7/mx6/soc.c b/arch/arm/cpu/armv7/mx6/soc.c index d4b22ad..aaa1adb 100644 --- a/arch/arm/cpu/arm

Re: [U-Boot] [PATCH] armv8/ls1043ardb: fix the limitation of using 'cpld reset'

2016-05-02 Thread Qianyu Gong
Hi Mingkai, > -Original Message- > From: Mingkai Hu > Sent: Saturday, April 30, 2016 8:26 PM > To: Qianyu Gong ; u-boot@lists.denx.de; york sun > > Cc: Shaohui Xie ; Zhiqiang Hou ; > Wenbin Song ; Qianyu Gong > Subject: RE: [PATCH] armv8/ls1043ardb: fix the limitation of using 'cpld > r

Re: [U-Boot] [PATCH] x86: qemu: Move qfw command over to cmd and add Kconfig entry

2016-05-02 Thread Miao Yan
Hi Tom, 2016-04-30 9:39 GMT+08:00 Tom Rini : > - Move the command portion of arch/x86/cpu/qemu/fw_cfg.c into > cmd/qemu_fw_cfg.c > - Move arch/x86/include/asm/fw_cfg.h to include/qemu_fw_cfg.h > - Rename ACPI table portion to arch/x86/cpu/qemu/acpi_table.c > > Signed-off-by: Tom Rini > --- > Th

Re: [U-Boot] [PATCH] arm: imx-common: introduce back usec2ticks

2016-05-02 Thread Peng Fan
Hi Tom, On Mon, May 02, 2016 at 10:04:47PM -0400, Tom Rini wrote: >On Tue, May 03, 2016 at 09:17:51AM +0800, Peng Fan wrote: >> Hi Tom, >> >> On Mon, May 02, 2016 at 07:41:35PM -0400, Tom Rini wrote: >> >On Fri, Apr 29, 2016 at 09:56:09AM +0800, Peng Fan wrote: >> > >> >> This commit "2bb014820c4

[U-Boot] [PATCH] dfu: avoid memory leak

2016-05-02 Thread Peng Fan
When dfu_fill_entity fail, need to free dfu to avoid memory leak. Reported by Coverity: " Resource leak (RESOURCE_LEAK) leaked_storage: Variable dfu going out of scope leaks the storage it points to. " Signed-off-by: Peng Fan Cc: "Łukasz Majewski" Cc: Marek Vasut --- drivers/dfu/dfu.c | 4 +++

[U-Boot] [PATCH] usb: gadget: dfu: discard dead code

2016-05-02 Thread Peng Fan
Reported by Coverity: Logically dead code (DEADCODE) dead_error_line: Execution cannot reach this statement: (f_dfu->strings + --i).s = If calloc failed, i is still 0 and no need to call free, so discard the dead code. Signed-off-by: Peng Fan Cc: "Łukasz Majewski" Cc: Marek Vasut --- dri

Re: [U-Boot] [PATCH] arm: imx-common: introduce back usec2ticks

2016-05-02 Thread Tom Rini
On Tue, May 03, 2016 at 09:17:51AM +0800, Peng Fan wrote: > Hi Tom, > > On Mon, May 02, 2016 at 07:41:35PM -0400, Tom Rini wrote: > >On Fri, Apr 29, 2016 at 09:56:09AM +0800, Peng Fan wrote: > > > >> This commit "2bb014820c49a63902103bac710bc86b5772e843" > >> do some clean up to use the code in li

[U-Boot] [PATCH V4 3/4] dm: spi: introduce dm api

2016-05-02 Thread Peng Fan
Introduce dm_spi_claim_bus, dm_spi_release_bus and dm_spi_xfer Convert spi_claim_bus, spi_release_bus and spi_xfer to use the new API. Signed-off-by: Peng Fan Cc: Simon Glass Cc: Jagan Teki --- V4: Convert spi_claim_bus, spi_release_bus and spi_xfer to call the use APIs. V3: As Simon sugges

[U-Boot] [PATCH V4 4/4] dm: gpio: introduce 74x164 driver

2016-05-02 Thread Peng Fan
Introduce driver to support "fairchild,74hc595" devices. 1. Take linux drivers/drivers/gpio/gpio-74x164.c as reference. 2. Following the naming used in Linux driver with gen_7x164 as the prefix. 3. Enable CONFIG_DM_74X164 to use this driver. 4. Follow Documentation/devicetree/bindings/gpio/gpio-74x

[U-Boot] [PATCH V4 2/4] dm: spi: soft_spi: switch to use linux compatible string

2016-05-02 Thread Peng Fan
1. Support compatible string "spi-gpio" which is used by Linux Linux use different bindings, so use UBOOT_COMPAT and LINUX_COMPAT to differentiate them. 2. Introduce SPI_MASTER_NO_RX and SPI_MASTER_NO_TX to handle no rx or no tx case. 3. Tested on i.MX6 UltraLite board with 74LV595 spi-gpi

[U-Boot] [PATCH V4 1/4] dm: spi: soft_spi bug fix

2016-05-02 Thread Peng Fan
When doing xfer, should use device->parent, but not device When doing bit xfer, should use "!!(tmpdout & 0x80)", but not "(tmpdout & 0x80)" Signed-off-by: Peng Fan Cc: Simon Glass Cc: Jagan Teki Reviewed-by: Simon Glass --- V4: None V3: None V2: Follow Simon's comments, split bug fix int

[U-Boot] [PATCH V4 1/4] dm: spi: soft_spi bug fix

2016-05-02 Thread Peng Fan
When doing xfer, should use device->parent, but not device When doing bit xfer, should use "!!(tmpdout & 0x80)", but not "(tmpdout & 0x80)" Signed-off-by: Peng Fan Cc: Simon Glass Cc: Jagan Teki Reviewed-by: Simon Glass --- V4: None V3: None V2: Follow Simon's comments, split bug fix int

Re: [U-Boot] [PATCH] arm: imx-common: introduce back usec2ticks

2016-05-02 Thread Peng Fan
Hi Tom, On Mon, May 02, 2016 at 07:41:35PM -0400, Tom Rini wrote: >On Fri, Apr 29, 2016 at 09:56:09AM +0800, Peng Fan wrote: > >> This commit "2bb014820c49a63902103bac710bc86b5772e843" >> do some clean up to use the code in lib/time.c. >> But usec2ticks is still being used by security related job

Re: [U-Boot] [U-Boot, v2] mx6ul_evk: Remove CONFIG_SUPPORT_EMMC_BOOT

2016-05-02 Thread Tom Rini
On Wed, Apr 20, 2016 at 10:48:13PM -0300, Fabio Estevam wrote: > From: Fabio Estevam > > mx6ul_evk does not come with a eMMC populated, so we should not > define CONFIG_SUPPORT_EMMC_BOOT as it causes SPL to not be able > to boot some brands of SD cards, such as SanDisk microSD HC - 8GB: > > U-B

Re: [U-Boot] [PATCH v2] mx6ul_evk: Remove CONFIG_SUPPORT_EMMC_BOOT

2016-05-02 Thread Tom Rini
On Mon, May 02, 2016 at 09:59:33PM -0300, Fabio Estevam wrote: > Tom, > > On Tue, Apr 26, 2016 at 1:33 PM, Stefano Babic wrote: > > > Fine with me if you want to pick it up directly without PR. > > Are you applying this one directly? Thanks for the reminder. -- Tom signature.asc Descriptio

Re: [U-Boot] [PATCH v2 07/44] sandbox: Add dummy SCSI functions

2016-05-02 Thread Tom Rini
On Sun, May 01, 2016 at 11:35:55AM -0600, Simon Glass wrote: > Add some functions needed by the SCSI code. This allows it to be compiled > for sandbox, thus increasing build coverage. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > drivers/block/Makefile | 2 +- > driv

Re: [U-Boot] [PATCH v2] mx6ul_evk: Remove CONFIG_SUPPORT_EMMC_BOOT

2016-05-02 Thread Fabio Estevam
Tom, On Tue, Apr 26, 2016 at 1:33 PM, Stefano Babic wrote: > Fine with me if you want to pick it up directly without PR. Are you applying this one directly? ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH] dm: at91: Add driver model support for the spi driver

2016-05-02 Thread Yang, Wenyou
Hi Simon, Thank you for your support. > -Original Message- > From: s...@google.com [mailto:s...@google.com] On Behalf Of Simon Glass > Sent: 2016年5月2日 2:56 > To: Yang, Wenyou > Cc: U-Boot Mailing List > Subject: Re: [U-Boot] [PATCH] dm: at91: Add driver model support for the spi > drive

Re: [U-Boot] [PATCH] arm: imx-common: introduce back usec2ticks

2016-05-02 Thread Tom Rini
On Fri, Apr 29, 2016 at 09:56:09AM +0800, Peng Fan wrote: > This commit "2bb014820c49a63902103bac710bc86b5772e843" > do some clean up to use the code in lib/time.c. > But usec2ticks is still being used by security related job ring code. > Bring back the function to avoid build break. > > Signed-o

Re: [U-Boot] config: am335x_evm: detect BoneGreen using BBG1

2016-05-02 Thread Tom Rini
On Sun, May 01, 2016 at 07:58:31PM +0300, matwey.korni...@gmail.com wrote: > Since 770e68c0a37fded897d4bdda661614fc81cb33d2 > BoneGreen is detected in board_late_init as board_name 'BBG1' > > Signed-off-by: Matwey V. Kornilov Applied to u-boot/master, thanks! -- Tom signature.asc Descriptio

Re: [U-Boot] Fix spelling of "occurred".

2016-05-02 Thread Tom Rini
On Sat, Apr 30, 2016 at 07:18:00PM -0700, Vagrant Cascadian wrote: > Signed-off-by: Vagrant Cascadian > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature ___ U-Boot mailing list U-Boot@l

Re: [U-Boot] mkimage: fix argument parsing on BSD systems

2016-05-02 Thread Tom Rini
On Sun, May 01, 2016 at 03:01:27AM +0200, Andreas Bießmann wrote: > The getopt(3) optstring '-' is a GNU extension which is not available on BSD > systems like OS X. > > Remove this dependency by implementing argument parsing in another way. This > will also change the lately introduced '-b' swit

Re: [U-Boot] Change my mailaddress

2016-05-02 Thread Tom Rini
On Sun, May 01, 2016 at 03:46:16AM +0200, Andreas Bießmann wrote: > I'll switch my mails to my own server, so drop all gmail references. > > Signed-off-by: Andreas Bießmann Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature

Re: [U-Boot] tools: env: fix config file loading in env library

2016-05-02 Thread Tom Rini
On Fri, Apr 29, 2016 at 10:00:11PM +0200, Anatolij Gustschin wrote: > env library is broken as the config file pointer is only initialized > in main(). When running in the env library parse_config() fails: > > Cannot parse config file '(null)': Bad address > > Ensure that config file pointer i

Re: [U-Boot] [U-Boot, v2] kbuild: Do not append dtb for OF_EMBED case

2016-05-02 Thread Tom Rini
On Thu, Apr 28, 2016 at 09:08:18AM +0200, Michal Simek wrote: > dtb is already included in binary that's why there is no need to replace > u-boot-spl.bin with u-boot-spl-dtb.bin. This is only needed for > OF_SEPARATE is enabled. Only copy -nodtb.bin version which is straight > output from objcopy

Re: [U-Boot] [U-Boot,v2] fs: ext4: fix symlink read function

2016-05-02 Thread Tom Rini
On Thu, Apr 28, 2016 at 07:08:34AM +0200, Stefan Roese wrote: > From: Ronald Zachariah > > The function ext4fs_read_symlink was unable to handle a symlink > which had target name of exactly 60 characters. > > Signed-off-by: Ronald Zachariah > Signed-off-by: Stefan Roese > Reviewed-by: Stephen

Re: [U-Boot] fit_image: Fix a double close() on the error path

2016-05-02 Thread Tom Rini
On Sun, May 01, 2016 at 05:12:24PM -0600, Simon Glass wrote: > There is an extra close() call which is not needed. > > Reported-by: Coverity (CID: 143065) > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature _

Re: [U-Boot] Revert "rockchip: rk3288: correct sdram setting"

2016-05-02 Thread Tom Rini
On Fri, Apr 15, 2016 at 01:43:25PM -0700, Vagrant Cascadian wrote: > This reverts commit b5788dc0dd9570e98552833767f4373db965985d. > > Ram size is incorrectly reported as 512MB on a firefly-rk3288 board > with 2GB of ram. Reverting this patch displays the full amount of ram. > > Signed-off-by: V

Re: [U-Boot] [PATCH] cmd: disk: Fix unused variable warning

2016-05-02 Thread Tom Rini
On Sun, May 01, 2016 at 12:35:54AM +0200, Marek Vasut wrote: > If serial support is not compiled into U-Boot, which may be the case > for some SPL builds, the following warning will be generated in disk.c: > > cmd/disk.c: In function 'common_diskboot': > cmd/disk.c:16:6: warning: variable 'dev' s

Re: [U-Boot] [PATCH] arch/arm/imx-common/Makefile: Update u-boot.uim MKIMAGEFLAGS

2016-05-02 Thread Tom Rini
On Mon, May 02, 2016 at 06:38:58PM -0400, Tom Rini wrote: > We need to be passing -T firmware here and aren't. > > Signed-off-by: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature ___ U-Boot mailing lis

Re: [U-Boot] [PATCH 2/2] Revert "omap3: Use raw SPL by default for mmc1"

2016-05-02 Thread Tom Rini
On Mon, May 02, 2016 at 12:16:26PM -0400, Tom Rini wrote: > Unfortunately with this change we now are unable to do FS mode boots > from MMC1 as with the way the code works today we will always load and > assume that the hard-coded raw location contains U-Boot. Further, we > cannot fix this by jus

Re: [U-Boot] [PATCH 1/2] Revert "ti_armv7_common.h: Fix U-Boot location on eMMC"

2016-05-02 Thread Tom Rini
On Mon, May 02, 2016 at 12:16:25PM -0400, Tom Rini wrote: > We cannot change the long standing hard-coded offset for raw boot mode > for everyone to accommodate how Android expects things to be done here. > > This reverts commit ef5ebe951bec72631cdbc7cef9079e6c684e5d0b. > > Signed-off-by: Tom Ri

Re: [U-Boot] pull request: u-boot-uniphier/master

2016-05-02 Thread Tom Rini
On Sun, May 01, 2016 at 01:18:57AM +0900, Masahiro Yamada wrote: > Hi Tom, > > Please pull some more fixes for v2016.05. > > > The following changes since commit fccdb287f5f5f2349d3ca1c7cdf972015417d46d: > > Merge branch 'master' of git://git.denx.de/u-boot-video (2016-04-28 > 13:15:52 -0400

Re: [U-Boot] [PATCH] efi_loader: Add network access support

2016-05-02 Thread Peter Robinson
On Mon, May 2, 2016 at 10:43 PM, Alexander Graf wrote: > We can now successfully boot EFI applications from disk, but users > may want to also run them from a PXE setup. > > This patch implements rudimentary network support, allowing a payload > to send and receive network packets. > > With this p

[U-Boot] [PATCH] arch/arm/imx-common/Makefile: Update u-boot.uim MKIMAGEFLAGS

2016-05-02 Thread Tom Rini
We need to be passing -T firmware here and aren't. Signed-off-by: Tom Rini --- arch/arm/imx-common/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/imx-common/Makefile b/arch/arm/imx-common/Makefile index c208628..d34a784 100644 --- a/arch/arm/imx-common/Make

Re: [U-Boot] [verified-boot] Multiple levels of signing keys

2016-05-02 Thread Simon Glass
Hi Teddy, On 2 May 2016 at 02:57, Teddy Reed wrote: > On Sun, May 1, 2016 at 11:56 AM, Simon Glass wrote: >> Hi Teddy, >> >> On 27 April 2016 at 11:32, Teddy Reed wrote: >>> Hello all, >>> >>> I'm looking to support "multiple levels" of keys within u-boot's >>> verified boot. I need something s

Re: [U-Boot] [verified-boot] Compile 'key store' DTB without mkimage and private key

2016-05-02 Thread Simon Glass
Hi Teddy, On 2 May 2016 at 14:24, Teddy Reed wrote: > > On Mon, May 2, 2016 at 7:06 AM, Simon Glass wrote: > > Hi Teddy, > > > > On 29 April 2016 at 18:44, Teddy Reed wrote: > >> On Fri, Apr 29, 2016 at 4:09 PM, Simon Glass wrote: > >>> Hi Teddy, > >>> > >>> On 25 April 2016 at 10:25, Teddy Re

[U-Boot] [PATCH] efi_loader: Add network access support

2016-05-02 Thread Alexander Graf
We can now successfully boot EFI applications from disk, but users may want to also run them from a PXE setup. This patch implements rudimentary network support, allowing a payload to send and receive network packets. With this patch, I was able to successfully run grub2 with network access insid

Re: [U-Boot] spl_mmc: allow to load raw image

2016-05-02 Thread Alexander Graf
On 02.05.16 18:14, Tom Rini wrote: > On Mon, May 02, 2016 at 11:12:11AM +0200, Alexander Graf wrote: > > [snip] >> So Tom, how would you like to roll this? We can either >> >> 1) Check raw after fs, default to fs and revert my patch or >> 2) Leave fs boot broken (regression) or >> 3) Leave

[U-Boot] [PATCH] configs: sunxi: fix device tree name for Pine64+

2016-05-02 Thread Peter Robinson
Fix the device tree name for the Pine64+ for the naming that's going into the upstream kernel. Signed-off-by: Peter Robinson --- configs/pine64_plus_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/pine64_plus_defconfig b/configs/pine64_plus_defconfig index 0

[U-Boot] [PATCH v8 7/7] net: phy: dp83867: Add SGMII helper for configuration

2016-05-02 Thread Dan Murphy
The code assumed that if the interface is not RGMII configured then it must be SGMII configured. This device has the ability to support most of the MII interfaces. Therefore add the helper for SGMII and only configure the device if the interface is configured for SGMII. Signed-off-by: Dan Murphy

[U-Boot] [PATCH v8 6/7] net: phy: Add phy_interface_is_sgmii to phy.h

2016-05-02 Thread Dan Murphy
Add a helper to phy.h to identify whether the phy is configured for SGMII all variables. Signed-off-by: Dan Murphy Reviewed-by: Mugunthan V N Reviewed-by: Michal Simek Tested-by: Mugunthan V N Acked-by: Joe Hershberger --- v8 - Add acked/Tested/reviewed by information v7 - no changes from v6

[U-Boot] [PATCH v8 2/7] net: zynq_gem: Add the passing of the phy-handle node

2016-05-02 Thread Dan Murphy
Add the ability to pass the phy-handle node offset to the phy driver. This allows the phy driver to access the DT subnode's data and parse accordingly. Signed-off-by: Dan Murphy Tested-by: Michal Simek Acked-by: Joe Hershberger --- v8 - Add acked/Tested/reviewed by information v7 - no changes

[U-Boot] [PATCH v8 5/7] net: phy: Move is_rgmii helper to phy.h

2016-05-02 Thread Dan Murphy
Move the phy_interface_is_rgmii to the phy.h file for all phy's to be able to use the API. This now aligns with the Linux kernel based on commit e463d88c36d42211aa72ed76d32fb8bf37820ef1 Signed-off-by: Dan Murphy Reviewed-by: Mugunthan V N Reviewed-by: Michal Simek Tested-by: Mugunthan V N Ack

[U-Boot] [PATCH v8 3/7] net: phy: dp83867: Add device tree bindings and documentation

2016-05-02 Thread Dan Murphy
Add the device tree bindings and the accompanying documentation for the TI DP83867 Giga bit ethernet phy driver. The original document was from: [commit 2a10154abcb75ad0d7b6bfea6210ac743ec60897 from the Linux kernel] Signed-off-by: Dan Murphy Reviewed-by: Mugunthan V N Tested-by: Mugunthan

[U-Boot] [PATCH v8 4/7] net: phy: ti: Allow the driver to be more configurable

2016-05-02 Thread Dan Murphy
Not all devices use the same internal delay or fifo depth. Add the ability to set the internal delay for rx or tx and the fifo depth via the devicetree. If the value is not set in the devicetree then set the delay to the default. If devicetree is not used then use the default defines within the d

[U-Boot] [PATCH v8 1/7] drivers: net: cpsw: Add reading of DT phy-handle node

2016-05-02 Thread Dan Murphy
Add the ability to read the phy-handle node of the cpsw slave. Upon reading this handle the phy-id can be stored based on the reg node in the DT. The phy-handle also needs to be stored and passed to the phy to access any phy data that is available. Signed-off-by: Dan Murphy Tested-by: Mugunthan

Re: [U-Boot] [verified-boot] Compile 'key store' DTB without mkimage and private key

2016-05-02 Thread Teddy Reed
On Mon, May 2, 2016 at 7:06 AM, Simon Glass wrote: > Hi Teddy, > > On 29 April 2016 at 18:44, Teddy Reed wrote: >> On Fri, Apr 29, 2016 at 4:09 PM, Simon Glass wrote: >>> Hi Teddy, >>> >>> On 25 April 2016 at 10:25, Teddy Reed wrote: Hi all, I'm curious if anyone has a script (or

Re: [U-Boot] [PATCH] Fix spelling of "occurred".

2016-05-02 Thread Simon Glass
Hi Scott, On 2 May 2016 at 13:03, Scott Wood wrote: > On Mon, 2016-05-02 at 12:57 -0600, Simon Glass wrote: >> Hi Scott, >> >> On 1 May 2016 at 17:34, Scott Wood wrote: >> > On Sun, 2016-05-01 at 12:55 -0600, Simon Glass wrote: >> > > Hi, >> > > >> > > On 30 April 2016 at 20:18, Vagrant Cascadia

Re: [U-Boot] chainloading u-boot on an acer cb5 chromebook (nyan_big)

2016-05-02 Thread Thomas Hoff
Thanks Simon! Hey Sjoerd, Were you able to chainboot u-boot for your acer cb5? Cheers, Thomas On Sun, May 1, 2016 at 11:55 AM, Simon Glass wrote: > Hi Thomas, > > On 28 April 2016 at 13:27, Thomas Hoff wrote: > > Hello, > > > > Could someone help point me in the right direction about chainl

Re: [U-Boot] [PATCH] Fix spelling of "occurred".

2016-05-02 Thread Scott Wood
On Mon, 2016-05-02 at 12:57 -0600, Simon Glass wrote: > Hi Scott, > > On 1 May 2016 at 17:34, Scott Wood wrote: > > On Sun, 2016-05-01 at 12:55 -0600, Simon Glass wrote: > > > Hi, > > > > > > On 30 April 2016 at 20:18, Vagrant Cascadian wrote: > > > > > > Please can you add a commit message? >

Re: [U-Boot] [PATCH] Fix spelling of "occurred".

2016-05-02 Thread Simon Glass
Hi Scott, On 1 May 2016 at 17:34, Scott Wood wrote: > On Sun, 2016-05-01 at 12:55 -0600, Simon Glass wrote: >> Hi, >> >> On 30 April 2016 at 20:18, Vagrant Cascadian wrote: >> >> Please can you add a commit message? > > I don't understand these "empty/missing commit message" remarks when there's

[U-Boot] [PATCH] imx: tools: imximage: fix CLR bit command

2016-05-02 Thread Adrian Alonso
Fix incorrect parametr in CMD_CHECK_BITS_CLR command Pass CLR parameter to DCD header for CMD_CHECK_BITS_CLR Signed-off-by: Adrian Alonso --- tools/imximage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/imximage.c b/tools/imximage.c index 7c21922..092d550 100644 ---

Re: [U-Boot] [PATCH v2] fdt: fix setting MAC addresses for multiple interfaces

2016-05-02 Thread Lev Iserovich
Hi, Updated with C-style comments: For multiple ethernet interfaces the FDT offset of '/aliases' will change as we are adding MAC addresses to the FDT. Therefore only the first interface ('ethernet0') will get properly updated in the FDT, with the rest getting FDT errors when we try to set th

Re: [U-Boot] [PATCH v7 1/7] drivers: net: cpsw: Add reading of DT phy-handle node

2016-05-02 Thread Joe Hershberger
On Mon, May 2, 2016 at 1:03 PM, Dan Murphy wrote: > Tom > > On 05/02/2016 12:58 PM, Tom Rini wrote: >> On Mon, May 02, 2016 at 12:54:43PM -0500, Dan Murphy wrote: >>> Joe >>> >>> On 05/02/2016 11:08 AM, Joe Hershberger wrote: On Fri, Apr 29, 2016 at 6:59 AM, Dan Murphy wrote: > Add the a

Re: [U-Boot] [PATCH v7 1/7] drivers: net: cpsw: Add reading of DT phy-handle node

2016-05-02 Thread Dan Murphy
Tom On 05/02/2016 12:58 PM, Tom Rini wrote: > On Mon, May 02, 2016 at 12:54:43PM -0500, Dan Murphy wrote: >> Joe >> >> On 05/02/2016 11:08 AM, Joe Hershberger wrote: >>> On Fri, Apr 29, 2016 at 6:59 AM, Dan Murphy wrote: Add the ability to read the phy-handle node of the cpsw slave. Up

Re: [U-Boot] [PATCH v7 1/7] drivers: net: cpsw: Add reading of DT phy-handle node

2016-05-02 Thread Tom Rini
On Mon, May 02, 2016 at 12:54:43PM -0500, Dan Murphy wrote: > Joe > > On 05/02/2016 11:08 AM, Joe Hershberger wrote: > > On Fri, Apr 29, 2016 at 6:59 AM, Dan Murphy wrote: > >> Add the ability to read the phy-handle node of the > >> cpsw slave. Upon reading this handle the phy-id > >> can be sto

Re: [U-Boot] [PATCH v7 1/7] drivers: net: cpsw: Add reading of DT phy-handle node

2016-05-02 Thread Dan Murphy
Joe On 05/02/2016 11:08 AM, Joe Hershberger wrote: > On Fri, Apr 29, 2016 at 6:59 AM, Dan Murphy wrote: >> Add the ability to read the phy-handle node of the >> cpsw slave. Upon reading this handle the phy-id >> can be stored based on the reg node in the DT. >> >> The phy-handle also needs to be

Re: [U-Boot] [PATCH v2] fdt: fix setting MAC addresses for multiple interfaces

2016-05-02 Thread Joe Hershberger
On Tue, Apr 26, 2016 at 8:57 PM, Bin Meng wrote: > On Wed, Apr 27, 2016 at 8:06 AM, Bin Meng wrote: >> Hi Lev, >> >> On Fri, Jan 8, 2016 at 7:04 AM, Lev Iserovich >> wrote: >>> For multiple ethernet interfaces the FDT offset of '/aliases' will change as >>> we >>> are adding MAC addresses to the

Re: [U-Boot] [PATCH] test/py: Add support for extending timeout for large files

2016-05-02 Thread Stephen Warren
On 05/02/2016 06:29 AM, Michal Simek wrote: Slow network or big image filesize is not able to be finished in 30s. Add option to user to extend timeout(in miliseconds). env__net_tftp_readable_file = { "fn": "192.168.0.105:zc706/image.ub", "addr": 0x2000, "size": 20484981,

[U-Boot] [PATCH 2/2] Revert "omap3: Use raw SPL by default for mmc1"

2016-05-02 Thread Tom Rini
Unfortunately with this change we now are unable to do FS mode boots from MMC1 as with the way the code works today we will always load and assume that the hard-coded raw location contains U-Boot. Further, we cannot fix this by just changing other logic to try FS-then-RAW as it would also make us

[U-Boot] [PATCH 1/2] Revert "ti_armv7_common.h: Fix U-Boot location on eMMC"

2016-05-02 Thread Tom Rini
We cannot change the long standing hard-coded offset for raw boot mode for everyone to accommodate how Android expects things to be done here. This reverts commit ef5ebe951bec72631cdbc7cef9079e6c684e5d0b. Signed-off-by: Tom Rini --- include/configs/ti_armv7_common.h | 4 ++-- 1 file changed, 2

Re: [U-Boot] spl_mmc: allow to load raw image

2016-05-02 Thread Tom Rini
On Mon, May 02, 2016 at 11:12:11AM +0200, Alexander Graf wrote: [snip] > So Tom, how would you like to roll this? We can either > > 1) Check raw after fs, default to fs and revert my patch or > 2) Leave fs boot broken (regression) or > 3) Leave raw boot broken (same as 2016.03) > > Given t

Re: [U-Boot] [PATCH v7 1/7] drivers: net: cpsw: Add reading of DT phy-handle node

2016-05-02 Thread Joe Hershberger
On Fri, Apr 29, 2016 at 6:59 AM, Dan Murphy wrote: > Add the ability to read the phy-handle node of the > cpsw slave. Upon reading this handle the phy-id > can be stored based on the reg node in the DT. > > The phy-handle also needs to be stored and passed > to the phy to access any phy data that

Re: [U-Boot] [PATCH 1/2] mtd: cqspi: Simplify indirect write code

2016-05-02 Thread Stefan Roese
On 29.04.2016 12:13, Marek Vasut wrote: >> On 28.04.2016 00:36, Marek Vasut wrote: >>> The indirect write code is buggy pile of nastiness which fails horribly >>> when the system runs fast enough to saturate the controller. The failure >>> results in some pages (256B) not being written to the flash

Re: [U-Boot] [RFC] SPL -> U-Boot Chain of Trust

2016-05-02 Thread Andreas Dannenberg
On Sun, May 01, 2016 at 01:45:35PM -0600, Simon Glass wrote: > Hi, > On 27 April 2016 at 09:14, Andreas Dannenberg wrote: > > Yeah please let me/us know if there is something you have that could be > > recycled. > > I just sent a patch referring to this. I didn't find anything but in > fact it is

Re: [U-Boot] [verified-boot] Compile 'key store' DTB without mkimage and private key

2016-05-02 Thread Simon Glass
Hi Teddy, On 29 April 2016 at 18:44, Teddy Reed wrote: > On Fri, Apr 29, 2016 at 4:09 PM, Simon Glass wrote: >> Hi Teddy, >> >> On 25 April 2016 at 10:25, Teddy Reed wrote: >>> Hi all, >>> >>> I'm curious if anyone has a script (or if I've missed something within >>> the verified-boot documenta

Re: [U-Boot] spl_mmc: allow to load raw image

2016-05-02 Thread Tom Rini
On Mon, May 02, 2016 at 09:08:27AM +0200, Alexander Graf wrote: > > > On 02.05.16 04:29, Derald D. Woods wrote: > > On 05/01/2016 09:17 PM, Derald D. Woods wrote: > >> On 05/01/2016 08:57 PM, Tom Rini wrote: > >>> On Sun, May 01, 2016 at 08:32:48PM -0500, Derald D. Woods wrote: > On 05/01/20

[U-Boot] [PATCH v1] disk: part_efi: fix check of the max partition size

2016-05-02 Thread Patrick Delaunay
the last value acceptable value for offset is last_usable_lba + 1 and not last_usable_lba - 1 issue found with SDCARD partition commands on u-boot 2015.10 but this part of code don't change 1- create GPT partion on all the card > gpt write mmc 0 name=test,start=0,size=0 > part list mmc 0 Pa

[U-Boot] [PATCH] test/py: Add support for extending timeout for large files

2016-05-02 Thread Michal Simek
Slow network or big image filesize is not able to be finished in 30s. Add option to user to extend timeout(in miliseconds). env__net_tftp_readable_file = { "fn": "192.168.0.105:zc706/image.ub", "addr": 0x2000, "size": 20484981, "crc32": "873a30ae", "timeout": 5, } Sign

Re: [U-Boot] [PATCH 1/3] dm: gpio: Add driver for MPC85XX GPIO controller

2016-05-02 Thread Mario Six
Hi Simon, On Sun, May 1, 2016 at 7:46 PM, Simon Glass wrote: > Hi Mario, > > On 26 April 2016 at 08:08, Mario Six wrote: > > > > Signed-off-by: Mario Six > > --- > > arch/powerpc/include/asm/arch-mpc85xx/gpio.h | 2 + > > arch/powerpc/include/asm/immap_85xx.h| 2 + > > drivers/gpi

[U-Boot] [PATCH 1/2] ARM: tegra124: Add an option to disable CoreSight

2016-05-02 Thread Julian Scheel
From: Alban Bedel When running on a SoC with a secure bootloader CoreSight isn't allowed, so add an option to disable the CoreSight init. Signed-off-by: Alban Bedel Reviewed-by: Julian Scheel Signed-off-by: Julian Scheel --- arch/arm/mach-tegra/Kconfig | 4 arch/arm/mach-tegra/cpu.c |

[U-Boot] [PATCH 2/2] tegra: Add watchdog driver

2016-05-02 Thread Julian Scheel
Add support for the tegra (t30 and newer) watchdog component. Signed-off-by: Julian Scheel --- arch/arm/include/asm/arch-tegra/tegra.h | 2 ++ arch/arm/include/asm/arch-tegra/wdt.h | 41 ++ arch/arm/mach-tegra/board2.c| 4 +++ drivers/watchdog/Makefile

[U-Boot] [PATCHv4 2/2] Add support the Avionic Design Meerkat COM and Kein Baseboard

2016-05-02 Thread Julian Scheel
Add support for platforms based on the Meerkat COM module. Includes support for the minimal reference platform called Kein Baseboard, which in fact is sufficient to run most existing Meerkat carriers. Signed-off-by: Julian Scheel --- Changes in v4: - rebased to tegra/master (2016-05-22, cc9db6a

[U-Boot] [PATCHv4 1/2] power: as3722: Allow using on any i2c bus with any address

2016-05-02 Thread Julian Scheel
From: Alban Bedel The init simply hardcoded the i2c bus and address to those used on jetson. Extend the init function to take the bus number and device address as parameter. As only jetson is using this code for now just fix this single use of the function. Signed-off-by: Alban Bedel Reviewed-b

  1   2   >