Re: [U-Boot] [PATCH V4] ARM: mxs: tools: Add mkimage support for MXS bootstream

2013-08-26 Thread Stefano Babic
Hi Marek, On 25/08/2013 18:33, Marek Vasut wrote: + MODE string_mode + - Restart the CPU and start booting from device specified by the + string_mode argument. The string_mode differs for each CPU + and can be: + i.MX23, string_mode =

[U-Boot] SPL boot on iMX6

2013-08-26 Thread Tapani Utriainen
Hello all, we would like to have some comments how to architecture some patches we would like to submit. Background: We have got SPL boot working, circumventing the need to have separate u-boot binaries depending on iMX6 CPU type and memory configuration. This allows us to have one (say)

Re: [U-Boot] SPL boot on iMX6

2013-08-26 Thread Stefano Babic
Hi Tapani, On 26/08/2013 09:17, Tapani Utriainen wrote: Hello all, we would like to have some comments how to architecture some patches we would like to submit. Nice Background: We have got SPL boot working, circumventing the need to have separate u-boot binaries depending on

[U-Boot] [U-boot] legacy multi-component image format

2013-08-26 Thread TigerLiu
Hi, experts: I am studying bootm procedure. In common/image.c, boot_get_fdt() function will parse IH_TYPE_MULTI format image. But i could not find any doc describing legacy multi-component image format! Could anybody provide me a doc? Thanks a lot! Best wishes,

[U-Boot] [U-boot] zImage_dtb status

2013-08-26 Thread TigerLiu
Hi, experts: Currently, linux kernel could compile zImage with appending dtb binary. Uboot has supported bootz command. So, could bootz be used to boot zImage_dtb image? Has anybody test succefully? Best wishes, ___ U-Boot mailing list

Re: [U-Boot] [PATCH] usb: new board-specific USB init interface

2013-08-26 Thread Mateusz Zalega
On 08/22/13 21:37, Marek Vasut wrote: Dear Mateusz Zalega, The EHCI supports multi-bus thing (passing the controller *), will this be viable to pass in this case too, so the busses can be inited selectively in host/gadget functions? Hello, Marek. I need more context. Could you show me the

Re: [U-Boot] SPL boot on iMX6

2013-08-26 Thread Tapani
On Mon, 26 Aug 2013 09:42:30 +0200 Stefano Babic sba...@denx.de wrote: Hi Tapani, 1. Padconfigs. For some reason the existing padconfiguration macros are set compile time depending on target cpu variant. Hence the need to add new macros (or smth) so the binary can configure the pads

Re: [U-Boot] [PATCH v9 2/2] console: usb: kbd: To improve TFTP booting performance

2013-08-26 Thread Jim Lin
Marek, In common/usb_kbd.c, you applied code to wrong place. You should apply my change to function usb_kbd_testc(), instead of usb_kbd_getc(). Could you help to correct it? Thanks, Jim -Original Message- From: Marek Vasut [mailto:ma...@denx.de] Sent: Wednesday, August 21, 2013 12:27

[U-Boot] [PATCH 2/2] fw_env: fix writing environment for mtd devices

2013-08-26 Thread Oliver Metz
Signed-off-by: Oliver Metz oli...@freetz.org --- tools/env/fw_env.c | 71 -- 1 file changed, 42 insertions(+), 29 deletions(-) diff --git a/tools/env/fw_env.c b/tools/env/fw_env.c index 65be5f3..7454676 100644 --- a/tools/env/fw_env.c +++

[U-Boot] U-Boot RSA en/decryption

2013-08-26 Thread Or Yochanan
Hello, This is my first message to the U-Boot mailing list, so please go easy on me if my syntax is flawed.. ;) I need to use RSA decryption on my U-Boot, for a specific task i have. In order to do so - I'd like to use some of the RSA code that have been added to lib (instead of porting some

[U-Boot] [PATCH 1/2] fw_env: add redundand env support for MTD_ABSENT

2013-08-26 Thread Oliver Metz
Signed-off-by: Oliver Metz oli...@freetz.org --- tools/env/fw_env.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/env/fw_env.c b/tools/env/fw_env.c index 44607b1..65be5f3 100644 --- a/tools/env/fw_env.c +++ b/tools/env/fw_env.c @@ -1136,6 +1136,9 @@ int fw_env_open(void)

Re: [U-Boot] [PATCH v9 2/2] console: usb: kbd: To improve TFTP booting performance

2013-08-26 Thread Marek Vasut
Dear Jim Lin, Marek, In common/usb_kbd.c, you applied code to wrong place. You should apply my change to function usb_kbd_testc(), instead of usb_kbd_getc(). Could you help to correct it? I believe I applied your patches. Anyway, submit a subsequent patch against u- boot-usb/master please.

[U-Boot] [PATCHv4] Optimized nand_read_buf for kirkwood

2013-08-26 Thread Phil Sutter
From: Nico Erfurth n...@erfurth.eu The basic idea is taken from the linux-kernel, but further optimized. First align the buffer to 8 bytes, then use ldrd/strd to read and store in 8 byte quantities, then do the final bytes. Tested using: 'date ; nand read.raw 0xE0 0x0 0x1 ; date'.

[U-Boot] [PATCH 1/1] console: usb: kbd: To fix slow TFTP booting

2013-08-26 Thread Jim Lin
TFTP booting is slow when a USB keyboard is installed and stdin has usbkbd added. This fix is to change Ctrl-C polling for USB keyboard to every second when NET transfer is running. My previous patch is expected to be put into usb_kbd_testc(). But it went into usb_kbd_getc() after applied. This

Re: [U-Boot] [U-boot] CONFIG_FIT and CONFIG_OF_LIBFDT

2013-08-26 Thread Tom Rini
On Mon, Aug 26, 2013 at 10:40:27AM +0800, tiger...@viatech.com.cn wrote: Hi, Rini: CONFIG_FIT and CONFIG_OF_LIBFDT are indeed unrelated options. You can use DT files with legacy images and plain zImages as well. Thanks for your reply! I also have a question about CONFIG_OF_CONTROL. If

Re: [U-Boot] SPL boot on iMX6

2013-08-26 Thread Fabio Estevam
Hi Tapani, On Mon, Aug 26, 2013 at 4:17 AM, Tapani Utriainen tap...@technexion.com wrote: Hello all, we would like to have some comments how to architecture some patches we would like to submit. Background: We have got SPL boot working, circumventing the need to have separate u-boot

Re: [U-Boot] SPL boot on iMX6

2013-08-26 Thread Stefano Babic
Hi Tapani, On 26/08/2013 13:12, Tapani wrote: Macros wee added exactly in the time they needed, and maybe a global look was missing. However, can you provide much more detail about this ? Which macros, in which files ? The macros I refer to is the MX6_PAD_ ones. The semantics of them

[U-Boot] [PATCH 1/5] ARM: OMAP5: Power: Add new function to turn on SMPS10

2013-08-26 Thread Dan Murphy
Add new functionality to turn on SMPS10 regulator. This supplies the VBUS to devices connected to the USB host ports Signed-off-by: Dan Murphy dmur...@ti.com --- drivers/power/palmas.c | 15 +++ include/palmas.h |6 ++ 2 files changed, 21 insertions(+) diff --git

[U-Boot] OMAP5 xHCI support

2013-08-26 Thread Dan Murphy
This patch series adds the OMAP5 xHCI support. It is has dependencies on the following patches http://patchwork.ozlabs.org/patch/268797/ http://patchwork.ozlabs.org/patch/268766/ At this time the uBoot USB engine does not allow more then one stack to be enabled at a time. Since the ethernet

[U-Boot] [PATCH 3/5] USB: xHCI: Add header for readl/writel functions

2013-08-26 Thread Dan Murphy
Add the asm/io.h header to resolve implicit declaration of readl/writel Signed-off-by: Dan Murphy dmur...@ti.com --- drivers/usb/host/xhci.h |2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/host/xhci.h b/drivers/usb/host/xhci.h index 467afe0..91935f0 100644 ---

