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

Re: [microblaze-uclinux] Kernel Command Line for uClinux kernel loaded by XMD.



Thanks a lot, John, I also changed message's subject. See inline.
On Tuesday, May 22, 2007 3:33 PM John Williams wrote:
> Leonid wrote:
> > I am loading uCLinux elf file (which contains filesystem as well)
via
> > XMD, it passes OK:
> > 
> > XMD% do image.elf
> >         section, .text: 0x22000000-0x2212fa30
> >         section, .intv: 0x2212fa30-0x2212fa98
> >         section, .init: 0x2213d000-0x2214b000
> >         section, .data: 0x2212fa98-0x2213c020
> >         section, .bss: 0x2214b000-0x22175e68
> >         section, .romfs: 0x2214b000-0x2228d000
> > Downloaded Program image.elf
> > Setting PC with program start addr = 0x22000000
> > XMD%
> > 
> > Bu when I run the image, it fails in the end:

> XMD's interpretation of the ELF standard causes it to fail to download

> the .romfs section of the elf file.  This is why no init is found, and

> the system panics.

I see...

> for this reason, when downloading via XMD, you must use the .bin file,

> and download it as a data file to a specific address

> dow -data /path/to/image.bin 0xdeadbeef
> con 0xdeadbeef

> This is how the petalinux-jtag-boot scripts work.

That will work of course, but perhaps won't do for me. If I just need to
boot uClinux, I can do it via u-boot. I use XMD to connect GDB remotely
and for that I need ELF file to be loaded, right? Or the binary one will
do?

Regards,

Leonid.


___________________________
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/