[Yaffs-archive] Re: About the bootloader

Top Page
Attachments:
Message as email
+ (text/html)
Delete this message
Reply to this message
Author: Edward J. Lee
Date:  
To: Nick Bane, yaffs
Subject: [Yaffs-archive] Re: About the bootloader






Nick Bane 쓴 글:


Now here's the question:
I'm trying to make it bootable with my NAND flash chip,
I read the documentation pages, and I'm totally lost.
I cant understand almost anything about booting.

Managed to get the up-to-date mtd cvs source codes and the
yaffs stuff, and can mount my NAND device by /dev/mtdblockx.
I can also boot by storing raw boot data in the chip, but this won't do.


The problem is?

The problem is, as long as the boot data might be damaged, I think I'll
have to get
YAFFS managing the boot image. So I guess storing raw data on the chip
would not
be appropriate. :D





I need some help about booting.

Could anybody help me with providing me the steps?



You need to build a yaffs image of the root fs. You do that by using the
utility mkyaffsimage on a source tree. This builds a stream of page+oob
records that can be pumped into a nand partition.

You can either modify a boot loader to do this (my choice as I don't want to
support any other root device) or use the utility mkyaffs to format and
upload the image created by mkyaffsimage from a running linux kernel - then
all you need to do is alter the root=/dev/mtdblockX kernel command line
parameter to reflect the new partition to use as rootfs.

If you want more help, please indicate a bit more specifically what problems
you are having.

Nick Bane


Thanks for the help, but here's another problem. First of all, I'll
need to get YAFFS
support into the kernel, but the instructions given in the docs won't
work. I found and
reported some typos, but I guess there's more wrong things I didn't
manage to find.
After compiling the kernel sources with 'Yaffs fs support' on, I looked
up the [linux]/fs/yaffs
directory and realized that nothing happened. (no object files!) Maybe
something's wrong
with the Makefile, I guess.. (I'm not that friendly with Makefiles heh
heh :)
Using YAFFS as a module, works out excellent. All I need for now is
kernel support.
Thanks.




Ed.


--------------------------------------------------------------------------


-------------


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.















---------------------------------------------------------------------------------------
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.