jffs2 root filesystem
hi
I try to port linux-2.4.19-rmk1 to a pxa255 board
i am success to use MTD partition and can mount it
But when i try to use MTD as root filesystem (root=/dev/mtdblock/3 console=ttyS0,38400)
kernel boot message show:
.......
physmap flash device: 2000000 at 0cfi_cmdset_0001: Erase suspend on write enabled
Using buffer write method
mtd: Giving out device 0 to Physically mapped flash
MTD partition setup...
partition num: 4
Using physmap partition definition
Creating 4 MTD partitions on "Physically mapped flash":
0x00000000-0x00040000 : "U-boot"
mtd: Giving out device 1 to U-boot
0x00040000-0x00340000 : "zImage"
mtd: Giving out device 2 to zImage
0x00340000-0x00a00000 : "ramdisk"
mtd: Giving out device 3 to ramdisk
0x00a00000-0x02000000 : "User system"
mtd: Giving out device 4 to User system
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 2048 bind 4096)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0. NetWinder Floating Point Emulator V0.97 (double precision) mtdblock_open
ok
mtdblock: read on "Physically mapped flash" at 0x400, size 0x400 mtdblock_release
okmtdblock_open
ok
mtdblock: read on "Physically mapped flash" at 0x0, size 0x200
FAT: bogus logical sector size 5349mtdblock_release
okmtdblock_open
ok
mtdblock: read on "Physically mapped flash" at 0x0, size 0x200
FAT: bogus logical sector size 5349mtdblock_release
okmtdblock_open
okjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000000:0x0016 insteadjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000004:0xf014 insteadjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000008:0xf014 insteadjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000000c:0xf014 insteadjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000010:0xf014 insteadjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000014:0xf014 insteadjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000018:0xf014 insteadjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000001c:0xf014 insteadjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000020:0x0160 insteadjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000024:0x01c0 instead
Further such events for this erase block will not be printed
JFFS2: Erase block at 0x00000000 is not formatted. It will be erased
VFS: Mounted root (jffs2 filesystem) readonly.
Freeing init memory: 64K
Warning: unable to open an initial console.
Kernel panic: No init found. Try passing init= option to kernel.
..................
why can't i use mtd as my root disk
Sam
Quoted 3 lines
FAT: bogus logical sector size 5349
This is wierd. I wonder if it's trying to mount it as a FAT filesystem first. Most people usually include 'rootfstype=jffs2' in the command line.
Quoted 3 lines
jffs2_scan_eraseblock(): Magic bitmask0x1985not found at0x00000000:0x0016instead
I think there's mention of this in the mailing list. Can you try searching the archives and see what this indicates?
Quoted 6 lines
Freeing init memory: 64K
Warning: unable to open an initial console.Kernel panic: No init found. Try passing init= option to kernel...................
why can't i use mtd as my root disk
It looks like you ARE using MTD for your root disk. I usually get this "unable to open an initial console" warning / error when the device file /dev/console doesn't exist. Perhaps the above error is messing up the root filesystem.
BTW, have you tried booting off a ramdisk and manually mounting that partition? That should clear up most of the issues that you'd run into, but it's much easier to debug.
I hope this makes sense and that it helps.
Mike
Quoted 7 lines · sam
hi
I try to port linux-2.4.19-rmk1 to a pxa255 board
i am success to use MTD partition and can mount it
But when i try to use MTD as root filesystem (root=/dev/mtdblock/3 console=ttyS0,38400)
kernel boot message show:
Try using /dev/mtdblock3.
And is the flash really mapped at 0x00000000?
Jeff Angielski
The PTR Group