[U-Boot] [PATCH 2/5] ARM: OMAP5: Add registers and defines for USBOTG SS

2013-08-26 Thread Dan Murphy
Add the prcm registers and the bit definitions to enable the USB SS port of the OMAP5 device. Signed-off-by: Dan Murphy dmur...@ti.com --- arch/arm/cpu/armv7/omap-common/clocks-common.c |4 ++-- arch/arm/cpu/armv7/omap5/prcm-regs.c |4

Re: [U-Boot] [U-boot] legacy multi-component image format

2013-08-26 Thread Tom Rini
On Mon, Aug 26, 2013 at 04:02:50PM +0800, tiger...@viatech.com.cn wrote: Hi, experts: I am studying bootm procedure. In common/image.c, boot_get_fdt() function will parse IH_TYPE_MULTI format image. But i could not find any doc describing legacy multi-component image format!

[U-Boot] [PATCH 4/5] OMAP5: USB: Add OMAP xHCI file and header

2013-08-26 Thread Dan Murphy
Add the OMAP file for the xHCI Host controller This code will initilialize the proper components within the OMAP5 to enable the xHCI host controller. Signed-off-by: Dan Murphy dmur...@ti.com --- arch/arm/include/asm/arch-omap5/xhci-omap.h | 124 ++ drivers/usb/host/Makefile

[U-Boot] [PATCH 5/5] OMAP5-uevm: USB: Add xHCI host contoller support

2013-08-26 Thread Dan Murphy
Add the call back into the board file for to enable the SMPS10 VBUS regulator. Signed-off-by: Dan Murphy dmur...@ti.com --- board/ti/omap5_uevm/evm.c | 74 +++-- 1 file changed, 51 insertions(+), 23 deletions(-) diff --git a/board/ti/omap5_uevm/evm.c

Re: [U-Boot] SPL boot on iMX6

2013-08-26 Thread Eric Nelson
On 08/26/2013 06:33 AM, Stefano Babic wrote: Hi Tapani, On 26/08/2013 13:12, Tapani wrote: Macros wee added exactly in the time they needed, and maybe a global look was missing. However, can you provide much more detail about this ? Which macros, in which files ? The macros I refer to is

Re: [U-Boot] [PATCH 1/2] fw_env: add redundand env support for MTD_ABSENT

2013-08-26 Thread Robert P. J. Day
On Sun, 25 Aug 2013, Oliver Metz wrote: Signed-off-by: Oliver Metz oli...@freetz.org --- tools/env/fw_env.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/env/fw_env.c b/tools/env/fw_env.c index 44607b1..65be5f3 100644 --- a/tools/env/fw_env.c +++ b/tools/env/fw_env.c @@

Re: [U-Boot] U-Boot RSA en/decryption

2013-08-26 Thread Simon Glass
Hi Or, On Sun, Aug 25, 2013 at 2:28 PM, Or Yochanan o...@annapurnalabs.com wrote: Hello, This is my first message to the U-Boot mailing list, so please go easy on me if my syntax is flawed.. ;) I need to use RSA decryption on my U-Boot, for a specific task i have. In order to do so - I'd

Re: [U-Boot] [PATCHv4] Optimized nand_read_buf for kirkwood

2013-08-26 Thread Scott Wood
On Mon, 2013-08-26 at 14:10 +0200, Phil Sutter wrote: From: Nico Erfurth n...@erfurth.eu The basic idea is taken from the linux-kernel, but further optimized. First align the buffer to 8 bytes, then use ldrd/strd to read and store in 8 byte quantities, then do the final bytes. Tested

[U-Boot] [PATCH V2] spi: mxs: Configure chipselect after block reset

2013-08-26 Thread Marek Vasut
The chipselect must be written into the CTRL0 register after the SSP block is reset, otherwise the block will always use ChipSelect #0. Signed-off-by: Marek Vasut ma...@denx.de Cc: Fabio Estevam fabio.este...@freescale.com Cc: Jagannadha Sutradharudu Teki jagannadh.t...@gmail.com Cc: Otavio

