Discussion:
booting linux from compact flash
Don Woodward
2004-07-26 20:25:14 UTC
Permalink
Hi Paul,

What are you trying to achieve?

You can boot a kernel from compact flash by creating a file
called roku_autoexec.mmon and putting it in the root directory
of your FAT formatted CF card.

When the system boots, our monitor (mmon) looks for this
file and executes actions contained therein. Here's the contents
of my roku_autoexec.mmon:
splash ntsc
elfload /cf/vmlinux
go -e 0x8010046c deschutes nfsroot=192.168.0.106:/nfsroot,rw,rsize=1024,wsize=10
24 init=/linuxrc rw rokuip=192.168.0.199

The first line puts up the initial "Loading Roku OS..." screen
on the ntsc (not-vga) output.
The second line loads the image.
The third line jumps to the image passing the command line args listed
to the kernel.

I guess your next question would be "Where do I get a vmlinux?"
You could build one, copy the existing one out of the flash,
or try and spin your own.

But that takes me back to:
"What are you trying to achieve?"

-Don

Loading...