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

Re: [microblaze-uclinux] bootstrap code



Hi John, Jozsef,

John Williams wrote:
> [snip] 
> This is the way I used to do it, however was a bit dissatisfied with 
> doing a double-link on the kernel, seemed pretty wasteful.  I changed 
> over to the objcopy approach based on the ColdFire/Snapgear targets, and 
> using binary rather than elf images for booting. 
>>
>> i'm sorry for not providing you with nice patches instead of this lousy
>> semi-tutorial. :( 
> 
> It's ok, as I said I've been there before, and retreated in search of a 
> cleaner solution.
> 
> To be honest I'd still prefer to tweak the bootlaoder to act a bit more 
> like objcopy - I should just look at the objcopy/BFD sources and see 
> what it does.  Clearly if "objcopy -O binary" can work correctly, there 
> must be enough information about the .romfs section for it to be given a 
> size, load address and flags etc..

As an additional data point, gdb uses the extra .romfs segment
correctly too. So it is only some elf parsers that are doing it wrong.

I use gdb with jtag tools on a number of targets (mostly ColdFire
and ARM) and it always loads the .romfs segment along with the
.text/.data where the headers say it too.

Regards
Greg


------------------------------------------------------------------------
Greg Ungerer  --  Chief Software Dude       EMAIL:     gerg@snapgear.com
SnapGear -- a CyberGuard Company            PHONE:       +61 7 3435 2888
825 Stanley St,                             FAX:         +61 7 3891 3630
Woolloongabba, QLD, 4102, Australia         WEB: http://www.SnapGear.com
___________________________
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/