Re: [U-Boot] [PATCHv4] Optimized nand_read_buf for kirkwood

2013-08-26 Thread Phil Sutter
On Mon, Aug 26, 2013 at 10:43:38AM -0500, Scott Wood wrote: On Mon, 2013-08-26 at 14:10 +0200, Phil Sutter wrote: From: Nico Erfurth n...@erfurth.eu The basic idea is taken from the linux-kernel, but further optimized. First align the buffer to 8 bytes, then use ldrd/strd to read and

Re: [U-Boot] [PATCH V2] spi: mxs: Configure chipselect after block reset

2013-08-26 Thread Stefano Babic
On 26/08/2013 17:45, Marek Vasut wrote: The chipselect must be written into the CTRL0 register after the SSP block is reset, otherwise the block will always use ChipSelect #0. Signed-off-by: Marek Vasut ma...@denx.de Cc: Fabio Estevam fabio.este...@freescale.com Cc: Jagannadha Sutradharudu

Re: [U-Boot] [PATCH v9 2/2] console: usb: kbd: To improve TFTP booting performance

2013-08-26 Thread Stephen Warren
On 08/26/2013 05:31 AM, Marek Vasut wrote: Dear Jim Lin, Marek, In common/usb_kbd.c, you applied code to wrong place. You should apply my change to function usb_kbd_testc(), instead of usb_kbd_getc(). Could you help to correct it? I believe I applied your patches. Anyway, submit a

Re: [U-Boot] [PATCHv4] Optimized nand_read_buf for kirkwood

2013-08-26 Thread Phil Sutter
On Mon, Aug 26, 2013 at 06:00:39PM +0200, Phil Sutter wrote: On Mon, Aug 26, 2013 at 10:43:38AM -0500, Scott Wood wrote: On Mon, 2013-08-26 at 14:10 +0200, Phil Sutter wrote: From: Nico Erfurth n...@erfurth.eu The basic idea is taken from the linux-kernel, but further optimized.

Re: [U-Boot] U-Boot RSA en/decryption

2013-08-26 Thread Or Yochanan
Hi Simon, and thanks for the quick reply, On 26 August 2013 18:16, Simon Glass s...@chromium.org wrote: Hi Or, On Sun, Aug 25, 2013 at 2:28 PM, Or Yochanan o...@annapurnalabs.com wrote: Hello, This is my first message to the U-Boot mailing list, so please go easy on me if my syntax

Re: [U-Boot] [PATCH v9 2/2] console: usb: kbd: To improve TFTP booting performance

2013-08-26 Thread Marek Vasut
Dear Stephen Warren, On 08/26/2013 05:31 AM, Marek Vasut wrote: Dear Jim Lin, Marek, In common/usb_kbd.c, you applied code to wrong place. You should apply my change to function usb_kbd_testc(), instead of usb_kbd_getc(). Could you help to correct it? I believe I applied your

Re: [U-Boot] U-Boot RSA en/decryption

2013-08-26 Thread Simon Glass
Hi Or, On Mon, Aug 26, 2013 at 10:18 AM, Or Yochanan o...@annapurnalabs.com wrote: Hi Simon, and thanks for the quick reply, On 26 August 2013 18:16, Simon Glass s...@chromium.org wrote: Hi Or, On Sun, Aug 25, 2013 at 2:28 PM, Or Yochanan o...@annapurnalabs.com wrote: Hello, This

Re: [U-Boot] [U-boot] CONFIG_OF_EMBED question

2013-08-26 Thread Simon Glass
Hi, On Fri, Aug 23, 2013 at 11:16 AM, Gerhard Sittig g...@denx.de wrote: On Fri, Aug 23, 2013 at 19:35 +0800, tiger...@viatech.com.cn wrote: Hi, experts: If i defined CONFIG_OF_EMBED, then: Where could i find _binary_dt_dtb_start's definition? In arch/arm/lib/board.c: gd-fdt_blob =

