[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [microblaze-uclinux] Kernel-from-flash
I wrote:
> Based on the patches by Andrew Szalai
>
> http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/archive/current/msg00077.html
>
> I've imported support for executing the kernel (and romfs) from flash,
> into CVS.
Oh, one other thing, you also need to tweak the vendors Makefile thusly:
$(ELFIMAGE): $(ROMFSIMG) $(LINUX)
BSS=`$(CROSS)objdump --headers $(LINUX) | \
grep "\.bss"` ; \
ADDR=`set -- $${BSS} ; echo 0x$${5}` ; \
$(CROSS)objcopy --add-section=.romfs=$(ROMFSIMG) \
--adjust-section-vma=.romfs=$${ADDR} --no-adjust-warnings \
--set-section-flags=.romfs=alloc,load,data \
$(LINUX) $(ELFIMAGE)
(it's right down the bottom of the Makefile - change the line
ADDR=`set -- $${BSS} ; echo 0x$${4}` ; \
to be
ADDR=`set -- $${BSS} ; echo 0x$${5}` ; \
this is in the latest patchset sent to snapgear, and should roll out
into CVS soonish.
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/