public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* Subject: [PATCH 3/3] [ARM] OMAP: Adding Support for 2K nand page support on omap2430
@ 2007-07-27 17:16 sshahrom
  2007-07-29 15:18 ` Ram
       [not found] ` <8bf247760707310753h7ca6cb78u3af809454d159a59@mail.gmail.com>
  0 siblings, 2 replies; 5+ messages in thread
From: sshahrom @ 2007-07-27 17:16 UTC (permalink / raw)
  To: linux-omap-open-source


Hi,
Continuing with rest of the patch series on linux.omap.com

Signed-off-by: Shahrom Sharif-Kashani <sshahrom@micron.com>

:100644 100644 295a568... 0000000... M	drivers/mtd/nand/Kconfig
:100644 100644 f9a1f6b... 0000000... M	drivers/mtd/nand/Makefile

diff --git a/drivers/mtd/nand/Kconfig b/drivers/mtd/nand/Kconfig
index 295a568..31f646f 100644
--- a/drivers/mtd/nand/Kconfig
+++ b/drivers/mtd/nand/Kconfig
@@ -69,6 +69,12 @@ config MTD_NAND_AMS_DELTA
 	help
 	  Support for NAND flash on Amstrad E3 (Delta).
 
+config MTD_NAND_OMAP2
+	tristate "NAND Flash device on OMAP 2420H4/2430SDP boards"
+	depends on ARM && ARCH_OMAP2 && MTD_NAND
+	help
+          Support for NAND flash on Texas Instruments 2430SDP/2420H4 platforms.
+
 config MTD_NAND_OMAP
 	tristate "NAND Flash device on OMAP H3/H2/P2 boards"
 	depends on ARM && ARCH_OMAP1 && MTD_NAND && (MACH_OMAP_H2 || MACH_OMAP_H3 || MACH_OMAP_PERSEUS2)
diff --git a/drivers/mtd/nand/Makefile b/drivers/mtd/nand/Makefile
index f9a1f6b..1539c98 100644
--- a/drivers/mtd/nand/Makefile
+++ b/drivers/mtd/nand/Makefile
@@ -24,6 +24,7 @@ obj-$(CONFIG_MTD_NAND_NANDSIM)		+= nands
 obj-$(CONFIG_MTD_NAND_CS553X)		+= cs553x_nand.o
 obj-$(CONFIG_MTD_NAND_NDFC)		+= ndfc.o
 obj-$(CONFIG_MTD_NAND_OMAP) 		+= omap-nand-flash.o
+obj-$(CONFIG_MTD_NAND_OMAP2) 		+= omap2.o
 obj-$(CONFIG_MTD_NAND_OMAP_HW)		+= omap-hw.o
 obj-$(CONFIG_MTD_NAND_AT91)		+= at91_nand.o
 obj-$(CONFIG_MTD_NAND_CM_X270)		+= cmx270_nand.o

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: Subject: [PATCH 3/3] [ARM] OMAP: Adding Support for 2K nand page support on omap2430
  2007-07-27 17:16 Subject: [PATCH 3/3] [ARM] OMAP: Adding Support for 2K nand page support on omap2430 sshahrom
