This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Getting segmentation fault while unmounting JFFS2 file system .


Hi All
I am facing problem while umounting JFFS2 FS.
I am successfully able to mount JFFS2 system on CRAMFS root file
system but not able to umount it. It shows Seg.fault when i umount
this File system.
# umount /mnt
umount: Cannot open /etc/mtab
Unable to handle kernel NULL pointer dereference at virtual address 00000000
.
..
..
I am using CFI Flash device in physical memory map .
<*> CFI Flash device in physical memory map
      â â
â â         (0x50000000) Physical start address of flash mapping
                    â â
â â         (0x01000000) Physical length of flash mapping

Earlier,i was facing same problem while mounting any MTD block then i
used the physical mapped flash map instead of the ixp_4xx map .
Now,I only able to mount but failed to unmount MTD device :P
Please help me out !

Thanks
Amitesh
http://www.amitesh.info





# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00040000 00020000 "RedBoot"
mtd1: 002a0000 00020000 "cramfs"
mtd2: 00ce0000 00020000 "unallocated"
mtd3: 00001000 00020000 "RedBoot config"
mtd4: 00020000 00020000 "FIS directory"
# modprobe jffs2
JFFS2 version 2.2. (NAND) (C) 2001-2003 Red Hat, Inc.
JFFS2: default compression mode: priority
# mount -t jffs2 /dev/mtdblock2 /mnt
mount: /etc/mtab: Read-only file system
# cd /mnt
# ls
System.map-2.6.11-1.1369_FC4  grub
config-2.6.11-1.1369_FC4      initrd-2.6.11-1.1369_FC4.img
gogole                        vmlinuz-2.6.11-1.1369_FC4
# cd ..
# umount /mnt
umount: Cannot open /etc/mtab
Unable to handle kernel NULL pointer dereference at virtual address 00000000
pgd = c1a60000
[00000000] *pgd=01eef031, *pte=00000000, *ppte=00000000
Internal error: Oops: 817 [#1]
Modules linked in: jffs2 zlib_deflate ixp400_eth ixp400
CPU: 0
PC is at __down_write+0xa0/0xd8
LR is at jffs2_flush_wbuf_pad+0x1c/0x3c [jffs2]
pc : [<c01aa5d4>]    lr : [<bf0c1c34>]    Tainted: P
sp : c1e79e64  ip : c1e79e8c  fp : c1e79e88
r10: 401a4000  r9 : c1e78000  r8 : c0023c64
r7 : 00000016  r6 : bf0ce698  r5 : c1a5b11c  r4 : c1c1e800
r3 : c1a5b120  r2 : 00000000  r1 : c1e79e64  r0 : c1a5b11c
Flags: nzcv  IRQs off  FIQs on  Mode SVC_32  Segment user
Control: 39FF  Table: 01A60000  DAC: 00000015
Process umount (pid: 47, stack limit = 0xc1e78194)
Stack: (0xc1e79e64 to 0xc1e7a000)
9e60:          c1a5b120 00000000 c1c1e800 00000002 c1a5b000 c1a5b11c c1e79ea0
9e80: c1e79e8c bf0c1c34 c01aa540 c1a5b030 c18f45dc c1e79eb4 c1e79ea4 bf0bfa30
9ea0: bf0c1c24 c1a5b200 c1e79ec8 c1e79eb8 c0078900 bf0bfa00 c1a5b200 c1e79ee4
9ec0: c1e79ecc c007e288 c0078860 c1a5b000 bf0ce6e8 bea66e0c c1e79ef8 c1e79ee8
9ee0: bf0bffb4 c007e24c c1a5b200 c1e79f10 c1e79efc c007e1a4 bf0bffac c0295ae0
9f00: c1a5b200 c1e79f28 c1e79f14 c009452c c007e158 c1e79f40 00000000 c1e79f3c
9f20: c1e79f2c c0085118 c009450c 00000000 c1e79f94 c1e79f40 c0094b4c c00850dc
9f40: c18f45dc c0295ae0 c00ce91c 00000001 01f00002 00000001 00000001 00000000
9f60: bea66e0c c01db01c 00000002 0000b650 401a4000 c1e79f9c c1e79f84 c002a9c8
9f80: 00000000 00000000 c1e79fa4 c1e79f98 c0094b68 c0094ab8 00000000 c1e79fa8
9fa0: c0023ae0 c0094b60 00000000 c002ab4c bea66e0c 00000032 00000000 00044b10
9fc0: 00000000 00000000 bea66e0c bea66e0c 00000002 0000b650 401a4000 0003d820
9fe0: 40158460 bea66df4 0002a4ac 40158464 60000010 bea66e0c 01e79ff8 01e79ffc
Backtrace:
[<c01aa534>] (__down_write+0x0/0xd8) from [<bf0c1c34>]
(jffs2_flush_wbuf_pad+0x1c/0x3c [jffs2])
r5 = C1A5B11C  r4 = C1A5B000
[<bf0c1c18>] (jffs2_flush_wbuf_pad+0x0/0x3c [jffs2]) from [<bf0bfa30>]
(jffs2_sync_fs+0x3c/0x68 [jffs2])
r5 = C18F45DC  r4 = C1A5B030
[<bf0bf9f4>] (jffs2_sync_fs+0x0/0x68 [jffs2]) from [<c0078900>]
(fsync_super+0xac/0xcc)
r4 = C1A5B200
[<c0078854>] (fsync_super+0x0/0xcc) from [<c007e288>]
(generic_shutdown_super+0x48/0x148)
r4 = C1A5B200
[<c007e240>] (generic_shutdown_super+0x0/0x148) from [<bf0bffb4>]
(jffs2_kill_sb+0x14/0x28 [jffs2])
r6 = BEA66E0C  r5 = BF0CE6E8  r4 = C1A5B000
[<bf0bffa0>] (jffs2_kill_sb+0x0/0x28 [jffs2]) from [<c007e1a4>]
(deactivate_super+0x58/0x6c)
r4 = C1A5B200
[<c007e14c>] (deactivate_super+0x0/0x6c) from [<c009452c>] (__mntput+0x2c/0x30)
r5 = C1A5B200  r4 = C0295AE0
[<c0094500>] (__mntput+0x0/0x30) from [<c0085118>]
(path_release_on_umount+0x48/0x4c)
r5 = 00000000  r4 = C1E79F40
[<c00850d0>] (path_release_on_umount+0x0/0x4c) from [<c0094b4c>]
(sys_umount+0xa0/0xa8)
r4 = 00000000
[<c0094aac>] (sys_umount+0x0/0xa8) from [<c0094b68>] (sys_oldumount+0x14/0x18)
r5 = 00000000  r4 = 00000000
[<c0094b54>] (sys_oldumount+0x0/0x18) from [<c0023ae0>]
(ret_fast_syscall+0x0/0x2c)
Code: e5932004 e5831004 e50b3024 e50b2020 (e5821000)
Segmentation fault
# reboot&
[1] 48

The system is going down NOW !!
# ps -e
PID  Uid     VmSize Stat Command
 1 root        320 S   /bin/init 32M@0x00000000
 2 root            SWN [ksoftirqd/0]
 3 root            SW< [events/0]
 4 root            SW< [khelper]
 5 root            SW< [kthread]
 6 root            SW< [kblockd/0]
 7 root            SW  [pdflush]
 8 root            SW  [pdflush]
10 root            SW< [aio/0]
 9 root            SW  [kswapd0]
11 root            SW  [mtdblockd]
12 root            SW  [ftld]
23 root            SW< [ixp400_eth/0]
32 root       1072 S   /bin/sh
45 root            SWN [jffs2_gcd_mtd2]
48 root        528 D   reboot
49 root        600 R   ps -e
#

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]