Re: [U-Boot] [PATCH V2 2/2] common: add new boot media kconfig entry

2016-06-27 Thread Masahiro Yamada
Hi. 2016-06-28 14:02 GMT+09:00 Peng Fan : > Hi Tom, > > On Fri, Jun 24, 2016 at 06:57:44PM -0400, Tom Rini wrote: >>On Sun, Jun 19, 2016 at 06:20:52PM +0800, Peng Fan wrote: >>> Hi Masahiro, >>> >>> +Simon >>> On Fri, Jun 17, 2016 at 07:08:23PM +0900, Masahiro Yamada

Re: [U-Boot] [PATCH V2 2/2] common: add new boot media kconfig entry

2016-06-27 Thread Peng Fan
Hi Tom, On Fri, Jun 24, 2016 at 06:57:44PM -0400, Tom Rini wrote: >On Sun, Jun 19, 2016 at 06:20:52PM +0800, Peng Fan wrote: >> Hi Masahiro, >> >> +Simon >> On Fri, Jun 17, 2016 at 07:08:23PM +0900, Masahiro Yamada wrote: >> >2016-06-17 18:39 GMT+09:00 Peng Fan : >> >> Add

Re: [U-Boot] [PATCH v5 6/8] ARMv7: PSCI: ls102xa: check ALREADY_ON or ON_PENDING for CPU_ON

2016-06-27 Thread Chen-Yu Tsai
On Tue, Jun 14, 2016 at 3:01 PM, wrote: > From: Hongbo Zhang > > For the robustness of codes, while powering on a CPU, it is better to check > if the target CPU is already on or in the process of power on, if yes the > power on routine shouldn't be

Re: [U-Boot] [PATCH v5 8/8] ARMv7: PSCI: ls102xa: move secure text section into OCRAM

2016-06-27 Thread Chen-Yu Tsai
On Tue, Jun 14, 2016 at 3:01 PM, wrote: > From: Hongbo Zhang > > LS1021 offers two secure OCRAM blocks for trustzone. > This patch moves all the secure text sections into the OCRAM. > > Signed-off-by: Wang Dongsheng >

Re: [U-Boot] [PATCH v5 5/8] ARMv7: PSCI: ls102xa: check target CPU ID before further operations

2016-06-27 Thread Chen-Yu Tsai
On Tue, Jun 14, 2016 at 3:01 PM, wrote: > From: Hongbo Zhang > > The input parameter CPU ID needs to be validated before furher oprations such > as CPU_ON, this patch introduces the function to do this. > > Signed-off-by: Wang Dongsheng

Re: [U-Boot] [PATCH v5 2/8] ARMv7: PSCI: factor out reusable psci_cpu_on_common

2016-06-27 Thread Hongbo Zhang
On Tue, Jun 28, 2016 at 10:49 AM, Chen-Yu Tsai wrote: > Hi, > > On Tue, Jun 14, 2016 at 3:01 PM, wrote: >> From: Hongbo Zhang >> >> There are codes for saving target PC in each platform psci_cpu_on routines, >> these can be factored

Re: [U-Boot] [PATCH v3 10/12] libfdt: Add overlay application function