Re: [U-Boot] [PATCH V4] ARM: mxs: tools: Add mkimage support for MXS bootstream

2013-08-26 Thread Marek Vasut
Dear Stefano Babic, Hi Marek, On 25/08/2013 18:33, Marek Vasut wrote: + MODE string_mode + - Restart the CPU and start booting from device specified by the + string_mode argument. The string_mode differs for each CPU + and can be: + i.MX23, string_mode =

[U-Boot] [PATCH 2/2] tools: Sort lists of files in Makefile

2013-08-26 Thread Marek Vasut
Fix the lists of files so they are in order again. Signed-off-by: Marek Vasut ma...@denx.de Cc: Tom Rini tr...@ti.com Cc: Stefano Babic sba...@denx.de --- tools/Makefile | 44 ++-- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git

Re: [U-Boot] U-Boot mini-summit at ELCE 2013 in Edinburgh - call for participation!

2013-08-26 Thread Scott Wood
On Thu, 2013-08-08 at 11:24 +0200, Wolfgang Denk wrote: Hello all, I think we should bring the upcoming U-Boot mini-summit in Edinburgh back to attention - it's still more than two months, so no reason to panic yet, but as we all know, time flies like an arrow... In message

Re: [U-Boot] [PATCH 1/1] console: usb: kbd: To fix slow TFTP booting

2013-08-26 Thread Marek Vasut
Dear Jim Lin, TFTP booting is slow when a USB keyboard is installed and stdin has usbkbd added. This fix is to change Ctrl-C polling for USB keyboard to every second when NET transfer is running. My previous patch is expected to be put into usb_kbd_testc(). But it went into usb_kbd_getc()

Re: [U-Boot] [PATCH v4 0/8] ARMv7: Add HYP mode switching support

2013-08-26 Thread Christoffer Dall
On Fri, Aug 16, 2013 at 03:53:01PM +0200, Andre Przywara wrote: [...] Albert, Tom, do you need more ACKs or Reviewed-bys? Albert, Tom, Can you let us know if you will accept a pull request for these patches? They look to be in pretty good shape? Thanks! -Christoffer

[U-Boot] Help - Exynos4412 - enabling XCLKOUT with XUSBXTI clock

2013-08-26 Thread Suriyan Ramasami
Hi folks, I have an odroid u2 board. I am trying to enable usb on this device in u-boot. In the scematics, I see that the XCLKOUT is used as input REFCLK for the USB3503A controller. The Exynos4412 user manual is missing details on enabling this other than a nice picture in section 5-20

Re: [U-Boot] [PATCH v4 0/8] ARMv7: Add HYP mode switching support

2013-08-26 Thread Tom Rini
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/26/2013 04:51 PM, Christoffer Dall wrote: On Fri, Aug 16, 2013 at 03:53:01PM +0200, Andre Przywara wrote: [...] Albert, Tom, do you need more ACKs or Reviewed-bys? Albert, Tom, Can you let us know if you will accept a pull

Re: [U-Boot] [PATCH v4 0/8] ARMv7: Add HYP mode switching support

2013-08-26 Thread Christoffer Dall
On Mon, Aug 26, 2013 at 05:30:14PM -0400, Tom Rini wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/26/2013 04:51 PM, Christoffer Dall wrote: On Fri, Aug 16, 2013 at 03:53:01PM +0200, Andre Przywara wrote: [...] Albert, Tom, do you need more ACKs or Reviewed-bys?

Re: [U-Boot] [PATCH v4 0/8] ARMv7: Add HYP mode switching support

2013-08-26 Thread Tom Rini
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/26/2013 05:46 PM, Christoffer Dall wrote: On Mon, Aug 26, 2013 at 05:30:14PM -0400, Tom Rini wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/26/2013 04:51 PM, Christoffer Dall wrote: On Fri, Aug 16, 2013 at 03:53:01PM +0200,

Re: [U-Boot] [PATCH v2] Always build u-boot.img when using CONFIG_SPL_FRAMEWORK

