[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[microblaze-uclinux] booting through either jffs2 or romfs at runtime thro' bootloader?



Hi all,
Now i can boot the gzipped linux kernel from the U-Boot 1.1.3 either
from the raw flash partition or from the file system(jffs2) present in
the flash. I need to add the u-boot support in the
uclinux-auto/Makefile for the u-boot support (mkimage.etc). I
presently use ML403 board configured for microblaze till we get our
own custom board.

Now i thought of having a configurable option, either to boot the
kernel with the  romfs filesystem or jffs2 file system (flashed
through the u-boot flash utility support) with out recompiling the
code to support each of this. In other words, i can boot either
linux.bin present in the jffs2 or image.bin in the raw-flash.
I found that the routine mb_auto_mtd_init() n the mb_auto.c contains
the hard-coded romfs assigned to the ROOT_DEV value. If i replaced
romfs with the jffs2 partition it boots from the flash filesystem.
In-order to have, cmdline bootable option by giving (rootfstype=jff2
and root=/dev/mtdblock7) or  (rootfstype=romfs and
root=/dev/mtdblock9) in the command-line option, i got to comment out
the code. And also, uclinux_mtd_init()  in the uclinux.c, assign
ROOT_DEV only if it has null value. (Still i couldn't boot up the
romfs).

Is that how it was intended. Can somebody help me out on this.


Also, which one is the best method, having romfs and then mouting the
flash or booting directly the kernel image from the jffs2-filesystem
in the flash using the u-boot (i have sufficient flash memory in our
board). How will generally people use when it is production version
for uclinux. Any advise on this thing will be appreciated.


thanx
- Prasad

___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/