--- In "chentom60" <> wrote:
>
> Hello,
>
> I have some stupid confusions on loading kernel from flash, please
help
> me to clarify:
>
> 1. why 0x00218000
> Why is this address selected to save kernel in Ram, is there any
> special reason?
Legacy.
Its the kernel start address and its hard coded into the kernel
source. It basically has to be big enough to not conflict with
bootloader (RedBoot/eCos) which occupies the lower 2 megabytes of
address space.
>
> 2. The subsequent exec -c "console=ttyAM0,115200
root=/dev/mtdblock1".
> It looks like before kernel is executed, file system is already
> available, otherwise there should be no /dev/ files. Who made the
file
> system before Kernel is running?
This cmdline is passed to the Linux kernel as arguments (so
called "ATAGs"). The kernel has special code that can parse certain
names for root= argument before /dev is mounted.
Actually, /dev/mtdblock1 is not even the real device name -- it
becomes /dev/mtdblock/1 when the real /dev is mounted.
//Jesse Off
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|