@ 2007-07-29 15:18 ` Ram
  2007-07-30 16:12   ` sshahrom
       [not found] ` <8bf247760707310753h7ca6cb78u3af809454d159a59@mail.gmail.com>
  1 sibling, 1 reply; 5+ messages in thread
From: Ram @ 2007-07-29 15:18 UTC (permalink / raw)
  To: Linux-omap-open-source

Hi shahrom,

Thanks for the patches. Tested the patches on a custom built OMAP2430
with Micron Nand Flash MT29F1GXXABB - A 16 bit nand flash.

I am getting CRC issues during read. I have tested this on 2 different boards.
But i get the same kind of messages.

I am using a OMAP2430 POP with micron nand flash.

What is the part-number of the micron nand chip youre using?.

Is youre nand device an external nand chip or a OMAP2430 POP?

Does this really matter?

Please do advice.


Regards,
sriram

Memory policy: ECC disabled, Data cache writeback
OMAP24302
SRAM: Mapped pa 0x40200000 to va 0xd0000000 size: 0x100000
CPU0: D VIPT write-back cache
CPU0: I cache: 32768 bytes, associativity 4, 32 byte lines, 256 sets
CPU0: D cache: 32768 bytes, associativity 4, 32 byte lines, 256 sets
Built 1 zonelists.  Total pages: 16256
Kernel command line: console=ttyS0,115200n8 root=/dev/mtdblock4
rootfstype=jffs2 noinitrd
Clocking rate (Crystal/DPLL/MPU): 12.0/532/266 MHz
clock.c: Enable for dpll_ck without enable code
GPMC revision 3.0
IRQ: Found an INTC at 0xd80fe000 (revision 3.0) with 96 interrupts
Total of 96 interrupts on 1 active controller
OMAP243x GPIO hardware version 2.4
PID hash table entries: 256 (order: 8, 1024 bytes)
Console: colour dummy device 80x30
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 64MB 0MB = 64MB total
Memory: 62640KB available (1892K code, 232K data, 100K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NAND: Found NAND on CS 0
OMAP DMA hardware revision 4.0
Initializing OMAP McBSP system
omapdsp: could not acquire dsp_fck handle.
USB: No board-specific platform config found
i2c_omap i2c_omap.2: bus 2 rev3.7 at 2600 kHz
i2c_omap i2c_omap.1: bus 1 rev3.7 at 400 kHz
TWL4030: TRY attach Slave TWL4030-ID0 on Adapter OMAP I2C adapter [1]
TWL4030: TRY attach Slave TWL4030-ID1 on Adapter OMAP I2C adapter [1]
TWL4030: TRY attach Slave TWL4030-ID2 on Adapter OMAP I2C adapter [1]
TWL4030: TRY attach Slave TWL4030-ID3 on Adapter OMAP I2C adapter [1]
<6>TWL4030: Driver registration complete.
NetWinder Floating Point Emulator V0.97 (double precision)
Time: gp timer clocksource has been installed.
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
JFFS2 version 2.2. (NAND) Â(c) 2001-2006 Red Hat, Inc.
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
omapfb: configured for panel sdp2430
omapfb: DISPC version 3.0 initialized
Console: switching to colour frame buffer device 30x40
omapfb: Framebuffer initialized. Total vram 155648 planes 1
omapfb: Pixclock 4000 kHz hfreq 14.0 kHz vfreq 42.5 Hz
omap_rng omap_rng: OMAP Random Number Generator ver. 50
OMAP Watchdog Timer Rev 0x22: initial timeout 60 sec
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled
serial8250.0: ttyS0 at MMIO 0x4806a000 (irq = 72) is a ST16654
serial8250.0: ttyS1 at MMIO 0x4806c000 (irq = 73) is a ST16654
serial8250.0: ttyS2 at MMIO 0x4806e000 (irq = 74) is a ST16654
RAMDISK driver initialized: 16 RAM disks of 16384K size 1024 blocksize
loop: module loaded
i2c /dev entries driver
TWL4030 GPIO Demux: IRQ Range 376 to 386, Initialization Success
omap2-nand driver initializing
NAND device: Manufacturer ID: 0x2c, Chip ID: 0xb1 (Micron NAND 128MiB
1,8V 16-bit)
Creating 5 MTD partitions on "omap2-nand":
0x00000000-0x00080000 : "X-Loader"
0x00080000-0x00100000 : "U-Boot"
0x00100000-0x00140000 : "U-Boot Environment"
0x00140000-0x00540000 : "Kernel"
0x00540000-0x08000000 : "File System"
input: omap_twl4030keypad as /class/input/input0
Power Management for OMAP2 initializing
PRCM revision 1.0
mtd->read(0x1f9c8 bytes from 0xbc0638) returned ECC error
mtd->read(0x12d2c bytes from 0xbcd2d4) returned ECC error
Empty flash at 0x00bcd2d0 ends at 0x00bcd800
mtd->read(0x2a4 bytes from 0xbd655c) returned ECC error
mtd->read(0x7bc bytes from 0xbcd844) returned ECC error
VFS: Mounted root (jffs2 filesystem).
Freeing init memory: 100K
Please press Enter to activate this console. mtd->read(0x24c bytes
from 0xbd5db4) returned ECC error
mtd->read(0xf3 bytes from 0xbdf800) returned ECC error
JFFS2 notice: (196) check_node_data: wrong data CRC in data node at
0x00bdf800: read 0xd6de9ecd, calculated 0x7694332c.
mtd->read(0x517 bytes from 0xbd6000) returned ECC error


Processing /etc/profile... Done

[root@OMAP2430_ALPHA /]#mtd->read(0x464 bytes from 0xbd5b9c) returned ECC error
mtd->read(0x60 bytes from 0xbd4fa0) returned ECC error
mtd->read(0xf4 bytes from 0xbd3f0c) returned ECC error
mtd->read(0x2c8 bytes from 0xbd3538) returned ECC error
mtd->read(0x4fc bytes from 0xbd2304) returned ECC error
mtd->read(0x6a8 bytes from 0xbd1958) returned ECC error
mtd->read(0x7c bytes from 0xbd0f84) returned ECC error
mtd->read(0x17c bytes from 0xbd0684) returned ECC error
mtd->read(0x374 bytes from 0xbcfc8c) returned ECC error
mtd->read(0x5c4 bytes from 0xbcf23c) returned ECC error
mtd->read(0x7e0 bytes from 0xbce820) returned ECC error
mtd->read(0x7d4 bytes from 0xbce02c) returned ECC error
mtd->read(0x790 bytes from 0xbcd870) returned ECC error
mtd->read(0x800 bytes from 0xbcd800) returned ECC error
mtd->read(0x810 bytes from 0xbdeff0) returned ECC error
mtd->read(0x260 bytes from 0xbde5a0) returned ECC error
mtd->read(0x1c8 bytes from 0xbdde38) returned ECC error
mtd->read(0x128 bytes from 0xbdd6d8) returned ECC error
mtd->read(0x324 bytes from 0xbdccdc) returned ECC error
mtd->read(0x54c bytes from 0xbdbab4) returned ECC error
mtd->read(0xfc bytes from 0xbda704) returned ECC error
mtd->read(0x280 bytes from 0xbd9d80) returned ECC error
mtd->read(0x644 bytes from 0xbd89bc) returned ECC error
mtd->read(0x30 bytes from 0xbd7fd0) returned ECC error
mtd->read(0x800 bytes from 0xbd8000) returned ECC error
mtd->read(0x298 bytes from 0xbd7568) returned ECC error
mtd->read(0x2d0 bytes from 0xbd6d30) returned ECC error
mtd->read(0x278 bytes from 0xbd6588) returned ECC error

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: Subject: [PATCH 3/3] [ARM] OMAP: Adding Support for 2K nand page support on omap2430
  2007-07-29 15:18 ` Ram
