[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [microblaze-uclinux] can't mount root fs...!?
Hi Flavius,
Flavius Gruian wrote:
> I'm trying to run uClinux with an image compiled by myself,
> on the mbvanilla configuration (2.00f). I can get most of
> the things running, yet when I download and run image.elf this
> is what I get:
Yes, this is a known (but maybe not yet documented) problem. The
solution is to run
mb-objcopy -O binary image.elf image.bin
then in XMD download with
dow -data image.bin 0x8000000
(or whatever start address you linked for).
Objcopy is used to insert the romfs image as a section .romfs into the
elf file (have a look in vendors/Insight/XC2V1K_Microblaze/Makefile).
However, objcopy (all versions, not just microblaze) doesn't put the
section into a segment. Then, when the XMD elf loader picks up the
file, it doesn't download any sections not in segments. It's a known
problem in uClinux land. It could be fixed by patching ELF binutils
(which includes objcopy), but most seem to think it's such a standard
thing that elf loaders should just support it.
Regards,
John
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@itee.uq.edu.au
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/