[Yaffs] [Yaffs-archive] Re: bootloader size

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Charles Manning
Date:  
To: Matan Ziv-Av, guo
CC: yaffs
Subject: [Yaffs] [Yaffs-archive] Re: bootloader size
On Tuesday 29 July 2003 22:04, Matan Ziv-Av wrote:
> On Sun, 27 Jul 2003  wrote:
> >     My question is, I have only 16K Bytes bootloader size, Can I put
> >     the some base codes and YAFFS Bootloader into it?

> >
> >     I use Samsung 2410 CPU to develop a Linux system with NAND FLASH.
> >     Because this CPU can load first 16K Bytes NAND FLASH into RAM at
> >     boot time, so I drop every MROM & NOR FLASH. Can I put the some
> >     base codes and YAFFS Bootloader into 16K Bytes? If it can be, the
> >     Linux loader and Linux Kernel can be put with YAFFS format, It is
> >     very helpful to me. If not, I must mange it myself.

>
> Download http://www.arava.co.il/matan/work/misc/blob-207.tgz
>
> This is a boot loader I adapted for SH4, and includes booting from
> yaffs. All the code for reading yaffs is in the file yaffs.c. On SH4
> (which has a high code density) it compiles to 4KB, so I expect it
> should be less that 8KB on an ARM processor. If it is still too much,
> you can implement a slower ecc routine which takes less space, or
> eliminate ecc at all.


The ecc stuff is less than 1kB. I would not discard it. I doubt you could
make a miuch tighter algorithm with code.

-- CHarles


---------------------------------------------------------------------------------------
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 with the text "unsubscribe"
(without the quotes) as the subject.