Widen page count field in blockinfo to allow lots of pages per block
[yaffs/.git] / Documentation / yaffs_boot.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
2 <HTML>
3 <HEAD>
4         <META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=iso-8859-1">
5         <TITLE></TITLE>
6         <META NAME="GENERATOR" CONTENT="StarOffice/5.2 (Linux)">
7         <META NAME="AUTHOR" CONTENT=" ">
8         <META NAME="CREATED" CONTENT="20021129;9042700">
9         <META NAME="CHANGEDBY" CONTENT=" ">
10         <META NAME="CHANGED" CONTENT="20030508;6083900">
11 </HEAD>
12 <BODY>
13 <H1>Example YAFFS Bootloader</H1>
14 <H3>Licensing</H3>
15 <P>The YAFFS bootloader is LGPL to facilitate integration into
16 non-GPL code.</P>
17 <H3>Software Modules</H3>
18 <P>The software is designed in a modular fashion to facilitate
19 integration and configuration.</P>
20 <P>The software comprises the following main sections:</P>
21 <UL>
22         <LI><P>yaffs_flashif.c NAND integration functions (to be completed
23         by integrator).</P>
24         <LI><P>yaffs_ecc.c: The ECC algorithms.</P>
25         <LI><P>yboot.c: Bootloader code to provide a file as a stream of
26         bytes in the bootloader.</P>
27 </UL>
28 <UL>
29         <LI><P>bootldtst.c: Test harness/example for bootloader.</P>
30 </UL>
31 <P>The bootloader does not implement YAFFS. Instead it is a simple
32 set of routines which allows reading a file on a YAFFS device.</P>
33 <P>The file must be in the root directory of the device (eg.
34 &quot;/boot/boot.bin&quot;) since the bootloader does not understand
35 directories. This limitation simplifies the bootloader and speeds up
36 the boot process.</P>
37 <P>As shown here the bootloader is initialised, then provides the
38 boot file as a stream of bytes. It is simple enough to provide the
39 data in other formats.</P>
40 <P>$Id: yaffs_boot.html,v 1.2 2003-05-20 22:30:36 charles Exp $</P>
41 <P><BR><BR>
42 </P>
43 <P><BR><BR>
44 </P>
45 <P><BR><BR>
46 </P>
47 <P><BR><BR>
48 </P>
49 <P><BR><BR>
50 </P>
51 <P><BR><BR>
52 </P>
53 <P><BR><BR>
54 </P>
55 <P><BR><BR>
56 </P>
57 </BODY>
58 </HTML>