jffs2 file corruption
Brian T
btuch at usa.net
Tue Aug 31 10:59:02 EDT 2004
> Where's the problem ? The messages stop when the command is finished.
> Enable logging in minicom and you get all what you want. So the log
> contains your commands, but thats not too bad.
Attached is my zipped syslog. From bootup, I touched a file, and then echo'd
some chars into it. Everthing looks fine, even the file.
[root at JBMgateway-60b root]# touch me
[root at JBMgateway-60b root]# echo "thisisatest" > me
[root at JBMgateway-60b root]# cat me
thisisatest
[root at JBMgateway-60b root]#
If I reboot, then the system is hosed, and needs to be reflashed :
cfi_cmdset_0001: Erase suspend on write enabled
SNAPGEAR: Intel flash device size = 16384K
Creating 6 MTD partitions on "SnapGear Intel":
0x00000000-0x000e0000 : "JBM kernel"
mtd: Giving out device 0 to JBM kernel
0x00100000-0x00fe0000 : "JBM filesystem"
mtd: Giving out device 1 to JBM filesystem
0x000e0000-0x00100000 : "JBM config"
mtd: Giving out device 2 to JBM config
0x00000000-0x01000000 : "JBM Intel"
mtd: Giving out device 3 to JBM Intel
0x00fe0000-0x01000000 : "JBM BIOS Config"
mtd: Giving out device 4 to JBM BIOS Config
0x00fe0000-0x01000000 : "JBM BIOS"
mtd: Giving out device 5 to JBM BIOS
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 4096 bind 8192)
Linux IP multicast router 0.06 plus PIM-SM
ip_conntrack version 2.1 (512 buckets, 4096 max) - 288 bytes per conntrack
ip_tables: (C) 2000-2002 Netfilter core team
arp_tables: (C) 2002 David S. Miller
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
NET4: Ethernet Bridge 008 for NET4.0
NET4: Linux IPX 0.47 for NET4.0
IPX Portions Copyright (c) 1995 Caldera, Inc.
IPX Portions Copyright (c) 2000, 2001 Conectiva, Inc.
Eep. Child "ttyS0" (ino #204) of dir ino #4 doesn't exist!
Eep. Child "ttyp0" (ino #225) of dir ino #4 doesn't exist!
VFS: Mounted root (jffs2 filesystem) readonly.
Freeing unused kernel memory: 68k freed
jffs2_do_read_inode() on nonexistent ino 204
init started: BusyBox v0.60.5 (2004.08.30-17:24+0000) multi-call binary
Bad inittab entry: ttyS0::respawn:/bin/getty 9600 -
-- Device '/dev/ttyS0' not present.
jffs2_do_read_inode(): No data nodes found for ino #714
jffs2_do_read_inode(): But it has children so we fake some modes for it
Newly-erased block contained word 0x7f007f at offset 0x00dc0000
mke2fs 1.25 (20-Sep-2001)
Emptying and files in /mnt/ramfs/
Attempting to Make a RAM Filesystem on /mnt/ramfs/
mke2fs 1.25 (20-Sep-2001)
HOSTNAME set to JBMgateway-60b
Finding module dependencies: [FAILED]
Loading JBM Feature Code Driver
Using /lib/modules/2.4.27/kernel/drivers/char/jbm_feature.o
JBM BRAM Found - Attempting to mount.
unable to open device '/dev/mtdblock6'.
unable to open device '/dev/mtdblock6'.
mount: Mounting /dev/mtdblock6 on /mnt/bram failed: No such device
Initializing BRAM - Mount Failed
mkfs.minix: /dev/mtdblock6: No such device
/etc/rc.d/rc.sysinit: /sbin/fsck.minix: Input/output error
/etc/rc.d/rc.sysinit: /sbin/fsck.minix: Input/output error
/etc/rc.d/rc.sysinit: mount: command not found
modprobe: modprobe: Can't open dependencies file
/lib/modules/2.4.27/modules.dep (No such file or directory)
Setting clock: Tue Aug 31 09:59:04 CDT 2004 Tue Aug 31 09:59:04 CDT 2004
[ OK ]
Starting Cron: [ OK ]
**Runlevel is ALWAYS 3
**Remember this when using "chkconfig"
Using /lib/modules/2.4.27/kernel/drivers/char/jbmcoctl.o
/lib/modules/2.4.27/kernel/drivers/char/jbmcoctl.o: init_module: No such
device or address
Hint: insmod errors can be caused by incorrect module parameters, including
invalid IO or IRQ parameters
-------------- next part --------------
A non-text attachment was scrubbed...
Name: log.zip
Type: application/octet-stream
Size: 20835 bytes
Desc: not available
Url : http://lists.infradead.org/pipermail/linux-mtd/attachments/20040831/7455b5e7/attachment.obj
More information about the linux-mtd
mailing list