Re: [U-Boot] coreboot and u-boot integration x86: "No tick base available"

2014-06-02 Thread Martin Ertsås
On 06/03/14 03:43, Simon Glass wrote: > Hi Martin, > > On 1 June 2014 23:59, Martin Ertsås wrote: >> On 06/01/14 18:42, Simon Glass wrote: >>> Hi Martin, >>> >>> On 30 May 2014 04:33, Martin Ertsås wrote: Hi. I'm trying to use u-boot as a payload to coreboot. Problem is that when >

Re: [U-Boot] [PATCH v5 5/8] sunxi: add support for Cubietruck booting in FEL mode

2014-06-02 Thread Masahiro Yamada
Hi Ian, > diff --git a/boards.cfg b/boards.cfg > index b4203f1..31b02df 100644 > --- a/boards.cfg > +++ b/boards.cfg > @@ -371,6 +371,7 @@ Active arm armv7 rmobile renesas > lager > Active arm armv7 s5pc1xx samsung goni >

Re: [U-Boot] [PATCH 10/11] Enhance fit_check_sign to check all images

2014-06-02 Thread Heiko Schocher
Hello Simon, Am 03.06.2014 06:39, schrieb Simon Glass: At present this tool only checks the configuration signing. Have it also look at each of the images in the configuration and confirm that they verify. Signed-off-by: Simon Glass --- common/bootm.c | 71 +++

Re: [U-Boot] [PATCH 01/11] tools: Check arguments in fit_check_sign/fit_info

2014-06-02 Thread Heiko Schocher
Hello Simon, Am 03.06.2014 06:39, schrieb Simon Glass: These tools crash if no arguments are provided. Add checks to avoid this. Signed-off-by: Simon Glass --- tools/fit_check_sign.c | 9 + tools/fit_info.c | 12 2 files changed, 21 insertions(+) Good catch, t

Re: [U-Boot] [PATCH v2 0/11] Minor improvements to secure boot and enable on beaglebone

2014-06-02 Thread Belisko Marek
Dear Simon Glass, On Tue, Jun 3, 2014 at 6:42 AM, Simon Glass wrote: > Hi Belisko, > > On 28 April 2014 00:30, Belisko Marek wrote: >> Hi Simon, >> >> On Wed, Apr 16, 2014 at 4:41 PM, Simon Glass wrote: >>> This series fixes a few problems that have come up since the secure boot >>> series was

Re: [U-Boot] [RFC, PATCH v2 0/4] mtd, ubi, ubifs: resync with Linux-3.14

2014-06-02 Thread Heiko Schocher
Hello Jörg, Am 02.06.2014 23:06, schrieb Jörg Krause: I tested the patches on our custom Freescale i.MX28 board. I used ubi part, ubi create, and ubi write and it worked as expected. Thanks for this testreport! Maybe you can send a "Tested-by" ? bye, Heiko -- DENX Software Engineering GmbH,

Re: [U-Boot] Unable to boot the new FIT image

