All of lore.kernel.org
 help / color / mirror / Atom feed
* Can't get SST 39VF3201 flash device to work
@ 2006-11-08 18:51 Carlos Munoz
  0 siblings, 0 replies; only message in thread
From: Carlos Munoz @ 2006-11-08 18:51 UTC (permalink / raw)
  To: linux-mtd

I'm working on an custom embedded board (kernel 2.6.14) with a SST 
39VF3201 flash chip. I have tried all configurations I can think off and 
still can't get the kernel to successfully access the flash (jffs2 
filesystem). With the following configuration in the jedec_probe.c file 
I get the best results:

.mfr_id         = MANUFACTURER_SST,     /* should be CFI */
.dev_id         = SST39VF3201,
.name           = "SST 39VF3201",
.uaddr          = {
        [0] = MTD_UADDR_0x5555_0x2AAA,  /* x8 */
        [1] = MTD_UADDR_0x5555_0x2AAA   /* x16 */
},
.DevSize        = SIZE_4MiB,
.CmdSet         = P_ID_AMD_STD,
.NumEraseRegions= 1,
.regions        = {
        ERASEINFO(0x10000,64)
}

Has anyone been able to use this device under linux ? If so, how did you 
configure the kernel/mtd subsystem to get it to work ?

I'm including the boot log in case it helps:

Linux version 2.6.14.6 (carlos@whitetip) (gcc version 3.4.3) #46 PREEMPT 
Tue Nov 7 19:48:32 PST 2006
CPU: ARM926EJ-Sid(wb) [41069260] revision 0 (ARMv5TEJ)
Machine: MV88W8518
Using U-Boot passing parameters structure - U-Boot release 1.1.1.18
Memory policy: ECC disabled, Data cache writeback
CPU0: D VIVT write-back cache
CPU0: I cache: 32768 bytes, associativity 1, 32 byte lines, 1024 sets
CPU0: D cache: 32768 bytes, associativity 4, 32 byte lines, 256 sets
Built 1 zonelists
Kernel command line: root=/dev/mtdblock0 rw rootfstype=jffs2 
console=ttyS0,38400 init=/bin/sh
PID hash table entries: 128 (order: 7, 2048 bytes)
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 16MB = 16MB total
Memory: 14080KB available (1715K code, 303K data, 72K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
JFFS2 version 2.2. (NAND) (C) 2001-2003 Red Hat, Inc.
Serial: 8250/16550 driver $Revision: 1.1.2.9 $ 2 ports, IRQ sharing enabled
ttyS0 at MMIO 0xf800c840 (irq = 11) is a 16550A
io scheduler noop registered
io scheduler deadline registered
PHY found at addr 16,  ID 1410c87,  mii_status 7849
eth0: mv88w8xx8 FEC @ 80008000, 00:09:11:22:33:45 irq 9
PPP generic driver version 2.4.2
PPP Deflate Compression module registered
PPP BSD Compression module registered
Found: SST 39VF3201
MV88W8XX8 flash memory: Found 1 x16 devices at 0x0 in 16-bit bank
number of JEDEC chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
MV88W8XX8 flash map (size->0x400000 mem->0xFFC00000)
Creating 3 MTD partitions on "MV88W8XX8 flash memory":
0x00000000-0x00250000 : "Rootfs"
0x00250000-0x00260000 : "U-Boot environment"
0x00260000-0x00400000 : "U-Boot"
u32 classifier
    OLD policer on
NET: Registered protocol family 2
IP route cache hash table entries: 256 (order: -2, 1024 bytes)
TCP established hash table entries: 1024 (order: 0, 4096 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
ip_conntrack version 2.3 (128 buckets, 1024 max) - 228 bytes per conntrack
ip_tables: (C) 2000-2002 Netfilter core team
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
flash_size=250000 used_size=0 dirty_size=0 wasted_size=0 
free_size=250000 erasing_size=0 bad_size=0 sector_size=10000 
unchecked_size=0
Eep. Child "sh" (ino #55) of dir ino #2 doesn't exist!
VFS: Mounted root (jffs2 filesystem).
Freeing init memory: 72K
Failed to execute /bin/sh.  Attempting defaults...


Thanks,


Carlos

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-11-08 19:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-08 18:51 Can't get SST 39VF3201 flash device to work Carlos Munoz

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.