[U-Boot] PERSIST_SECONDARY_BOOT in imx53

2013-02-26 Thread Sarvesh Gupta
Dear All, I am trying to use the redundant boot option of imx53, that is working with with freescale's v2009.08, but when I am trying it on v2013.01, system is unable to boot from secondary location(when primary is corrupted). I think it is not supporting booting from any other location except

[U-Boot] Read uEnv.txt from EXT4 partition

2013-02-26 Thread uMinded Strikes Again
I am running U-Boot 2013.01-05972-gd80f33a. When I power the board I get: ** Unrecognized filesystem type ** 206 bytes read in 21 ms (8.8 KiB/s) Loaded environment from uEnv.txt ** Unrecognized filesystem type ** ** File not found boot.scr ** ** File not found boot/boot.scr ** ** Unrecognized

[U-Boot] patch error

2013-02-26 Thread wanxs
Dear Benoît Thébaude, I git the u-boot-imx from denx.And I patch your patches,but I get error as: git apply U-Boot-v7-14-19-imx-Fix-automatic-make-targets-for-imx-images.patch error: error: patch failed: Makefile:486 error: Makefile: patch does not apply How can i do?

[U-Boot] patch error

2013-02-26 Thread wanxs
Dear Marek Vasut, Thanks for your patches.But when I patch them to my u-boot,I get a error. I get u-boot-imx from denx. git apply U-Boot-1-4-common-imx-Implement-generic-u-boot.nand-target.patch error: patch failed: Makefile:470 error: Makefile: patch does not apply error: patch

[U-Boot] [u-boot-mips] gp init and -pie option

2013-02-26 Thread Juhyun (Justin) Oh
Hi, I got a problem while I was trying out v2013.01.01 on the u-boot-mips fork repo. It looks like my u-boot binary built with -pie linker option doesn't work due to wrong gp initialization. In the start.S file, the gp is supposed to be initialized with _gp because ra will hold the address of

Re: [U-Boot] [u-boot-mips] gp init and -pie option

2013-02-26 Thread Daniel Schwierzeck
2013/2/25 Juhyun (Justin) Oh juhyun...@sigmadesigns.com: Hi, I got a problem while I was trying out v2013.01.01 on the u-boot-mips fork repo. It looks like my u-boot binary built with -pie linker option doesn't work due to wrong gp initialization. In the start.S file, the gp is supposed

[U-Boot] Flash protection and fw_setenv tool

2013-02-26 Thread Waibel Georg
Hi, I activated flash sector protection for our CFI NOR flash chip (CONFIG_SYS_FLASH_PROTECTION). Protection bits for U-Boot code sectors and environment sector are set by default during U-Boot startup. Thus from Linux, I cannot write to this sectors, which is generally a correct behavior.

[U-Boot] [U-boot] unicode support

2013-02-26 Thread TigerLiu
Hi, experts: Does u-boot supports Unicode language characters display? Such as : Eastern asia language? Best wishes, ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

[U-Boot] [U-boot] unicode support

2013-02-26 Thread TigerLiu
Hi, experts: Does u-boot supports Unicode language characters display? Such as : Eastern asia language? Best wishes, ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] patch error

2013-02-26 Thread Benoît Thébaudeau
Dear wanxs, On Tuesday, February 26, 2013 2:06:29 AM, wanxs wrote: Dear Marek Vasut, Thanks for your patches.But when I patch them to my u-boot,I get a error. I get u-boot-imx from denx. git apply U-Boot-1-4-common-imx-Implement-generic-u-boot.nand-target.patch error: patch

Re: [U-Boot] [PATCH 1/4] common: imx: Implement generic u-boot.nand target