@ 2007-07-30 16:12   ` sshahrom
  0 siblings, 0 replies; 5+ messages in thread
From: sshahrom @ 2007-07-30 16:12 UTC (permalink / raw)
  To: vshrirama, Linux-omap-open-source

Hi,
Make sure you flash your nand with HW ECC not SW ECC. Another issue could be Timing if your GPMC. But I would look into flashing again.
Regards,
-Shahrom

-----Original Message-----
From: Ram [mailto:vshrirama@gmail.com] 
Sent: Sunday, July 29, 2007 8:18 AM
To: Linux-omap-open-source@linux.omap.com
Cc: sshahrom
Subject: Re: Subject: [PATCH 3/3] [ARM] OMAP: Adding Support for 2K nand page support on omap2430

Hi shahrom,

Thanks for the patches. Tested the patches on a custom built OMAP2430 with Micron Nand Flash MT29F1GXXABB - A 16 bit nand flash.

I am getting CRC issues during read. I have tested this on 2 different boards.
But i get the same kind of messages.

I am using a OMAP2430 POP with micron nand flash.

What is the part-number of the micron nand chip youre using?.

Is youre nand device an external nand chip or a OMAP2430 POP?

Does this really matter?

Please do advice.


Regards,
sriram

Memory policy: ECC disabled, Data cache writeback
OMAP24302
SRAM: Mapped pa 0x40200000 to va 0xd0000000 size: 0x100000
CPU0: D VIPT write-back cache
CPU0: I cache: 32768 bytes, associativity 4, 32 byte lines, 256 sets
CPU0: D cache: 32768 bytes, associativity 4, 32 byte lines, 256 sets Built 1 zonelists.  Total pages: 16256 Kernel command line: console=ttyS0,115200n8 root=/dev/mtdblock4
rootfstype=jffs2 noinitrd
Clocking rate (Crystal/DPLL/MPU): 12.0/532/266 MHz
clock.c: Enable for dpll_ck without enable code GPMC revision 3.0
IRQ: Found an INTC at 0xd80fe000 (revision 3.0) with 96 interrupts Total of 96 interrupts on 1 active controller OMAP243x GPIO hardware version 2.4 PID hash table entries: 256 (order: 8, 1024 bytes)
Console: colour dummy device 80x30
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes) Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 64MB 0MB = 64MB total
Memory: 62640KB available (1892K code, 232K data, 100K init) Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NAND: Found NAND on CS 0
OMAP DMA hardware revision 4.0
Initializing OMAP McBSP system
omapdsp: could not acquire dsp_fck handle.
USB: No board-specific platform config found i2c_omap i2c_omap.2: bus 2 rev3.7 at 2600 kHz i2c_omap i2c_omap.1: bus 1 rev3.7 at 400 kHz
TWL4030: TRY attach Slave TWL4030-ID0 on Adapter OMAP I2C adapter [1]
TWL4030: TRY attach Slave TWL4030-ID1 on Adapter OMAP I2C adapter [1]
TWL4030: TRY attach Slave TWL4030-ID2 on Adapter OMAP I2C adapter [1]
TWL4030: TRY attach Slave TWL4030-ID3 on Adapter OMAP I2C adapter [1]
<6>TWL4030: Driver registration complete.
NetWinder Floating Point Emulator V0.97 (double precision)
Time: gp timer clocksource has been installed.
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
JFFS2 version 2.2. (NAND) Â(c) 2001-2006 Red Hat, Inc.
io scheduler noop registered
io scheduler anticipatory registered (default) io scheduler deadline registered io scheduler cfq registered
omapfb: configured for panel sdp2430
omapfb: DISPC version 3.0 initialized
Console: switching to colour frame buffer device 30x40
omapfb: Framebuffer initialized. Total vram 155648 planes 1
omapfb: Pixclock 4000 kHz hfreq 14.0 kHz vfreq 42.5 Hz omap_rng omap_rng: OMAP Random Number Generator ver. 50 OMAP Watchdog Timer Rev 0x22: initial timeout 60 sec
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled
serial8250.0: ttyS0 at MMIO 0x4806a000 (irq = 72) is a ST16654
serial8250.0: ttyS1 at MMIO 0x4806c000 (irq = 73) is a ST16654
serial8250.0: ttyS2 at MMIO 0x4806e000 (irq = 74) is a ST16654 RAMDISK driver initialized: 16 RAM disks of 16384K size 1024 blocksize
loop: module loaded
i2c /dev entries driver
TWL4030 GPIO Demux: IRQ Range 376 to 386, Initialization Success omap2-nand driver initializing NAND device: Manufacturer ID: 0x2c, Chip ID: 0xb1 (Micron NAND 128MiB 1,8V 16-bit) Creating 5 MTD partitions on "omap2-nand":
0x00000000-0x00080000 : "X-Loader"
0x00080000-0x00100000 : "U-Boot"
0x00100000-0x00140000 : "U-Boot Environment"
0x00140000-0x00540000 : "Kernel"
0x00540000-0x08000000 : "File System"
input: omap_twl4030keypad as /class/input/input0 Power Management for OMAP2 initializing PRCM revision 1.0
mtd->read(0x1f9c8 bytes from 0xbc0638) returned ECC error read(0x12d2c 
mtd->bytes from 0xbcd2d4) returned ECC error
Empty flash at 0x00bcd2d0 ends at 0x00bcd800
mtd->read(0x2a4 bytes from 0xbd655c) returned ECC error read(0x7bc bytes 
mtd->from 0xbcd844) returned ECC error
VFS: Mounted root (jffs2 filesystem).
Freeing init memory: 100K
Please press Enter to activate this console. mtd->read(0x24c bytes from 0xbd5db4) returned ECC error
mtd->read(0xf3 bytes from 0xbdf800) returned ECC error
JFFS2 notice: (196) check_node_data: wrong data CRC in data node at
0x00bdf800: read 0xd6de9ecd, calculated 0x7694332c.
mtd->read(0x517 bytes from 0xbd6000) returned ECC error


Processing /etc/profile... Done

[root@OMAP2430_ALPHA /]#mtd->read(0x464 bytes from 0xbd5b9c) returned ECC error
mtd->read(0x60 bytes from 0xbd4fa0) returned ECC error
mtd->read(0xf4 bytes from 0xbd3f0c) returned ECC error
mtd->read(0x2c8 bytes from 0xbd3538) returned ECC error read(0x4fc bytes 
mtd->from 0xbd2304) returned ECC error
mtd->read(0x6a8 bytes from 0xbd1958) returned ECC error read(0x7c bytes 
mtd->from 0xbd0f84) returned ECC error read(0x17c bytes from 0xbd0684) 
mtd->returned ECC error
mtd->read(0x374 bytes from 0xbcfc8c) returned ECC error
mtd->read(0x5c4 bytes from 0xbcf23c) returned ECC error read(0x7e0 bytes 
mtd->from 0xbce820) returned ECC error
mtd->read(0x7d4 bytes from 0xbce02c) returned ECC error read(0x790 bytes 
mtd->from 0xbcd870) returned ECC error read(0x800 bytes from 0xbcd800) 
mtd->returned ECC error read(0x810 bytes from 0xbdeff0) returned ECC 
mtd->error read(0x260 bytes from 0xbde5a0) returned ECC error
mtd->read(0x1c8 bytes from 0xbdde38) returned ECC error
mtd->read(0x128 bytes from 0xbdd6d8) returned ECC error
mtd->read(0x324 bytes from 0xbdccdc) returned ECC error read(0x54c bytes 
mtd->from 0xbdbab4) returned ECC error read(0xfc bytes from 0xbda704) 
mtd->returned ECC error read(0x280 bytes from 0xbd9d80) returned ECC 
mtd->error
mtd->read(0x644 bytes from 0xbd89bc) returned ECC error read(0x30 bytes 
mtd->from 0xbd7fd0) returned ECC error read(0x800 bytes from 0xbd8000) 
mtd->returned ECC error
mtd->read(0x298 bytes from 0xbd7568) returned ECC error read(0x2d0 bytes 
mtd->from 0xbd6d30) returned ECC error
mtd->read(0x278 bytes from 0xbd6588) returned ECC error

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Subject: [PATCH 3/3] [ARM] OMAP: Adding Support for 2K nand page support on omap2430
       [not found]   ` <809D758398CC1F49AA8E493528AD4A27014DF6B8@ntxsjombx02.micron.com>
