Question about AMD elan SC520

uwe uwe.walcher at fd-online.de
Mon Nov 15 04:15:28 EST 2004


Hi List,
i have a big problem and searching/trying now for some weeks.

Im trying to access the ELAN SC520 bord from Jumptec/Kontron with mtd 
and the sc520cdp.c driver. I am using Kernel 2.6.8.1. When i look at 
/proc/mtd i see

dev:             size              erasesize      name
mtd0:           01000000   00020000      "SC520CDP Flash Banks #0 and #1"
mtd1:           00080000   00020000      "SC520CDP DIL Flash"

Now my Problem. Every time i want to erase the flash (booting Linux with 
an extra disk on the evulation board (/dev/hdb1)) with flash_erase 
/dev/mtd0 i got the message: /dev/mtd0 Permission denied.
ftl_check /dev/mtd0 shows:
Memory region info:
 Region size=8 mb Erase block size=128 kb

No valid erase unit headers !

When the Kernel is booting, i saw the following Message :

-------- snip -----------
hda: SanDisk SDC1-32, CFA DISK drive
<4>hdb: WDC WD800JB-00CRA1, ATA DISK drive
<4>ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
<4>hda: max request size: 128KiB
<6>hda: 62720 sectors (32 MB) w/1KiB Cache, CHS=490/4/32
<6> hda: hda1
<4>hdb: max request size: 128KiB
<6>hdb: 156301488 sectors (80026 MB) w/8192KiB Cache, CHS=65535/16/63
<6> hdb: hdb1 hdb2 hdb3
<6>$Id: ftl.c,v 1.53 2004/08/09 13:55:43 dwmw2 Exp $
<6>NFTL driver: nftlcore.c $Revision: 1.96 $, nftlmount.c $Revision: 1.37 $
<6>INFTL: inftlcore.c $Revision: 1.17 $, inftlmount.c $Revision: 1.14 $
<5>Could not find PAR responsible for SC520CDP Flash Bank #0
<5>Trying default address 0x8400000
<5>Could not find PAR responsible for SC520CDP Flash Bank #1
<5>Trying default address 0x8c00000
<5>SC520 CDP flash device: 0x800000 at 0x8400000
<7>CFI: Found no SC520CDP Flash Bank #0 device at location zero
<5>SC520 CDP flash device: 0x800000 at 0x8c00000
<7>CFI: Found no SC520CDP Flash Bank #1 device at location zero
<5>SC520 CDP flash device: 0x80000 at 0x9800000
<7>CFI: Found no SC520CDP DIL Flash device at location zero
<5>Concatenating MTD devices:
<5>(0): "SC520CDP Flash Bank #0"
<5>(1): "SC520CDP Flash Bank #1"
<5>into device "SC520CDP Flash Banks #0 and #1"

-----------snip------------

Now my Question: On <5> i read:

Could not find PAR responsible for SC520CDP Flash Bank #0

Must i disable the SanDisk SDC1in bios to give the PAR access to the 
flash, or whats wrong ?

Many thanks for your help

by

Uwe Walcher










More information about the linux-mtd mailing list