2013-02-26 Thread Benoît Thébaudeau
On Tuesday, February 26, 2013 8:19:42 AM, Marek Vasut wrote: Dear Benoît Thébaudeau, Dear Scott Wood, On Tuesday, February 26, 2013 12:07:25 AM, Scott Wood wrote: On 02/25/2013 05:03:30 PM, Marek Vasut wrote: Dear Scott Wood, So maybe we need a more general (but

[U-Boot] problem to boot i.MX28 custom platform

2013-02-26 Thread Hector Palacios
Greetings, I'm porting a custom platform based on mx28evk to latest U-Boot. I modified the iomux.c for my platform (different DUART pins) and made some changes to mxs_adjust_memory_params() to accommodate to my DRAM chip. I built the u-boot.sb. The platform however does not boot either from

Re: [U-Boot] Flash protection and fw_setenv tool

2013-02-26 Thread Waibel Georg
Hi again, the previous patch missed some places to apply the unprotect switch. Here's an improved version: Index: common/env_flash.c === --- common/env_flash.c (revision 4065) +++ common/env_flash.c (working copy) @@ -218,9

Re: [U-Boot] [PATCH v3] Introduced btrfs file-system with btrload command

2013-02-26 Thread Adnan Ali
On 25/02/13 23:02, Simon Glass wrote: Hi, On Mon, Feb 25, 2013 at 7:04 AM, Tom Rini tr...@ti.com wrote: On Mon, Feb 25, 2013 at 12:24:37PM +, Adnan Ali wrote: Introduces btrfs file-system to read file from volume/sub-volumes with btrload command. This implementation has read-only

Re: [U-Boot] [PATCH v7 04/19] imx: mx53ard: Add support for NAND Flash

2013-02-26 Thread Fabio Estevam
Hi Benoit, On Fri, Feb 15, 2013 at 6:54 PM, Benoît Thébaudeau benoit.thebaud...@advansee.com wrote: Add support for the Samsung K9LAG08U0M NAND Flash (2-GiB MLC NAND Flash, 2-kiB pages, 256-kiB blocks, 30-ns R/W cycles, 1 CS) on mx53ard. eNFC_CLK_ROOT is set up with a cycle time of 37.5 ns

Re: [U-Boot] [PATCH v7 04/19] imx: mx53ard: Add support for NAND Flash

2013-02-26 Thread Fabio Estevam
On Tue, Feb 26, 2013 at 10:22 AM, Fabio Estevam feste...@gmail.com wrote: Hi Benoit, On Fri, Feb 15, 2013 at 6:54 PM, Benoît Thébaudeau benoit.thebaud...@advansee.com wrote: Add support for the Samsung K9LAG08U0M NAND Flash (2-GiB MLC NAND Flash, 2-kiB pages, 256-kiB blocks, 30-ns R/W

Re: [U-Boot] [PATCH 4/4] mx5: Add support for DENX M53EVK

2013-02-26 Thread Fabio Estevam
On Mon, Feb 25, 2013 at 3:24 PM, Marek Vasut ma...@denx.de wrote: +int print_cpuinfo(void) +{ + u32 cpurev; + + cpurev = get_cpu_rev(); + printf(CPU: Freescale i.MX%x family rev%d.%d at %d MHz\n, + (cpurev 0xFF000) 12, + (cpurev 0x000F0)

Re: [U-Boot] Flash protection and fw_setenv tool

2013-02-26 Thread Eibach, Dirk
Hi Georg, maybe removing CONFIG_SYS_FLASH_PROTECTION from your configuration does already what you want to achieve. BTW Linux support should be available here: http://patchwork.ozlabs.org/patch/213602/ Cheers Dirk -Original Message- From: u-boot-boun...@lists.denx.de

Re: [U-Boot] [PATCH v7 04/19] imx: mx53ard: Add support for NAND Flash

2013-02-26 Thread Fabio Estevam
Hi Benoît, On Tue, Feb 26, 2013 at 10:35 AM, Fabio Estevam feste...@gmail.com wrote: Yes, after using the same IOMUX from FSL U-boot I get: NAND: NAND device: Manufacturer ID: 0xec, Chip ID: 0xd5 (Samsung NAND 2GiB 3,3) NAND bus width 16 instead 8 bit No NAND device found!!! 0 MiB This

[U-Boot] [PATCH] bootm: fix conditional compilation for bootm ramdisk subcommand

2013-02-26 Thread Daniel Schwierzeck
All code related to the bootm ramdisk subcommand is conditionally enabled by CONFIG_SYS_BOOT_RAMDISK_HIGH except for the help message. Replace the CONFIG_ARCH defines by CONFIG_SYS_BOOT_RAMDISK_HIGH to fix this. Signed-off-by: Daniel Schwierzeck daniel.schwierz...@gmail.com ---

Re: [U-Boot] Flash protection and fw_setenv tool

2013-02-26 Thread Waibel Georg
Hi Dirk, I enabled the flash protection to protect the UBoot from being overwritten, since this means that customers need to send back the device for reprogramming the UBoot (without a valid bootloader, our MPC5200 target can only be accesses by a programmer like the BDI2000 debugger). Thus for

[U-Boot] Remounting UBI image leads to ECC errors

2013-02-26 Thread Mark Jackson
We have a custom made AM335x board I'm working on and I have encountered a problem when mounting an ubifs image from nand. If I ... (1) Write an ubifs image to nand (2) Mount the ubifs image (3) Repeat step (2) ... this then corrupts the ubifs image. Below is a full log. Can anyone help ?

Re: [U-Boot] [PATCH v7 02/19] nand: mxc: Add support for i.MX5

2013-02-26 Thread Fabio Estevam
Benoit, On Fri, Feb 15, 2013 at 6:54 PM, Benoît Thébaudeau benoit.thebaud...@advansee.com wrote: +#elif defined(CONFIG_MX51) || defined(CONFIG_MX53) +static int is_16bit_nand(void) +{ + struct src *src = (struct src *)SRC_BASE_ADDR; + + if (readl(src-sbmr) SRC_SBMR_NF16B) +

[U-Boot] [PATCH v2 0/4] Add NAND support to DFU

2013-02-26 Thread Tom Rini
Hey all, This is a v2 of Pantelis' DFU for NAND patches. Based on Scott's feedback on the list as well as some further discussion, things have been reworked so that we are not using the command interface but instead calling nand_(read|write)_skip_bad directly. This needed some changes to that

[U-Boot] [PATCH v2 1/4] nand: Extend nand_(read|write)_skip_bad with *actual and limit parameters

2013-02-26 Thread Tom Rini
We make these two functions take a size_t pointer to how much space was used on NAND to read or write the buffer (when reads/writes happen) so that bad blocks can be accounted for. We also make them take an loff_t limit on how much data can be read or written. This means that we can now catch

[U-Boot] [PATCH v2 3/4] am335x_evm: Add CONFIG_CMD_MTDPARTS and relevant defaults

2013-02-26 Thread Tom Rini
Signed-off-by: Tom Rini tr...@ti.com --- include/configs/am335x_evm.h |9 + 1 file changed, 9 insertions(+) diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h index 59647d1..61b861d 100644 --- a/include/configs/am335x_evm.h +++ b/include/configs/am335x_evm.h @@

[U-Boot] [PATCH v2 2/4] dfu: NAND specific routines for DFU operation

2013-02-26 Thread Tom Rini
From: Pantelis Antoniou pa...@antoniou-consulting.com Support for NAND storage devices to work with the DFU framework. --- Changes in v2: Use nand_(read|write)_skip_bad directly rather than abusing run_command. Reword a comment in nand_block_op and commit message. Initalize bad_skip on start.

[U-Boot] [PATCH v2 4/4] am335x_evm: Enable DFU for NAND and MMC, provide example alt_info for both

2013-02-26 Thread Tom Rini
From: Pantelis Antoniou pa...@antoniou-consulting.com - Add CONFIG_DFU_NAND - Set dfu_alt_info_nand and dfu_alt_info_mmc to show a working example for both. - Increase CONFIG_SYS_MAXARGS due to hush parsing bugs that would otherwise disallow 'setenv dfu_alt_info ${dfu_alt_info_nand}'. -

[U-Boot] [PATCH v3 02/16] at91: Correct CONFIG_AUTOBOOT_PROMPT definition for pm9263

2013-02-26 Thread Simon Glass
This is not currently used, since autoboot is not enabled for this board, but the string is missing a parameter. Add it. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: None Changes in v2: None include/configs/pm9263.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[U-Boot] [PATCH v3 01/16] Implement autoconf header file

2013-02-26 Thread Simon Glass
Add support for generating an autoconf.h header file that can be used in the source instead of #ifdef. For example, instead of: #ifdef CONFIG_VERSION_VARIABLE setenv(ver, version_string); /* set version variable */ #endif you can do: if (autoconf_version_variable())

[U-Boot] [PATCH v3 03/16] net: Add prototype for update_tftp, and use autoconf

2013-02-26 Thread Simon Glass
This function should be declared in net.h. At the same time, let's use autoconf instead of #ifdef for its inclusion. Signed-off-by: Simon Glass s...@chromium.org Acked-by: Joe Hershberger joe.hershber...@ni.com --- Changes in v3: None Changes in v2: None common/cmd_fitupd.c | 3 +--

[U-Boot] [PATCH v3 06/16] main: Use autoconf for boot retry feature

2013-02-26 Thread Simon Glass
Change this feature to use autoconf instead of #ifdef. Signed-off-by: Simon Glass s...@chromium.org Reviewed-by: Joe Hershberger joe.hershber...@ni.com --- Changes in v3: - Fix missing in if() statement - Remove unneeded retry_min variable Changes in v2: None common/main.c | 73

[U-Boot] [PATCH v3 04/16] main: Separate out the two abortboot() functions

2013-02-26 Thread Simon Glass
There are two implementations of abortboot(). Turn these into two separate functions, and create a single abortboot() which calls either one or the other. Also it seems that nothing uses abortboot() outside main, so make it static. At this point there is no further use of CONFIG_MENU in main.c.

[U-Boot] [PATCH v3 15/16] main: Add debug_parser() to avoid #ifdefs

2013-02-26 Thread Simon Glass
Define a simple debug condition at the top of the file, to avoid using lots of #ifdefs later on. Signed-off-by: Simon Glass s...@chromium.org Reviewed-by: Joe Hershberger joe.hershber...@ni.com --- Changes in v3: None Changes in v2: None common/main.c | 58

[U-Boot] [PATCH v3 11/16] main: Fix typos and checkpatch warnings in command line reading

2013-02-26 Thread Simon Glass
There are a few over-long lines and other checkpatch problems in this area of the code. Prepare the ground for the next patch by tidying these up. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: - Separate out checkpatch fixes in command line reading code into new patch Changes

[U-Boot] [PATCH v3 12/16] main: Use autoconf in command line reading

2013-02-26 Thread Simon Glass
Remove #ifdefs in favour of autoconf for this code. This involves removing a few unnecessary #ifdefs in headers also. We have two versions of the code - one that handles command line editing and one that is just a simple implementation. Create a new function called readline_into_buffer() which

[U-Boot] [PATCH v3 16/16] main: Add debug_bootkeys to avoid #ifdefs

2013-02-26 Thread Simon Glass
Define a simple debug condition at the top of the file, to avoid using lots of #ifdefs later on. Signed-off-by: Simon Glass s...@chromium.org Reviewed-by: Joe Hershberger joe.hershber...@ni.com --- Changes in v3: None Changes in v2: None common/main.c | 19 +-- 1 file changed, 9

[U-Boot] [PATCH v3 07/16] main: Remove CONFIG #ifdefs from the abortboot() code

2013-02-26 Thread Simon Glass
Move this code over to using autoconf. We can add the autoconf values to the delaykey[] array, and move the code that checks for autoconf values into the loop. Also change to using ARRAY_SIZE on delaykey[]. Signed-off-by: Simon Glass s...@chromium.org Reviewed-by: Joe Hershberger

[U-Boot] [PATCH v3 10/16] main: Use autoconf for parser selection

2013-02-26 Thread Simon Glass
Allow parser selection to make use of autoconf instead of #ifdefs. This requires us to make header includes unconditional, but this is simpler anyway. Signed-off-by: Simon Glass s...@chromium.org Reviewed-by: Joe Hershberger joe.hershber...@ni.com --- Changes in v3: None Changes in v2: None

[U-Boot] [PATCH v3 09/16] main: Use autoconf for boot_delay code

2013-02-26 Thread Simon Glass
Convert this function and its children to use autoconf instead of #ifdef. Some header files must now be included unconditionally, so remove some of the #ifdefs from the header section, and put these header files into the right order. Signed-off-by: Simon Glass s...@chromium.org --- Changes in

[U-Boot] [PATCH v3 13/16] main: Use autoconf in main_loop()

2013-02-26 Thread Simon Glass
Convert main_loop() over to use autoconf, and add a required prototype to common.h. The do_mdm_init variable is now always defined, but this seems like an acceptable compromise. In fdt_support.h the #ifdef used is CONFIG_OF_LIBFDT. However, even if this is not defined we want to make the

[U-Boot] [PATCH v3 08/16] main: Use get/setenv_ulong()

2013-02-26 Thread Simon Glass
These functions are now available, so use them to avoid extra code here. Signed-off-by: Simon Glass s...@chromium.org Reviewed-by: Joe Hershberger joe.hershber...@ni.com --- Changes in v3: None Changes in v2: None common/main.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff

[U-Boot] [PATCH v3 14/16] main: Correct header order

2013-02-26 Thread Simon Glass
The headers are a bit out of order, so fix them. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: None Changes in v2: None common/main.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/common/main.c b/common/main.c index cd068e7..a464620 100644 ---

[U-Boot] [PATCH v3 05/16] main: Move boot_delay code into its own function

2013-02-26 Thread Simon Glass
Move this code into its own function, since it clutters up main_loop(). Signed-off-by: Simon Glass s...@chromium.org Reviewed-by: Joe Hershberger joe.hershber...@ni.com --- Changes in v3: None Changes in v2: None common/main.c | 155 ++ 1

Re: [U-Boot] [PATCH v7 02/19] nand: mxc: Add support for i.MX5

2013-02-26 Thread Benoît Thébaudeau
Hi Fabio, On Tuesday, February 26, 2013 4:33:20 PM, Fabio Estevam wrote: Benoit, On Fri, Feb 15, 2013 at 6:54 PM, Benoît Thébaudeau benoit.thebaud...@advansee.com wrote: +#elif defined(CONFIG_MX51) || defined(CONFIG_MX53) +static int is_16bit_nand(void) +{ + struct src *src =

Re: [U-Boot] [PATCH v3] Introduced btrfs file-system with btrload command

2013-02-26 Thread Simon Glass
Hi Adnan, On Tue, Feb 26, 2013 at 4:54 AM, Adnan Ali adnan@codethink.co.uk wrote: On 25/02/13 23:02, Simon Glass wrote: Hi, On Mon, Feb 25, 2013 at 7:04 AM, Tom Rini tr...@ti.com wrote: On Mon, Feb 25, 2013 at 12:24:37PM +, Adnan Ali wrote: Introduces btrfs file-system to read

Re: [U-Boot] [PATCH v7 02/19] nand: mxc: Add support for i.MX5

2013-02-26 Thread Fabio Estevam
On Tue, Feb 26, 2013 at 1:08 PM, Benoît Thébaudeau benoit.thebaud...@advansee.com wrote: This boot pin / fuse config has been used by this driver for all i.MX platforms from the beginning. I don't think that we really need one more software config here. This is hardware stuff, and the i.MX

[U-Boot] Netgear switch Prosafe GSM7328SO not working after Reset from Uboot

2013-02-26 Thread Sohaib Ayub
I have Netgear Prosafe GSM7328SO switch with uboot as boot loader.I connected this switch to my computer with serial cable (ttyS0 with 115200 8N1). I was able to login to switch and switch was working fine. In U-boot menu, i entered 'reset' command. After that i am unable to connect to the switch.

[U-Boot] [PATCH v3 0/16] Provide a mechanism to avoid using #ifdef everywhere

2013-02-26 Thread Simon Glass
Many parts of the U-Boot code base are sprinkled with #ifdefs. This makes different boards compile different versions of the source code, meaning that we must build all boards to check for failures. It is easy to misspell an #ifdef and there is not as much checking of this by the compiler.

Re: [U-Boot] [PATCH v7 02/19] nand: mxc: Add support for i.MX5

2013-02-26 Thread Benoît Thébaudeau
Hi Fabio, On Tuesday, February 26, 2013 5:35:28 PM, Fabio Estevam wrote: On Tue, Feb 26, 2013 at 1:08 PM, Benoît Thébaudeau benoit.thebaud...@advansee.com wrote: This boot pin / fuse config has been used by this driver for all i.MX platforms from the beginning. I don't think that we

Re: [U-Boot] [PATCH v7 04/19] imx: mx53ard: Add support for NAND Flash

2013-02-26 Thread Benoît Thébaudeau
Hi Fabio, On Tuesday, February 26, 2013 3:21:25 PM, Fabio Estevam wrote: Hi Benoît, On Tue, Feb 26, 2013 at 10:35 AM, Fabio Estevam feste...@gmail.com wrote: Yes, after using the same IOMUX from FSL U-boot I get: NAND: NAND device: Manufacturer ID: 0xec, Chip ID: 0xd5 (Samsung NAND

Re: [U-Boot] [PATCH v7 02/19] nand: mxc: Add support for i.MX5

2013-02-26 Thread Fabio Estevam
On Tue, Feb 26, 2013 at 1:49 PM, Benoît Thébaudeau benoit.thebaud...@advansee.com wrote: Hi Fabio, On Tuesday, February 26, 2013 5:35:28 PM, Fabio Estevam wrote: On Tue, Feb 26, 2013 at 1:08 PM, Benoît Thébaudeau benoit.thebaud...@advansee.com wrote: This boot pin / fuse config has been

Re: [U-Boot] [PATCH v7 02/19] nand: mxc: Add support for i.MX5

2013-02-26 Thread Benoît Thébaudeau
Hi Fabio, On Tuesday, February 26, 2013 6:03:56 PM, Fabio Estevam wrote: On Tue, Feb 26, 2013 at 1:49 PM, Benoît Thébaudeau benoit.thebaud...@advansee.com wrote: Hi Fabio, On Tuesday, February 26, 2013 5:35:28 PM, Fabio Estevam wrote: On Tue, Feb 26, 2013 at 1:08 PM, Benoît Thébaudeau

Re: [U-Boot] [PATCH v7 04/19] imx: mx53ard: Add support for NAND Flash

2013-02-26 Thread Fabio Estevam
On Tue, Feb 26, 2013 at 1:53 PM, Benoît Thébaudeau benoit.thebaud...@advansee.com wrote: OK. Please update all boards using mxc_nand. Yes, will send a patch soon. I was able to read and write to NAND, I have also tested to save env vars into NAND and it works fine. Great! Thanks for

[U-Boot] [PATCH] Tegra: Add twarren as maintainer for Tegra30 and Tegra114 SoCs

2013-02-26 Thread Tom Warren
Signed-off-by: Tom Warren twar...@nvidia.com --- MAINTAINERS |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 175bbe2..feaca34 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -976,6 +976,8 @@ Tom Warren twar...@nvidia.com harmony

Re: [U-Boot] [PATCH] Tegra: Add twarren as maintainer for Tegra30 and Tegra114 SoCs

2013-02-26 Thread Stephen Warren
On 02/26/2013 10:59 AM, Tom Warren wrote: Signed-off-by: Tom Warren twar...@nvidia.com Commit description is always useful, but, Reviewed-by: Stephen Warren swar...@nvidia.com ___ U-Boot mailing list U-Boot@lists.denx.de

Re: [U-Boot] [u-boot-mips] gp init and -pie option

2013-02-26 Thread Juhyun (Justin) Oh
HI Daniel, I'm using CodeSourcery 4.5.2. I've configured and have built the code for incaip board and dbau1000. The results are the same. (i.e. gp has been set with wrong value) Could you tell me the CodeSourcery toolchain versions known to be working? I'd like to try out the same version.

[U-Boot] [PATCH 2/2] mtd: nand: mxc_nand: Fix is_16bit_nand()

2013-02-26 Thread Fabio Estevam
Currently is_16bit_nand() is a per SoC function and it decides the bus nand width by reading some boot related registers. This method works when NAND is the boot medium, but does not work if another boot medium is used. For example: booting from a SD card and then using NAND to store the

[U-Boot] [PATCH 1/2] mtd: nand: Introduce CONFIG_SYS_NAND_BUSWIDTH_16BIT

2013-02-26 Thread Fabio Estevam
Introduce CONFIG_SYS_NAND_BUSWIDTH_16BIT option so that any NAND controller driver could use it when a 16-bit NAND is deployed. drivers/mtd/nand/ndfc has CONFIG_SYS_NDFC_16BIT, so just rename it, so that other NAND drivers could reuse the same symbol. Signed-off-by: Fabio Estevam

[U-Boot] [PATCH v2 1/2] mtd: nand: Introduce CONFIG_SYS_NAND_BUSWIDTH_16BIT

2013-02-26 Thread Fabio Estevam
Introduce CONFIG_SYS_NAND_BUSWIDTH_16BIT option so that other NAND controller drivers could use it when a 16-bit NAND is deployed. drivers/mtd/nand/ndfc has CONFIG_SYS_NDFC_16BIT, so just rename it, so that other NAND drivers could reuse the same symbol. Signed-off-by: Fabio Estevam

[U-Boot] [PATCH v2 2/2] mtd: nand: mxc_nand: Fix is_16bit_nand()

2013-02-26 Thread Fabio Estevam
Currently is_16bit_nand() is a per SoC function and it decides the bus nand width by reading some boot related registers. This method works when NAND is the boot medium, but does not work if another boot medium is used. For example: booting from a SD card and then using NAND to store the

Re: [U-Boot] [PATCH 1/2] mtd: nand: Introduce CONFIG_SYS_NAND_BUSWIDTH_16BIT

2013-02-26 Thread Scott Wood
On 02/26/2013 12:17:01 PM, Fabio Estevam wrote: Introduce CONFIG_SYS_NAND_BUSWIDTH_16BIT option so that any NAND controller driver could use it when a 16-bit NAND is deployed. drivers/mtd/nand/ndfc has CONFIG_SYS_NDFC_16BIT, so just rename it, so that other NAND drivers could reuse the

Re: [U-Boot] [PATCH v2 2/2] mtd: nand: mxc_nand: Fix is_16bit_nand()

2013-02-26 Thread Benoît Thébaudeau
Hi Fabio, On Tuesday, February 26, 2013 7:35:20 PM, Fabio Estevam wrote: Currently is_16bit_nand() is a per SoC function and it decides the bus nand width by reading some boot related registers. This method works when NAND is the boot medium, but does not work if another boot medium is

Re: [U-Boot] [PATCH v2 2/2] mtd: nand: mxc_nand: Fix is_16bit_nand()

2013-02-26 Thread Fabio Estevam
On Tue, Feb 26, 2013 at 3:47 PM, Benoît Thébaudeau benoit.thebaud...@advansee.com wrote: That's correct. is_16bit_nand() is only used to conditionally set NAND_BUSWIDTH_16 in this-options, then this flag is tested everywhere else, so we could also completely drop is_16bit_nand() and just do:

Re: [U-Boot] [PATCH 4/4] mx5: Add support for DENX M53EVK

2013-02-26 Thread Fabio Estevam
Hi Marek, On Mon, Feb 25, 2013 at 3:24 PM, Marek Vasut ma...@denx.de wrote: +/* + * Boot Device : one of + * spi, sd, nand + */ +BOOT_FROM nand Just curious: which method did you use to flash the final binary into the NAND? Did you boot the kernel and used mtd-utils? Maybe we could

Re: [U-Boot] [u-boot-mips] gp init and -pie option

2013-02-26 Thread Michael Cashwell
Not to hijack this thread, but I've had trouble with recent (2013.01 and perhaps the last 2012) mainline u-boots for Pandaboard when built using recent Codesourcery Lite tools. I've found that arm-2009q1 and arm-2010q1 work but arm-2012.03 and arm-2012.09 do not. SPL works but u-boot hangs very

Re: [U-Boot] [u-boot-mips] gp init and -pie option

2013-02-26 Thread Juhyun (Justin) Oh
Hi Michael, I'm not working on ARM, but on MIPS. Your problem is certainly different from mine. Hi Daniel, I've tried out gcc version 4.6.3 (Sourcery CodeBench Lite 2012.03-63), and this version initialize gp register properly. Thanks, Justin

Re: [U-Boot] [u-boot-mips] gp init and -pie option

2013-02-26 Thread Daniel Schwierzeck
Hi, 2013/2/26 Juhyun (Justin) Oh juhyun...@sigmadesigns.com: HI Daniel, I'm using CodeSourcery 4.5.2. I've configured and have built the code for incaip board and dbau1000. The results are the same. (i.e. gp has been set with wrong value) Could you tell me the CodeSourcery toolchain

[U-Boot] [PATCH 0/5] Tegra30: MMC: Add DT-based MMC driver for Tegra30/Cardhu

2013-02-26 Thread Tom Warren
This patchset adds SDMMC device-tree support to the Tegra30 dts files, and enables the Tegra MMC driver on Tegra30 Cardhu. I've tested this on my Cardhu-A04 and everything works fine, including card detect. All Tegra boards also build w/o error, and Seaboard MMC functionality is unchanged. Tom

[U-Boot] [PATCH 1/5] Tegra30: fdt: Add SDMMC (sdhci) nodes for T30 boards (Cardhu for now)

2013-02-26 Thread Tom Warren
Took these values directly from the kernel dts files. Signed-off-by: Tom Warren twar...@nvidia.com --- arch/arm/dts/tegra30.dtsi | 32 board/nvidia/dts/tegra30-cardhu.dts | 15 +++ 2 files changed, 47 insertions(+), 0 deletions(-) diff

[U-Boot] [PATCH 2/5] Tegra: MMC: Added/update SDMMC registers/base addresses for T20/T30

2013-02-26 Thread Tom Warren
Moved SDMMC base addresses into each SoC's main header, since they differ. Added pad control settings for T30 from the TRM, and added additional vendor-specific SD/MMC registers and bus power defines. Signed-off-by: Tom Warren twar...@nvidia.com --- arch/arm/include/asm/arch-tegra/tegra_mmc.h

[U-Boot] [PATCH 3/5] Tegra30: MMC: Add SD bus power-rail and SDMMC pad init routines

2013-02-26 Thread Tom Warren
T30 requires specific SDMMC pad programming, and bus power-rail bringup. Signed-off-by: Tom Warren twar...@nvidia.com --- board/nvidia/cardhu/cardhu.c | 49 + board/nvidia/common/board.c | 50 +- 2 files

[U-Boot] [PATCH 4/5] mmc: Tegra: Add SD bus power/voltage function and MMC pad init call.

2013-02-26 Thread Tom Warren
Tegra30 requires the SD Bus Voltage Power bits be set in the SD Power Control register. Tegra20 works w/o them set, but do it anyway for those SoCs as it's part of the SD spec. Also call a common board pad init routine (pad_init_mmc) in mmc_reset(), used by Tegra30 only for now. Signed-off-by:

[U-Boot] [PATCH 5/5] Tegra30: MMC: Enable DT MMC driver support for Tegra30 Cardhu boards

2013-02-26 Thread Tom Warren
Tested on my Cardhu-A04 tablet, eMMC and SD-Card work fine, can load a kernel off of an SD card OK, card detect works, and the env is now stored in eMMC (end of the 2nd 'boot' sector, same as Tegra20). Signed-off-by: Tom Warren twar...@nvidia.com --- include/configs/cardhu.h | 20

[U-Boot] [PATCH 1/2] am335x_evm: Never set CONFIG_EXTRA_ENV_SETTINGS in SPL

2013-02-26 Thread Tom Rini
Because of our support for network-based SPL, we don't discard all of the environment related functions. We however never make use of the default CONFIG_EXTRA_ENV_SETTINGS items and as this variable grows, it brings us closer to (or with some toolchains, over) our SPL size limit. Never set this

[U-Boot] [PATCH 2/2] am335x_evm: Add am335x_evm_usbspl build target

2013-02-26 Thread Tom Rini
We add USB (RNDIS gadget) SPL support as a separate target. We need to pull out YMODEM support in order to be a small enough target binary. Signed-off-by: Tom Rini tr...@ti.com --- board/ti/am335x/board.c |2 +- boards.cfg |1 + include/configs/am335x_evm.h |4

[U-Boot] [PATCH] am33xx: Update DDR3 EMIF configuration sequence

2013-02-26 Thread Tom Rini
Based on http://processors.wiki.ti.com/index.php/AM335x_EMIF_Configuration_tips we need to re-work our sequence in config_sdram slightly to match what the TRM describes as the correct sequence. In our current (incorrect) sequence some edge cases may fail to initalize correctly. Signed-off-by:

[U-Boot] Pull request: nand flash

2013-02-26 Thread Scott Wood
The following changes since commit 47104c37de076e2be35ae1b3d144614f4d24a766: MAKEALL: add support for per architecture toolchains (2013-02-20 09:40:34 -0500) are available in the git repository at: git://git.denx.de/u-boot-nand-flash.git master for you to fetch changes up to

Re: [U-Boot] [u-boot-mips] gp init and -pie option

2013-02-26 Thread Juhyun (Justin) Oh
Hi Daniel, I've verified that the CodeSourcery 4.5.2 and 4.6.3 generate the correct _gp as you mentioned. Thanks, Justin From: Daniel Schwierzeck [daniel.schwierz...@gmail.com] Sent: Tuesday, February 26, 2013 12:34 PM To: Juhyun (Justin) Oh Cc:

[U-Boot] [PATCH] Tegra114: fdt: Sync DT nodes with kernel DT files (GPIO, tegra_car)

2013-02-26 Thread Tom Warren
Minor edit to tegra_car node, add gpio node. Signed-off-by: Tom Warren twar...@nvidia.com --- arch/arm/dts/tegra114.dtsi | 21 +++-- 1 files changed, 19 insertions(+), 2 deletions(-) diff --git a/arch/arm/dts/tegra114.dtsi b/arch/arm/dts/tegra114.dtsi index f0f82de..6c85fb0

[U-Boot] [PATCH] Tegra: Remove unused CONFIG_SYS_CPU_OSC_FREQUENCY define

2013-02-26 Thread Tom Warren
This wasn't used anywhere in any Tegra build. Signed-off-by: Tom Warren twar...@nvidia.com --- include/configs/tegra-common.h |8 +++- 1 files changed, 3 insertions(+), 5 deletions(-) diff --git a/include/configs/tegra-common.h b/include/configs/tegra-common.h index 4a656bb..80c846c

Re: [U-Boot] problem to boot i.MX28 custom platform

2013-02-26 Thread Fabio Estevam
Hi Hector, On Tue, Feb 26, 2013 at 9:19 AM, Hector Palacios hector.palac...@digi.com wrote: Greetings, I'm porting a custom platform based on mx28evk to latest U-Boot. I modified the iomux.c for my platform (different DUART pins) and made some changes to mxs_adjust_memory_params() to

[U-Boot] [PATCH 1/3] ARM: implement some Cortex-A9 errata workarounds

2013-02-26 Thread Stephen Warren
From: Stephen Warren swar...@nvidia.com Various errata exist in the Cortex-A9 CPU, and may be worked around by setting some bits in a CP15 diagnostic register. Add code to implement the workarounds, enabled by new CONFIG_ options. This code was taken from the Linux kernel, v3.8,

[U-Boot] [PATCH 2/3] ARM: tegra: enable some CPU errata workarounds

2013-02-26 Thread Stephen Warren
From: Stephen Warren swar...@nvidia.com Tegra20 has a Cortex A9 r1p1, and Tegra30 has a Cortex A9 r2p9. As such, some CPU errata exist, and must be worked around. These must be worked around in the bootloader, since in general, the kernel (especially a multi-platform kernel) needs to support

[U-Boot] [PATCH 3/3] ARM: mx6: use common CPU errata config options

2013-02-26 Thread Stephen Warren
From: Stephen Warren swar...@nvidia.com Now that U-Boot has common CONFIG_ options to work around some ARM CPU errata, enable the relevant options on MX6, and remove the custom lowlevel_init.S, since it's just duplicated code now. Signed-off-by: Stephen Warren swar...@nvidia.com ---

Re: [U-Boot] [PATCH] Tegra: Remove unused CONFIG_SYS_CPU_OSC_FREQUENCY define

2013-02-26 Thread Stephen Warren
On 02/26/2013 03:18 PM, Tom Warren wrote: This wasn't used anywhere in any Tegra build. Reviewed-by: Stephen Warren swar...@nvidia.com ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH] Tegra114: fdt: Sync DT nodes with kernel DT files (GPIO, tegra_car)

2013-02-26 Thread Stephen Warren
On 02/26/2013 03:08 PM, Tom Warren wrote: Minor edit to tegra_car node, add gpio node. diff --git a/arch/arm/dts/tegra114.dtsi b/arch/arm/dts/tegra114.dtsi - compatible = nvidia,tegra114-car; ... + compatible = nvidia,tegra114-car, nvidia,tegra30-car; The former is

[U-Boot] [PATCH v3 2/2] mtd: nand: mxc_nand: Fix is_16bit_nand()

2013-02-26 Thread Fabio Estevam
From: Fabio Estevam fabio.este...@freescale.com Currently is_16bit_nand() is a per SoC function and it decides the bus nand width by reading some boot related registers. This method works when NAND is the boot medium, but does not work if another boot medium is used. For example: booting from a

[U-Boot] [PATCH v3 1/2] mtd: nand: Introduce CONFIG_SYS_NAND_BUSWIDTH_16BIT

2013-02-26 Thread Fabio Estevam
From: Fabio Estevam fabio.este...@freescale.com Introduce CONFIG_SYS_NAND_BUSWIDTH_16BIT option so that other NAND controller drivers could use it when a 16-bit NAND is deployed. drivers/mtd/nand/ndfc has CONFIG_SYS_NDFC_16BIT, so just rename it, so that other NAND drivers could reuse the same

[U-Boot] [PATCH 2/2] ARM: tegra: make CONFIG_CMD_PART common

2013-02-26 Thread Stephen Warren
From: Stephen Warren swar...@nvidia.com This is useful on all Tegras, so that boot.scr on all devices can use the same commands. Hence, move it to tegra-common.h. Signed-off-by: Stephen Warren swar...@nvidia.com --- include/configs/tegra-common.h |2 ++ include/configs/tegra20-common.h |

[U-Boot] [PATCH 1/2] ARM: tegra: make bounce buffer option

2013-02-26 Thread Stephen Warren
From: Stephen Warren swar...@nvidia.com All Tegra devices will need CONFIG_BOUNCE_BUFFER. Move it to tegra-common.h to ensure it's always set. Signed-off-by: Stephen Warren swar...@nvidia.com --- These are useful on top of Tom's Tegra30 MMC series. include/configs/tegra-common.h |3 +++

Re: [U-Boot] [PATCH 0/5] Tegra30: MMC: Add DT-based MMC driver for Tegra30/Cardhu

2013-02-26 Thread Stephen Warren
On 02/26/2013 01:46 PM, Tom Warren wrote: This patchset adds SDMMC device-tree support to the Tegra30 dts files, and enables the Tegra MMC driver on Tegra30 Cardhu. I've tested this on my Cardhu-A04 and everything works fine, including card detect. All Tegra boards also build w/o error, and

Re: [U-Boot] [PATCH 1/4] common: imx: Implement generic u-boot.nand target

2013-02-26 Thread Scott Wood
On 02/26/2013 01:17:41 AM, Marek Vasut wrote: Dear Scott Wood, On 02/25/2013 05:03:30 PM, Marek Vasut wrote: Dear Scott Wood, So maybe we need a more general (but optional) CONFIG_BUILD_TARGET. Can you elaborate? Same as CONFIG_SPL_TARGET, but not SPL-specific. Basically a way

Re: [U-Boot] [PATCH 1/5] Tegra30: fdt: Add SDMMC (sdhci) nodes for T30 boards (Cardhu for now)

2013-02-26 Thread Stephen Warren
On 02/26/2013 01:46 PM, Tom Warren wrote: Took these values directly from the kernel dts files. diff --git a/arch/arm/dts/tegra30.dtsi b/arch/arm/dts/tegra30.dtsi + sdhci@7800 { + compatible = nvidia,tegra30-sdhci, nvidia,tegra20-sdhci; Looking at this more, I /think/

Re: [U-Boot] [PATCH 2/5] Tegra: MMC: Added/update SDMMC registers/base addresses for T20/T30

2013-02-26 Thread Stephen Warren
On 02/26/2013 01:46 PM, Tom Warren wrote: Moved SDMMC base addresses into each SoC's main header, since they differ. Added pad control settings for T30 from the TRM, and added additional vendor-specific SD/MMC registers and bus power defines. diff --git

Re: [U-Boot] [PATCH 3/5] Tegra30: MMC: Add SD bus power-rail and SDMMC pad init routines

2013-02-26 Thread Stephen Warren
On 02/26/2013 01:46 PM, Tom Warren wrote: T30 requires specific SDMMC pad programming, and bus power-rail bringup. diff --git a/board/nvidia/cardhu/cardhu.c b/board/nvidia/cardhu/cardhu.c +/* + * Do I2C/PMU writes to bring up SD card bus power + * + */ +void board_sdmmc_voltage_init(void)

Re: [U-Boot] [PATCH v3 2/2] mtd: nand: mxc_nand: Fix is_16bit_nand()

2013-02-26 Thread Benoît Thébaudeau
Hi Fabio, On Tuesday, February 26, 2013 11:37:45 PM, Fabio Estevam wrote: From: Fabio Estevam fabio.este...@freescale.com Currently is_16bit_nand() is a per SoC function and it decides the bus nand width by reading some boot related registers. This method works when NAND is the boot

Re: [U-Boot] [PATCH 3/3] ARM: mx6: use common CPU errata config options

2013-02-26 Thread Fabio Estevam
On Tue, Feb 26, 2013 at 7:28 PM, Stephen Warren swar...@wwwdotorg.org wrote: From: Stephen Warren swar...@nvidia.com Now that U-Boot has common CONFIG_ options to work around some ARM CPU errata, enable the relevant options on MX6, and remove the custom lowlevel_init.S, since it's just

[U-Boot] [PATCH] nand/fsl_elbc: detect page size at runtime

2013-02-26 Thread Scott Wood
This avoids needing a separate U-Boot config when some revisions of a board have small-page NAND and other revisions have large-page NAND (except for NAND SPL targets). CONFIG_FSL_ELBC_FMR is removed -- it was never used nor documented, and it gets in the way of this change. Signed-off-by: Scott

Re: [U-Boot] [PATCH] nand: adjust erase/read/write partition/chip size for bad blocks

2013-02-26 Thread Scott Wood
On 02/25/2013 11:43:48 PM, Harvey Chapman wrote: Adjust the sizes calculated for whole partition/chip operations by removing the size of bad blocks so we don't try to erase/read/write past a partition/chip boundary. Signed-off-by: Harvey Chapman hchap...@3gfp.com --- common/cmd_nand.c | 51

  1   2   >