@ 2007-08-03 17:16     ` Ram
  2007-08-04 13:39       ` Nishanth Menon
  0 siblings, 1 reply; 5+ messages in thread
From: Ram @ 2007-08-03 17:16 UTC (permalink / raw)
  To: linux-omap-open-source

Hi,
  Sorry for the late response. I am appending the kernel dump of all
the gpmc registers
  you had asked for after omap_nand_probe.

  My nand chip is a 128 MB chip. hence the base address i have taken
is 0x10000000
  which is 128MB boundary.
  hence my chip address and mask will become 0x850.(0x6e000078)

  do let me know if the timings are okay?

  am still getting messages such as
  Once i a while i get messages such as Empty flash at 0x00842758 ends
at 0x00842800
  and i get CRC errors as and when i store files and read them back.
  mtd->read(0x358 bytes from 0x590488) returned ECC error
  mtd->read(0x370 bytes from 0x590920) returned ECC error



  Thanking you,

   Regards,
   sriram


NAND device: Manufacturer ID: 0x2c, Chip ID: 0xb1 (Micron NAND 128MiB
1,8V 16-bit)
Creating 5 MTD partitions on "omap2-nand":
0x00000000-0x00080000 : "X-Loader"
0x00080000-0x00100000 : "U-Boot"
0x00100000-0x00140000 : "U-Boot Environment"
0x00140000-0x00540000 : "Kernel"
0x00540000-0x08000000 : "File System"
6e000010 => 11
6e000014 => 1
6e000018 => 0
6e00001c => 100
6e000020 => 0
6e000024 => 0
6e000028 => 0
6e00002c => 0
6e000030 => 0
6e000034 => 0
6e000038 => 0
6e00003c => 0
6e000040 => 0
6e000044 => 0
6e000048 => 0
6e00004c => 0
6e000050 => 11
6e000054 => f01
6e000058 => 0
6e00005c => 0
6e000060 => 601800
6e000064 => 141400
6e000068 => 141400
6e00006c => f010f01
6e000070 => 10c1414
6e000074 => a80
6e000078 => 850
6e00007c => ffffffff
6e000080 => ffffffff
6e000084 => ffffffff
6e000088 => 0
6e00008c => 0
6e000090 => 1000
6e000094 => 101001
6e000098 => 20201
6e00009c => 10031003
6e0000a0 => 10f1111
6e0000a4 => 0
6e0000a8 => f00
6e0000b8 => 0
6e0000bc => 0
6e0000c0 => 621000
6e0000c4 => 1f1f01
6e0000c8 => 80803
6e0000cc => 1c091c09
6e0000d0 => 41f1f1f
6e0000d4 => 4c4
6e0000d8 => f44
6e0000dc => 100000
6e0000e0 => 1c0000
6e0000e4 => 0
6e0000e8 => 0
6e0000ec => 0
6e0000f0 => 1000
6e0000f4 => 101001
6e0000f8 => 20201
6e0000fc => 10031003
6e000100 => 10f1111
6e000104 => 0
6e000108 => f00
6e000118 => 0
6e00011c => 0
6e000120 => 1000
6e000124 => 101001
6e000128 => 20201
6e00012c => 10031003
6e000130 => 10f1111
6e000134 => 0
6e000138 => f00
6e000148 => 0
6e00014c => 0
6e000150 => 11200
6e000154 => 1f1f00
6e000158 => 80802
6e00015c => 1c091c09
6e000160 => 41f1f1f
6e000164 => 4c4
6e000168 => f41
6e000178 => 0
6e00017c => 0
6e000180 => 1000
6e000184 => 101001
6e000188 => 20201
6e00018c => 10031003
6e000190 => 10f1111
6e000194 => 0
6e000198 => f00
6e0001a8 => 0
6e0001ac => 0
6e0001b0 => 1000
6e0001b4 => 101001
6e0001b8 => 20201
6e0001bc => 10031003
6e0001c0 => 10f1111
6e0001c4 => 0
6e0001c8 => f00
6e0001d8 => 0
6e0001dc => 0
6e0001e0 => 4000
6e0001e4 => 0
6e0001e8 => 0
6e0001ec => 0
6e0001f0 => 0
6e0001f4 => 80
6e0001f8 => 1
6e0001fc => 3fc0300f
6e000200 => 0
6e000204 => 0
6e000208 => 0
6e00020c => 0
6e000210 => 0
6e000214 => 0
6e000218 => 0
6e00021c => 0
6e000220 => 0
6e000224 => 0
6e000228 => 0
6e00022c => 0
6e000230 => 0
6e000234 => 0
input: omap_twl4030keypad as /class/input/input0
Power Management for OMAP2 initializing
PRCM revision 1.0
VFS: Mounted root (jffs2 filesystem).
Freeing init memory: 92K