2013-08-26 Thread Henrik Nordström
Use of uImage formatted u-boot have long been preferred, and recent changes to better support Falcon mode on MMC now enforces it on MMC. Signed-off-by: Henrik Nordstrom hen...@henriknordstrom.net --- Changes in v2: - Rebased to current master. Makefile | 1 + 1 file changed, 1 insertion(+)

[U-Boot] [PATCH] Fix problems in chip select selection in imx23, 28 spi code

2013-08-26 Thread Asok Subramanian
 Fix problems in chip select selection in imx23,28 spi code The spi function code for imx23,28 currently does not work for chip select other than 0. This is because the register HW_SSP_CTRL0 is first  reset and the code does not load the CS bits again into HW_SSP_CTRL0 after the reset. The

Re: [U-Boot] [PATCH v4 2/8] ARM: add secure monitor handler to switch to non-secure state

2013-08-26 Thread Masahiro Yamada
Hello Andre, +/* the vector table for secure state */ +_monitor_vectors: + .word 0 /* reset */ + .word 0 /* undef */ + adr pc, _secure_monitor + .word 0 + .word 0 + .word 0 + .word 0 + .word 0 + .word 0 /* pad */ Could you explain why the last line

Re: [U-Boot] [U-boot] legacy multi-component image format

2013-08-26 Thread TigerLiu
Hi, Rini; So, there's no specific documentation for it as it's described by the help on mkimage. But a real life example (since I dug one up in the past) is: $ mkimage -A arm -O linux -T multi -C none -a 80008000 -e 80008000 -n am335x-multi -d

Re: [U-Boot] [U-boot] CONFIG_FIT and CONFIG_OF_LIBFDT

2013-08-26 Thread TigerLiu
Hi,Rini: Thanks for your reply! Just use FDT as kernel parameter passed to linux kernel's entry point? That is one use, yes. But that may or may not be a recommended way to store the FDT for a platform (based on some discussion on the devicetrees mailing list, while there's no formal

Re: [U-Boot] [U-boot] CONFIG_FIT and CONFIG_OF_LIBFDT

2013-08-26 Thread Tom Rini
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/26/2013 09:32 PM, tiger...@viatech.com.cn wrote: Hi,Rini: Thanks for your reply! Just use FDT as kernel parameter passed to linux kernel's entry point? That is one use, yes. But that may or may not be a recommended way to store the FDT

[U-Boot] [U-boot] CONFIG_OF_LIBFDT and CONFIG_LMB

2013-08-26 Thread TigerLiu
Hi, experts: It seems CONFIG_OF_LIBFDT and COFIG_LMB must be defined at same time. Because boot_prep_linux() function will call boot_relocate_fdt() function. And boot_relocate_fdt() function will call lmb related function. Right? Best wishes,

[U-Boot] [i2c] Pull request

2013-08-26 Thread Heiko Schocher
Hello Tom, please pull from u-boot.-i2c.git: The following changes since commit 2b26201a2aef0b310b7c04702b0dba5dea493f77: env_nand.c: support falling back to redundant env when writing (2013-08-22 17:49:47 -0500) are available in the git repository at: git://git.denx.de/u-boot-i2c.git

Re: [U-Boot] SPL boot on iMX6

2013-08-26 Thread Tapani Utriainen
On Mon, 26 Aug 2013 15:33:56 +0200 Stefano Babic sba...@denx.de wrote: Hi Tapani, The macros I refer to is the MX6_PAD_ ones. The semantics of them depends on the target cpu. See arch/arm/include/asm/arch-mx6/mx6-pins.h Ok - these files are not thought to be used in the same binary,

[U-Boot] [Uboot][PATCH] drivers: spi: macronix: Add MX66L51235L data

2013-08-26 Thread Sourav Poddar
Add support for macronix MX66L51235L flash device. Signed-off-by: Sourav Poddar sourav.pod...@ti.com --- drivers/mtd/spi/macronix.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/drivers/mtd/spi/macronix.c b/drivers/mtd/spi/macronix.c index 70435eb..5a528c3 100644