2016-06-27 Thread David Gibson
On Mon, Jun 27, 2016 at 01:40:00PM +0200, Maxime Ripard wrote: > Hi David, > > On Mon, Jun 27, 2016 at 03:26:07PM +1000, David Gibson wrote: > > > +static uint32_t overlay_get_target_phandle(const void *fdto, int > > > fragment) > > > +{ > > > + const uint32_t *val; > > > + int len; > > > + > >

Re: [U-Boot] [PATCH v3 04/12] libfdt: Add new headers and defines

2016-06-27 Thread David Gibson
On Mon, Jun 27, 2016 at 09:25:27AM +0200, Maxime Ripard wrote: > Hi David, > > On Mon, Jun 27, 2016 at 01:39:06AM +1000, David Gibson wrote: > > On Fri, Jun 24, 2016 at 04:27:49PM +0200, Maxime Ripard wrote: > > > The libfdt overlay support introduces a bunch of new includes and > > > functions.

Re: [U-Boot] [PATCH v3 07/12] libfdt: Add fdt_setprop_inplace_by_index

2016-06-27 Thread David Gibson
On Mon, Jun 27, 2016 at 11:16:52AM +0200, Maxime Ripard wrote: > On Mon, Jun 27, 2016 at 01:45:11AM +1000, David Gibson wrote: > > On Fri, Jun 24, 2016 at 04:27:52PM +0200, Maxime Ripard wrote: > > > Add a function to modify inplace a property starting from a given index. > > > > > > This is

Re: [U-Boot] [PATCH v5 3/8] ARMv7: PSCI: update the place of saving target PC

2016-06-27 Thread Chen-Yu Tsai
On Tue, Jun 14, 2016 at 3:01 PM, wrote: > From: Hongbo Zhang > > The legacy code saves target PC at stack top, this patch changes it to stack > bottom, because we will save more contents for PSCI v1.0, by this way we don't > need to adjust the stack

Re: [U-Boot] [PATCH v5 4/8] ARMv7: PSCI: add codes to save context ID for CPU_ON

2016-06-27 Thread Chen-Yu Tsai
Hi, On Tue, Jun 14, 2016 at 3:01 PM, wrote: > From: Hongbo Zhang > > According to latest PSCI specification, the context ID is needed by CPU_ON. > This patch saves context ID to the second lowest address of the stack (next to > where target PC is

Re: [U-Boot] [PATCH v5 2/8] ARMv7: PSCI: factor out reusable psci_cpu_on_common

2016-06-27 Thread Chen-Yu Tsai
Hi, On Tue, Jun 14, 2016 at 3:01 PM, wrote: > From: Hongbo Zhang > > There are codes for saving target PC in each platform psci_cpu_on routines, > these can be factored out as psci_cpu_on_common. > Another purpose is that the codes of saving target

Re: [U-Boot] [PATCH 2/2] arm64: add better spin-table support

2016-06-27 Thread Chen-Yu Tsai
Hi, On Mon, Jun 27, 2016 at 6:47 PM, Andre Przywara wrote: > Hi Masahiro, > > On 25/06/16 05:08, Masahiro Yamada wrote: >> Hi Andre, >> >> >> 2016-06-19 19:33 GMT+09:00 André Przywara : >>> Hi, >>> >>> On 19/06/16 09:57, Masahiro Yamada wrote:

Re: [U-Boot] [RFC PATCH v1] usb: spl: fix USB errata for FSL SPL targets

2016-06-27 Thread Marek Vasut
On 06/28/2016 01:02 AM, York Sun wrote: > Commit 9262367 moved USB errata workaround to a C file but didn't > build it for SPL targets. > > Signed-off-by: York Sun > CC: Sriram Dash > CC: Rajesh Bhagat > > --- > Please review this

[U-Boot] [PATCH v2 0/3] Add generic ioremap / iounmap defines

2016-06-27 Thread Masahiro Yamada
I ran Buildman for the whole series, and I did not see any regression. 01: Merge branch 'master' of git://git.denx.de/u-boot-uniphier openrisc: + openrisc-generic arc: + tb100 axs101 axs103 blackfin: + bf533-stamp cm-bf527 arm: + socfpga_is1 powerpc: +

[U-Boot] [PATCH v2 1/3] types.h: move and redefine resource_size_t

2016-06-27 Thread Masahiro Yamada
Currently, this is only defined in arch/arm/include/asm/types.h, so move it to include/linux/types.h to make it available for all architectures. I defined it with phys_addr_t as Linux does. I needed to surround the define with #ifdef __KERNEL__ ... #endif to avoid build errors in tools building.

[U-Boot] [PATCH v2 3/3] linux/io.h: add generic ioremap()/iounmap() defines

2016-06-27 Thread Masahiro Yamada
For most of architectures in U-Boot, virtual address is straight mapped to physical address. So, it makes sense to have generic defines of ioremap and friends in . All of them are just empty and will disappear at compile time, but they will be helpful to implement drivers which are counterparts

[U-Boot] [PATCH v2 2/3] arm, nds32, sh: remove useless ioremap()/iounmap() defines

2016-06-27 Thread Masahiro Yamada
These defines are valid only when iomem_valid_addr is defined, but I do not see such defines anywhere. Remove. Signed-off-by: Masahiro Yamada --- Changes in v2: None arch/arm/include/asm/io.h | 34 --

Re: [U-Boot] [PATCH 3/3] linux/io.h: add generic ioremap()/iounmap() defines

2016-06-27 Thread Masahiro Yamada
Hi Daniel, 2016-06-27 18:57 GMT+09:00 Daniel Schwierzeck : > > > Am 27.06.2016 um 10:32 schrieb Masahiro Yamada: >> For most of architectures in U-Boot, virtual address is straight >> mapped to physical address. So, it makes sense to have generic >> defines of

Re: [U-Boot] [U-Boot,v2,4/5] fastboot: sparse: implement reserve()

2016-06-27 Thread Tom Rini
On Tue, Jun 07, 2016 at 11:19:38AM -0700, Steve Rae wrote: > In order to process the CHUNK_TYPE_DONT_CARE properly, there is > a requirement to be able to 'reserve' a specified number of blocks > in the storage media. Because of the special handling of "bad blocks" > in NAND devices, this is

Re: [U-Boot] [U-Boot, v2, 5/5] fastboot: sparse: improve CHUNK_TYPE_FILL write performance

2016-06-27 Thread Tom Rini
On Tue, Jun 07, 2016 at 11:19:39AM -0700, Steve Rae wrote: > - increase the size of the fill buffer > - testing has shown a 10x improvement when the sparse image > has large CHUNK_TYPE_FILL chunks > > Signed-off-by: Steve Rae Applied to u-boot/master, thanks! -- Tom

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

2016-06-27 Thread Tom Rini
On Mon, Jun 27, 2016 at 04:13:37PM +0900, Minkyu Kang wrote: > Dear Tom, > > The following changes since commit 4141e85bcd79c0b9b16def710e527f165107b7af: > > kbuild: avoid race between dtbs and dt/dt.dtb targets (2016-06-24 17:24:41 > -0400) > > are available in the git repository at: > >

Re: [U-Boot] [U-Boot, v2, 3/5] fastboot: sparse: resync common/image-sparse.c (part 2)

2016-06-27 Thread Tom Rini
On Tue, Jun 07, 2016 at 11:19:37AM -0700, Steve Rae wrote: > - update fastboot_okay() and fastboot_fail() > > This file originally came from upstream code. > > While retaining the storage abstraction feature, this is the second > set of the changes required to resync with the >

Re: [U-Boot] [PULL] u-boot-atmel/master -> u-boot/master

2016-06-27 Thread Tom Rini
On Sun, Jun 26, 2016 at 08:38:41PM +0200, Andreas Bießmann wrote: > Hi Tom, > > please pull the following into u-boot/master for 2016.07. > > It contains the spl_boot_mode() change from Marek which was delegated partly > to you and partly to me on patchwork. > The rest is DT support for some

Re: [U-Boot] [U-Boot, v2, 2/5] fastboot: sparse: resync common/image-sparse.c (part 1)

2016-06-27 Thread Tom Rini
On Tue, Jun 07, 2016 at 11:19:36AM -0700, Steve Rae wrote: > This file originally came from upstream code. > > While retaining the storage abstraction feature, this is the first > set of the changes required to resync with the > cmd_flash_mmc_sparse_img() > in the file > aboot.c > from >

Re: [U-Boot] [U-Boot, v2, 1/5] fastboot: sparse: remove session-id logic

2016-06-27 Thread Tom Rini
On Tue, Jun 07, 2016 at 11:19:35AM -0700, Steve Rae wrote: > This "session-id" alogrithm is not required, and currently corrupts > the stored image whenever more the one "session" is required. > > Signed-off-by: Steve Rae Applied to u-boot/master, thanks! -- Tom

Re: [U-Boot] [PATCH] maintainers: new email address

2016-06-27 Thread Tom Rini
On Mon, Jun 27, 2016 at 04:11:32PM -0700, Steve Rae wrote: > Update the email address for the boards that I maintain. > > Signed-off-by: Steve Rae Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature

[U-Boot] [PATCH] maintainers: new email address

2016-06-27 Thread Steve Rae
Update the email address for the boards that I maintain. Signed-off-by: Steve Rae --- - motivated to do it now because of [1] which closes next Monday - Tim Kryger has been gone for ~2 years [1]

[U-Boot] [RFC PATCH v1] usb: spl: fix USB errata for FSL SPL targets

2016-06-27 Thread York Sun
Commit 9262367 moved USB errata workaround to a C file but didn't build it for SPL targets. Signed-off-by: York Sun CC: Sriram Dash CC: Rajesh Bhagat --- Please review this patch. It fixed the compiling errors introduced by

[U-Boot] [PATCH 2/4] tools/env: javadoc for fw_printenv, fw_getenv and fw_parse_script

2016-06-27 Thread Andreas Fenkart
there are two groups of functions: - application ready tools: fw_setenv/fw_getenv/fw_parse_script these are used, when creating a single binary containing multiple tools (busybox like) - file access like: open/read/write/close above functions are implemented on top of these. applications can use

[U-Boot] [PATCH 1/4] tools/env: return with error if redundant environments have unequal size

2016-06-27 Thread Andreas Fenkart
From: Andreas Fenkart For double buffering to work, the target buffer must always be big enough to hold all data. This can only be ensured if buffers are of equal size, otherwise one must be smaller and we risk data loss when copying from the bigger to the smaller buffer.

[U-Boot] [PATCH 4/4] tools/env: reuse fw_getenv in fw_printenv function

2016-06-27 Thread Andreas Fenkart
Try to avoid adhoc iteration of the environment. Reuse fw_getenv to find the variables that should be printed. Only use open-coded iteration when printing all variables. For backwards compatibility, keep emitting a newline when printing with noheader. Signed-off-by: Andreas Fenkart

[U-Boot] [PATCH 3/4] tools/env: move envmatch further up in file to avoid forward declarations

2016-06-27 Thread Andreas Fenkart
From: Andreas Fenkart forward declaration not needed when re-ordered Signed-off-by: Andreas Fenkart --- tools/env/fw_env.c | 38 ++ 1 file changed, 18 insertions(+), 20 deletions(-) diff --git

[U-Boot] [PATCH 0/4] tools/env: minor refactorings

2016-06-27 Thread Andreas Fenkart
various patches, see individual patch descriptions Andreas Fenkart (4): tools/env: return with error if redundant environments have unequal size tools/env: javadoc for fw_printenv, fw_getenv and fw_parse_script tools/env: move envmatch further up in file to avoid forward

[U-Boot] [PATCH] arm: mmc: increase MMC SDHCI read status timeout

2016-06-27 Thread Steve Rae
Otherwise, ocassionally see errors like this: Flashing sparse image at offset 2078720 Flashing Sparse Image sdhci_send_command: Timeout for status update! mmc fail to send stop cmd write_sparse_image: Write failed, block #2181088 [0] This does not affect the actual writing speed, which

Re: [U-Boot] [PATCH] nitrogen6x : Use generic distro configuration

2016-06-27 Thread Troy Kisky
On 6/24/2016 8:59 AM, Fabien Lahoudere wrote: > In order to simplify the use of various images on various media > for nitrogen6x, the configuration of the board must follow the > generic distro configuration (doc/README.distro). > > In order to boot your old rootfs, move your kernel and your

Re: [U-Boot] [PATCH 2/2] arm64: add better spin-table support

2016-06-27 Thread york sun
On 06/24/2016 09:15 PM, Masahiro Yamada wrote: > Hi York, > > 2016-06-21 1:30 GMT+09:00 york sun : >> On 06/19/2016 03:34 AM, André Przywara wrote: >>> Hi, >>> >>> On 19/06/16 09:57, Masahiro Yamada wrote: 2016-06-18 18:40 GMT+09:00 Linus Walleij :

Re: [U-Boot] [PATCH v2] include: usb: Rename USB controller base address mapping

2016-06-27 Thread york sun
On 06/16/2016 08:58 PM, Rajesh Bhagat wrote: > > >> -Original Message- >> From: york sun >> Sent: Friday, June 17, 2016 9:07 AM >> To: Rajesh Bhagat ; u-boot@lists.denx.de >> Cc: qianyu.g...@freescale.com; mingkai...@freescale.com; >> prabha...@freescale.com >>

[U-Boot] [PATCH v3 9/9] doc: Update info on using secure devices from TI

2016-06-27 Thread Andreas Dannenberg
Adds information regarding SPL handling the loading and processing of secured u-boot images as part of the second stage boot the SPL does. Introduces the description of a new interface script in the TI SECDEV Package which handles the creation and prep of secured binary images. Signed-off-by:

[U-Boot] [PATCH v3 5/9] arm: omap-common: Update to generate secure U-Boot FIT blob

2016-06-27 Thread Andreas Dannenberg
Adds commands so that when a secure device is in use and the SPL is built to load a FIT image (with combined U-Boot binary and various DTBs), these components that get fed into the FIT are all processed to be signed/encrypted/etc. as per the operations performed by the secure-binary-image.sh

[U-Boot] [PATCH v3 2/9] arm: omap-common: add secure smc entry

2016-06-27 Thread Andreas Dannenberg
From: Daniel Allred Add an interface for calling secure ROM APIs across a range of OMAP and OMAP compatible high-security (HS) device variants. While at it, also perform minor cleanup/alignment without any change in functionality. Signed-off-by: Daniel Allred

[U-Boot] [PATCH v3 3/9] arm: omap-common: add secure rom call API for secure devices

2016-06-27 Thread Andreas Dannenberg
Adds a generic C-callable API for making secure ROM calls on OMAP and OMAP-compatible devices. This API provides the important function of flushing the ROM call arguments to memory from the cache, so that the secure world will have a coherent view of those arguments. Then is simply calls the

[U-Boot] [PATCH v3 1/9] arm: cache: add missing dummy functions for when dcache disabled

2016-06-27 Thread Andreas Dannenberg
From: Daniel Allred Adds missing flush_dcache_range and invalidate_dcache_range dummy (empty) placeholder functions to the #else portion of the #ifndef CONFIG_SYS_DCACHE_OFF, where full implementations of these functions are defined. Signed-off-by: Daniel Allred

[U-Boot] [PATCH v3 0/9] Secure Boot by Authenticating/Decrypting SPL FIT blobs

2016-06-27 Thread Andreas Dannenberg
This is an updated version of a patch series that introduces a generic way to optionally post-process blobs as they get extracted by the SPL from the u-boot.img FIT image, and uses this scheme to perform some authentication/ decryption related processing on TI's high-secure (HS) SoC variants. For

[U-Boot] [PATCH v3 4/9] arm: omap-common: secure ROM signature verify API

2016-06-27 Thread Andreas Dannenberg
Adds an API that verifies a signature attached to an image (binary blob). This API is basically a entry to a secure ROM service provided by the device and accessed via an SMC call, using a particular calling convention. Signed-off-by: Daniel Allred Signed-off-by: Andreas

[U-Boot] [PATCH v3 6/9] spl: fit: add support for post-processing of images

2016-06-27 Thread Andreas Dannenberg
From: Daniel Allred The next stage boot loader image and the selected FDT can be post- processed by board/platform/device-specific code, which can include modifying the size and altering the starting source address before copying these binary blobs to their final destination.

[U-Boot] [PATCH v3 7/9] arm: omap5: add U-Boot FIT signing and SPL image post-processing

2016-06-27 Thread Andreas Dannenberg
Modify the SPL build procedure for AM57xx and DRA7xx high-security (HS) device variants to create a secure u-boot_HS.img FIT blob that contains U-Boot and DTB artifacts signed with a TI-specific process based on the CONFIG_TI_SECURE_DEVICE config option and the externally-provided image signing

[U-Boot] [PATCH v3 8/9] arm: am4x: add U-Boot FIT signing and SPL image post-processing

2016-06-27 Thread Andreas Dannenberg
From: Madan Srinivas Modify the SPL build procedure for AM437x high-security (HS) device variants to create a secure u-boot_HS.img FIT blob that contains U-Boot and DTB artifacts signed (and optionally encrypted) with a TI-specific process based on the CONFIG_TI_SECURE_DEVICE

Re: [U-Boot] u-boot-x86 sf probe fail

2016-06-27 Thread 杜睿哲_Pegatron
Hi Bin, Sorry for the late. I applied the patch and it seems to work. I'll do more tests. Thanks. Regards, Hilbert This e-mail and its attachment may contain PEGATRON Corp information that is confidential or privileged, and are solely for the use of the individual to whom this e-mail is

[U-Boot] [PATCH v2] arm64: add better and more generic spin-table support

2016-06-27 Thread Masahiro Yamada
There are two enable methods supported by ARM64 Linux; psci and spin-table. The latter is simpler and helpful for quick SoC bring up. My main motivation for this patch is to improve the spin-table support, which allows us to boot an ARMv8 system without the ARM Trusted Firmware. Currently, we

Re: [U-Boot] board/cirrus/edb93xx/edb93xx.c: "egpio" versus "epgio"?

2016-06-27 Thread Robert P. J. Day
On Mon, 27 Jun 2016, Robert P. J. Day wrote: > > possibly embarrassing myself here, but i just ran across this in > edb93xx.c, which looks ... weird, a mixture of "EGPIO" and "EPGIO" > toward the end of that source file: > > ... snip ... never mind, i just noticed that, first, the "edb"

[U-Boot] board/cirrus/edb93xx/edb93xx.c: "egpio" versus "epgio"?

2016-06-27 Thread Robert P. J. Day
possibly embarrassing myself here, but i just ran across this in edb93xx.c, which looks ... weird, a mixture of "EGPIO" and "EPGIO" toward the end of that source file: ... snip ... int board_mmc_init(bd_t *bis) { struct gpio_regs *regs = (struct gpio_regs *)GPIO_BASE;

Re: [U-Boot] [PATCH v3 10/12] libfdt: Add overlay application function

2016-06-27 Thread Maxime Ripard
Hi David, On Mon, Jun 27, 2016 at 03:26:07PM +1000, David Gibson wrote: > > +static uint32_t overlay_get_target_phandle(const void *fdto, int fragment) > > +{ > > + const uint32_t *val; > > + int len; > > + > > + val = fdt_getprop(fdto, fragment, "target", ); > > + if (!val || (*val ==

Re: [U-Boot] [PATCH v7 3/9] armv8: Add Secure Monitor/Hypervisor Call (SMC/HVC) infrastructure

2016-06-27 Thread Dirk Behme
On 25.06.2016 21:04, Mateusz Kulikowski wrote: Hi Dirk, On 23.06.2016 13:33, Dirk Behme wrote: [...] Idea: perhaps after this series is merged we can add 2 new commands to u-boot (SMC/HVC) to play with hypervisors/secure monitors (and perhaps use some simple functionality if needed). How

Re: [U-Boot] [UBOOT PATCH] usb: ehci-hcd: Fix crash when rootdev not initialized

2016-06-27 Thread Hans de Goede
Hi, On 27-06-16 10:59, Siva Durga Prasad Paladugu wrote: This patch fixes the issue on zynq USB failure with DM when rootdev is not initialized. This variable is initalized to zero in non driver model case but not in DM. Signed-off-by: Siva Durga Prasad Paladugu --- -

Re: [U-Boot] [PATCH 01/27] dm: mmc: dwmmc: Add comments to the dwmmc setup functions

2016-06-27 Thread Jaehoon Chung
Hi Simon, On 06/13/2016 02:30 PM, Simon Glass wrote: > These comments were missed when the original code was written. Add them to > help people port their drivers over. > > Signed-off-by: Simon Glass > --- > > include/dwmmc.h | 64 >

Re: [U-Boot] [PATCH 2/2] arm64: add better spin-table support

2016-06-27 Thread Andre Przywara
Hi Masahiro, On 25/06/16 05:08, Masahiro Yamada wrote: > Hi Andre, > > > 2016-06-19 19:33 GMT+09:00 André Przywara : >> Hi, >> >> On 19/06/16 09:57, Masahiro Yamada wrote: >>> 2016-06-18 18:40 GMT+09:00 Linus Walleij : On Fri, Jun 17, 2016

Re: [U-Boot] socfpga 2016.05, CV socdk Rev E1, SPL and u-boot fail when booting from QSPI

2016-06-27 Thread Christian Didriksson
Hi! > > Hi! > > On 06/27/2016 11:10 AM, Christian Didriksson wrote: > > Hi, > > > >> On 06/23/2016 06:31 PM, Sylvain Lesne wrote: > >>> On 06/23/2016 06:14 PM, Marek Vasut wrote: > On 06/23/2016 05:58 PM, Sylvain Lesne wrote: > > Hi Marek, Christian, > > Hi, > > > On

Re: [U-Boot] [PATCH 2/2] usbarmory: Add board_run_command() function

2016-06-27 Thread Stefano Babic
Hi Andrej, On 20/06/2016 18:18, Andrej Rosano wrote: >> >> I ten to NACK this. You can do exactly the same with a U-Boot script, >> and if you want to have this as default, you can change your default >> environment. This is just a wrapper around the hush shell. > > The intention of the patch

[U-Boot] [PATCH] net: designware: Make driver independent from DM_GPIO again

2016-06-27 Thread Alexey Brodkin
Commit 90b7fc924adf "net: designware: support phy reset device-tree bindings" made DW GMAC driver dependent on DM_GPIO by unconditional usage of purely DM_GPIO stuff like: * dm_gpio_XXX() * gpio_request_by_name() But since that driver as of today might be easily used without DM_GPIO (that's the

Re: [U-Boot] [PATCH 3/3] linux/io.h: add generic ioremap()/iounmap() defines

2016-06-27 Thread Daniel Schwierzeck
Am 27.06.2016 um 10:32 schrieb Masahiro Yamada: > For most of architectures in U-Boot, virtual address is straight > mapped to physical address. So, it makes sense to have generic > defines of ioremap and friends in . > > All of them are just empty and will disappear at compile time, but >

Re: [U-Boot] socfpga 2016.05, CV socdk Rev E1, SPL and u-boot fail when booting from QSPI

2016-06-27 Thread Sylvain Lesne
Hi! On 06/27/2016 11:10 AM, Christian Didriksson wrote: > Hi, > >> On 06/23/2016 06:31 PM, Sylvain Lesne wrote: >>> On 06/23/2016 06:14 PM, Marek Vasut wrote: On 06/23/2016 05:58 PM, Sylvain Lesne wrote: > Hi Marek, Christian, Hi, > On 06/23/2016 03:07 PM, Marek Vasut

Re: [U-Boot] [PATCH v3 07/12] libfdt: Add fdt_setprop_inplace_by_index

2016-06-27 Thread Maxime Ripard
On Mon, Jun 27, 2016 at 01:45:11AM +1000, David Gibson wrote: > On Fri, Jun 24, 2016 at 04:27:52PM +0200, Maxime Ripard wrote: > > Add a function to modify inplace a property starting from a given index. > > > > This is especially useful when the property is an array of values, and you > > want

Re: [U-Boot] socfpga 2016.05, CV socdk Rev E1, SPL and u-boot fail when booting from QSPI

2016-06-27 Thread Christian Didriksson
Hi, > On 06/23/2016 06:31 PM, Sylvain Lesne wrote: > > On 06/23/2016 06:14 PM, Marek Vasut wrote: > >> On 06/23/2016 05:58 PM, Sylvain Lesne wrote: > >>> Hi Marek, Christian, > >> > >> Hi, > >> > >>> On 06/23/2016 03:07 PM, Marek Vasut wrote: > On 06/22/2016 06:37 PM, Christian Didriksson

[U-Boot] [UBOOT PATCH] usb: ehci-hcd: Fix crash when rootdev not initialized

2016-06-27 Thread Siva Durga Prasad Paladugu
This patch fixes the issue on zynq USB failure with DM when rootdev is not initialized. This variable is initalized to zero in non driver model case but not in DM. Signed-off-by: Siva Durga Prasad Paladugu --- - Tested on Zynq ZC702 board with USB DM driver model patches

[U-Boot] [PATCH 0/3] Add generic ioremap / iounmap defines

2016-06-27 Thread Masahiro Yamada
I ran Buildman for the whole series, and I did not see any regression. 01: Merge branch 'master' of git://git.denx.de/u-boot-uniphier openrisc: + openrisc-generic arc: + tb100 axs101 axs103 blackfin: + bf533-stamp cm-bf527 arm: + socfpga_is1 powerpc: +

[U-Boot] [PATCH 1/3] types.h: move and redefine resource_size_t

2016-06-27 Thread Masahiro Yamada
Currently, this is only defined in arch/arm/include/asm/types.h, so move it to include/linux/types.h to make it available for all architectures. I defined it with phys_addr_t as Linux does. I needed to surround the define with #ifdef __KERNEL__ ... #endif to avoid build errors in tools building.

[U-Boot] [PATCH 2/3] arm, nds32, sh: remove useless ioremap()/iounmap() defines

2016-06-27 Thread Masahiro Yamada
These defines are valid only when iomem_valid_addr is defined, but I do not see such defines anywhere. Remove. Signed-off-by: Masahiro Yamada --- arch/arm/include/asm/io.h | 34 -- arch/nds32/include/asm/io.h | 34

[U-Boot] [PATCH 3/3] linux/io.h: add generic ioremap()/iounmap() defines

2016-06-27 Thread Masahiro Yamada
For most of architectures in U-Boot, virtual address is straight mapped to physical address. So, it makes sense to have generic defines of ioremap and friends in . All of them are just empty and will disappear at compile time, but they will be helpful to implement drivers which are counterparts

[U-Boot] [PATCH v3] rockchip: rk3288: Change method of loading u-boot

2016-06-27 Thread Ziyuan Xu
From: Xu Ziyuan If we would like to boot from SD card, we have to implement mmc driver in SPL stage, and get a slightly large spl binrary. RK3288's bootrom code has the ability to load spl and u-boot, then boot. If CONFIG_ROCKCHIP_RK3288_SPL_BACKTO_BROM is enabled, the

[U-Boot] [PATCH v3 0/6] autoboot cleanups

2016-06-27 Thread Masahiro Yamada
1/6 moves CONFIG_BOOTDELAY for a new SOCFPGA board. The rest of this series are clean-ups of autoboot code. Masahiro Yamada (6): ARM: socfpga: move CONFIG_BOOTDELAY to Kconfig for IS1 board doc: bootdelay: drop explanation about CONFIG_BOOTDELAY from README autoboot: remove

[U-Boot] [PATCH v3 3/6] autoboot: remove CONFIG_ZERO_BOOTDELAY_CHECK

2016-06-27 Thread Masahiro Yamada
As the help message of CONFIG_BOOTDELAY says, CONFIG_BOOTDELAY=-2 means the autoboot with no delay, with no abort check even if CONFIG_ZERO_BOOTDELAY_CHECK is defined. To sum up, the autoboot behaves as follows: [1] CONFIG_BOOTDELAY=0 && CONFIG_ZERO_BOOTDELAY_CHECK=y autoboot with no delay,

Re: [U-Boot] [PATCH v3 1/6] ARM: socfpga: move CONFIG_BOOTDELAY to Kconfig for IS1 board

2016-06-27 Thread Stefan Roese
On 27.06.2016 09:22, Masahiro Yamada wrote: This recently added board missed the tree-wide migration of CONFIG_BOOTDELAY. Signed-off-by: Masahiro Yamada Acked-by: Pavel Machek Reviewed-by: Heiko Schocher Reviewed-by: Stefan Roese

Re: [U-Boot] [PATCH v3 09/12] libfdt: Add fdt_getprop_namelen_w

2016-06-27 Thread Maxime Ripard
On Mon, Jun 27, 2016 at 01:49:29AM +1000, David Gibson wrote: > On Fri, Jun 24, 2016 at 04:27:54PM +0200, Maxime Ripard wrote: > > Add a function to retrieve a writeable property only by the first > > characters of its name. > > > > Signed-off-by: Maxime Ripard

Re: [U-Boot] [PATCH v3 04/12] libfdt: Add new headers and defines

2016-06-27 Thread Maxime Ripard
Hi David, On Mon, Jun 27, 2016 at 01:39:06AM +1000, David Gibson wrote: > On Fri, Jun 24, 2016 at 04:27:49PM +0200, Maxime Ripard wrote: > > The libfdt overlay support introduces a bunch of new includes and > > functions. > > > > Make sure we are able to build it by adding the needed glue. > >

[U-Boot] [PATCH v3 4/6] autoboot: rename abortboot_{keyed, normal} to __abortboot

2016-06-27 Thread Masahiro Yamada
Because abortboot_keyed() and abortboot_normal() are not compiled at the same time, we can rename both of them to __abortboot(). This allows to drop #ifdef from the caller. Signed-off-by: Masahiro Yamada Reviewed-by: Stefan Roese Reviewed-by: Simon

[U-Boot] [PATCH v3 2/6] doc: bootdelay: drop explanation about CONFIG_BOOTDELAY from README

2016-06-27 Thread Masahiro Yamada
The same information now exists in common/Kconfig. Do not duplicate documentation from the point of view of maintainability. Signed-off-by: Masahiro Yamada Reviewed-by: Simon Glass Reviewed-by: Heiko Schocher --- Changes in v3:

[U-Boot] [PATCH v3 6/6] autoboot: move bootdelay >= 0 check to abortboot()

2016-06-27 Thread Masahiro Yamada
Move the bootdelay >= 0 check to the caller, which simplifies the callees. Signed-off-by: Masahiro Yamada Reviewed-by: Stefan Roese Reviewed-by: Simon Glass Reviewed-by: Heiko Schocher --- Changes in v3: None

[U-Boot] [PATCH v3 5/6] autoboot: move CONFIG_SILENT_CONSOLE handling

2016-06-27 Thread Masahiro Yamada
Factor out the same code from the callees to the caller. Signed-off-by: Masahiro Yamada Reviewed-by: Stefan Roese Reviewed-by: Simon Glass Reviewed-by: Heiko Schocher --- Changes in v3: None Changes in v2: - Fix

[U-Boot] [PATCH v3 1/6] ARM: socfpga: move CONFIG_BOOTDELAY to Kconfig for IS1 board

2016-06-27 Thread Masahiro Yamada
This recently added board missed the tree-wide migration of CONFIG_BOOTDELAY. Signed-off-by: Masahiro Yamada Acked-by: Pavel Machek Reviewed-by: Heiko Schocher --- Changes in v3: None Changes in v2: None

Re: [U-Boot] uImage load address and entry point with Minnowboard

2016-06-27 Thread vinoth eswaran
On Fri, Jun 24, 2016 at 1:57 PM, Wolfgang Denk wrote: > Dear Vinoth, > > In message >

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

2016-06-27 Thread Minkyu Kang
Dear Tom, The following changes since commit 4141e85bcd79c0b9b16def710e527f165107b7af: kbuild: avoid race between dtbs and dt/dt.dtb targets (2016-06-24 17:24:41 -0400) are available in the git repository at: git://git.denx.de/u-boot-samsung master for you to fetch changes up to

Re: [U-Boot] [PATCH v3 10/12] libfdt: Add overlay application function

2016-06-27 Thread Maxime Ripard
Hi Simon, On Sat, Jun 25, 2016 at 08:53:58PM -0600, Simon Glass wrote: > Hi Maxime, > > On 24 June 2016 at 08:27, Maxime Ripard > wrote: > > The device tree overlays are a good way to deal with user-modifyable > > boards or boards with some kind of an expansion

Re: [U-Boot] U-boot support for FIT image with 64 bit Linux Kernel

2016-06-27 Thread vinoth eswaran
On Sun, Jun 26, 2016 at 4:53 AM, Simon Glass wrote: > > +Bin > > Hi, > > On 23 June 2016 at 08:45, vinoth eswaran wrote: > > Hello, > > > > I am working on an embedded project with the u-boot and Minnowboard > > max. With compressed kernel (bzImage)

Re: [U-Boot] [PATCH v3 12/12] tests: Introduce DT overlay tests

2016-06-27 Thread David Gibson
On Mon, Jun 27, 2016 at 08:30:28AM +0200, Maxime Ripard wrote: > Hi David, > > On Mon, Jun 27, 2016 at 03:26:58PM +1000, David Gibson wrote: > > On Fri, Jun 24, 2016 at 04:27:57PM +0200, Maxime Ripard wrote: > > > This adds a bunch of unit tests for the "fdt apply" command. > > > > > > They've

Re: [U-Boot] [PATCH v3 12/12] tests: Introduce DT overlay tests

2016-06-27 Thread Maxime Ripard
Hi David, On Mon, Jun 27, 2016 at 03:26:58PM +1000, David Gibson wrote: > On Fri, Jun 24, 2016 at 04:27:57PM +0200, Maxime Ripard wrote: > > This adds a bunch of unit tests for the "fdt apply" command. > > > > They've all been run successfully in the sandbox. However, as you still > > require an

Re: [U-Boot] [PATCH v3 00/12] cmd: fdt: Add device tree overlays support

2016-06-27 Thread Maxime Ripard
Hi David, On Mon, Jun 27, 2016 at 01:37:19AM +1000, David Gibson wrote: > On Fri, Jun 24, 2016 at 04:27:45PM +0200, Maxime Ripard wrote: > > Hi, > > > > The device tree overlays are a great solution to the issue raised by > > the bunch expandable boards we find everywhere these days, like the >

[U-Boot] [PATCH v2 5/5] tools: patman: Handle missing 'END' in non-last commit of a series

2016-06-27 Thread Bin Meng
The following python error: Traceback (most recent call last): File "./tools/patman/patman", line 144, in series = patchstream.FixPatches(series, args) File "./tools/patman/patchstream.py", line 477, in FixPatches commit = series.commits[count] IndexError: list index out of range is

[U-Boot] [PATCH v2 2/5] tools: patman: Handle tag sections without an 'END'

2016-06-27 Thread Bin Meng
'Cover-letter', 'Series-notes' and 'Commit-notes' tags require an 'END' to be put at the end of its section. If we forget to put an 'END' in those sections, and these sections are followed by another patman tag, patman generates incorrect patches. This adds codes to handle such scenario.

[U-Boot] [PATCH v2 4/5] tools: patman: Handle missing blank line for 'Series-changes'

2016-06-27 Thread Bin Meng
'Series-changes' uses blank line to indicate its end. If that is missing, series internal state variable 'in_change' may be wrong. Correct its state. Signed-off-by: Bin Meng Acked-by: Simon Glass --- Changes in v2: - Geneate warning when blank line is

[U-Boot] [PATCH v2 1/5] tools: patman: Use cover_match for 'Cover-letter'

2016-06-27 Thread Bin Meng
Like other patman tags, use a new variable cover_match to indicate a match for 'Cover-letter'. Signed-off-by: Bin Meng --- Changes in v2: - New patch to use cover_match for 'Cover-letter' tools/patman/patchstream.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)

[U-Boot] [PATCH v2 3/5] tools: patman: Generate cover letter correctly when 'END' is missing

2016-06-27 Thread Bin Meng
If 'END' is missing in a 'Cover-letter' section, and that section happens to show up at the very end of the commit message, and the commit is the last commit of the series, patman fails to generate cover letter for us. Handle this in CloseCommit of patchstream. Signed-off-by: Bin Meng

[U-Boot] [PATCH v2 0/5] tools: patman: Fixes to improve handling of various wrong usage

2016-06-27 Thread Bin Meng
This fixes several issues when abnormal tags are given to patman. For example, when we forget to put an 'END' after 'Cover-letter', patman does not handle such cases very well. This adds several additional checking to let patman be a little more tolerant on handling such exceptional paths. This

[U-Boot] Bug in cbfs

2016-06-27 Thread Yaroslav K.
Hello. Current implementation of cbfs prints incorrect file names. In the file fs/cbfs/cbfs.c there are lines swap_file_header(, fileHeader); if (header.offset < sizeof(const struct cbfs_cachenode *) || header.offset > header.len) {