[U-Boot-Users] JFFS2 support - was: (no subject)

C Michael Sundius
2005-04-07T19:16:09Z

Wolfgang,

thank you for being patient.

On Apr 3, 2005, at 1:51 PM, Wolfgang Denk wrote:
> If you didn't update it yourself this just meand that it's old. Very
> old. Very, very old indeed.
>
agreed. So I take that to be read as: go update the mtd code
manually, overwriting the old drivers/mtd and include/mtd directories

if so, what version of mtd should I use.. I understand that currently
the mtd guys are not supporting ancient kernels (2.4.20)

btw: I already know I should update my kernel... I've already been there
w/ my client, they can't upset the apple cart yet.

>> I gave you the exact u-boot commands that I use:
>> "ls"
>
> ...bot you didn't show the real contents of the directory which was
> causing the problem.

anyway I've already resolved this by not printing out the destination of
the link....

>
>>> Finally, I asked you how youy create and how you install your
>>> filesystem image.
>>>
>> - I created the file system on my host (a x86 box) using mkfs.jffs2:
>> # mkfs.jffs2 --version
>> mkfs.jffs2: revision 1.39
>> Though you should not take this as an indication of the version of
>> mtd/jffs on my kernel since
>> monta vista does not ship the (mtd) host tools along with their
>> kernel. I doug that mkfs.jffs2 out
>> from somewhere a while ago and I don't remember where.
>
> For the last time (before I give up finally): and how did you install
> that image to your flash partition? Under Linux or under U-Boot? How
> exactly?
Ah, sorry I see what you are getting at.. I use U-Boot to write the
jffs2 image
that I create on my PC host. I tftp the image, and then use cp.b to the
address
that is my flash address space.

I use cp.b since it does not work doing simply cp.. because of the word
length...

I have also verified (in u-boot) that the data that was copied into
flash
with no errors. (cmp.b command).

so here is the exact output from my terminal :

CENTILLIUM-IAD # run progjffs
Trying CENTILLIUM ETH.
Ethernet Switch Enabled!!
Using CENTILLIUM ETH. device
TFTP from server 192.168.1.19; our IP address is 192.168.1.1
Filename 'jffs.1.0'.
Load address: 0x80800000
Loading:
#################################################################

#################################################################

#################################################################

#################################################################

#################################################################

#################################################################
#####################
done
Bytes transferred = 2104108 (201b2c hex)
Erase Flash from 0xad040000 to 0xad3bffff in Bank # 1
Erased 56 sectors
Copy to Flash... done
CENTILLIUM-IAD #

--------
where progjffs is a environment variable:

jffsfile=jffs.1.0
progjffs=tftp 0x80800000 $(jffsfile);erase 0xad040000 0xad3bffff;cp.b
0x80800000 0xad040000 $(filesize)

------------
sorry this took so long to get back to you on.. I was not in my office
earlier this week and I *really am* trying
to give you exactly what you are asking for :] thanks again for your
patience and help!

Mike

C Michael Sundius
Brown Bear Realty
303 Cortland Ave
San Francisco, CA 94110
(415)608-0121
realtor at sundius.com