This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Problems to mount JFFS2
- From: daniel at fh-konstanz dot de
- To: ecos-discuss at sourceware dot org
- Date: Thu, 22 Sep 2005 10:23:26 +0200
- Subject: [ECOS] Problems to mount JFFS2
Hallo list!
I want to port the jffs2 filesystem to following embedded processor:
ARM Industrial Module AIM 711 with following features:
ARM7 50 MHz 32 Bit RISC CPU
8 MB SDRAM, 2 MB Flash, RTC
I have created an jffs2-image, which includes a file named hello.jar.
For creating and Uploading to the Flash of the ARM, I have conducted the
following described steps:
1. Creating the jffs2 with the binary "MKFS.JFFS2" in that directory, you can
find the output.jar, so the jffs2 includes this file.
Mkfs.jffs2 ?r /usr/local/jffs2 ?o JFFS2.jffs2
2. Starting an TFTP Server to upload the jffs2-image into the RAM and then into
the Flash
3. Booting the ARM-board, RedBoot as bootloader appears with the RedBoot promt
RedBoot>
4. Upload the "output.jffs2" to RAM:
RedBoot> load ?r -b 0x100000 output.jffs2 ?h 141.37.33.8 m TFTP
-r - download raw data into memory. Using this option also requires the ?b
option to be specified
-b ? base address- Adress location in memory to load the file
-h ? host- used in TFTP and HTTP modes only to specify the host computer for the
download. The host parameter can be specified as an ip address
-m ? TFTP | HTTP ? specifies the download method to use
5. Move Image from RAM into FLASH
RedBoot> fis create ?l 0x 00001000 JFFS2 ?b 0x100000
-f ? flash address- Location in flash memory for the image.
-l ? length ? Length of the data in RAM
The problem:
When I create a jffs2 image with a small file named "hello.jar" (1 kbyte) and
uploded to flash and finally mounting the jffs2 filesystem, I can see the
hello.jar file. When creating a jffs2 image with a small file and enlarge the
-l size up to 200 kbyte, the errors below occur.
When creating a large Jffs2 image with about 900 kbyte, upload it with "fis
create ?l 0x00140000 jffs2 ?b 0x100000" and then mounting the jffs2, I get
following errors:
<5>jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0002f024:
0x86fb
instead
<5>Further such events for this erase block will not be printed
<4>Node at 0x00030128 with length 0x0000102f would run over the end of the
erase
block
<4>Perhaps the file system was created with the wrong erase size?
<5>jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030130:
0x344d
instead
<5>jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030144:
0x0010
instead
<5>jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030148:
0x4325
instead
<5>jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0003014c: 0x4325
....
?.
What`s wrong?
Is the problem occurring when creating the jffs2 file with mkfs.jffs2 ? Is the
"erase size" wrong? How can i get the right "erase size"?
Thank you so much for an answer,
Dani
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss