jffs segmentation fault
jffs segmentation fault
(OP)
Hello everybody,
I´d like to save some files on my hms720´s flash. So I start to mount jffs:
mount /mnt/jffs
Then I create/copy a file on this file system. It stores proper for files <= 11 byte. For files > 11 byte I get an segmentation fault and a mem dump.
Can anyone explain me why and how to solve this problem?
Thanks in advance.
I´d like to save some files on my hms720´s flash. So I start to mount jffs:
mount /mnt/jffs
Then I create/copy a file on this file system. It stores proper for files <= 11 byte. For files > 11 byte I get an segmentation fault and a mem dump.
Can anyone explain me why and how to solve this problem?
Thanks in advance.





RE: jffs segmentation fault
Spent about 5 minutes looking at the hms720 from google.
So my thoughts are based upon "standard" linux.
Might I suggest the followig:
1. Mount flash on desktop linux box, and see what's going
on. You might have to mount with "-t vfat" type option as
flash might be in FAT32 file time. Just mount without
journaling initally and see if that will work. In my
area, the little 12 in 1 reader/writers are going for
about or under $5.00US
2. Try same journaling mount on hard drive (old fashioned
one that spins inside) and try to recreate setup on
desktop 'nix box.
3. Get source and gdb for segment fault. You have access
to all sources, and should be able to make with debug
option on.
4. Dig up an old copy of 2.2.14 or whatever version of
linux they are running and try your journaled file system
on that. There could be a problem with that file
system with that old of a kernel.
5. See if there is a forum on this specific set of hardware.
There are a lot of linux boxen out there using ARM so
this particular subset of hardware most likely has a very
small user base.
Again, just general thoughts. YMMV. Partitioning off the
special hardware and go to a more generic boxen. Partition
off the fancy file system and try it with ext2.
Just general thoughts.
Cheers,
Rich S.
RE: jffs segmentation fault
I am not able to obtain a card reader and flash just for testing (1-2).
And I don´t have any source code cause I use cat or vi for creating a file and the command cp for copying a file to the jffs2 (3). The dump I receive is about a kernel paging error and some confusing mem-adresses :-(
I´ve read something about the command mkfs. Is this an useful command? I can´t find it at my linux machine.
Could you suggest me a forum for my specific problem?
Thanks a lot!
RE: jffs segmentation fault
Find a linux system with some man pages on it. Try
knoppix on google, go to the link, download an iso,
make a cdrom of it, plug it into windoze system, let
it boot and do a
#man mkfs
Again, suggest getting out of jffs especially with that
old a kernel and going back to ext2.
Suggest google search on basic questions as they have been
answered before for general linux. On your particular
platform, I suggest a visit to vendor site and hopefully
finding on line forum.
Cheers,
Rich S.
MKFS(8) MKFS(8)
NAME
mkfs - build a Linux file system
SYNOPSIS
mkfs [ -V ] [ -t fstype ] [ fs-options ] filesys [ blocks ]
DESCRIPTION
mkfs is used to build a Linux file system on a device, usually a hard
disk partition. filesys is either the device name (e.g. /dev/hda1,
/dev/sdb2) or the mount point (e.g. /, /usr, /home) for the file sys-
tem. blocks is the number of blocks to be used for the file system.
The exit code returned by mkfs is 0 on success and 1 on failure.
RE: jffs segmentation fault
it all works fine now. All I needed was a kernel patch