AW: [uClinux-dev] Flash read/write access on a uCdimm

From: Juergen Mueller (juergen.mueller@muellerhydraulik.de)
Date: Tue Sep 17 2002 - 16:21:22 EDT


Hi Uwe!

JFFS(2) needs at least 5 blocks of your flash to work. I don't know
which flash is used on uCdimm. To spend 5 blocks sometimes is not
possible but you have to decide yourself.
I got things running on Motorola Coldfire and I think it's stable. You
don’t have to use mkfs with JFFS2, if the arena in your flash is clean
you can mount it directly. (e.g. mount -t jffs2 /dev/mtd.. /etc/config)
The first time all the necessary stuff. JFFS2 only works with mtd-driver
not with blkmem. 
I can give you some further advice if you wan't, just let me know.
You have to change some files...

Regards.

Juergen


-----Ursprüngliche Nachricht-----
Von: owner-uclinux-dev@uclinux.org
[mailto:owner-uclinux-dev@uclinux.org] Im Auftrag von Uwe Beutin
Gesendet: Dienstag, 17. September 2002 13:53
An: uClinux Mailing List
Betreff: [uClinux-dev] Flash read/write access on a uCdimm

Please help!

I am desperately looking for a beginner's reference of how to use part 
of the Flash on a uCdimm to store some configuration files for an 
application that I wrote. I need less than 4kB for this.

I am using the current uClinux-dist and compiled the MTD in the 
2.4.17 kernel and the tools in the user section (after replacing 
sys_errlist[] with strerror() in two files).

I would like to store files on the target in /etc/config/..., which
should ideally be a mounted as JFFS(2) at bootup with the files
appearing there after mount.

My questions are:

How do I create a /dev/mt.. in the romfs of the target system? I cannot
find the mkfs.jffs for the target platform, and how do I install the
tools in the romfs?!

How can I persistently create a config directory in 
uClinux-dist/romfs/etc/ on my host system and keep the config files in 
there?  The host romfs dir always reverts to the original layout after a

"make".

How do I mount/remount the mt device in /etc/config after target-system 
reboot?!

If anybody could help me with some of these questions I would be very 
grateful.

I am currently writing beginner's documents that I make available for 
everyone...any information that I can get will go into these. Please 
help!

Greetings,

	Uwe


This message resent by the uclinux-dev@uclinux.org list server
http://www.uClinux.org/



This message resent by the uclinux-dev@uclinux.org list server http://www.uClinux.org/


This archive was generated by hypermail 2.1.4 : Thu Sep 19 2002 - 13:21:53 EDT