[Mipsbook-devel] yaffs2

Dr. H. Nikolaus Schaller hns at computer.org
Sun Jun 20 20:27:26 CEST 2010


Hi Ruben,

Am 20.06.2010 um 13:22 schrieb Ruben Viets:

> Hi Nikolaus,
>  
> Downloaded the latest git sources. git clone git://git.goldelico.com/letux-400.git
>  
> Two issues, may need additional fix or upload of your local patches:
> - issue with nand mounting. Showing errors on yaffs2 tragedy.. cause kernel segfault and stuck 

Right, I have not yet committed the latest change for yaffs2 because I did want to do a little more testing (and find out more about the 40% prefilled /dev/mtdblock3).

> - The key's to startup from different boot don't work, alway's rooted from /dev/mtdblock4.

/dev/mtdblock4 is the (new) default. You may have to press them a while, just before the init message comes. I.e. approx. 5 seconds after booting.

What I have found in addition is that the /proc/powerdown does not work anymore. But this may be due to a different PIC in my two machines. The bricked one did immediately switch on the LCD while the other one keeps the screen black for approx. 1 second. So I assume that this is the PIC. And, it may communicate differently (there are #ifdefs in the source file). Maybe, we can find a way that the driver applies both methods (because I don't know how to detect the PIC version).

BR,
Nikolaus

>  
> Grt Ruben.
>  
> From: r_viets at hotmail.com
> To: hns at computer.org
> Date: Sat, 19 Jun 2010 10:10:11 +0000
> CC: mipsbook-devel at linuxtogo.org
> Subject: Re: [Mipsbook-devel] yaffs2
> 
> Hi Nikolaus,
> 
> I have simular result. Used df to see the size and available space on all partitions.
> 
> - It looks like the /dev/mtdblock3 is in use by jffs2 blocks. 
> dmesg shows some prioritised blocks when mounting as yaffs2. So better to mount as jffs2 I think.

What I really don't understand why a fresh yaffs2  already puts aside approx. 2 of the 5 MByte even *after* flash_erase which should wipe out any debris from jffs2...


> 
> So far this kernel 2.6.24.3 and the updated sources are very usable now.  ;-)
> 
> Grt Ruben.
> 
> 
> > Subject: Re: [Mipsbook-devel] yaffs2
> > From: hns at computer.org
> > Date: Wed, 16 Jun 2010 08:44:33 +0200
> > CC: r_viets at hotmail.com; mipsbook-devel at linuxtogo.org
> > To: hns at computer.org
> > 
> > 
> > Am 16.06.2010 um 08:31 schrieb Dr. H. Nikolaus Schaller:
> > 
> > > 
> > > Am 15.06.2010 um 20:34 schrieb Ruben Viets:
> > > 
> > >> Hi Nikolaus,
> > >> 
> > >> You already have all sources if you tar xvjf the linux-2.6.24.3 and afterwards patch -p1 < patch20080530 + patchv33_withoutyaffs2
> > > 
> > > Ok, this was quite easy.
> > > 
> > > I did not find many differnces:
> > > 
> > > include/mtd/mtd-abi.h -- different size for oob fields (which may be the issue)
> > > fs-fs-writeback.c -- different strategy for locking
> > > fs/mpage.c -- "It seems that there is a IO coherent bug in generic_file_mmap()"
> > > fs/yaffs/* -- about 50% of the files differ
> > > 
> > > 
> > >> 
> > >> Don't need to tar and send my files then. Question is if the below dirs you mention are enough. You may need additional files.
> > >> So better start from scratch in a different dir and do a diff with your letux-400 development directory.
> > >> 
> > >> My latest config (CONFIG_RV9) is located at http://projects.kwaak.net/twiki/pub/Epc700/KernelPort26Compiling/CONFIG_RV9
> > > 
> > > Here I did not have CONFIG_MTD_SW_HM_ECC set and none of the VERIFY options
> > > 
> > > Now it *appears* to work. There are still some strange messages like "Freechunks verification failure" but I did not do a flash_eraseall - I just tried to continue to use the file system created with the broken yaffs2.
> > 
> > Ok, I have erased the minifs partition and mounted as yaffs2. The message has disappeared.
> > 
> > But there is a mismatch between used/available blocks and what I see as files (an empty lost+found directory). And 'du' reports 40% used.
> > 
> > When initializing as jffs2 I get 8% used and a completely empty device.
> > 
> > Or is yaffs inappropriate for small NAND partitions?
> > 
> > Nikolaus
> 
> New Windows 7: Simplify what you do everyday. Find the right PC for you. 
> New Windows 7: Simplify what you do everyday. Find the right PC for you.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxtogo.org/pipermail/mipsbook-devel/attachments/20100620/946ccb81/attachment.htm>


More information about the Mipsbook-devel mailing list