From: Callebaut Benoit <callebaut@mailandnews.com>
To: "yong_guo" <yong_guo@scomcenter.com>
Cc: linuxppc-embedded@lists.linuxppc.org
Subject: RE: RE :how to do:root filesystem on flash?
Date: Fri, 13 Jun 2003 04:20:45 -0400 [thread overview]
Message-ID: <3EEBA193@mailandnews.com> (raw)
I don't know the internals of the 860 for addressing but a generic answer can
be the following.
Linux doesn't care of the real start address of the flash.
So a good idea, if you don't need to update the kernel using Linux is to make
the flash appears smaller to Linux by changing the langth and eventually the
start address in the kernel.
Using the default block driver (found in /drivers/mtd/mtdblock.c) the root
filesystem must be burn at the start of the flash as defined for Linux.
If your registered name is /dev/flasha try with this name but take in account
that at boot time all the Linux system is not yet loaded. DevFS is not yet
loaded and Linux use at this moment a minimal device support code with fixed
names. So there is a lot of chance that your flash is still recognizd as
/dev/mtdblock0. To be sure of this take a look in init/main.c.
There is a table of known devices and the flash is defined at he last line as
{"mtdblock", 0X1F00}
>===== Original Message From "yong_guo" <yong_guo@scomcenter.com> =====
>----- Original Message -----
>From: "Callebaut Benoit" <callebaut@mailandnews.com>
>To: "linuxppc-embedded mailing list" <linuxppc-embedded@lists.linuxppc.org>
>Sent: Thursday, June 12, 2003 5:33 PM
>Subject: RE :how to do:root filesystem on flash?
>
>
>>
>> I,
>> 1 : Create a cramfs filesystem with the right endianess from your nfs
>> filesystem using mkcramfs.
>> Burn it into the flash( at the start of the flash).
>Is it must be burned from the start of the flash? My u-boot bin code is
>burned at the start of the flash.
>
>>
>> 2 : In your kernel config set the "root=" option to : "/dev/mtdblock0"
>In my system, the flash is registered as /dev/flasha, should i pass the
>parameter "root=/dev/flasha" to kernel?
>
>> Enable Flash MTDBlock support and the right options like CFI,...
>> Set up the start of the flash and its length
>> Enable Cramfs in filesystem
>> Disable NFS as root filesystem.
>>
>> Rebuild your kernel and flash it.
>> Reboot the board en enjoy.
>>
>> PS : This question was already a 100 times answered. Search in the mailing
>> list before asking such a question.
>> Or maybe a better idea : One may build a FAQ or a list of Howtos on such
>> common questions.
>>
>> Benoit Callebaut
>>
>>
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
next reply other threads:[~2003-06-13 8:20 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-13 8:20 Callebaut Benoit [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-06-13 8:19 RE :how to do:root filesystem on flash? Christophe.LINDHEIMER
2003-06-12 17:40 Darin.Johnson
2003-06-12 10:31 Christophe.LINDHEIMER
2003-06-12 9:33 Callebaut Benoit
2003-06-13 6:17 ` yong_guo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3EEBA193@mailandnews.com \
--to=callebaut@mailandnews.com \
--cc=linuxppc-embedded@lists.linuxppc.org \
--cc=yong_guo@scomcenter.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.