[uClinux-dev] uCdimm 68VZ328 JFFS2 Questions

Greg Ungerer gerg at snapgear.com
Mon Jun 2 21:48:05 EDT 2003


Hi Vikram,

Vikram Mehta wrote:
> A few questions
> 1.) I am using uCdimm 68VZ328 with AM29DL323GB flash chip
> NOw I am on CYGWIN and am using Patrice KADIONIK guide HOW TO USE MTD/JFFS2
> UNDER µClinux
> 
[snip]
> 2.) Earlier one was  a silly but important  question, The makefile in
> mtd-utils compliles files with 2 compilers... Onewith m68k-elf-gcc and other
> with gcc. Now on my machine ( I guess due to bein gon CYGWIN) gcc build
> doesnot work for all files and I get linker errors. So I hv removed gcc
> build parts from the makefile. How does that affect the working of the
> tools, kernels etc.

 From your description I can tell you are referring the the uClinux-dist
user/mtd-utils/Makefile, which is different to what is contained in
the  MTD cvs Makefile.

The reason it is compiled with gcc in a complete uClinux build is
to generate the filesystem builer tools for running as part of the
build. So to build mkfs.jffs, mkfs.jffs2, etc. These will be needed
on the host to construct a filesystem ready for loading onto the
real target.


> 3.) Mr David Woodhouse was kind enough to answer me saying that MTD CVS
> utils/makefile doenot contain any gcc build options. So Can someone send me
> this makefile... I tried using the CVS but couldnot ..... I am trying but
> still

If you are building uClinux-dist use what it contains.

If you are using the MTD tools on there own use the MTD CVS
code.


> 4.) Can someone tell me from where can I read in detail about the
> significance of changes Mentioned in  vendors/.../Makefile
> DEVICES = \
> tty,c,5,0 console,c,5,1 cua0,c,5,64 cua1,c,5,65 \
> 
> mtd0,c,90,0 mtd1,c,90,2 mdt2,c,90,4 mtd3,c,90,6 \
> 
> mtd4,c,90,8 mtd5,c,90,10 mtd6,c,90,12 mtd7,c,90,14 \
> 
> mtdblock0,b,31,0 mtdblock1,b,31,1 mtdblock2,b,31,2 mtdblock3,b,31,3 \

In the uClinux-dist build system this is the list of device
nodes that will be created in the target filesystem. Format is
simple:

    <node-name>,<b=block/c=char>,<major>,<minor>

They are never created as nodes on the host system, only in the
target root filesystem (be in ROMfs, JFFS, JFFS2, EXT2, whatever).

Regards
Greg


------------------------------------------------------------------------
Greg Ungerer  --  Chief Software Dude       EMAIL:     gerg at snapgear.com
SnapGear Pty Ltd                            PHONE:       +61 7 3435 2888
825 Stanley St,                             FAX:         +61 7 3891 3630
Woolloongabba, QLD, 4102, Australia         WEB: http://www.SnapGear.com




More information about the linux-mtd mailing list