MCF5485evb evaluation board; Linux kernel 2.6.10 BSP; Trouble with rootfs in flash

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MCF5485evb evaluation board; Linux kernel 2.6.10 BSP; Trouble with rootfs in flash

2,289 Views
jkimble
Contributor III

I've followed the "Users Guide" document to the letter in building and burning the kernel and the rootfs to flash. I can boot to NFS with no problem. The flash file system appears to be initialized correctly but when I go to auto boot from flash and load the rootfs from flash I get the following errors:
=====================================================================
IrCOMM protocol (Dag Brattli)
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000000: 0x1f8b in
stead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000004: 0xe10b in
stead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000008: 0x0003 in
stead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000000c: 0x6c69 in
stead
                                   :
                                   :
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000e0024: 0x08ff in
stead
Further such events for this erase block will not be printed
Old JFFS2 bitmask found at 0x000e00e8
You cannot use older JFFS2 filesystems with newer kernels
Old JFFS2 bitmask found at 0x000fc464
You cannot use older JFFS2 filesystems with newer kernels
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00100000: 0x3e1b in
stead
                                   :
                                   :
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00120024: 0xceca in
stead
Further such events for this erase block will not be printed
Cowardly refusing to erase blocks on filesystem with no valid JFFS2 nodes
empty_blocks 4, bad_blocks 0, c->nr_blocks 14
VFS: Cannot open root device "mtdblock1" or unknown-block(31,1)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,1)
=========================================================================

What am I doing wrong??



Labels (1)
0 Kudos
4 Replies

550 Views
mwaddel
Contributor I
What does your kernel command line look like?   Are you
sure it shouldn't say root=/dev/mtdblock2 instead of
root=/dev/mtdblock1?

--Matt
0 Kudos

550 Views
jkimble
Contributor III

Disregard last message. On my command line I had:

set cl mac0=00:00:54:85:00:01 root=/dev/mtdblock2 rootfstype=jffs2 noinitrd ip=none mtdparts=phys_mapped_flash:256k(Colilo),2816(kernel),13312k(user)

Rather than:

set cl mac0=00:00:54:85:00:01 root=/dev/mtdblock2 rootfstype=jffs2 noinitrd ip=none mtdparts=phys_mapped_flash:256k(Colilo),2816k(kernel),13312k(user)

2816 bytes is a little cramped for the kernel apparently....

Thanks for your help.
0 Kudos

550 Views
jkimble
Contributor III

Well, that stopped the error messages associate with the flash but I still get a kernel panic because it can't mount rootfs:

============================================================================
Linux version 2.6.10 (jkimble@sc020702-udp067736uds.cs.myharris.net) (gcc versio
n 3.4.0) #8 Fri May 2 08:35:13 EDT 2008
starting up linux rev 0.2: startmem 0xc02b8000, size 61MB
Built 1 zonelists
Kernel command line: mac0=00:00:54:85:00:01 root=/dev/mtdblock2 rootfstype=jffs2
 noinitrd ip=none mtdparts=phys_mapped_flash:256k(Colilo),2816(kernel),13312k(us
er)
PID hash table entries: 512 (order: 9, 8192 bytes)
RTC driver is not initialized yet, returning 1970.
Console: colour dummy device 80x25
Dentry cache hash table entries: 16384 (order: 3, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 2, 32768 bytes)
Memory: 62240k/65536k available (2088k kernel code, 1016k data, 96k init)
Mount-cache hash table entries: 1024 (order: 0, 8192 bytes)
NET: Registered protocol family 16
Linux/m68k PCI BIOS32 revision 0.05
ColdFire PCI Host Bridge (Rev. 0) detected
PCI: Probing PCI hardware
ColdFire internal SEC driver version 0.11
jiffies: -29911
time: -29911
SEC_INIT_TIMEOUT: 100
SEC_SMCR_RESET: 16777216MCF547x/8x SEC device driver installed
SCSI subsystem initialized
NET: Registered protocol family 23
Initialize Multi-channel DMA API Alpha v0.3 (2004-04-26)
JFFS2 version 2.2. (C) 2001-2003 Red Hat, Inc.
Initializing Cryptographic API
rtc: RV5C387 RTC driver successfully loaded
ColdFire watchdog driver is loaded.
MCF547x/8x DSPI device driver installed
Coldfire DSPI driver is loaded
ColdFire internal UART serial driver version 1.00
ttyS0 at 0xe0008600 (irq = 99) is a builtin ColdFire UART
ttyS1 at 0xe0008700 (irq = 98) is a builtin ColdFire UART
ttyS2 at 0xe0008800 (irq = 97) is a builtin ColdFire UART
ttyS3 at 0xe0008900 (irq = 96) is a builtin ColdFire UART
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered
RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize
loop: loaded (max 8 devices)
ColdFire internal FEC driver version 0.11
elevator: using anticipatory as default io scheduler
Unlock all sector for Intel on Fire Engine...
physmap flash device: 1000000 at f0000000
phys_mapped_flash: Found 1 x16 devices at 0x0 in 16-bit bank
 Intel/Sharp Extended Query Table at 0x0031
Using buffer write method
cfi_cmdset_0001: Erase suspend on write enabled
mtd: partition size too small (b00)
RedBoot partition parsing not available
Using physmap partition definition
Creating 2 MTD partitions on "phys_mapped_flash":
0x00000000-0x00040000 : "Colilo (256K)"
0x00040000-0x00200000 : "user (other Flash memory) 2Mb-256K"
mice: PS/2 mouse device common for all mice
i2c /dev entries driver
i2c-algo-mcf.o: I2C ColdFire algorithm module is loaded.
NET: Registered protocol family 2
IP: routing cache hash table of 1024 buckets, 8Kbytes
TCP: Hash tables configured (established 8192 bind 16384)
Initializing IPsec netlink socket
NET: Registered protocol family 1
NET: Registered protocol family 17
NET: Registered protocol family 15
IrCOMM protocol (Dag Brattli)
Root-NFS: No NFS server available, giving up.
VFS: Unable to mount root fs via NFS, trying floppy.
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
=========================================================================

My command line is:
"mac0=00:00:54:85:00:01 root=/dev/mtdblock2 rootfstype=jffs2 noinitrd ip=none mtdparts=phys_mapped_flash:256k(Colilo),2816(kernel),13312k(user)"




0 Kudos

550 Views
jkimble
Contributor III

I'll give it a try. Thanks!

0 Kudos