From: Arto Vuori <avuori@ssh•com>
To: diekema_jon <diekema@bucks•si.com>
Cc: linuxppc-embedded@lists•linuxppc.org, bkuschak@yaoo•com,
jim.chapman@iname•com, frank@mitre•org
Subject: Re: Getting the image section of the ELF file to load w/ VxWorks boot ROM
Date: Wed, 03 May 2000 11:07:59 +0300 [thread overview]
Message-ID: <390FDE5F.EFEF7015@ssh.com> (raw)
In-Reply-To: m12mgPF-001SyZC@bucks
diekema_jon wrote:
>
> I am having trouble loading the image section of the elf file
> (contains the gzip compressed Linux kernel) with the VxWorks boot
> ROM or the EST VisionICE on the EST SBC8260 board. Both of these
> options appear to ignore this section.
>
I had similar problems. It seems that EST tools don't convert all ELF
sections in zImage. I managed to get around the problem by building
bootimage by using different method than in arch/ppc/coffboot or
mbxboot. Instead using objcopy to add new sections, i use
arch/ppc/chrpboot/piggypack.c to generate object files from images and
after that link them with rest of objects. Here's couple lines from my
Makefile that does the actual job:
image.o: piggyback ../coffboot/vmlinux.gz
./piggyback image < ../coffboot/vmlinux.gz | $(AS) -o image.o
zImage: $(OBJS) no_initrd.o mknote
$(LD) $(LD_ARGS) -o $@ $(OBJS) no_initrd.o $(LIBS)
./mknote > note
$(OBJCOPY) $@ $@ --add-section=.note=note -R .comment
You also need to modify some .c files so that they can find the image
address and size.
--
Arto Vuori
email: avuori@ssh•com
mobile: +358 40 754 5223
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
next prev parent reply other threads:[~2000-05-03 8:07 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-05-02 17:24 Getting the image section of the ELF file to load w/ VxWorks boot ROM diekema_jon
2000-05-03 8:07 ` Arto Vuori [this message]
2000-05-09 10:04 ` Frank Przybylski
2000-05-09 15:54 ` Daniel G. Clemmensen
2000-05-09 17:51 ` Getting the image section of the ELF file to load w/ VxWorks boot diekema_jon
2000-05-17 20:30 ` Getting the image section of the ELF file to load w/ VxWorks boot ROM Dan Malek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=390FDE5F.EFEF7015@ssh.com \
--to=avuori@ssh$(echo .)com \
--cc=bkuschak@yaoo$(echo .)com \
--cc=diekema@bucks$(echo .)si.com \
--cc=frank@mitre$(echo .)org \
--cc=jim.chapman@iname$(echo .)com \
--cc=linuxppc-embedded@lists$(echo .)linuxppc.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox