mtd utility??

kevin
hi, I have tried flashing "kernel + rootfs (uImage +jffs2)" like a 100
times by now. I am longing for the day my "uImage+ jffs2" would come up on
my board. I've  downloaded like almost every uImage and jffs2 available
online for mini2440 none of them work, take my word(atleast for my board
which is 128mb NAND, it doesnt!!).Tried several combinations of different
uboot + uImage + jffs2 still nothing workin'. I know it aint magic it has
to work i'm missing something somewhere :(

okay guys enough of crying. Can anyone help me out with the MTD partitions
thing. My kernel loads properly but it starts giving errors mostly for the
rootfs thing.it says magic number not found at xxxx location..and few lines
later it says "Old magic no found" & says you cant use old jffs2 with newer
kernel!
Guys what is this MTD thing??

davef
Sounds familiar.

First thing is, are you sure you have a 128M of u-boot that works properly?
 As you are suggesting I think it will differ from, say the 64M version,
mainly where the partitions are placed. 

MTD, I'd Google it.  All that I know is that for a JFFS2 filesystem MTD
gets involved.

See the tutorial in the Wiki.

When you sort out how to do it write the procedure down and I'll make sure
it gets in there.  

A number of people seem to be having problems with this, at the moment.

Are you using the two-step u-boot process suggested on buserror's site OR
the u-boot on the Downloads page?

Hang in there!

kevin
U know Dave u r a good human being, i cruise through all the forum posts
and u r there in almost all posts trying to help every one out with
whatever u could :) thanks!

okay ur questions:

"First thing is, are you sure you have a 128M of u-boot that works
properly?
 As you are suggesting I think it will differ from, say the 64M version,
mainly where the partitions are placed."

I have three working U-boot versions.Two downloaded and one i created
myself using the git repository.tell me how do u check if its for 128Mb or
64Mb? and also i have read somewhere that the new uBoot can detect the size
of NAND.


"MTD, I'd Google it.  All that I know is that for a JFFS2 filesystem MTD
gets involved."

u r ryt!but how?


"Are you using the two-step u-boot process suggested on buserror's site OR
the u-boot on the Downloads page?"

two step? no i dont know abt that i'll check that out.I usually go wit that
NAND SCRUB and MMC load for uImage and rootfs.


"Hang in there!"
yup! its sumthing like "done or dead" thing for me

davef
Kevin,

Tell you I had quite a time getting my own rootfs going.  I had help from
the ARM gurus at work, so just trying to pass it on.

u-boot, the latest word is at 

http://bliterness.blogspot.com/

second item down.  At one stage people were having to modify u-boot to "get
it into ram" (or something like that) then change it again to finish the
process.

How do you check u-boot?  Maybe, by seeing how it sets up the partitions! 
You'd think there would be some version number associated with it.  Tried
u-boot.bin -v and --v and file u-boot.bin and found nothing.  Maybe
-readelf.  Got me there. 

For an excellent explanation of both u-boot and JFFS2 go to the wiki Links
page and click on:

Excellent book on building embedded systems

I see in the section on u-boot, when you are in console and talking to
u-boot you can type in version, which appears to get you the monitor
version.  Don't know if that would be helpful.

Dave