EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

How to boot linux kernel and give a root filesystem from flash

Started by Malte Wolters October 23, 2004
Hi everyone,

I use a mips board with an AU1000 processor.
I wrote a mini boot program which initializes the onboard hardware and
gives a little terminal access to it in purpose to write and erase
flash and set some small commands.
This program shall be extended to a mini boot loader which starts a
linux kernel.
The kernel is already prepared as an ELF or SREC file and can be
written to the flash eeprom.
The flash routines already exist and work fine.

Now my question is, how can I boot the linux kernel which will be
placed somewhere in the flash memory and how can I give a root
filesystem to it (mount as read-only) for the boot process?
As I understood in the main it is similiar to boot a program, which
means I can either jump to the corresponding address in the eeprom
memory or copy the program to memory and execute it there. But how can
I give a part of the flash as a root filesystem? And how do I realize
in the best way to start the kernel?

Thanks for any advice

M.Wolters
"Malte Wolters" <mw@goldammer.de> skrev i meddelandet
news:24bdff77.0410230112.7715d0f6@posting.google.com...
> Hi everyone, > > I use a mips board with an AU1000 processor. > I wrote a mini boot program which initializes the onboard hardware and > gives a little terminal access to it in purpose to write and erase > flash and set some small commands. > This program shall be extended to a mini boot loader which starts a > linux kernel. > The kernel is already prepared as an ELF or SREC file and can be > written to the flash eeprom. > The flash routines already exist and work fine. > > Now my question is, how can I boot the linux kernel which will be > placed somewhere in the flash memory and how can I give a root > filesystem to it (mount as read-only) for the boot process? > As I understood in the main it is similiar to boot a program, which > means I can either jump to the corresponding address in the eeprom > memory or copy the program to memory and execute it there. But how can > I give a part of the flash as a root filesystem? And how do I realize > in the best way to start the kernel? > > Thanks for any advice > > M.Wolters
Port U-Boot! You can probably use your work in the porting effort. Source code on http://sourceforge.net/projects/u-boot/ -- Best Regard Ulf Samuelsson

The 2024 Embedded Online Conference