2014-06-02 Thread Simon Glass
Hi Harsha, On 31 May 2014 07:45, Harsha Kiran wrote: > Hi Simon, > > I started working on the secure u-boot loading the FIT images and there are > some of the issues i observed. > > I took the latest U-Boot 2014.07-rc2 and applied the below mentioned > patches.. > > (..http://patchwork.ozlabs.org

Re: [U-Boot] [PATCH v2 0/11] Minor improvements to secure boot and enable on beaglebone

2014-06-02 Thread Simon Glass
Hi Belisko, On 28 April 2014 00:30, Belisko Marek wrote: > Hi Simon, > > On Wed, Apr 16, 2014 at 4:41 PM, Simon Glass wrote: >> This series fixes a few problems that have come up since the secure boot >> series was merged: >> >> - A recent commit broken the assumption that u-boot.bin ends at a k

Re: [U-Boot] secure embedded linux system

2014-06-02 Thread Simon Glass
Hi, On 31 May 2014 02:48, Wolfgang Denk wrote: > Dear Mahendra Dobariya, > > In message you wrote: >> >> thanks for fast replying..I am using beaglebone black..I kindly request you= >> to give some more detail if it is possible to secure BBB..its TI AM335X ch= >> ip..please tell me if it is pos

[U-Boot] [PATCH 07/11] Avoid including config.h in command.h

2014-06-02 Thread Simon Glass
This is not necessary and prevents using this header when building tools. Signed-off-by: Simon Glass --- include/command.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/command.h b/include/command.h index d3f700f..6f06db1 100644 --- a/include/command.h +++ b/include/command.h @@ -1

[U-Boot] [PATCH 04/11] image: Remove the fit_load_image() property parameter

2014-06-02 Thread Simon Glass
This can be obtained by looking up the image type, so is redundant. It is better to centralise this lookup to avoid errors. Signed-off-by: Simon Glass --- common/bootm.c | 3 +-- common/image-fdt.c | 1 - common/image-fit.c | 29 - common/image.c | 2 +- i

[U-Boot] [PATCH 01/11] tools: Check arguments in fit_check_sign/fit_info

2014-06-02 Thread Simon Glass
These tools crash if no arguments are provided. Add checks to avoid this. Signed-off-by: Simon Glass --- tools/fit_check_sign.c | 9 + tools/fit_info.c | 12 2 files changed, 21 insertions(+) diff --git a/tools/fit_check_sign.c b/tools/fit_check_sign.c index af257cc

[U-Boot] [PATCH 06/11] Fix small 'case' typo in image-fit.c

2014-06-02 Thread Simon Glass
This typo makes the comment confusing. Fix it. Signed-off-by: Simon Glass --- common/image-fit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/image-fit.c b/common/image-fit.c index c0d7b8c..83fac9a 100644 --- a/common/image-fit.c +++ b/common/image-fit.c @@ -1637,7

[U-Boot] [PATCH 09/11] bootm: Move decompression code into its own function

2014-06-02 Thread Simon Glass
This makes it possible to decompress an image without it being a kernel and without intending to boot it (as it needed for host tools, for example). Signed-off-by: Simon Glass --- common/bootm.c | 75 +- 1 file changed, 48 insertions(+), 2

[U-Boot] [PATCH 11/11] Add documentation for verified boot on Beaglebone Black

2014-06-02 Thread Simon Glass
As an example of an end-to-end process for using verified boot in U-Boot, add a detailed description of the steps to be used for a Beaglebone Black. Signed-off-by: Simon Glass --- doc/uImage.FIT/beaglebone_vboot.txt | 608 1 file changed, 608 insertions(+)

[U-Boot] [PATCH 0/11] Enhance fit_check_sign add beaglebone black vboot docs

2014-06-02 Thread Simon Glass
The fit_check_sign tool checks that the configuration is correct, but does not check each image within that configuration. This series adds that feature, at least for uncompressed images. In order to arrange this, cmd_bootm.c is split up into three files, one for the command processing, one for th

[U-Boot] [PATCH 05/11] bootm: Support android boot on sandbox

2014-06-02 Thread Simon Glass
A small change allows this to operate on sandbox. Signed-off-by: Simon Glass --- common/bootm.c| 2 +- include/configs/sandbox.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/common/bootm.c b/common/bootm.c index 0b4fe7b..a19a9de 100644 --- a/common/bootm.c ++

[U-Boot] [PATCH 08/11] Allow compiling common/bootm.c on with HOSTCC

2014-06-02 Thread Simon Glass
We want to use some of the functionality in this file, so make it build on the host. Signed-off-by: Simon Glass --- common/bootm.c | 18 ++ tools/Makefile | 1 + tools/bootm.c | 1 + 3 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 tools/bootm.c diff --g

[U-Boot] [PATCH 10/11] Enhance fit_check_sign to check all images

2014-06-02 Thread Simon Glass
At present this tool only checks the configuration signing. Have it also look at each of the images in the configuration and confirm that they verify. Signed-off-by: Simon Glass --- common/bootm.c | 71 ++ common/image-fit.c | 3 ++-

[U-Boot] [PATCH 02/11] Reverse the meaning of the fit_config_verify() return code

2014-06-02 Thread Simon Glass
It is more common to have 0 mean OK, and -ve mean error. Change this function to work the same way to avoid confusion. Signed-off-by: Simon Glass --- common/cmd_fdt.c | 2 +- common/image-fit.c | 2 +- common/image-sig.c | 4 ++-- tools/fit_check_sign.c | 3 +-- 4 files changed, 5

[U-Boot] [PATCH v3 12/14] am33xx/omap: Enable CONFIG_OF_CONTROL

2014-06-02 Thread Simon Glass
Add support for device tree control and add device tree files for the beaglebone black initially. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: - Move device tree files into arch/arm/dts arch/arm/dts/Makefile | 1 + arch/arm/dts/am335x-bone-common.dtsi

[U-Boot] [PATCH v3 11/14] arm: ti: Increase malloc size to 16MB for armv7 boards

2014-06-02 Thread Simon Glass
The current size of 1MB is not enough use to use DFU. Increase it for ARMv7 boards, all of which should have 32MB or more SDRAM. With this change it is possible to do 'dfu mmc 0' on a Beaglebone Black. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None include/configs/ti_a

[U-Boot] [PATCH v3 09/14] Improve error handling in fit_common

2014-06-02 Thread Simon Glass
Make the error handling common, and make sure the file is always closed on error. Rename the parameter to be more description and add comments. Signed-off-by: Simon Glass --- Changes in v3: - Add new patch to improve error handling in fit_common Changes in v2: None tools/fit_check_sign.c | 4

[U-Boot] [PATCH v3 02/14] cm_t335: Fix the U-Boot binary output

2014-06-02 Thread Simon Glass
Correct the binary output so that image_binary_size is really at the end of the image. Signed-off-by: Simon Glass --- Changes in v3: - Add new patch to ensure the hash section is inside the image for cm_t335 Changes in v2: None board/compulab/cm_t335/u-boot.lds | 4 ++-- 1 file changed, 2 ins

[U-Boot] [PATCH v3 14/14] am33xx/omap: Add a new board to enable verified boot

2014-06-02 Thread Simon Glass
Enable verified boot functionality for a new am335x_boneblack_vboot target. Signed-off-by: Simon Glass --- Changes in v3: - Use verified boot only on a new board - am335x_boneblack_vboot Changes in v2: None boards.cfg | 1 + include/configs/am335x_evm.h | 4 2 files cha

[U-Boot] [PATCH v3 10/14] mkimage: Automatically make space in FDT when full

2014-06-02 Thread Simon Glass
When adding hashes or signatures, the target FDT may be full. Detect this and automatically try again after making 1KB of space. Signed-off-by: Simon Glass --- Changes in v3: - Rebase to master Changes in v2: None tools/fit_check_sign.c | 4 +- tools/fit_common.c | 25 ++- tool

[U-Boot] [PATCH v3 03/14] mx31ads: Fix the U-Boot binary output

2014-06-02 Thread Simon Glass
Correct the binary output so that image_binary_size is really at the end of the image. Signed-off-by: Simon Glass --- Changes in v3: - Add new patch to ensure the hash section is inside the image for mx31ads Changes in v2: None board/freescale/mx31ads/u-boot.lds | 4 +++- 1 file changed, 3 in

[U-Boot] [PATCH v3 08/14] fdt: Update functions which write to an FDT to return -ENOSPC

2014-06-02 Thread Simon Glass
When writing values into an FDT it is possible that there will be insufficient space. If the caller gets a useful error then it can potentially deal with the situation. Adjust these functions to return -ENOSPC when the FDT is full. Signed-off-by: Simon Glass --- Changes in v3: - Fix typo in com

[U-Boot] [PATCH v3 06/14] hash: Export the function to show a hash

2014-06-02 Thread Simon Glass
This function is useful for displaying a hash value, so export it. Signed-off-by: Simon Glass --- Changes in v3: - Rebase to master and update commit message Changes in v2: None common/hash.c | 7 +++ include/hash.h | 15 +++ 2 files changed, 18 insertions(+), 4 deletions(-)

[U-Boot] [PATCH v3 05/14] am33xx/omap: Allow cache enable for all Sitara/OMAP

2014-06-02 Thread Simon Glass
Enable the cache for all devices, unless CONFIG_SYS_DCACHE_OFF is defined. This speeds up the Beaglebone Black boot considerable. (Tested only on Beaglebone Black with SD card boot) Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: - Update to cover all omap devices arch/arm/c

[U-Boot] [PATCH v3 07/14] fdt: Add DEV_TREE_BIN option to specify a device tree binary file

2014-06-02 Thread Simon Glass
In some cases, an externally-built device tree binary is required to be attached to U-Boot. An example is when using image signing, since in that case the .dtb file must include the public keys. Add a DEV_TREE_BIN option to the Makefile, and update the documentation. Usage is something like:

[U-Boot] [PATCH v3 04/14] Check that u-boot.bin size looks correct

2014-06-02 Thread Simon Glass
Check that the image size matches the size we get from u-boot.bin. If it doesn't, that generally means that some extra sections are being added to u-boot.bin, meaning that it is not possible to access data appended to the U-Boot binary. This is used for device tree, so needs to work. This problem

[U-Boot] [PATCH v3 13/14] am33xx/omap: Enable FIT support

2014-06-02 Thread Simon Glass
Enable booting a FIT containing a kernel/device tree. Signed-off-by: Simon Glass --- Changes in v3: - Also enable LZO and timestamps, plus increase the maximum kernel size Changes in v2: None include/configs/am335x_evm.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/configs

[U-Boot] [PATCH v3 01/14] ti: am335x: Fix the U-Boot binary output

2014-06-02 Thread Simon Glass
This should include the hash so that image_binary_size is really at the end of the image, and not some 300 bytes earlier. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: - Add new patch to ensure the hash section is inside the image for am335x board/ti/am335x/u-boot.lds | 3 +

[U-Boot] [PATCH v3 0/14] Minor improvements to secure boot and enable on beaglebone

2014-06-02 Thread Simon Glass
This series fixes a few problems that have come up since the secure boot series was merged: - A recent commit broken the assumption that u-boot.bin ends at a known address (thus making things appended to U-Boot inaccessible from the code). This is fixed for Beaglebone and a few other boards. A new

[U-Boot] Building common/lib files in tools/

2014-06-02 Thread Simon Glass
Hi Masahiro, I see that we have a few files in tools/ which #include their counterpart .c files in common/ or lib/. The most noticeable example is libfdt. Is there a better way of doing this? Would it be possible to pick up the files automatically and still put the output file in tools/? The rea

Re: [U-Boot] [PATCH 2/5] board_r: run scsi init() on ARM too

2014-06-02 Thread Simon Glass
Hi Ian, On 31 May 2014 10:36, Ian Campbell wrote: > This has been disabled for ARM in initr_scsi since that function was > introduced. However it works fine for me on Cubieboard and Cubietruck (with > the > upcoming AHCI glue patch). > > I also tested on two random ARM platforms which seem to de

Re: [U-Boot] [PATCH v2 07/11] MAKEALL: adjust for Kconfig

2014-06-02 Thread Simon Glass
On 28 May 2014 07:05, Masahiro Yamada wrote: > Use "make _defconfig" instead of "make _config". > > FIXME! > This fixup is bad because it still depends on boards.cfg > to support options such as -a , -c etc. > We want to delete it when switching to Kconfig. > > We have to invent another method wi

Re: [U-Boot] [PATCH v2 08/11] buildman: adjust for Kconfig

2014-06-02 Thread Simon Glass
On 28 May 2014 07:05, Masahiro Yamada wrote: > Use "make _defconfig" instead of "make _config". > > FIXME! > This fixup is bad because it still depends on boards.cfg > to support options such as -a , -c etc. > We want to delete it when switching to Kconfig. > > We have to invent another method wi

Re: [U-Boot] Command repeat

2014-06-02 Thread Simon Glass
Hi Thomas, On 30 May 2014 11:55, Simon Glass wrote: > Hi Tom, > > On 30 May 2014 11:51, Tom Rini wrote: >> On Wed, May 28, 2014 at 09:34:25PM +0200, thomas.bet...@rohde-schwarz.com >> wrote: >> >>> Hello all, >>> >>> I have noticed that command repeat doesn't work as it should. >>> CONFIG_SYS_H

Re: [U-Boot] tftp command return value

2014-06-02 Thread Simon Glass
Hi, On 1 June 2014 22:32, l3iggs . wrote: > Hello, > > I'd like to test if a file on my TFTP server exists. I would expect that > using 'if tftp filename.ext; then echo exists; else echo doesnt; fi' woudl > work here. However, It always shows that the file exists. I expect that > others want

Re: [U-Boot] [Patman Bug Report] Patman breaks git-log during git-rebase

2014-06-02 Thread Simon Glass
Hi Masahiro, On 2 June 2014 01:44, Masahiro Yamada wrote: > Hi Simon, > > I found an odd behavior of Patman. > > If I run Patman during "git rebase -i", > Patman rewrites git-log, stripping all the Patman-tags. > (I lost some important tags such as "Series-changes".) > > I think git-log should be

Re: [U-Boot] [RFC 07/10] ARM: make gd a function a function for clang

2014-06-02 Thread Simon Glass
Hi Jeroen, On 31 May 2014 14:32, Jeroen Hofstee wrote: > --- > arch/arm/include/asm/global_data.h | 17 + > 1 file changed, 17 insertions(+) > > diff --git a/arch/arm/include/asm/global_data.h > b/arch/arm/include/asm/global_data.h > index 63e4ad5..646d694 100644 > --- a/arch/ar

Re: [U-Boot] smp_kick_all_cpus() function's role

2014-06-02 Thread TigerLiu
Hi, Marc: >In short, if you're setting GICD_SGIR[24] to 1, you're sending SGI0 to >all CPUs but yourself. This seems to match the name of the function, >doesn't it? I described my understanding based on 2014.07-RC2 u-boot source code: (For ARMv8 cores) 1. smp_kick_all_cpus() will send SGI0 to all o

Re: [U-Boot] [RFC 05/10] ARM: SPL: do not set gd again

2014-06-02 Thread Simon Glass
On 31 May 2014 14:32, Jeroen Hofstee wrote: > --- > arch/arm/lib/spl.c | 3 --- > 1 file changed, 3 deletions(-) Needs commit message/signoff, but this seems to be throughout the series. Apart from that: Acked-by: Simon Gass > > diff --git a/arch/arm/lib/spl.c b/arch/arm/lib/spl.c > index df

Re: [U-Boot] [RFC 04/10] ARM: do not set gd in generic board again

2014-06-02 Thread Simon Glass
On 31 May 2014 14:32, Jeroen Hofstee wrote: > Since crt0.S / crt0_64.S already allocate gd and assing it there > is no need to do it again board_f / board_r as it only wastes > stack space. Acked-by: Simon Gass > --- > arch/arm/include/asm/config.h | 2 -- > 1 file changed, 2 deletions(-) > >

Re: [U-Boot] [RFC 03/10] board_r: only assign gd when requested

2014-06-02 Thread Simon Glass
On 31 May 2014 14:32, Jeroen Hofstee wrote: > When CONFIG_SYS_GENERIC_GLOBAL_DATA is not set the arch handles > the assignment of gd. At least in case of ARM/Aarch64 this means > board_init_r is alteady called with the new gd. Therefore only > assign gd if CONFIG_SYS_GENERIC_GLOBAL_DATA is defined

Re: [U-Boot] [RFC 01/10] ARM: crt0.S: clear the global data

2014-06-02 Thread Simon Glass
Hi Jeroen, On 31 May 2014 14:32, Jeroen Hofstee wrote: > NOTE: smdk5420 snow smdkv310 apf27 arndale origen vpac270_ond_256 smdk5250 > don't have a memset available. You should add a message explaining the motivation for the change. Can you add a memset()? Regards, Simon ___

Re: [U-Boot] [RFC PATCH 03/22] dm: Make sure that the root device is probed

2014-06-02 Thread Simon Glass
Hi Marek, On 1 June 2014 11:33, Marek Vasut wrote: > On Saturday, May 24, 2014 at 11:21:02 PM, Simon Glass wrote: >> The root device should be probed just like any other device. The effect of >> this is to mark the device as activated, so that it can be removed (along >> with its children) if req

Re: [U-Boot] coreboot and u-boot integration x86: "No tick base available"

2014-06-02 Thread Simon Glass
Hi Martin, On 1 June 2014 23:59, Martin Ertsås wrote: > On 06/01/14 18:42, Simon Glass wrote: >> Hi Martin, >> >> On 30 May 2014 04:33, Martin Ertsås wrote: >>> Hi. >>> >>> I'm trying to use u-boot as a payload to coreboot. Problem is that when >>> coreboot starts u-boot, it fails with panic("No

Re: [U-Boot] Driver Model and DTS Parsing

2014-06-02 Thread Simon Glass
Hi Jon, On 30 May 2014 08:49, Jon Loeliger wrote: > Folks, > > I'd like to discuss the new Driver Model's parsing of the DTS file > for the purposes of instancing and binding devices as I was not > able to get the existing code to work anything like I was expecting. > > The current code only find

Re: [U-Boot] [PATCH v3] Exynos: Make sure ps_hold gets set in the SPL

2014-06-02 Thread Minkyu Kang
On 03/06/14 06:18, Simon Glass wrote: > Hi Minkyu, > > On 30 May 2014 23:24, Minkyu Kang wrote: >> On 30/05/14 01:10, Akshay Saraswat wrote: >>> From: Doug Anderson >>> >>> Setting ps_hold ought to be one of the first things we do when we >>> first boot up. If we wait until the main u-boot runs

Re: [U-Boot] Some Driver Model Ponderings

2014-06-02 Thread Simon Glass
Hi Jon, On 28 May 2014 09:22, Jon Loeliger wrote: > > Hi U-Booters, > > Over the past few days, I had an off-line conversation with Simon Glass > on the topic of the Driver Model. At his request, I've edited that > conversation into this piece of email for the U-Boot List in the > hopes that oth

Re: [U-Boot] [RFC] Extend 'bootm' to support Linux kernel generated images

2014-06-02 Thread Simon Glass
Hi Tom, On 24 May 2014 06:21, Tom Rini wrote: > On Fri, May 23, 2014 at 03:57:34PM -1000, Simon Glass wrote: > > Hi Tom, > > > > On 21 May 2014 10:46, Tom Rini wrote: > > > On Wed, May 21, 2014 at 10:10:50PM +0200, Wolfgang Denk wrote: > > >> Dear Tom Rini, > > >> > > >> In message <20140521195

Re: [U-Boot] [PATCH] arm: Allow u-boot to run from offset base address

2014-06-02 Thread Darwin Rambo
On 14-06-02 12:26 AM, Albert ARIBAUD wrote: Hi Darwin, On Mon, 26 May 2014 09:11:35 -0700, Darwin Rambo wrote: Hi Albert, The previous stage bootloader (which I had no control over) wanted it's header to be aligned to a 512 byte MMC block boundary, presumably since this allowed DMA operati

Re: [U-Boot] (no subject)

2014-06-02 Thread rajshekar_py
Hi! http://netreign.com/_redirect?wynymaq917558 ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

[U-Boot] [PATCH v4 08/10] imx: ventana: split read_eeprom into standalone file

2014-06-02 Thread Tim Harvey
Split the read_eeprom function out so that it can be shared (ie with SPL) Cc: Stefan Roese Cc: Otavio Salvador Cc: Andy Ng Cc: Eric Nelson Cc: Tapani Utriainen Cc: Tom Rini Signed-off-by: Tim Harvey --- v4: - no changes v3: - no changes v2: - new patch in series --- board/gateworks/

[U-Boot] [PATCH v4 10/10] imx: ventana: switch to SPL

2014-06-02 Thread Tim Harvey
Switch to an SPL image. The SPL for Ventana does the following: - setup i2c and read the factory programmed EEPROM to obtain DRAM config and model for board-specific calibration data - configure DRAM per CPU/size/layout/devices/calibration - load u-boot.img from NAND and jump to it This allo

[U-Boot] [PATCH v4 09/10] imx: ventana: auto-configure for IMX6Q vs IMX6DL

2014-06-02 Thread Tim Harvey
use the new iomux function and a macros to create a multi-dimensional array of iomux values without duplicating the defintions. Cc: Stefan Roese Cc: Otavio Salvador Cc: Andy Ng Cc: Eric Nelson Cc: Tapani Utriainen Cc: Tom Rini Signed-off-by: Tim Harvey --- v4: - no changes v3: - replace

[U-Boot] [PATCH v4 07/10] imx: iomux: add macros to setup iomux for multiple SoC types

2014-06-02 Thread Tim Harvey
Allow imx_iomux_v3_setup_multiple_pads to take a multi-cpu pad_list and add macros for declaring the pad_list that take into account the SoC types supported using CONFIG_MX6QDL (supports both the MX6Q and MX6DL iomux). Cc: Stefan Roese Cc: Otavio Salvador Cc: Andy Ng Cc: Eric Nelson Cc: Tapani

[U-Boot] [PATCH v4 06/10] mx6: add mmdc configuration for MX6Q/MX6DL

2014-06-02 Thread Tim Harvey
- add function for configuring iomux based on board-specific regs - add function for configuring mmdc based on board-specific and chip-specific data Cc: Stefan Roese Cc: Otavio Salvador Cc: Andy Ng Cc: Eric Nelson Cc: Tapani Utriainen Cc: Tom Rini Signed-off-by: Tim Harvey --- v4: - add

[U-Boot] [PATCH v4 02/10] mx6: add common SPL configuration

2014-06-02 Thread Tim Harvey
Add a common header which can hopefully be shared amon imx6 SPL users Cc: Stefan Roese Cc: Otavio Salvador Cc: Andy Ng Cc: Eric Nelson Cc: Tapani Utriainen Cc: Tom Rini Signed-off-by: Tim Harvey Acked-by: Stefano Babic Acked-by: Nikita Kiryanov --- v4: - no changes v3: - fixed typo s/

[U-Boot] [PATCH v4 04/10] imx: add comments and remove unused struct fields

2014-06-02 Thread Tim Harvey
Add comment block for the imx_ddr_size function and remove the extra unused fields from struct esd_mmdc_regs which are also not common between IMX53 and IMX6. Cc: Stefan Roese Cc: Otavio Salvador Cc: Andy Ng Cc: Eric Nelson Cc: Tapani Utriainen Cc: Tom Rini Signed-off-by: Tim Harvey Acked-

[U-Boot] [PATCH v4 03/10] mx6: add boot device support for SPL

2014-06-02 Thread Tim Harvey
Add a common spl.c file to support boot device functions needed for SPL such as detecting the boot device. Cc: Stefan Roese Cc: Otavio Salvador Cc: Andy Ng Cc: Eric Nelson Cc: Tapani Utriainen Cc: Tom Rini Signed-off-by: Tim Harvey Acked-by: Nikita Kiryanov --- v4: - added Nikita's Ack

[U-Boot] [PATCH v4 05/10] mx6: add structs for mmdc and ddr iomux registers

2014-06-02 Thread Tim Harvey
Add memory-mapped structures for MMDC iomux and configuration. Note that whi the MMDC configuration registers are common between the IMX6DQ (IMX6DUAL/IMX6QUAD) and IMX6SDL (IMX6SOLO/IMX6DUALLITE) types the iomux registers differ. This requires two sets of structures. Add structures to describe DDR

[U-Boot] [PATCH v4 01/10] spl: nand: add support for mxs nand

2014-06-02 Thread Tim Harvey
This utilizes existing mxs_nand support layer to provide a method to load an image off nand for SPL. The flash device will be detected in order to support multiple flash devices instead of having layout hard coded at build time. Cc: Stefan Roese Cc: Otavio Salvador Cc: Andy Ng Cc: Eric Nelson

[U-Boot] [PATCH v4 00/10] mx6: SPL NAND support

2014-06-02 Thread Tim Harvey
This series adds some necessary framework for IMX6 SPL support. The series includes support for NAND SPL and has been tested with MMC as well. I have tested this on five differing Ventana baseboards with a variety of memory (32bit 512MB, 32bit 1024MB, 64bit 1024MB) and CPU configurations (IMX6Q, IM

Re: [U-Boot] [PATCH 1/2] usb: ci_udc: allow multiple buffer allocs per ep

2014-06-02 Thread Jörg Krause
Sorry, my previous post was not shown correctly. The raw text was missing. I removed the annotation. Since this commit my Ethernet Gadget on a custom Freescale i.MX28 board is broken. Using tftp to download files I get in almost all cases a timeout: This is one case: Updating rootfs ... using ci

Re: [U-Boot] [PATCH 1/2] usb: ci_udc: allow multiple buffer allocs per ep

2014-06-02 Thread Jörg Krause
Since this commit my Ethernet Gadget on a custom Freescale i.MX28 board is broken. Using tftp to download files I get in almost all cases a timeout: This is one case: This is another one: I reverted this commit from my master branch it works again as expected. -- View this message in con

Re: [U-Boot] imx6 booting from NAND with bad block 0

2014-06-02 Thread Tim Harvey
On Mon, Jun 2, 2014 at 4:03 AM, Andy Ng wrote: > I have an imx6 solo system and currently I am using the SD card to > boot the u-boot. > I would like to make it boot from NAND, but my first Block in NAND is a bad > one. > Do I need u-boot with NAND SPL support? > > Best regards > Andy Andy, Yo

Re: [U-Boot] Standalone application on secondary cores

2014-06-02 Thread James Chargin
Dear Francesco Teodoro. On 05/30/2014 01:35 PM, Francesco Teodoro wrote: I'm using a SABRE SD board (from Freescale) based on i.MX6 and the u-boot version is the 2014.04 one. What I've been trying to do is to activate the secondary cores so that I would be able to use them. First of all I've i

Re: [U-Boot] [PATCH v3] Exynos: Make sure ps_hold gets set in the SPL

2014-06-02 Thread Simon Glass
Hi Minkyu, On 30 May 2014 23:24, Minkyu Kang wrote: > On 30/05/14 01:10, Akshay Saraswat wrote: >> From: Doug Anderson >> >> Setting ps_hold ought to be one of the first things we do when we >> first boot up. If we wait until the main u-boot runs we won't set it >> in time and the PMIC may power

Re: [U-Boot] [RFC, PATCH v2 0/4] mtd, ubi, ubifs: resync with Linux-3.14

2014-06-02 Thread Jörg Krause
I tested the patches on our custom Freescale i.MX28 board. I used ubi part, ubi create, and ubi write and it worked as expected. -- View this message in context: http://u-boot.10912.n7.nabble.com/RFC-PATCH-v2-0-4-mtd-ubi-ubifs-resync-with-Linux-3-14-tp180464p181246.html Sent from the U-Boot ma

Re: [U-Boot] [PATCH] PPC4xx: Remove quad100hd board

2014-06-02 Thread Tom Rini
On Mon, Jun 02, 2014 at 05:52:56PM +0200, Wolfgang Denk wrote: > Dear Tom, > > In message <20140602145956.GW5836@bill-the-cat> you wrote: > > > > > The quad100hd has been unmaintained and dead ever since it's been > > > added some 6 years ago. Remove it. > ... > > Applied to u-boot/master, thank

Re: [U-Boot] [Patch v4 2/5] ARMv8: Adjust MMU setup

2014-06-02 Thread Mark Rutland
On Mon, Jun 02, 2014 at 05:06:13PM +0100, York Sun wrote: > On 06/02/2014 04:34 AM, Mark Rutland wrote: > > On Thu, May 29, 2014 at 09:49:05PM +0100, York Sun wrote: > >> Make MMU functions reusable. Platform code can setup its own MMU tables. > > > > What exactly does platform code need to setup

Re: [U-Boot] [PATCH] mmc: add wrappers for MMC block_{read, write, erase}

2014-06-02 Thread Stephen Warren
On 06/02/2014 12:42 AM, Pantelis Antoniou wrote: > Hi Steve, > > I wanted the discussion to settle a bit before I reply to this series. > On May 29, 2014, at 1:15 AM, Steve Rae wrote: > >> Each wrapper function: >> - switches to the specified physical partition, then >> - performs the original fu

Re: [U-Boot] [Patch v4 2/5] ARMv8: Adjust MMU setup

2014-06-02 Thread York Sun
On 06/02/2014 04:34 AM, Mark Rutland wrote: > On Thu, May 29, 2014 at 09:49:05PM +0100, York Sun wrote: >> Make MMU functions reusable. Platform code can setup its own MMU tables. > > What exactly does platform code need to setup its own tables for? The general ARMv8 MMU table is not detail enoug

Re: [U-Boot] [PATCH 1/3] cmd_mmc: add force_init parameter to init_mmc_device()

2014-06-02 Thread Stephen Warren
On 06/01/2014 10:59 PM, Jaehoon Chung wrote: > Hi, Stephen. > > Your patch-set looks good to me. > > Acked-by: Jaehoon Chung > > If card didn't insert, can we display the other log instead of the below log? > > #mmc rescan > #mmc dev 1 > "Card did not respond to voltage select!" Some SD slots

Re: [U-Boot] [PATCH] PPC4xx: Remove quad100hd board

2014-06-02 Thread Wolfgang Denk
Dear Tom, In message <20140602145956.GW5836@bill-the-cat> you wrote: > > > The quad100hd has been unmaintained and dead ever since it's been > > added some 6 years ago. Remove it. ... > Applied to u-boot/master, thanks! Umm... I have neither seen a pull request nor an ACK from Stefan. Should we

Re: [U-Boot] [PATCH] dfu: fix some issues with reads/uploads

2014-06-02 Thread Stephen Warren
On 06/02/2014 12:14 AM, Lukasz Majewski wrote: > Hi Stephen, > >> On 05/30/2014 02:28 AM, Lukasz Majewski wrote: >> ... >>> I've tested if raw u-boot can be downloaded and uploaded via DFU. >>> The u-boot size is 1MiB precisely. >>> >>> Corresponding dfu_alt_info entry: >>> "u-boot raw 0x80 0x80

Re: [U-Boot] [PATCH 0/9] Remove MPC82xx, MPC8xx Orphan boards

2014-06-02 Thread Wolfgang Denk
Dear Tom, In message <20140602145948.GV5836@bill-the-cat> you wrote: > > > powerpc: adder: remove orphan board > > powerpc: mpc8260ads: remove orphan board > > powerpc: zpc1900: remove orphan board > > powerpc: rattler: remove orphan board > > powerpc: ispan: remove orphan board > > p

Re: [U-Boot] [RFC PATCH 17/22] dm: Expand and improve the device lifecycle docs

2014-06-02 Thread Simon Glass
+U-Boot list again Hi Jon, On 30 May 2014 09:55, Jon Loeliger wrote: >> > Why is the scan only on the "top level"? My GPIO nodes are, for example, >> > under an SOC node. >> >> Why? Do you have an SOC driver? > > Hi Simon, > > This gets to my earlier issue: I want to use the *exact* same DTS f

Re: [U-Boot] [PATCH 1/4] Exynos: SPI: Fix reading data from SPI flash

2014-06-02 Thread Simon Glass
Hi Akshay, On 30 May 2014 07:45, Akshay Saraswat wrote: > SPI recieve and transfer code in exynos_spi driver has a logical bug. > We read data in a variable which can hold an integer. Then we assign > this integer 32 bit value to another variable which has data type uchar. > Latter represents a u

Re: [U-Boot] [PATCH 4/4] Exynos5: Config: Enable USB boot mode for all Exynos5 SoCs

2014-06-02 Thread Simon Glass
On 30 May 2014 07:45, Akshay Saraswat wrote: > Right now USB booting is enabled for Exynos5250 only. Moving all the > configs for USB boot mode from exynos5250-dt.h to exynos5-dt.h in order > to enableUSB booting for all Exynos5 SoCs. > > Signed-off-by: Akshay Saraswat Acked-by: Simon Glass ___

Re: [U-Boot] [PATCH 3/4] Exynos5: Config: Increase SPL footprint for Exynos5420

2014-06-02 Thread Simon Glass
Hi Akshay, On 30 May 2014 07:45, Akshay Saraswat wrote: > Max footprint for SPL in both Exynos 5250 and 5420 is limited to 14 KB. > For Exynos5250 we need to keep it 14 KB because BL1 supports only fixed > size SPL downloading. But in case of Exynos5420 we need not restrict it > to 14 KB. And als

Re: [U-Boot] [PATCH 2/4] Exynos5: Config: Place environment at the end of SPI Flash

2014-06-02 Thread Simon Glass
Hi Akshay, On 30 May 2014 07:45, Akshay Saraswat wrote: > Currently environment resides at the location where BL2 ends. > This may hold good in case there is an empty space at this > position. But what if this place already has a binary or is > expected to have one. To avoid such scenarios it is

Re: [U-Boot] [PATCH] PPC4xx: Remove quad100hd board

2014-06-02 Thread Tom Rini
On Thu, May 29, 2014 at 11:54:06AM +0200, Wolfgang Denk wrote: > The quad100hd has been unmaintained and dead ever since it's been > added some 6 years ago. Remove it. > > Also update README.scrapyard and insert some commit IDs for removed > boards. > > Signed-off-by: Wolfgang Denk > Cc: Stefa

Re: [U-Boot] [PATCH 0/9] Remove MPC82xx, MPC8xx Orphan boards

2014-06-02 Thread Tom Rini
On Fri, May 30, 2014 at 05:44:55PM +0900, Masahiro Yamada wrote: > > The maintainers are no longer repsponding. > > These boards are so old that nobody would have > motivation to maintain them. > > I built all the other boards. > I confirmed there is no impact to the other boards. > > Apply Wo

[U-Boot] [PATCH v4 2/3] mtd: nand: omap: add support for BCH16_ECC - NAND driver updates

2014-06-02 Thread Pekon Gupta
This patch add support for BCH16_ECC to omap_gpmc driver. *need to BCH16 ECC scheme* With newer SLC Flash technologies and MLC NAND, and large densities, pagesizes Flash devices have become more suspectible to bit-flips. Thus stronger ECC schemes are required for protecting the data. But stronger

[U-Boot] [PATCH v4 3/3] am335x: update README for BCH16

2014-06-02 Thread Pekon Gupta
updates documentation with explanation on how to select ECC schemes. Signed-off-by: Pekon Gupta --- doc/README.nand | 42 ++ 1 file changed, 42 insertions(+) diff --git a/doc/README.nand b/doc/README.nand index 2bc5b39..70cf768 100644 --- a/doc/README.nan

[U-Boot] [PATCH v4 0/3] mtd: nand: omap: add support for BCH16_ECC

2014-06-02 Thread Pekon Gupta
This patch series should be picked above http://lists.denx.de/pipermail/u-boot/2014-April/177323.html *changes v3 -> v4* [PATCH 1/3] (new patch) [PATCH 2/3] fixed BCH16 implementation for omap_gpmc.c [PATCH 3/3] (no change) include minor clean-up patch to use macro GPMC_MAX_SECTORS *changes v2 -

[U-Boot] [PATCH v4 1/3] mtd: nand: omap_gpmc: use macro for register definitions

2014-06-02 Thread Pekon Gupta
GPMC can support simultaneous processing of 8 512Byte data chunks, in parallel Signed-off-by: Pekon Gupta --- include/linux/mtd/omap_gpmc.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/linux/mtd/omap_gpmc.h b/include/linux/mtd/omap_gpmc.h index 22f6573..d55fe32 1

Re: [U-Boot] [Patch v4 2/5] ARMv8: Adjust MMU setup

2014-06-02 Thread Mark Rutland
On Thu, May 29, 2014 at 09:49:05PM +0100, York Sun wrote: > Make MMU functions reusable. Platform code can setup its own MMU tables. What exactly does platform code need to setup its own tables for? > Also fix a typo of "TCR_EL3_IPS_BITS" in cache_v8.c. > > Signed-off-by: York Sun > CC: David F

[U-Boot] imx6 booting from NAND with bad block 0

2014-06-02 Thread Andy Ng
I have an imx6 solo system and currently I am using the SD card to boot the u-boot. I would like to make it boot from NAND, but my first Block in NAND is a bad one. Do I need u-boot with NAND SPL support? Best regards Andy ___ U-Boot mailing list U-Boot

Re: [U-Boot] [Patch v3 2/4] ARMv8/FSL_LSCH3: Add FSL_LSCH3 SoC

2014-06-02 Thread Mark Rutland
On Thu, May 29, 2014 at 06:37:36PM +0100, Rob Herring wrote: > On Thu, May 29, 2014 at 10:19 AM, York Sun wrote: > > On 05/29/2014 06:19 AM, Rob Herring wrote: > >> On Wed, May 28, 2014 at 6:46 PM, York Sun wrote: > > > > > > > >>> +static void set_pgtable_section(u64 *page_table, u64 index, u64

Re: [U-Boot] [PATCH 9/9] arm: ls102xa: Add basic support for LS1021AQDS board

2014-06-02 Thread Huan Wang
Hi, Fabio, On Fri, May 30, 2014 at 4:23 AM, Alison Wang wrote: > +#define CONFIG_EXTRA_ENV_SETTINGS  \ > +   "ethaddr=00:e0:0c:bc:e5:60\0"   \ > +   "eth1addr=00:e0:0c:bc:e5:61\0"  \ > +   "eth2addr=00:e0:0c:bc:e5:62\0"  \ > +   "eth3addr=00:e0:0c:bc:e5:63\0"  \ > +   "ip

[U-Boot] [Patman Bug Report] Patman breaks git-log during git-rebase

2014-06-02 Thread Masahiro Yamada
Hi Simon, I found an odd behavior of Patman. If I run Patman during "git rebase -i", Patman rewrites git-log, stripping all the Patman-tags. (I lost some important tags such as "Series-changes".) I think git-log should be read-only during Patman operation. I can't understand why Patman needs to

Re: [U-Boot] [PATCH] tam3517: fix NAND detection

2014-06-02 Thread Gupta, Pekon
>From: Stefano Babic [mailto:sba...@denx.de] [...] >>> diff --git a/include/configs/tam3517-common.h >>> b/include/configs/tam3517-common.h >>> index 3522c1a..bd117d5 100644 >>> --- a/include/configs/tam3517-common.h >>> +++ b/include/configs/tam3517-common.h >>> @@ -185,6 +185,7 @@ >>> /* Config

Re: [U-Boot] please pull u-boot-samsung master

2014-06-02 Thread Albert ARIBAUD
Hi Minkyu, On Sat, 31 May 2014 14:29:43 +0900, Minkyu Kang wrote: > Dear Albert, > > The following changes since commit 44cfc3a83f2a62963af2de8d983daf4c77e1db0c: > > Merge branch 'u-boot-tegra/master' into 'u-boot-arm/master' (2014-05-15 > 17:19:45 +0200) > > are available in the git repos

Re: [U-Boot] [PATCH] arm: Allow u-boot to run from offset base address

2014-06-02 Thread Albert ARIBAUD
Hi Darwin, On Mon, 26 May 2014 09:11:35 -0700, Darwin Rambo wrote: > Hi Albert, > > The previous stage bootloader (which I had no control over) wanted it's > header to be aligned to a 512 byte MMC block boundary, presumably since > this allowed DMA operations without copy/shifting. At the sam

  1   2   >