Hi Greg and Philippe,
i apologize i forgot to say i am testing some main line kernels, to try
to solve an issue i have interfacing dm9000e to Coldfire M5307. I just
replaced the 2.6.x kernel tree in the uClinux-dist folder with the main
line one.
So i added
root=/dev/mtdblock0
Now the ROMFS partition is mounted correctly:
VFS: Mounted root (romfs filesystem) readonly on device 31:0.
but just after i get another message:
Failed to execute /bin/init. Attempting defaults...
Kernel panic - not syncing: No init found. Try passing init= option to
kernel. See Linux Documentation/init.txt for guidance.
So i added
init=/bin/init
Busy Box init is there, but for some reason is not detected still. I
post below the whole boot msg,
Linux version 2.6.36-rc3001 (ang...@angel7) (gcc version 4.2.4) #22 Mon
Sep 6 14:32:15 CEST 2010
uClinux/COLDFIRE(m5307)
COLDFIRE port done by Greg Ungerer, g...@snapgear.com
Modified for M5307 by Dave Miller, dmil...@intellistor.com
Flat model support (C) 1998,1999 Kenneth Albanowski, D. Jeff Dionne
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 4064
Kernel command line: root=/dev/mtdblock0 console=ttyS0,19200 init=/bin/init
PID hash table entries: 64 (order: -4, 256 bytes)
Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)
Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
Memory available: 14316k/16384k RAM, (1408k kernel code, 170k data)
Hierarchical RCU implementation.
RCU-based detection of stalled CPUs is disabled.
Verbose stalled-CPUs detection is disabled.
NR_IRQS:256
Calibrating delay loop... 59.18 BogoMIPS (lpj=295936)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
NET: Registered protocol family 16
bio: create slab <bio-0> at 0
Switching to clocksource tmr
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 512 (order: 0, 4096 bytes)
TCP bind hash table entries: 512 (order: -1, 2048 bytes)
TCP: Hash tables configured (established 512 bind 512)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
ROMFS MTD (C) 2007 Red Hat, Inc.
msgmni has been set to 27
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
ColdFire internal UART serial driver
ttyS0 at MMIO 0x100001c0 (irq = 73) is a ColdFire UART
console [ttyS0] enabled
ttyS1 at MMIO 0x10000200 (irq = 74) is a ColdFire UART
brd: module loaded
nbd: registered device at major 43
uclinux[mtd]: RAM probe address=0x18b0c4 size=0x53000
Creating 1 MTD partitions on "RAM":
0x000000000000-0x000000053000 : "ROMfs"
mtd: Giving out device 0 to ROMfs
Generic platform RAM MTD, (c) 2004 Simtec Electronics
slram: not enough parameters.
dm9000 Ethernet Driver, V1.31
mice: PS/2 mouse device common for all mice
TCP cubic registered
MTDSB: dev_name "/dev/root"
MTDSB: lookup_bdev() returned 0
MTDSB: New superblock for device 0 ("ROMfs")
VFS: Mounted root (romfs filesystem) readonly on device 31:0.
Freeing unused kernel memory: 52k freed (0x172000 - 0x17e000)
Failed to execute /bin/init. Attempting defaults...
Kernel panic - not syncing: No init found. Try passing init= option to
kernel. See Linux Documentation/init.txt for guidance.
Stack from 00c19f94:
00171ff8 0000845c 0014e42f 00180293 00180293 00000400 0014d0b5
00c19fd8
00000001 00171fb8 00000b00 fffefffd 000004b0 0017207e 00c19fd8
00000572
0014d0b5 0014d0ad 0014db58 0014d0a3 0014d098 0004709e 001726c8
00000b00
0017f0e7 00000e00 00000000
Call Trace with CONFIG_FRAME_POINTER disabled:
[0000845c] [0014e42f] [00000400] [0014d0b5] [00000b00]
[000004b0] [0017207e] [00000572] [0014d0b5] [0014d0ad]
[0014db58] [0014d0a3] [0014d098] [0004709e] [001726c8]
[00000b00] [00000e00]
Thanks again for the help
angelo
On 06/09/2010 13:09, Philippe De Muyter wrote:
On Mon, Sep 06, 2010 at 11:02:27AM +1000, Greg Ungerer wrote:
Hi Angelo,
angelo wrote:
i downgraded from kernel 2.6.29 to 2.6.24, but i can't anymore get the
romfs that was running with the 2.6.29:
ttyS0 at 0x100001c0 (irq = 73) is a builtin ColdFire UART
ttyS1 at 0x10000200 (irq = 74) is a builtin ColdFire UART
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
nbd: registered device at major 43
dm9000 Ethernet Driver
physmap platform flash device: 00400000 at ffc00000
physmap-flash physmap-flash.0: map_probe failed
uclinux[mtd]: RAM probe address=0x16b500 size=0x53000
Creating 1 MTD partitions on "RAM":
0x00000000-0x00053000 : "ROMfs"
Generic platform RAM MTD, (c) 2004 Simtec Electronics
block2mtd: version $Revision: 1.30 $
TCP cubic registered
VFS: Cannot open root device "<NULL>" or unknown-block(0,0)
Please append a correct "root=" boot option; here are the available
partitions:
1f00 332 mtdblock0 (driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs on
unknown-block(0,0)
You didn't show all the boot trace. Do you have a "root=/dev/mtdblock0"
set in the kernal args?
This happens also if you switch from a uclinux kernel (no need for
"root=/dev/mtdblock0") to a vanilla kernel ("root=/dev/mtdblock0" needed)
Philippe
_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev
_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev