[Yaffs] Problem with accessing YAFFS filesystem

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: ashokkumarkacham@bel.co.in
Date:  
To: yaffs
Subject: [Yaffs] Problem with accessing YAFFS filesystem
Hi,

I am using linux kernel version 2.6.37 on ARM based target platform, i
downloaded latest YAFFS code and re-compiled the kernel with yaffs
support.
i am able to mount the mtdblock with yaffs file system type with the
following command

#mount -t yaffs /dev/mtdblock3 /Flash

mounting is o.k, but when i am copying file to the /Flash folder i am
getting following error with segmenation fault




Unable to handle kernel paging request at virtual address 74726f78
pgd = c63dc000
[74726f78] *pgd=00000000
Internal error: Oops: 5 [#2] PREEMPT
last sysfs file: /sys/kernel/uevent_seqnum
Modules linked in:
CPU: 0    Tainted: G      D      (2.6.37 #29)
PC is at yaffs_getxattr+0x38/0x94
LR is at cap_inode_need_killpriv+0x34/0x48
pc : [<c0162d60>]    lr : [<c017cf3c>]    psr: 60000013
sp : c5c75d60  ip : c5c75d80  fp : c5c75d7c
r10: 00000200  r9 : c78e9380  r8 : c746e6f0
r7 : 00000000  r6 : 00000000  r5 : 74726f70  r4 : c74af800
r3 : 00000000  r2 : f0000010  r1 : c0354225  r0 : c74af800
Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
Control: 0005317f  Table: c63dc000  DAC: 00000015
Process tftp (pid: 1022, stack limit = 0xc5c74270)
Stack: (0xc5c75d60 to 0xc5c76000)
5d60: c74af800 00000000 00000000 00000000 c5c75d8c c5c75d80 c017cf3c 
c0162d38
5d80: c5c75ddc c5c75d90 c00752fc c017cf18 c024eea4 c0042200 c5c75f54 
00000204
5da0: c5c75df8 c5c75eac c5c74000 00000000 00000000 c746e76c 00000001 
c5c75ea0
5dc0: c5c75f18 c746e6f0 00000200 00000000 c5c75e5c c5c75de0 c0077140 
c00752e4
5de0: c5c75ecc c5c75df0 c0220864 c027c808 00000000 c7089d80 c5c75ed8 
c5c75f18
5e00: c5c75ea0 c78e9380 c746e798 00000000 00000200 00000001 c6008000 
00000000
5e20: 00000011 00000fd8 0c00a8c0 00000200 c5c75e54 c746e76c 00000001 
c5c75ea0
5e40: c5c75f18 00000000 c78e9380 00000000 c5c75e94 c5c75e60 c0077338 
c0076db8
5e60: 000000cc 00000000 c5c75f00 c5c75ea0 c78e9380 c5c75f70 c5c75f70 
000ad264
5e80: c5c74000 00000000 c5c75f3c c5c75e98 c00a6d98 c00772d4 00000000 
00000000
5ea0: 00000011 0fd87ed0 00000000 00000001 ffffffff c78e9380 00000000 
00000000
5ec0: 00000000 00000000 c787bcc0 00000000 00000000 00000000 00000000 
00000000
5ee0: c746b420 000ad044 00000200 c5c75f00 00000200 c5c75f00 c02214e8 
c027d880
5f00: 0fd80002 0c00a8c0 00000000 00000000 000000eb 26bb02a4 000ad264 
00000200
5f20: 000ad264 c78e9380 00000200 000ad264 c5c75f6c c5c75f40 c00a781c 
c00a6d08
5f40: 02faf080 00000000 000000eb 00000000 00000000 c78e9380 00000200 
000ad264
5f60: c5c75fa4 c5c75f70 c00a796c c00a7774 00000000 00000000 00000000 
00000000
5f80: 00000000 00000200 00000004 000ad264 00000004 c002a104 00000000 
c5c75fa8
5fa0: c0029f80 c00a7938 00000200 00000004 00000004 000ad264 00000200 
000acb14
5fc0: 00000200 00000004 000ad264 00000004 00000032 00000000 000ad260 
00000013
5fe0: 400264b0 bed0bbb0 0000e6d8 4022eabc 60000010 00000004 00000000 
00000000
Backtrace:
[<c0162d28>] (yaffs_getxattr+0x0/0x94) from [<c017cf3c>]  
(cap_inode_need_killpriv+0x34/0x48)
  r7:00000000 r6:00000000 r5:00000000 r4:c74af800
[<c017cf08>] (cap_inode_need_killpriv+0x0/0x48) from [<c00752fc>]  
(file_remove_suid+0x28/0x70)
[<c00752d4>] (file_remove_suid+0x0/0x70) from [<c0077140>]  
(__generic_file_aio_write+0x398/0x51c)
  r5:00000000 r4:00000200
[<c0076da8>] (__generic_file_aio_write+0x0/0x51c) from [<c0077338>]  
(generic_file_aio_write+0x74/0xdc)
[<c00772c4>] (generic_file_aio_write+0x0/0xdc) from [<c00a6d98>]  
(do_sync_write+0xa0/0xec)
[<c00a6cf8>] (do_sync_write+0x0/0xec) from [<c00a781c>] 
(vfs_write+0xb8/0x144)
  r6:000ad264 r5:00000200 r4:c78e9380
[<c00a7764>] (vfs_write+0x0/0x144) from [<c00a796c>] 
(sys_write+0x44/0x70)
  r8:000ad264 r7:00000200 r6:c78e9380 r5:00000000 r4:00000000
[<c00a7928>] (sys_write+0x0/0x70) from [<c0029f80>]  
(ret_fast_syscall+0x0/0x2c)
  r8:c002a104 r7:00000004 r6:000ad264 r5:00000004 r4:00000200
Code: e59f005c e1a01006 e5952030 eb055ab0 (e5954008)
---[ end trace d2d054f9d6677403 ]---
Segmentation fault



kindly guide me on how to resolve this problem, Thanks in advance

Regards,
Ashok


---------------------
कागज़ के 3000 पन्नों के लिए एक पेड़ को काटा जाता है... पेड़ बचाएँ...
पेड़ों का संरक्षण करें... हरियाली लाएँ... इस मेल का या इसकी किसी फाइल का
प्रिंट तब तक न लें जब तक सचमुच ज़रूरत न हो !!!!

Every 3000 Sheets of paper costs us a tree.. Save trees... Conserve
Trees.... Go Green .... Don't print this email or any Files unless you
really need to!!!!

गोपनीय सूचना -
इस इलेक्ट्रॉनिक संदेश में शामिल जानकारी और इस संदेश के साथ दिया गया
संलग्नक केवल प्रेषिती के अनन्य इस्तेमाल के लिए है और इसमें गोपनीय या
विशेषाधिकार प्राप्त जानकारी शामिल हो सकती है । यदि आप आशयित प्राप्तकर्ता
नहीं हैं, तो कृपया तुरंत भारत इलेक्ट्रॉनिक्स के प्रेषक को बताएँ या
पर मेल द्वारा सूचित करें और इस संदेश की सभी प्रतियाँ
और उसके साथ लगे संलग्नकों को नष्ट कर दें ।

Confidentiality Notice
The information contained in this electronic message and any attachments
to this message are intended for the exclusive use of the addressee(s)
and may contain confidential or privileged information. If you are not
the intended recipient, please notify the sender at Bharat Electronics
or immediately and destroy all copies of this message
and any attachments.