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]

Re: Problems with jffs2 / compression


Hi all,

my port to the netX-family is happily on-going and I've eCos running
quite fine now. I'm in the process of porting the several on-chip and
on-board peripherals.

I got the ethernet driver working today, but in the last week I got a
problem with jffs2 / flash / compression / memory allocation, which I'd
like to figure out and clean it up.

When I'm trying to write a file to flash, I get the folowing output in
RedBoot (currently running in a RAM configuration):

-- SNIP --
Platform: NETX50 (ARM9)
RAM: 0x80000000-0x80800000 [0x800ad580-0x807d1000 available]
FLASH: 0xc0000000-0xc0ffffff, 128 x 0x20000 blocks
RedBoot> fs mount -d /dev/flash/fis/efrotz -t jffs2 /
RedBoot> load -r -b 0x80200000 zork2.dat -h 192.168.0.1
Using default protocol (TFTP)
Raw file loaded 0x80200000-0x802167ff, assumed entry at 0x80200000
RedBoot> fs write -b 0x80200000 -l 0x16800 /efrotz/games/zork2.dat
... Program from 0x800af298-0x800af2dc to 0xc0e38288: .
... Program from 0x800af380-0x800af3a8 to 0xc0e382cc: .
... Program from 0x8009e2b0-0x8009e2bc to 0xc0e382f4: .
... Program from 0x800af298-0x800af2dc to 0xc0e38300: .
... Program from 0x8009e42c-0x8009e438 to 0xc0e38288: .
zcalloc: failed to allocate 0x8000 items of 0x2 bytes == 0x10010 bytes
zcalloc: failed to allocate 0x8000 items of 0x2 bytes == 0x10010 bytes
zcalloc: failed to allocate 0x8000 items of 0x2 bytes == 0x10010 bytes
zcalloc: failed to allocate 0x4000 items of 0x4 bytes == 0x10010 bytes
<4>deflateInit failed
-- SNIP --

This repeats several times until the filesize has been reached.

So, any pointers on what is going wrong here and where I should start
debugging would be great.

Hi Manuel,


There is *good answer* by the topic from Andrew Lunn on mail archive:
http://ecos.sourceware.org/ml/ecos-discuss/2005-12/msg00001.html

Sergei

--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


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