On 7/31/07, sshahrom@micron.com <sshahrom@micron.com> wrote:
>
> Hello,
> If you wrote to nand flash with SW ECC enabled. That place 12 bytes at offset 32 in spare area. That is different from our driver since we place 12 bytes after Bad block indicator at the beginning of spare area. In this case read would fail as you see. As I said yesterday, erase the flash, and reflash either nandwrite or use bootloader.
> Another cause could be it seems like clock setting is different. From your yesterday mail:
>
> Clocking rate (Crystal/DPLL/MPU): 12.0/532/266 MHz
>
>
> From my Setting:
>
> Clocking rate (Crystal/DPLL/MPU): 13.0/660/330 MHz
>
> If you cat send us register setting at kernel level dump of registers 0x6e000000-0x6e00000280 after omap_nand_probe or init.
>
> Regards,
> -Shahrom
>
>
> -----Original Message-----
> From: Ram [mailto:vshrirama@gmail.com]
> Sent: Tuesday, July 31, 2007 7:53 AM
> To: sshahrom
> Subject: Re: Subject: [PATCH 3/3] [ARM] OMAP: Adding Support for 2K nand page support on omap2430
>
> Hi sharom,
>       I have managed to get git kernel booting on one of our boards.
> However, during usage i get lots of messages like.
>
> I am still getting the same errors.
> mount -t jffs2 /dev/mtdblock4 /mnt/
> mtd->read(0x1f9c8 bytes from 0xbc0638) returned ECC error read(0x12d2c
> mtd->bytes from 0xbcd2d4) returned ECC error
> Empty flash at 0x00bcd2d0 ends at 0x00bcd800 #mtd->read(0x800 bytes from 0xbcd800) returned ECC error
>
>
> After a long list of errors i have been able to get the shell prompt.
>
> However, As i add and delete files i get errors such as:
> Newly-erased block contained word 0xffff0000 at offset 0x02553000,
>
>
> Probably the GPMC settings are not okay. I dont know.
>
>  I am using MT29F1GxxABB (16 bit nand flash)
>
> Which chip are using using?
>
> Are there any differences in the timings between yours and mine.
>
> Am using the settings that comes with the bootloader.
> # define SMNAND_GPMC_CONFIG1 ( (0x00001800)) # define SMNAND_GPMC_CONFIG2 0x00141400 # define SMNAND_GPMC_CONFIG3 0x00141400 # define SMNAND_GPMC_CONFIG4 0x0F010F01 # define SMNAND_GPMC_CONFIG5 0x010C1414 # define SMNAND_GPMC_CONFIG6 0x00000A80
>
> Does the MT29F1GxxABB  require timings which are different from the chip youre using.
>
>
> Any help is highly appreciated.
>
>
> Please do advice.
>
>
> Regards,
> sriram
>
>
>
>
>
> On 7/27/07, sshahrom@micron.com <sshahrom@micron.com> wrote:
> >
> > Hi,
> > Continuing with rest of the patch series on linux.omap.com
> >
> > Signed-off-by: Shahrom Sharif-Kashani <sshahrom@micron.com>
> >
> > :100644 100644 295a568... 0000000... M  drivers/mtd/nand/Kconfig
> > :100644 100644 f9a1f6b... 0000000... M  drivers/mtd/nand/Makefile
> >
> > diff --git a/drivers/mtd/nand/Kconfig b/drivers/mtd/nand/Kconfig index
> > 295a568..31f646f 100644
> > --- a/drivers/mtd/nand/Kconfig
> > +++ b/drivers/mtd/nand/Kconfig
> > @@ -69,6 +69,12 @@ config MTD_NAND_AMS_DELTA
> >         help
> >           Support for NAND flash on Amstrad E3 (Delta).
> >
> > +config MTD_NAND_OMAP2
> > +       tristate "NAND Flash device on OMAP 2420H4/2430SDP boards"
> > +       depends on ARM && ARCH_OMAP2 && MTD_NAND
> > +       help
> > +          Support for NAND flash on Texas Instruments 2430SDP/2420H4 platforms.
> > +
> >  config MTD_NAND_OMAP
> >         tristate "NAND Flash device on OMAP H3/H2/P2 boards"
> >         depends on ARM && ARCH_OMAP1 && MTD_NAND && (MACH_OMAP_H2 ||
> > MACH_OMAP_H3 || MACH_OMAP_PERSEUS2) diff --git
> > a/drivers/mtd/nand/Makefile b/drivers/mtd/nand/Makefile index
> > f9a1f6b..1539c98 100644
> > --- a/drivers/mtd/nand/Makefile
> > +++ b/drivers/mtd/nand/Makefile
> > @@ -24,6 +24,7 @@ obj-$(CONFIG_MTD_NAND_NANDSIM)                += nands
> >  obj-$(CONFIG_MTD_NAND_CS553X)          += cs553x_nand.o
> >  obj-$(CONFIG_MTD_NAND_NDFC)            += ndfc.o
> >  obj-$(CONFIG_MTD_NAND_OMAP)            += omap-nand-flash.o
> > +obj-$(CONFIG_MTD_NAND_OMAP2)           += omap2.o
> >  obj-$(CONFIG_MTD_NAND_OMAP_HW)         += omap-hw.o
> >  obj-$(CONFIG_MTD_NAND_AT91)            += at91_nand.o
> >  obj-$(CONFIG_MTD_NAND_CM_X270)         += cmx270_nand.o
> > _______________________________________________
> > Linux-omap-open-source mailing list
> > Linux-omap-open-source@linux.omap.com
> > http://linux.omap.com/mailman/listinfo/linux-omap-open-source
> >
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Subject: [PATCH 3/3] [ARM] OMAP: Adding Support for 2K nand page support on omap2430
  2007-08-03 17:16     ` Ram
@ 2007-08-04 13:39       ` Nishanth Menon
  0 siblings, 0 replies; 5+ messages in thread
