Re: [U-Boot] __attribute__((__packed__)) switching to byte-access on ARM

2008-08-11 Thread Scott Wood
On Mon, Aug 11, 2008 at 05:48:21PM +0200, Guennadi Liakhovetski wrote: The respective assembly code is quite simple: read_timer: 0: e59f3004ldr r3, [pc, #4]; c timer_load_val 4: e5930040ldr r0, [r3, #64] 8: e12fff1ebx lr c:

[U-Boot] Pull request: nand-flash

2008-08-12 Thread Scott Wood
, use chipselect Ilya Yanok (1): NAND: Scan bad blocks lazily. Marcel Ziswiler (1): NAND: chip-state does not always get set. Scott Wood (8): Don't panic if a controller driver does ecc its own way. Freescale eLBC FCM NAND driver fsl_elbc_nand: Hard-code the FBAR/FPAR

Re: [U-Boot] Pull request: nand-flash

2008-08-13 Thread Scott Wood
On Wed, Aug 13, 2008 at 01:06:33AM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote: nand.c: In function 'at91cap9adk_nand_hwcontrol': nand.c:47: error: 'NAND_CTL_SETCLE' undeclared (first use in this function) nand.c:47: error: (Each undeclared identifier is reported only once nand.c:47:

Re: [U-Boot] Structure of directory nand_spl/board

2008-08-13 Thread Scott Wood
On Wed, Aug 13, 2008 at 06:11:29PM +0200, Jens Gehrlein wrote: in the directory nand_spl/board one can find three subdirectories: amcc, freescale and samsung, which contain the reference boards of these vendors. These vendors are CPU vendors, too. When I want to add a new board, shall I

[U-Boot] [PATCH] at91: Update board NAND drivers to current API.

2008-08-13 Thread Scott Wood
Signed-off-by: Scott Wood [EMAIL PROTECTED] --- I don't have hardware to test, so any help in that regard is appreciated. Applied to u-boot-nand-flash. board/atmel/at91cap9adk/nand.c | 37 ++--- board/atmel/at91sam9260ek/nand.c | 37

[U-Boot] [PATCH] m5373evb: Update NAND driver to new API.

2008-08-13 Thread Scott Wood
Signed-off-by: Scott Wood [EMAIL PROTECTED] --- I don't have hardware or a toolchain to test, so any help in that regard is appreciated. Applied to u-boot-nand-flash. board/freescale/m5373evb/nand.c | 64 +++ 1 files changed, 18 insertions(+), 46 deletions

[U-Boot] [PATCH] quad100hd: Update NAND driver to new API.

2008-08-13 Thread Scott Wood
Signed-off-by: Scott Wood [EMAIL PROTECTED] --- I don't have hardware to test, so any help in that regard is appreciated. Applied to u-boot-nand-flash. board/quad100hd/nand.c | 36 +--- 1 files changed, 13 insertions(+), 23 deletions(-) diff --git a/board

[U-Boot] [PATCH] socrates: Update NAND driver to new API.

2008-08-13 Thread Scott Wood
Also, fix some minor formatting issues, and simplify the handling of state for writes. Signed-off-by: Scott Wood [EMAIL PROTECTED] --- I don't have hardware to test, so any help in that regard is appreciated. Applied to u-boot-nand-flash. board/socrates/nand.c | 84

[U-Boot] [PATCH] s3c24x0: Update NAND driver to new API.

2008-08-13 Thread Scott Wood
Signed-off-by: Scott Wood [EMAIL PROTECTED] --- I don't have hardware to test (and I don't see any in-tree board that currently uses this), so any help in that regard is appreciated. cpu/arm920t/s3c24x0/nand.c | 64 ++-- 1 files changed, 32 insertions

[U-Boot] Pull request: nand-flash

2008-08-13 Thread Scott Wood
build break Scott Wood (5): at91: Update board NAND drivers to current API. s3c24x0: Update NAND driver to new API. m5373evb: Update NAND driver to new API. quad100hd: Update NAND driver to new API. socrates: Update NAND driver to new API. board/atmel/at91cap9adk

Re: [U-Boot] onenand compile failures w/top of tree on ARM

2008-08-15 Thread Scott Wood
On Fri, Aug 15, 2008 at 08:51:45AM -0500, Kumar Gala wrote: When trying to build the apollon_config w/top of tree I get: What SHA-1? arm-linux-gcc -g -Os -fno-strict-aliasing -fno-common -ffixed-r8 - msoft-float -D__KERNEL__ -DTEXT_BASE=0x80e8 -I/tmp/u-boot-85xx/ include

Re: [U-Boot] [PATCH] Fix OneNAND read_oob/write_oob functions compatability

2008-08-18 Thread Scott Wood
Kyungmin Park wrote: diff --git a/common/cmd_onenand.c b/common/cmd_onenand.c index 5e2062b..8d87b78 100644 --- a/common/cmd_onenand.c +++ b/common/cmd_onenand.c @@ -85,15 +85,25 @@ int do_onenand(cmd_tbl_t * cmdtp, int flag, int argc, char *argv[]) ulong addr =

Re: [U-Boot] [PATCH 1/3] [RFC] Add support for early serial debugconsole

2008-08-19 Thread Scott Wood
[EMAIL PROTECTED] wrote: I'm strongly in favor of having some early serial functionality whether in the form of simply being able to send output to the serial port or having a semi-functional to fully functional shell prior to RAM relocation. We already have the former. -Scott

Re: [U-Boot] [PATCH] Fix OneNAND read_oob/write_oob functions compatability (take #2)

2008-08-21 Thread Scott Wood
On Tue, Aug 19, 2008 at 08:42:53AM +0900, Kyungmin Park wrote: Also sync with kernel OneNAND codes with adrian contribution credits Signed-off-by: Kyungmin Park [EMAIL PROTECTED] Applied to u-boot-nand-flash, with some whitespace fixes. Please put anything that is not supposed to be part of

Re: [U-Boot] [patch 1/1] Make the YAFFS filesystem work

2008-08-21 Thread Scott Wood
On Thu, Aug 21, 2008 at 07:40:07AM +0200, William Juul wrote: Remy Bohmer wrote: With this patch and CONFIG_YAFFS2 enabled, I get a readable filesystem in U-boot, as well as in Linux. Tested on a Atmel AT91SAM9261EK board. Signed-off-by: Remy Bohmer [EMAIL PROTECTED] Acked-by:

[U-Boot] Pull request: nand-flash

2008-08-21 Thread Scott Wood
read_oob/write_oob functions compatability Remy Bohmer (1): Make the YAFFS filesystem work Scott Wood (1): NAND: Remove delay from nand_boot_fsl_elbc.c. common/cmd_onenand.c | 49 ++- drivers/mtd/onenand/onenand_base.c | 884

Re: [U-Boot] [PATCH 5/8] ColdFire: Fix compiling error

2008-08-22 Thread Scott Wood
On Thu, Aug 21, 2008 at 11:55:26PM +, Tsi-Chung Liew wrote: @@ -96,7 +96,7 @@ int board_nand_init(struct nand_chip *nand) nand-ecc.mode = NAND_ECC_SOFT; nand-cmd_ctrl = nand_hwcontrol; nand-read_byte = nand_read_byte; - nand-write_byte = nand_write_byte; +

Re: [U-Boot] [PATCH] fix out of tree building

2008-08-26 Thread Scott Wood
On Mon, Aug 25, 2008 at 05:16:10PM -0500, Kim Phillips wrote: Signed-off-by: Kim Phillips [EMAIL PROTECTED] --- Makefile |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/Makefile b/Makefile index 8c90dab..c30ef57 100644 --- a/Makefile +++ b/Makefile @@ -2065,7

Re: [U-Boot] [POWERPC] TQM8272: Fix compiling error for the TQM8272 board.

2008-08-27 Thread Scott Wood
On Wed, Aug 27, 2008 at 01:08:14PM +0200, Heiko Schocher wrote: static void upmnand_hwcontrol(struct mtd_info *mtd, int cmd, unsigned int ctrl) { struct nand_chip *this = mtd-priv; + ulong base = (ulong) (this-IO_ADDR_W + chipsel * CFG_NAND_CS_DIST); + unsigned char byte =

Re: [U-Boot] [PATCH] mtd: SPI Flash: Support the STMicro Flash

2008-08-28 Thread Scott Wood
On Thu, Aug 28, 2008 at 06:44:56AM -0700, Liew Tsi Chung-R5AAHP wrote: + { + .idcode1 = STM_ID_M25P80, + .page_size = 256, + .pages_per_sector = 256, + .nr_sectors = 16, + .name = M25P80, + }, + { + .idcode1 = STM_ID_M25P128, + .page_size = 256, +

Re: [U-Boot] [PATCH] ads5121: Set offset of NFC registers in device tree.

2008-09-04 Thread Scott Wood
On Thu, Sep 04, 2008 at 10:13:49AM +0200, Kenneth Johansson wrote: On Wed, 2008-09-03 at 22:41 +0200, Wolfgang Denk wrote: Dear John Rigby, In message [EMAIL PROTECTED] you wrote: I'm not sure this right way to deal with this. Even with the modified offset the 1.5 silicon linux nand

Re: [U-Boot] Boot from jffs2 filesystem problem

2008-09-04 Thread Scott Wood
On Thu, Sep 04, 2008 at 02:04:42PM +0200, Pedro Luis D. L. wrote: It seems to me that U-boot is trying to boot from RAMDisk instead of booting the kernel, but I'm not sure. The same kernel is working properly on a phytec board and 1.2.0 U-boot, so it's not a problem with jffs2 support within

Re: [U-Boot] Boot from jffs2 filesystem problem

2008-09-04 Thread Scott Wood
On Thu, Sep 04, 2008 at 05:21:57PM +0200, Pedro Luis D. L. wrote: I've already tried with: - bootm ${kernel_addr} - ${fdt_addr} This is the correct one. And always with the same result... Are you sure it's exactly the same? How could u-boot fail when loading the initrd if there is none

Re: [U-Boot] [PATCH][for 1.3.5] 85xx: Ensure timebase is zero on secondary cores

2008-09-05 Thread Scott Wood
On Fri, Sep 05, 2008 at 08:45:11AM -0500, Kumar Gala wrote: diff --git a/cpu/mpc85xx/release.S b/cpu/mpc85xx/release.S index 75676b5..2ae6057 100644 --- a/cpu/mpc85xx/release.S +++ b/cpu/mpc85xx/release.S @@ -37,6 +37,11 @@ __secondary_start_page: li r3,0x201 mtspr

Re: [U-Boot] FW: Fwd: Problem in writing jffs2 fiesystem

2008-09-08 Thread Scott Wood
On Mon, Sep 08, 2008 at 04:54:03PM +0200, Pedro Luis D. L. wrote: On Mon, 8 Sep 2008 19:51:59 +0530 Navin wrote: Hi all, I am running u-b00t-1.6.6 on custom at91sam9263 board. Are you sure it is u-boot-1.6.6? The latest u-boot in repository is 1.3.4. I'm guessing he meant 1.1.6, which

Re: [U-Boot] [PATCH] ARM DaVinci: Fix broken HW ECC for large page NAND.

2008-09-08 Thread Scott Wood
On Sat, Aug 30, 2008 at 05:06:55PM -0400, Hugo Villeneuve wrote: ARM DaVinci: Fix broken HW ECC for large page NAND. Signed-off-by: Hugo Villeneuve [EMAIL PROTECTED] --- Based on original patch by Bernard Blackham [EMAIL PROTECTED] U-boot's HW ECC support for large page NAND on

Re: [U-Boot] [PATCH] Add MTD core partition

2008-09-08 Thread Scott Wood
On Fri, Aug 29, 2008 at 05:13:23PM +0900, Kyungmin Park wrote: It's preparation for UBI codes. UBI uses partition and get put mtd devices Please import the latest MTD code; there have been several cleanups/fixes in mtdpart.c recently (in particular, the patches from Atsushi Nemoto dated Jul

[U-Boot] [PATCH] delta, zylonite: Update nand_oobinfo to nand_ecclayout.

2008-09-10 Thread Scott Wood
This is part of the switch to newer upstream MTD code. Signed-off-by: Scott Wood [EMAIL PROTECTED] --- Applied to u-boot-nand-flash. board/delta/nand.c|6 ++ board/zylonite/nand.c |6 ++ 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/board/delta/nand.c b

Re: [U-Boot] Data cache on MPC8248 board

2008-09-11 Thread Scott Wood
On Wed, Sep 10, 2008 at 10:51:50AM +0200, Rodrigo Vilar wrote: I have enabled cache on a MPC8248 board using Block Address Translation. RAM is cache enabled, everything else cache inhibited. Apparently cache is enabled fine, however system hangs using tftp command (in the middle of the

[U-Boot] [PATCH 3/3] fsl_elbc_nand: ecclayout cleanups

2008-09-12 Thread Scott Wood
] Signed-off-by: Scott Wood [EMAIL PROTECTED] --- From the Linux driver, applied to u-boot-nand-flash. drivers/mtd/nand/fsl_elbc_nand.c |4 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/drivers/mtd/nand/fsl_elbc_nand.c b/drivers/mtd/nand/fsl_elbc_nand.c index e4e4de0

Re: [U-Boot] U-Boot configuration and latter Linux MMU init failures

2008-09-29 Thread Scott Wood
Remi Lefevre wrote: At last, I have some doubt about the fdt timebase-frequency value. It seems to be set to (bus_clk / 4) on mpc8260, but I cannot find in the mpc8270 (mpc8280) user manual any confirmation. Does this value only depends on cpu or could the board have any influence on it ? I

[U-Boot] NAND legacy flash removal

2008-10-01 Thread Scott Wood
On Wed, Oct 01, 2008 at 08:07:04AM +0200, Stefan Roese wrote: Defining both is definitely broken and should be fixed. I think now its really time to completely remove the legacy NAND support. It has been dragged along for quite some time. I'd love to see that as well. To anyone who's

Re: [U-Boot] NAND flash driver for Samsung K9F1G08

2008-10-02 Thread Scott Wood
On Wed, Oct 01, 2008 at 06:04:02PM -0700, Roman Mashak wrote: As far as I understand not all manufacturers adhere to CFI standards, so this is flash chip's problem rather then board itself. CFI is for both NAND and NOR flash devices (even though CFI stands for Common _Flash memory_ Interface)?

Re: [U-Boot] [PATCH 07/12 v2] ARM: OMAP3: Add memory and syslib common files, add NAND support

2008-10-03 Thread Scott Wood
On Fri, Oct 03, 2008 at 12:40:25PM +0200, [EMAIL PROTECTED] wrote: +#include common.h +#include asm/io.h +#include asm/arch/mem.h +#include linux/mtd/nand_ecc.h + +#if defined(CONFIG_CMD_NAND) + +#include nand.h Move the #ifdef to the Makefile. +/* + * nand_read_buf16 - [DEFAULT] read

Re: [U-Boot] [PATCH 07/12 v2] ARM: OMAP3: Add memory and syslib common files, add NAND support

2008-10-07 Thread Scott Wood
On Tue, Oct 07, 2008 at 11:42:38AM +0200, Dirk Behme wrote: Is it OK if config gets written before control, or if this whole thing gets done out of order with respect to other raw writes? Hmm. I replaced this with the version from Nishanth's U-Boot v2 (see link above). If this isn't ok, can

Re: [U-Boot] [PATCH 07/12 v2] ARM: OMAP3: Add memory and syslib common files, add NAND support

2008-10-07 Thread Scott Wood
On Tue, Oct 07, 2008 at 06:25:11AM -0500, Nishanth Menon wrote: Dirk Behme said the following on 10/07/2008 04:42 AM: It doesn't differ ;) So I removed this and tried to use default nand_read_buf16() instead: nand-read_buf = nand_read_buf16; in board_nand_init(). But this doesn't

Re: [U-Boot] [PATCH 07/12 v2] ARM: OMAP3: Add memory and syslib common files, add NAND support

2008-10-07 Thread Scott Wood
Menon, Nishanth wrote: I do not get it either.. ECCPOS is in offset bytes, and oobfree should be {.offset=20,.length=44} /*I always hated struct initialization done as above..*/, but then, Why not offset 14, length 50? How about this part being used by ubi/jffs2 or some fs.. I cant think

Re: [U-Boot] [PATCH 07/12 v2] ARM: OMAP3: Add memory and syslib common files, add NAND support

2008-10-07 Thread Scott Wood
Dirk Behme wrote: Otherwise, either add something to the MTD API that the nand command can call, or have your own board-specific command defined in the board file. Don't put platform-specific ifdefs in generic files. Do you have any example how to extend MTD API You'd need to add callbacks

Re: [U-Boot] [PATCH 2/3] iMX31: Add support to copy NAND Flash code to RAM

2008-10-07 Thread Scott Wood
Alan Carvalho de Assis wrote: From 473120de8390abd78014cac9fe0925cb49f57fbe Mon Sep 17 00:00:00 2001 From: Alan Carvalho de Assis [EMAIL PROTECTED] Date: Sun, 5 Oct 2008 19:59:47 -0300 Subject: [PATCH] iMX31: Add support to copy NAND Flash code to RAM This code is executed from internal 2KB

Re: [U-Boot] [PATCH 08/13 v3] ARM: OMAP3: Add NAND support

2008-10-10 Thread Scott Wood
On Fri, Oct 10, 2008 at 08:58:41AM +0200, Dirk Behme wrote: +/* + * omap_calculate_ecc - Generate non-inverted ECC bytes. + * + * Using noninverted ECC can be considered ugly since writing a blank + * page ie. padding will clear the ECC bytes. This is no problem as + * long nobody is

Re: [U-Boot] Adding a new board

2008-10-10 Thread Scott Wood
Ron Madrid wrote: I have a quick question about adding a board to the u-boot project. I would like to submit my code for review and subsequent inclusion in the project, however the branch I would like to base my code on is the u-boot-nand-flash. Is it possible/appropriate to add my board to

Re: [U-Boot] [PATCH 08/13 v3] ARM: OMAP3: Add NAND support

2008-10-13 Thread Scott Wood
On Sat, Oct 11, 2008 at 10:55:37AM +0200, Dirk Behme wrote: It's looking decent. I have some concerns about the ECC switching, though. Yes, I know, agreed. But changing existing kernels isn't easy, too. I meant the implementation (specifically, the re-init of things done by

Re: [U-Boot] [PATCH] Flex-OneNAND driver

2008-10-14 Thread Scott Wood
On Tue, Oct 14, 2008 at 01:30:03PM +0200, Wolfgang Denk wrote: Dear Scott, In message [EMAIL PROTECTED] apgmoorthy wrote: This patch adds support for Samsung Flex-OneNAND devices. Flex-OneNAND combines SLC and MLC technologies into a single device. SLC area provides increased

Re: [U-Boot] fsl_elbc_nand.c and nand_boot_fsl_elbc.c for large page devices

2008-10-16 Thread Scott Wood
On Tue, Oct 14, 2008 at 01:24:09PM -0700, Ron Madrid wrote: 1. I don't see anywhere that the AL (address length, or number of address cycles) can be set to anything other than 2. It appears to be hard coded in both files. Correct. AFAICT, setting AL to anything less than 2 is just an

Re: [U-Boot] fsl_elbc_nand.c and nand_boot_fsl_elbc.c for large page devices

2008-10-16 Thread Scott Wood
Ron Madrid wrote: So is there a particular convention for which bytes should be used within the OOB area for an ECC? I've looked for information on this but haven't been able to come up with anything. The 8313 manual says that when booting from NAND, it expects ECCM 0 on small page and ECCM

[U-Boot] [PATCH] 83xx NAND boot: wait for LTESR[CC]

2008-10-17 Thread Scott Wood
when booting from NAND on 8313erdb. Signed-off-by: Scott Wood [EMAIL PROTECTED] Acked-by: Kim Phillips [EMAIL PROTECTED] --- Applied to u-boot-nand-flash cpu/mpc83xx/start.S | 12 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/cpu/mpc83xx/start.S b/cpu/mpc83xx

[U-Boot] Pull request: nand-flash

2008-10-17 Thread Scott Wood
The following changes since commit bf29e0ea0af03d593c64614136acc723a7a022a2: Yuri Tikhonov (1): ppc4xx: PPC44x MQ initialization are available in the git repository at: git://www.denx.de/git/u-boot-nand-flash.git master Lepcha Suchit (1): 83xx NAND boot: wait for LTESR[CC]

Re: [U-Boot] IBAT and DBAT question

2008-10-17 Thread Scott Wood
On Thu, Oct 16, 2008 at 01:04:37PM -0200, Alemao wrote: If Im not going to use PCI in U-Boot (just in linux kernel), do I have to set IBAT and DBAT in the board configuration file? No. Or linux kernel sets them again in arch/powerpc/mm/ppc_mmu_32.c ? Yes. -Scott

Re: [U-Boot] [PATCH] Flex-OneNAND driver

2008-10-22 Thread Scott Wood
On Mon, Sep 22, 2008 at 11:58:51AM +0530, apgmoorthy wrote: Hi All, This patch adds support for Samsung Flex-OneNAND devices. Flex-OneNAND combines SLC and MLC technologies into a single device. SLC area provides increased reliability and speed, suitable for storing code and data, such as

Re: [U-Boot] 4k page ONFI NAND

2012-01-03 Thread Scott Wood
On 01/03/2012 03:36 AM, Vipin Kumar wrote: Hello, We have a Micron 4K page sized ONFI NAND MT29F16G08 I am encountering frequent errors while reading the device. Although the data area is protected for 8bit correction with BCH8 algorithm, the oob area is unprotected and is susceptible to

Re: [U-Boot] [PATCH] MXS-NAND: Backport ecc.size from linux kernel

2012-01-03 Thread Scott Wood
On 01/03/2012 03:20 PM, Marek Vasut wrote: On 12/19/2011 02:23 PM, Marek Vasut wrote: On 12/18/2011 11:50 AM, Marek Vasut wrote: What specifically is happening in ubi part with ecc.size = 512? The driver doesn\t support subpage writes. Is this meant to be a workaround for the NAND layer

Re: [U-Boot] [PATCH 3/3] mtd/nand : workaround for Freescale FCM to support large-page Nand chip

2012-01-03 Thread Scott Wood
On 01/03/2012 03:48 PM, Matthew L. Creech wrote: On Sat, Dec 3, 2011 at 11:31 PM, shuo@freescale.com wrote: From: Liu Shuo shuo@freescale.com Freescale FCM controller has a 2K size limitation of buffer RAM. In order to support the Nand flash chip whose page size is larger than 2K

Re: [U-Boot] [PATCH 3/3] mtd/nand : workaround for Freescale FCM to support large-page Nand chip

2012-01-03 Thread Scott Wood
On 01/03/2012 04:43 PM, Matthew L. Creech wrote: On Tue, Jan 3, 2012 at 5:08 PM, Scott Wood scottw...@freescale.com wrote: Even on SLC chips, when using an ECC block size of 512 bytes? Or are you only able to find MLC? I looked for a datasheet for a 4K NAND chip, but couldn't find one

Re: [U-Boot] [PATCH] cmd_nand: add biterror insertion command for NAND Flash

2012-01-04 Thread Scott Wood
On 01/04/2012 09:32 AM, Holger Brunck wrote: From: Stefan Bigler stefan.big...@keymile.com Initial implementation for unsafe feature for biterror insertion on NAND-Flash devices. The code flips single bits in the data block of the flash to simulate single bit-errors. Tested with Samsung

Re: [U-Boot] [PATCH 2/2] mtd/nand: Fix IFC driver to support 2K NAND page

2012-01-04 Thread Scott Wood
On 12/27/2011 11:23 PM, Prabhakar Kushwaha wrote: 1) OOB area should be updated irrespective of NAND page size. Earlier it was updated only for 512byte NAND page. 2) During OOB update fbcr should be equal to OOB size. Signed-off-by: Poonam Aggrwal poonam.aggr...@freescale.com

Re: [U-Boot] [PATCH 1/2] mtd/nand:Fix wrong address read in is_blank()

2012-01-04 Thread Scott Wood
On 12/27/2011 11:22 PM, Prabhakar Kushwaha wrote: IFC NAND Machine calculates ECC on 512byte sector. Same is taken care in fsl_ifc_run_command() while ECC status verification. Here buffer number is calculated assuming 512byte sector and same is passed to is_blank. However in is_blank()

Re: [U-Boot] add nand spl boot for qi_lb60 board

2012-01-04 Thread Scott Wood
On 01/01/2012 05:31 AM, Xiangfu Liu wrote: Hi Scott Wood this is the patch I try to add nand spl boot for qi_lb60 board this patch works fine under qi_lb60(ben nanonote) but there are three 'extern' lines under: nand_spl/board/qi/qi_lb60/nand_spl.c those 'extern' lines already in jz4740

Re: [U-Boot] add nand spl boot for qi_lb60 board

2012-01-04 Thread Scott Wood
On 01/04/2012 04:01 PM, Scott Wood wrote: On 01/01/2012 05:31 AM, Xiangfu Liu wrote: Hi Scott Wood this is the patch I try to add nand spl boot for qi_lb60 board this patch works fine under qi_lb60(ben nanonote) but there are three 'extern' lines under: nand_spl/board/qi/qi_lb60/nand_spl.c

[U-Boot] [PATCH] mpc8313erdb: fix mtdparts address

2012-01-04 Thread Scott Wood
Fix a copy-and-paste error when adapting mpc8315erdb mtdparts to mpc8313erdb. mtdids was already using the proper address on mpc8313erdb. Signed-off-by: Scott Wood scottw...@freescale.com --- include/configs/MPC8313ERDB.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git

Re: [U-Boot] [PATCH] NAND: Allow nand_ids and nand_bbt to be compiled in SPL

2012-01-04 Thread Scott Wood
On 12/05/2011 05:17 PM, Marek Vasut wrote: This will be beneficial for the PXA3XX NAND driver, which uses the NAND IDs to identify the chip and configure the controller accordingly. Signed-off-by: Marek Vasut marek.va...@gmail.com Cc: Scott Wood scottw...@freescale.com --- drivers/mtd

Re: [U-Boot] add nand spl boot for qi_lb60 board

2012-01-05 Thread Scott Wood
On 01/04/2012 06:24 PM, Xiangfu Liu wrote: Hi yes. I have cpmpared this. but I can't find where is the problem. attachment is the u-boot.map diff. after remove those 'extern' the u-boot-nand-spl is exact same. binary file. map file both same. but the u-boot.bin/map changed. Please

Re: [U-Boot] [PATCH] cmd_nand: add biterror insertion command for NAND Flash

2012-01-05 Thread Scott Wood
On 01/05/2012 02:59 AM, Holger Brunck wrote: Hi Scott, On 01/04/2012 06:44 PM, Scott Wood wrote: On 01/04/2012 09:32 AM, Holger Brunck wrote: Initial implementation for unsafe feature for biterror insertion on NAND-Flash devices. The code flips single bits in the data block of the flash

Re: [U-Boot] [PATCH] NAND: Allow nand_ids and nand_bbt to be compiled in SPL

2012-01-05 Thread Scott Wood
On 01/05/2012 08:15 AM, Tom Rini wrote: On Thu, Jan 5, 2012 at 2:09 AM, Marek Vasut marek.va...@gmail.com wrote: I'll confirm gc-sections/etc are not as awesome as we think. You can drop the size of current SPL builds (for say devkit8000) by taking things that should be dropped for us and

Re: [U-Boot] [PATCH V5] nand_spl_simple: store ecc data on the stack

2012-01-05 Thread Scott Wood
...@denx.de CC: Ilya Yanok ya...@emcraft.com CC: Scott Wood scottw...@freescale.com CC: Tom Rini tom.r...@gmail.com CC: Simon Schwarz simonschwarz...@googlemail.com CC: Wolfgang Denk w...@denx.de Applied to u-boot-nand-flash -Scott ___ U-Boot mailing

[U-Boot] [PATCH] MAKEALL: display SPL size if present

2012-01-05 Thread Scott Wood
This makes it easier to detect changes in the SPL portion, as can currently be done for the main U-Boot image. Signed-off-by: Scott Wood scottw...@freescale.com --- MAKEALL |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/MAKEALL b/MAKEALL index f735af6..395e982

Re: [U-Boot] [PATCH] NAND: remove NAND_MAX_CHIPS definitions

2012-01-05 Thread Scott Wood
...@grandegger.com Cc: Scott Wood scottw...@freescale.com Applied to u-boot-nand-flash (and a patch coming to get some additional instances that crept in, plus instances of CONFIG_SYS_NAND_MAX_CHIPS that are set to the default value of 1). Marek: this removes NAND_MAX_CHIPS from m28evk.h, which set

[U-Boot] [PATCH] NAND: Remove additional (CONFIG_SYS)_NAND_MAX_CHIPS

2012-01-05 Thread Scott Wood
NAND_MAX_CHIPS has been replaced by CONFIG_SYS_NAND_MAX_CHIPS, and the latter defaults to 1. Signed-off-by: Scott Wood scottw...@freescale.com --- include/configs/at91sam9m10g45ek.h |1 - include/configs/cam_enc_4xx.h |1 - include/configs/davinci_dm355leopard.h |1

Re: [U-Boot] [PATCH] NAND: Allow nand_ids and nand_bbt to be compiled in SPL

2012-01-06 Thread Scott Wood
On 01/05/2012 06:41 PM, Tom Rini wrote: On Thu, Jan 5, 2012 at 4:04 PM, Scott Wood scottw...@freescale.com wrote: Whatever the set of things is that you want to pull in for these SPLs, it needs to be a separate config option from the one that enables libnand.o to be included, so that other

Re: [U-Boot] add nand spl boot for qi_lb60 board

2012-01-06 Thread Scott Wood
On 01/06/2012 04:18 AM, Xiangfu Liu wrote: On 01/06/2012 02:44 AM, Scott Wood wrote: Use mips-whatever-objdump -dlrsh on the good and bad u-boot binaries (or on any .o files you suspect may be relevant), to see more specifically what's different. You may also want to try compiling suspect

Re: [U-Boot] [PATCH] NAND: Allow nand_ids and nand_bbt to be compiled in SPL

2012-01-06 Thread Scott Wood
On 01/06/2012 01:14 PM, Tom Rini wrote: On Fri, Jan 6, 2012 at 12:03 PM, Scott Wood scottw...@freescale.com wrote: On 01/05/2012 06:41 PM, Tom Rini wrote: On Thu, Jan 5, 2012 at 4:04 PM, Scott Wood scottw...@freescale.com wrote: Whatever the set of things is that you want to pull

Re: [U-Boot] [PATCH v2] add nand spl boot for qi_lb60 board

2012-01-06 Thread Scott Wood
On 01/06/2012 04:17 AM, Xiangfu Liu wrote: Signed-off-by: Xiangfu Liu xian...@openmobilefree.net --- arch/mips/cpu/xburst/cpu.c |4 + arch/mips/cpu/xburst/start_spl.S | 65 drivers/mtd/nand/jz4740_nand.c | 40 +++-

Re: [U-Boot] [PATCH] NAND: Allow nand_ids and nand_bbt to be compiled in SPL

2012-01-09 Thread Scott Wood
On 01/08/2012 03:56 AM, Mike Frysinger wrote: On Wednesday 04 January 2012 18:56:23 Scott Wood wrote: On 12/05/2011 05:17 PM, Marek Vasut wrote: This will be beneficial for the PXA3XX NAND driver, which uses the NAND IDs to identify the chip and configure the controller accordingly

Re: [U-Boot] [PATCH] NAND: Allow nand_ids and nand_bbt to be compiled in SPL

2012-01-09 Thread Scott Wood
On 01/09/2012 03:21 PM, Mike Frysinger wrote: On Monday 09 January 2012 14:41:07 Scott Wood wrote: Unless/until the toolchain can properly GC anonymous strings, I think finer-grained conditional compilation is the way to go. i think we should use GC when it works (we've found 1 case so far

Re: [U-Boot] [PATCH v2] add nand spl boot for qi_lb60 board

2012-01-10 Thread Scott Wood
On 01/10/2012 09:13 AM, Xiangfu Liu wrote: Hi Scott thanks for your comments. PATCH v3 have sent out for you to review. On 01/07/2012 06:36 AM, Scott Wood wrote: We are transitioning from nand_spl/ to spl/. Please try to work within the new infrastructure. You may run into problems

Re: [U-Boot] [PATCH V4] nand_spl_simple: store ecc data on the stack

2012-01-10 Thread Scott Wood
...@denx.de CC: Ilya Yanok ya...@emcraft.com CC: Scott Wood scottw...@freescale.com CC: Tom Rini tom.r...@gmail.com CC: Simon Schwarz simonschwarz...@googlemail.com CC: Wolfgang Denk w...@denx.de --- V4: - Drop SYS_ from local defines (Wolfgang Denk, Scott Wood) - drop parenthesis around

Re: [U-Boot] [PATCH v2 1/8] nand: Merge BCH code from Linux nand driver

2012-01-10 Thread Scott Wood
in software. Signed-off-by: Christian Hitz christian.h...@aizo.com Cc: Scott Wood scottw...@freescale.com --- Adds 96 bytes to the image size if BCH is disabled. Changes since v1: - split new flash ids in speperate patch - add exact references and Cc Applied to u-boot-nand

Re: [U-Boot] [PATCH v2 3/8] nand: cleanup whitespace

2012-01-10 Thread Scott Wood
On Wed, Oct 12, 2011 at 09:32:01AM +0200, Christian Hitz wrote: Bring up to date with corresponding file from linux. Signed-off-by: Christian Hitz christian.h...@aizo.com Cc: Scott Wood scottw...@freescale.com --- Changes since v1: - split whitespace changes into seperate patch

Re: [U-Boot] [PATCH v2 4/8] nand: Merge changes from Linux nand driver

2012-01-10 Thread Scott Wood
On Wed, Oct 12, 2011 at 09:32:02AM +0200, Christian Hitz wrote: [backport from linux commit 02f8c6aee8df3cdc935e9bdd4f2d020306035dbe] This patch synchronizes the nand driver with the Linux 3.0 state. Signed-off-by: Christian Hitz christian.h...@aizo.com Cc: Scott Wood scottw

Re: [U-Boot] [PATCH v2 6/8] nand: Merge changes to BBT from Linux nand driver

2012-01-10 Thread Scott Wood
On Wed, Oct 12, 2011 at 09:32:04AM +0200, Christian Hitz wrote: [backport from linux commit 02f8c6aee8df3cdc935e9bdd4f2d020306035dbe] This patch synchronizes the nand driver with the Linux 3.0 state. Signed-off-by: Christian Hitz christian.h...@aizo.com Cc: Scott Wood scottw

Re: [U-Boot] [PATCH v2 7/8] nand: Sanitize ONFI strings.

2012-01-10 Thread Scott Wood
On Wed, Oct 12, 2011 at 09:32:05AM +0200, Christian Hitz wrote: [backport from linux commit 02f8c6aee8df3cdc935e9bdd4f2d020306035dbe] This is part of the synchronization with the nand driver to the Linux 3.0 state. Signed-off-by: Christian Hitz christian.h...@aizo.com Cc: Scott Wood

[U-Boot] [PATCH] nand_spl: store ecc data on the stack

2012-01-11 Thread Scott Wood
already loaded data. The patch saves the oob data and the ecc on the stack replacing the fixed address in RAM. Signed-off-by: Stefano Babic sba...@denx.de CC: Ilya Yanok ya...@emcraft.com CC: Scott Wood scottw...@freescale.com CC: Tom Rini tom.r...@gmail.com CC

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

2012-01-12 Thread Scott Wood
not require this, and existing drivers should be converted when convenient. Signed-off-by: Scott Wood scottw...@freescale.com --- doc/README.nand | 62 ++ drivers/mtd/nand/nand.c | 96 +-- include/nand.h

[U-Boot] [PATCH 2/2] nand/fsl_elbc: Convert to self-init

2012-01-12 Thread Scott Wood
This driver doesn't yet make use of the added flexibility (not that that should stop anyone from converting...), but it will with the in-progress hack to support 4k-page NAND. Signed-off-by: Scott Wood scottw...@freescale.com --- drivers/mtd/nand/fsl_elbc_nand.c | 43

Re: [U-Boot] [PATCH 2/2] nand/fsl_elbc: Convert to self-init

2012-01-16 Thread Scott Wood
On 01/15/2012 01:29 PM, Mike Frysinger wrote: On Thursday 12 January 2012 20:59:41 Scott Wood wrote: --- a/drivers/mtd/nand/fsl_elbc_nand.c +++ b/drivers/mtd/nand/fsl_elbc_nand.c +#ifndef CONFIG_SYS_NAND_BASE_LIST +#define CONFIG_SYS_NAND_BASE_LIST { CONFIG_SYS_NAND_BASE } +#endif would

Re: [U-Boot] [PATCH 2/2] nand/fsl_elbc: Convert to self-init

2012-01-16 Thread Scott Wood
On 01/16/2012 10:51 AM, Scott Wood wrote: On 01/15/2012 01:29 PM, Mike Frysinger wrote: On Thursday 12 January 2012 20:59:41 Scott Wood wrote: --- a/drivers/mtd/nand/fsl_elbc_nand.c +++ b/drivers/mtd/nand/fsl_elbc_nand.c +#ifndef CONFIG_SYS_NAND_BASE_LIST +#define CONFIG_SYS_NAND_BASE_LIST

Re: [U-Boot] [PATCH 2/2] nand/fsl_elbc: Convert to self-init

2012-01-16 Thread Scott Wood
On 01/16/2012 01:58 PM, Mike Frysinger wrote: On Monday 16 January 2012 11:51:14 Scott Wood wrote: On 01/15/2012 01:29 PM, Mike Frysinger wrote: On Thursday 12 January 2012 20:59:41 Scott Wood wrote: --- a/drivers/mtd/nand/fsl_elbc_nand.c +++ b/drivers/mtd/nand/fsl_elbc_nand.c +#ifndef

Re: [U-Boot] [PATCH] nand_util: correct YAFFS image write function

2012-01-20 Thread Scott Wood
On 01/20/2012 12:17 AM, Kassey Lee wrote: hi, Lei, Scott: I think this is correct, do you have some comments ? Looks right. -Scott ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH 5/6] tegra: nand: Add Tegra NAND driver

2012-01-20 Thread Scott Wood
On 01/13/2012 05:10 PM, Simon Glass wrote: +/* Information about an attached NAND chip */ +struct fdt_nand { + struct nand_ctlr *reg; + int enabled;/* 1 to enable, 0 to disable */ + struct fdt_gpio_state wp_gpio; /* write-protect GPIO */ + int width;

Re: [U-Boot] SPL Framework: Add support for U_BOOT_CMD

2012-01-25 Thread Scott Wood
On 01/25/2012 12:19 PM, Tom Rini wrote: Maybe we should poke command.h to nop out U_BOOT_CMD for CONFIG_SPL_BUILD? OTOH, #ifndef'ing U_BOOT_CMD and the code itself gets us a space savings we wouldn't get otherwise (I suspect giving the MTD/NAND issue I've mentioned before)... Commands should

Re: [U-Boot] Question regarding NAND environment

2012-01-26 Thread Scott Wood
On 01/26/2012 11:05 AM, Peter Barada wrote: I'm trying to have a robust environment stored in NAND, and three blocks of space available to store it in. Looking at the REDUND code, I see it only keeps two copies of the environment regardless of the amount of space available. Instead I'm

[U-Boot] Pull request: nand flash

2012-01-26 Thread Scott Wood
: make 1-bit software ECC configurable Scott Wood (4): NAND: Remove additional (CONFIG_SYS)_NAND_MAX_CHIPS nand_spl: store ecc data on the stack nand: Introduce CONFIG_SYS_NAND_SELF_INIT nand/fsl_elbc: Convert to self-init Shengzhou Liu (1): mtd/nand: Add ONFI support

Re: [U-Boot] [PATCH 1/2] SPL: Add YMODEM over UART load support

2012-02-01 Thread Scott Wood
On 02/01/2012 04:24 AM, Wolfgang Denk wrote: Dear Tom Rini, In message 1328047438-26294-1-git-send-email-tr...@ti.com you wrote: From: Matt Porter mpor...@ti.com Adds support for loading U-Boot from UART using YMODEM protocol. If YMODEM support is enabled in SPL and the romcode indicates

Re: [U-Boot] flash post test

2012-02-06 Thread Scott Wood
On 02/06/2012 04:23 PM, Albert ARIBAUD wrote: Hi Vaibhav, Le 06/02/2012 05:57, vaibhav kothari a écrit : hi albert Yes,actually there is already support of flash test in POST of latest uboot.They are testing flash on every power on so am I for my board.But i don't want to disturb sectors

Re: [U-Boot] flash post test

2012-02-06 Thread Scott Wood
On 02/06/2012 04:59 PM, Albert ARIBAUD wrote: Hi Scott, Le 06/02/2012 23:55, Scott Wood a écrit : On 02/06/2012 04:23 PM, Albert ARIBAUD wrote: Hi Vaibhav, Le 06/02/2012 05:57, vaibhav kothari a écrit : hi albert Yes,actually there is already support of flash test in POST of latest

Re: [U-Boot] Does U-boot support ASLR?

2012-02-09 Thread Scott Wood
On 02/09/2012 12:58 PM, Mike Frysinger wrote: On Thursday 09 February 2012 13:37:15 Jason Markley wrote: please don't top post, and keep the mailing list in cc I agree any proposal would need to be accompanied by good reasoning. I'm honestly a little confused as to why a generally accepted

Re: [U-Boot] Does U-boot support ASLR?

2012-02-09 Thread Scott Wood
On 02/09/2012 01:50 PM, Mike Frysinger wrote: On Thursday 09 February 2012 14:28:07 Scott Wood wrote: On 02/09/2012 12:58 PM, Mike Frysinger wrote: On Thursday 09 February 2012 13:37:15 Jason Markley wrote: I agree any proposal would need to be accompanied by good reasoning. I'm honestly

Re: [U-Boot] Build u-Boot for NAND boot on i.MX53x platform

2012-02-09 Thread Scott Wood
On 02/09/2012 02:04 PM, Charles Manning wrote: On Wednesday 08 February 2012 17:16:10 Bud Miljkovic wrote: Can someone clue me in how one goes about a NAND bootable u-Boot? Bud You can't actually run uboot from NAND per se. The rom boot loader reads the image into ram where it runs.

Re: [U-Boot] Configuration settings for Freescale i.MX53x demo boards

2012-02-09 Thread Scott Wood
On 02/09/2012 03:37 PM, Bud Miljkovic wrote: Hello Jason Liu, Is there a glossary for the defines used in the /include/configs/board_name.h files? The symbols should be documented in README or under doc/ (though some are probably missing). -Scott

Re: [U-Boot] nand: current mainline show new startup output

2012-02-13 Thread Scott Wood
-by: Christian Hitz christian.h...@aizo.com Cc: Scott Wood scottw...@freescale.com [scottw...@freescale.com: minor fixes] Signed-off-by: Scott Wood scottw...@freescale.com :04 04 5ab34f43b64379528b9ef2652c8481fdab1a927a b453a49035e179dfb5f31c3164a1b7d3d62d66d6 M

Re: [U-Boot] [PATCH] Tricorder: Fix boot after making software ecc configurable

2012-02-13 Thread Scott Wood
On 02/13/2012 02:56 AM, Thomas Weber wrote: The tricorder stops booting with the following message: U-Boot 2011.12-00325-ga661206 (Feb 13 2012 - 09:29:50) OMAP3503-GP ES3.1, CPU-OPP2, L3-165MHz, Max CPU Clock 600 mHz OMAP3 Tricorder + LPDDR/NAND I2C: ready DRAM: 128 MiB NAND:

  1   2   3   4   5   6   7   8   9   10   >