[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [microblaze-uclinux] can't mount root fs...!?
Hi John,
Thanks - I got it running with the image.bin after I saw that
the dow .elf doesn't do it.
I noticed that mb-objcopy does not add .romfs as a segment, but I
couldn't find any actual resolve to that... until now.
Anyway. I got a system booting uClinux at power up now. =)
(I use a opb_jtag_uart instead of the P160 serial, since it so
happends I have no more serial ports available =/ but otherwise
the system is a vanilla 2.00f)
PS. Anyone compiling with mb-g++ with sstreams, iostream, and templates,
without problems? (2.95.3-4)
/F
On Fri, 7 Nov 2003, John Williams wrote:
>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/
>
___________________________
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/