From: Nishanth Menon @ 2007-08-04 13:39 UTC (permalink / raw)
  To: Ram; +Cc: linux-omap-open-source

Ram,
Ram stated on 8/3/2007 12:16 PM:
>   My nand chip is a 128 MB chip. hence the base address i have taken
> is 0x10000000
>   which is 128MB boundary.
>   hence my chip address and mask will become 0x850.(0x6e000078)
it is a nand chip rt? Nands are I/O dev accessed using
GPMC_ADDR,CMD,DATA regs. So gpmc config wise, it does not matter where u
put it.. and u dont need to allocate 128M/put it on 128M boundary.
boundary restrictions are more valid for NOR-like devices.
Regards,
Nishanth Menon

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-08-04 13:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-27 17:16 Subject: [PATCH 3/3] [ARM] OMAP: Adding Support for 2K nand page support on omap2430 sshahrom
2007-07-29 15:18 ` Ram
2007-07-30 16:12   ` sshahrom
     [not found] ` <8bf247760707310753h7ca6cb78u3af809454d159a59@mail.gmail.com>
     [not found]   ` <809D758398CC1F49AA8E493528AD4A27014DF6B8@ntxsjombx02.micron.com>
2007-08-03 17:16     ` Ram
2007-08-04 13:39       ` Nishanth Menon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox