[Yaffs-archive] Re: PPCboot et Yaffs

Charles Manning manningc2@actrix.gen.nz
Fri, 11 Apr 2003 10:32:00 +1200


It is not clear to me what you are trying to achieve within PPCBOOT
* Do you want to just use the bootloader?
* Do you want the whole file system?

YAFFS uses __KERNEL__ to distinguish between Linux builds and other builds 
(WinCE, etc). If you are using YAFFS in a bootloader configuration (ie only 
using YAFFS headers), then defining __KERNEL__ will want to include 
semaphores etc which Linux understands but a bootloader likely won't.


I suggest fiddling with the headers until you get a good compile (eg. 
substitute any __KERNEL__ in YAFFS with CONFIG_YAFFS_LINUX_KERNEL).
then come back to be with any suggestions for improvement.

-- Charles


On Thu, 10 Apr 2003 22:52, Stephan Linke wrote:
> Hi,
> we use PPCBOOT 1.1.4.
>
> We already have a couple of low level functions to access the flash. A
> simple copy from and to the flash with ECC in yaffs style works fine.
> Now I want to access a file on a yaffs FS but I can't even manage to
> compile the sources since I get troubles with the header files. (We use
> -D__KERNEL__ for some reason.)
>
> Any idea?
>
> Stephan
>
> > -----Original Message-----
> > From: olivier.eribon@free.fr [mailto:olivier.eribon@free.fr]
> > Sent: Donnerstag, 10. April 2003 11:39
> > To: Stephan Linke
> > Subject: PPCboot et Yaffs
> >
> >
> > I have write a function (cmd_yaffs_nand.c) to read file on a YAFFS
> > partition under PPCBoot 1.1.5.
> > We use a nand flash :
> >
> > NAND device : Manufacture ID: 0x98, Chip ID: 0x75 (Toshiba TC58256FT/DC)
> >        erasesize : 16384
> >        size      : 33554432
> >        eccsize   : 256
> >        len adr   : 2
> >
> > Which version of PPCBoot do you use ?
> >
> > Have you some informations about other person who have developpe same
> > function ?
> >
> > Olivier
> >
> > (email me i this function iterresse you)
>
> ---------------------------------------------------------------------------
>------------ This mailing list is hosted by Toby Churchill open software
> (www.toby-churchill.org). If mailing list membership is no longer wanted
> you can remove yourself from the list by sending an email to
> yaffs-request@toby-churchill.org with the text "unsubscribe" (without the
> quotes) as the subject.

---------------------------------------------------------------------------------------
This mailing list is hosted by Toby Churchill open software (www.toby-churchill.org).
If mailing list membership is no longer wanted you can remove yourself from the list by 
sending an email to yaffs-request@toby-churchill.org with the text "unsubscribe" 
(without the quotes) as the subject.