[uClinux-dev] Jffs2 , trueffs , MTD and blockmem

Tien-Kuen Kuo tienkuen_kuo at gyrosignal.com
Mon Aug 5 21:49:26 EDT 2002


Hello all,

Another way to capture the make output is
"nohup make"
It will send all the output to "nohup.out"
You can refer to "man nohup" for detail.

Best Regards,

Tien-Kuen Kuo

-----Original Message-----
From: owner-uclinux-dev at uclinux.org [mailto:owner-uclinux-dev at uclinux.org]On Behalf Of Phil Wilshire
Sent: Monday, August 05, 2002 10:21 PM
To: uclinux-dev at uclinux.org
Subject: Re: [uClinux-dev] Jffs2 , trueffs , MTD and blockmem


Hi Jean-Francois,
You can capture the whole output of the "make" command by using the
script system

Simply enter the command
"script"
this will start a subshell 
then you type
"make"
and then 
"exit"

YOu will find a text file called typescript in you home directory
with all the make process output in it.

regards
   Phil Wilshire


Jean-Francois Mailloux wrote:
> 
> I don't know since I am using the "make" command under linux.
> 
> -----Original Message-----
> From: owner-uclinux-dev at uclinux.org
> [mailto:owner-uclinux-dev at uclinux.org]On Behalf Of gerg
> Sent: August 3, 2002 10:49
> To: uclinux-dev at uclinux.org
> Subject: Re: [uClinux-dev] Jffs2 , trueffs , MTD and blockmem
> 
> Hi Jean-Francois,
> 
> Jean-Francois Mailloux wrote:
> > I am using the following files:
> >
> > uClinux-dist-20020701
> > m68k-elf-tools-20020410
> >
> > Here is the message I get when I am compiling:
> >
> > nftldump.c: In function `dump_erase_units':
> > nftldump.c:153: `sys_errlist' undeclared (first use in
> > this function)
> > nftldump.c:153: (Each undeclared identifier is
> > reported only once
> > nftldump.c:153: for each function it appears in.)
> > make[2]: *** [nftldump] Error 1
> 
> Can you please also send the actual gcc command line?
> 
> Regards
> Greg
> 
> > -----Original Message-----
> > From: owner-uclinux-dev at uclinux.org
> > [mailto:owner-uclinux-dev at uclinux.org]On Behalf Of Greg Ungerer
> > Sent: August 1, 2002 19:36
> > To: uclinux-dev at uclinux.org
> > Subject: Re: [uClinux-dev] Jffs2 , trueffs , MTD and blockmem
> >
> >
> > Hi Jean-Francois,
> >
> > Jean-Francois Mailloux wrote:
> >
> >>I tried to compile mtd with jffs2 on top but I got an error with the file
> >>nftldump.c
> >>
> >>That file look to be in the mtd-utils and as nothing to do with jffs2
> >>because I do not check the nftl option in the make xconfig.
> >>
> >>I think there is a problem with the makefile in the mtd-utils directory.
> >>
> >>someone can help me?
> >
> >
> > To help you further we need to know:
> >
> > 1. what source based are you using
> > 2. what tool chain are you using
> > 3. what are the error messages
> >
> > Regards
> > Greg
> >
> >
> >
> >
> >
> >>-----Original Message-----
> >>From: owner-uclinux-dev at uclinux.org
> >>[mailto:owner-uclinux-dev at uclinux.org]On Behalf Of gerg
> >>Sent: August 1, 2002 10:05
> >>To: uclinux-dev at uclinux.org
> >>Subject: Re: [uClinux-dev] Jffs2 , trueffs , MTD and blockmem
> >>
> >>
> >>Hi Jean-Francois,
> >>
> >>Jean-Francois Mailloux wrote:
> >>
> >>
> >>>Thanks a lot!!
> >>>
> >>>I think I will only use my AMD flash instead of both diskonchip and
> flash.
> >>>The problem now is the size I will need. I am planning to use the kernel
> >>>2.4.x with microwindows. Anybody now if 8Mbytes is ok?
> >>
> >>
> >>For a uClinux system 8Mb of FLASH is a _lot_.
> >>
> >>
> >>
> >>
> >>>Also I want to know how to format the flash?
> >>
> >>
> >>There is a few different ways to initially setup an
> >>AND/Intel/etc NOR flash with a JFFS2 filesystem.
> >>
> >>One example:
> >>
> >>ON A HOST LINUX SYSTEM:
> >>
> >>1. Create a JFFS2 fileystem image on your host system
> >>    using "mkfs.jffs2" utility. (This is part of
> >>    the MTD sources). You do this by creating a
> >>    directory hirachy that resembles the filesystem
> >>    you want.
> >>
> >>THEN ON THE TARGET SYSTEM:
> >>
> >>1. eraseall /dev/mtd0
> >>2. cp <filesystem.img> /dev/mtd0
> >>
> >>This assumes /dev/mtd0 is the flash (partition)
> >>you want as a JFFS2 filesystem.
> >>
> >>Regards
> >>Greg
> >>
> >>
> >>
> >>
> >>
> >>>-----Original Message-----
> >>>From: owner-uclinux-dev at uclinux.org
> >>>[mailto:owner-uclinux-dev at uclinux.org]On Behalf Of Greg Ungerer
> >>>Sent: July 31, 2002 19:53
> >>>To: uclinux-dev at uclinux.org
> >>>Subject: Re: [uClinux-dev] Jffs2 , trueffs , MTD and blockmem
> >>>
> >>>
> >>>
> >>>Hi Jean-Francois, Phil,
> >>>
> >>>Generally you would use the NFTL support in MTD and an
> >>>"ordinary" (ext2, ext3, whatever) Linux filesystem
> >>>on top of DiskonChip. If you want a reliable filesystem
> >>>you really need to use a journalled filesystem (ext3,
> >>>reiserfs, jfs, etc) on this. Otherwise it is not really
> >>>power safe. DiskOnChip is based on NOR flash, which
> >>>means it is prone to containing a few bad blocks. You
> >>>really do want the NFTL layer to handle the mappings
> >>>for this. Many DiskOnChip models do not allow direct
> >>>booting from them, so if you want to use DiskOnChip
> >>>then you may need another (AMD/Intel) FLASH to boot from.
> >>>(Some DiskOnChip do allow direct booting).
> >>>
> >>>JFFS2 is a file system itself, and relies on underlying
> >>>MTD support to work right. It is nice, not only is it
> >>>journalled (so power safe) it also stores files compressed
> >>>by default, so you use the FLASH very economically. JFFS
> >>>and JFFS2 run on top of NAND flash, from AMD, Intel,
> >>>Fujitsu, and many others. No problem booting from them,
> >>>they look like sram when reading (unlike DiskOnChip).
> >>>
> >>>If you can get the size and price you want in a NAND
> >>>flash (AMD/Intel/etc) then that is all you need.
> >>>If you want DiskOnChip, you need to consider the boot
> >>>issue. DiskOnChip do come in very large capacities in
> >>>a small form factor (they list a maximum of 1Gb at
> >>>www.m-sys.com).
> >>>
> >>>Regards
> >>>Greg
> >>>
> >>>
> >>>
> >>>Phil Wilshire wrote:
> >>>
> >>>
> >>>
> >>>>Hi Jean-Francois
> >>>>
> >>>>
> >>>>blkmem is a basic flash driver that allows you to mount a section of
> >>>>flash memory as a file system.
> >>>>(It was the only option a few years ago.)
> >>>>This is normally a flat file system generated by genromfs on the host
> >>>>system.
> >>>>
> >>>>Jffs is a different flash file system that normally uses the alternative
> >>>>MTD flash memory driver. You mount an MTD partition as a JFFS file
> >>>>system
> >>>>JFFS gives you the ability to create a read / write file system using
> >>>>a previously erased flash partition.
> >>>>The Journalling process creates a continual series of new "extensions"
> >>>>to an existing file.
> >>>>In general you can write to flash at any time  but you do not always get
> >>>>what you expect if the device was not already previously erased.
> >>>>
> >>>>Given the other two drivers you do not need diskonchip.
> >>>>
> >>>>
> >>>>Any other opinions or corrections please ??
> >>>>
> >>>>regards
> >>>>Phil Wilshire
> >>>>
> >>>>
> >>>>Jean-Francois Mailloux wrote:
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>>I wanted to understand the difference between those topics. I made my
> >>>>
> >>>custom
> >>>
> >>>
> >>>
> >>>>>board with a diskonchip and with an AMD flash.
> >>>>>
> >>>>>What is the difference between jffs and blockmem?
> >>>>>
> >>>>>Do I need diskonchip if I use jffs2 on my flash?
> >>>>>
> >>>>>thanks
> >>>>>
> >>>>>Jean-Francois Mailloux
> >>>>>Concepteur electronique/
> >>>>>Hardware designer
> >>>>>MINDS INC.
> >>>>>1919 Lionel-Bertrand, suite 202
> >>>>>Boisbriand, Qc
> >>>>>J7H 1N8
> >>>>>Tel:(450)437-1101
> >>>>>Fax:(450)437-3898
> >>>>>jfm at asphatech.com
> >>>>>
> >>>>>This message resent by the uclinux-dev at uclinux.org list server
> >>>>
> >>>http://www.uClinux.org/
> >>>
> >>>
> >>>
> >>>--
> >>>------------------------------------------------------------------------
> >>>Greg Ungerer  --  Chief Software Wizard        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:   www.snapgear.com
> >>>
> >>>This message resent by the uclinux-dev at uclinux.org list server
> >>>http://www.uClinux.org/
> >>>
> >>>This message resent by the uclinux-dev at uclinux.org list server
> >>
> >>http://www.uClinux.org/
> >>
> >>
> >>
> >>--
> >>------------------------------------------------------------------------
> >>Greg Ungerer  --  Chief Software Wizard        EMAIL:  gerg at snapgear.com
> >>Snapgear Pty Ltd                               PHONE:    +61 7 3279 1822
> >>825 Stanley St,                                  FAX:    +61 7 3279 1820
> >>Woolloongabba, QLD, 4102, Australia              WEB:   www.snapgear.com
> >>
> >>This message resent by the uclinux-dev at uclinux.org list server
> >>http://www.uClinux.org/
> >>
> >>This message resent by the uclinux-dev at uclinux.org list server
> >
> > http://www.uClinux.org/
> >
> >
> >
> > --
> > ------------------------------------------------------------------------
> > Greg Ungerer  --  Chief Software Wizard        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:   www.snapgear.com
> >
> > This message resent by the uclinux-dev at uclinux.org list server
> > http://www.uClinux.org/
> >
> > This message resent by the uclinux-dev at uclinux.org list server
> http://www.uClinux.org/
> >
> 
> --
> ------------------------------------------------------------------------
> Greg Ungerer  --  Chief Software Wizard        EMAIL:  gerg at snapgear.com
> Snapgear Pty Ltd                               PHONE:    +61 7 3279 1822
> 825 Stanley St,                                  FAX:    +61 7 3279 1820
> Woolloongabba, QLD, 4102, Australia              WEB:   www.snapgear.com
> 
> This message resent by the uclinux-dev at uclinux.org list server
> http://www.uClinux.org/
> 
> This message resent by the uclinux-dev at uclinux.org list server http://www.uClinux.org/

-- 
SDCS -- System Design & Consulting Services LLC, http://www.sysdcs.com
**uClinux Training in Las Vegas Aug 28-30 2002, 
    email me for details  
630 Springhouse Sq., Leesburg VA 20175 t: 703 669 9765 f: 703 669 9768
This message resent by the uclinux-dev at uclinux.org list server http://www.uClinux.org/
This message resent by the uclinux-dev at uclinux.org list server http://www.uClinux.org/



More information about the uClinux-dev mailing list