public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* Problem writing to NOR flash
@ 2004-07-19 16:06 Andy Hawkins
  0 siblings, 0 replies; 12+ messages in thread
From: Andy Hawkins @ 2004-07-19 16:06 UTC (permalink / raw)
  To: linux-mtd

Hi,

We're trying to write to NOR flash on our custom board. We can
successfully read without problem, but when we try to write we get the
following (apologies about the wrapping):

Unlocking flash.Oops: kernel access of bad area, sig: 11
NIP: C00CE4B8 XER: 00000000 LR: C00CE438 SP: C7769E10 REGS: c7769d60
TRAP: 0800d
MSR: 00009030 EE: 1 PR: 0 FP: 0 ME: 1 IR/DR: 11
DEAR: C8C0E002, ESR: 00800000
TASK = c7768000[170] 'fw_setenv' Last syscall: 54
last math 00000000 last altivec 00000000
PLB0: bear= 0x00000000 acr=   0x00000000 besr=  0x00000000
PLB0 to OPB: bear= 0x00000000 besr0= 0x00000000 besr1= 0x00000000

GPR00: 00000000 C7769E10 C7768000 00000000 C016657C 00000001 0000000E
00000000
GPR08: 00000020 C900E000 00001FFF 00000000 00000000 1001B8EC 00000000
00000000
GPR16: 00000000 00000000 00000000 00000000 00009032 C00CE380 00000000
C7769E88
GPR24: C0190000 C03BB740 C7769E88 C03BB778 C016657C 00000000 C018B440
FFC00002
Call backtrace:
C00CE3D4 C00CDDAC C00CE550 C00C3CEC C00C4DD4 C004C33C C000457C
7FFFFC30 100016A8 10001448 10002B7C 0FEB6D84 00000000

The backtrace information points to the crash being in
do_xxlock_oneblock (if I'm reading the System.map correctly).

The relevant bits of System.map are below

c00c3c80 t part_unlock
c00c3cf0 t part_sync
c00c4c2c t mtd_ioctl
c00c55d0 t mtd_notify_add
c00cdbdc t cfi_amdstd_varsize_frob
c00cde3c t cfi_amdstd_erase_varsize
c00ce380 t do_xxlock_oneblock
c00ce4d8 t cfi_amdstd_lock_varsize
c00ce51c t cfi_amdstd_unlock_varsize
c00ce560 t cfi_amdstd_destroy

The flash is a M29W320DB.

I'm using a relatively old snapshot, but comparing with the current
snapshot shows that function hasn't changed.

Can anyone offer any advice? I have access to a BDI-2000 if any low
level debugging is required.

Many thanks.

Andy

^ permalink raw reply	[flat|nested] 12+ messages in thread
* Problem writing to NOR flash
@ 2004-07-26 13:32 Andy Hawkins
  2004-07-26 14:00 ` Dmitry A. Fedorov
  2004-07-29 19:41 ` David Woodhouse
  0 siblings, 2 replies; 12+ messages in thread
From: Andy Hawkins @ 2004-07-26 13:32 UTC (permalink / raw)
  To: linux-mtd

Hi all,

We're using a 2.4.20 derived kernel, and a while back updated to a
recent MTD snapshot to get support for the Samsung NAND 128MiB on our
hardware).

However, we found that with this snapshot, we could no longer write to
the NOR flash on our board (I posted a message about this on 19th July,
but had no responses).

To see if this problem has now been fixed, I have just downloaded the
latest snapshot to try. However, I can no longer get this to compile.
After changing some Makefiles, I have now found that the new code uses
'kvec' in place of 'iovec'. Is this a 2.6 feature?

If so, are there any plans to make the current MTD code work with 2.4?

What would people recommend we do in order to get working MTD support
for the chips on our board for a 2.4 kernel?

Many thanks.

Andy

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

end of thread, other threads:[~2004-08-12  6:59 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-19 16:06 Problem writing to NOR flash Andy Hawkins
  -- strict thread matches above, loose matches on Subject: below --
2004-07-26 13:32 Andy Hawkins
2004-07-26 14:00 ` Dmitry A. Fedorov
2004-07-26 14:11   ` Andy Hawkins
2004-07-26 14:35     ` Dmitry A. Fedorov
2004-07-26 14:49       ` Andy Hawkins
2004-07-26 15:00         ` Dmitry A. Fedorov
2004-07-26 15:39           ` Andy Hawkins
2004-07-26 16:07             ` Andy Hawkins
2004-08-05 23:24               ` Eric W. Biederman
2004-08-12  6:59                 ` Eric W. Biederman
2004-07-29 19:41 ` David Woodhouse

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