MTd don't
Hello All,
I try use MTВ/JFFS2 in my board based on ColdFire 5271 chip and NOR flash Amd AM29PL160CB.
Blkmem worked, but MTD don't started.
CONFIG_MTD=yCONFIG_MTD_DEBUG=yCONFIG_MTD_DEBUG_VERBOSE=3CONFIG_MTD_CHAR=yCONFIG_MTD_BLOCK=yCONFIG_MTD_CFI=yCONFIG_MTD_JEDECPROBE=yCONFIG_MTD_GEN_PROBE=yCONFIG_MTD_CFI_AMDSTD=yCONFIG_MTD_RAM=yCONFIG_MTD_ROM=yCONFIG_MTD_PHYSMAP=yCONFIG_MTD_PHYSMAP_START=FE000000CONFIG_MTD_PHYSMAP_LEN=200000CONFIG_MTD_PHYSMAP_BUSWIDTH=2
CONFIG_BLK_DEV_RAM=yCONFIG_BLK_DEV_RAM_SIZE=4096CONFIG_BLK_DEV_BLKMEM=yCONFIG_NOFLASH=y
Quoted 45 lines
Linux version 2.4.31-uc0 (root@darkstar) (gcc version 2.95.3 20010315 ( release)(ColdFire patches - 20010318 from http://fiddes.net/coldfire/)(uClinux X IP and shared lib patches from http://www.snapgear.com/)) #7 Mon Jan 30 11:18:45
MSK 2006uClinux/COLDFIRE(m5270/5271)
COLDFIRE port done by Greg Ungerer, [email protected]
Flat model support (C) 1998,1999 Kenneth Albanowski, D. Jeff Dionne On node 0 totalpages: 2048
zone(0): 0 pages.
zone(1): 2048 pages.
zone(2): 0 pages.
Kernel command line:
Calibrating delay loop... 65.94 BogoMIPS
Memory available: 7868k/8192k RAM, 0k/0k ROM (705k kernel code, 215k data)kmem_create: Forcing size word alignment -mm_structkmem_create: Forcing size word alignment - filp
Dentry cache hash table entries: 1024 (order: 1, 8192 bytes) Inode cache hash table entries: 512 (order: 0, 4096 bytes)kmem_create: Forcing size word alignment -inode_cache
Mount cache hash table entries: 512 (order: 0, 4096 bytes)kmem_create: Forcing size word alignment -bdev_cachekmem_create: Forcing size word alignment -cdev_cachekmem_create: Forcing size word alignment - kiobuf
Buffer cache hash table entries: 1024 (order: 0, 4096 bytes) Page-cache hash table entries: 2048 (order: 1, 8192 bytes) POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039 Initializing RT netlink socket
Starting kswapdkmem_create: Forcing size word alignment -file_lock_cacheColdFire internal UART serial driver version 1.00
ttyS0 at0x40000200(irq = 77) is a builtin ColdFire UART ttyS1 at0x40000240(irq = 78) is a builtin ColdFire UART ttyS2 at0x40000280(irq = 79) is a builtin ColdFire UARTkmem_create: Forcing size word alignment -blkdev_requestsfec.c: Probe number 1 with0x0000
eth0: FEC ENET Version 0.2, dc:a1:5c:fd:7b:89
FEC: No PHY device found.
SLIP: version 0.8.4-NET3.019-NEWTTY (dynamic channels, max=256).
CSLIP: code copyright 1989 Regents of the University of California. Blkmem copyright 1998,1999 D. Jeff Dionne
Blkmem copyright 1998 Kenneth Albanowski
Blkmem 1 disk images:
Quoted 8 lines
0: FE0D2DBC-FE1FC9BB [VIRTUAL FE0D2DBC-FE1FC9BB] (RO) <ROMFS> RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize PPP generic driver version 2.4.2
PPP MPPE compression module registered
physmap flash device: 200000 atfe000000
1
2
3
1,2,3 - is modified chipreg.c:
struct mtd_info *do_map_probe(const char *name, struct map_info *map)
{
struct mtd_chip_driver *drv;
struct mtd_info *ret;printk("1\n");
drv = get_mtd_chip_driver(name);
if (!drv && !request_module(name))
drv = get_mtd_chip_driver(name);printk("2\n");
if (!drv)
return NULL;printk("3\n");
ret = drv->probe(map);
#ifdef CONFIG_MODULES
/* We decrease the use count here. It may have been a
probe-only module, which is no longer required from this
point, having given us a handle on (and increased the use
count of) the actual driver code.
*/
if(drv->module)
__MOD_DEC_USE_COUNT(drv->module);#endifprintk("4\n");
if (ret)
return ret;printk("5\n");
return NULL;
}Signature · 2 lines
Best regards, Alexey mailto:[email protected]