Antwort: Re: VxWorks bootloader & PowerQUICC II, Booting the kernel
Dan Malek
dan at mvista.com
Sun Oct 1 02:48:12 EST 2000
Ruedi.Hofer at ascom.ch wrote:
> The gdb tells me:
>
> 75 shp = (Elf32_Shdr *) dbuf;
> 76 sp = (char *)shp;
> 77 for (i=0; i<nsscns; i++) {
> > 78 if (shp->sh_addr)
> 79 shp->sh_addr += 0x500000;
> 80 if (i == 5)
> 81 imagesize = shp->sh_size;
>
> Program received signal SIGSEGV, Segmentation fault.
I don't know why this happened, but I discovered that line 80 should
be:
if (i== 6)
> I tried to play around with vxhack.c but I didn't succeed...
It's a pretty trivial program. All it does is update the vma/lma
in the headers and add the image size to the data section of the
file. A nice addition would be to locate the "image" by name instead
of just knowing the header number. When I originally wrote it, I
needed it _now_, and didn't care about what it looked like :-). Just
use it as an example of what needs to be done, not as the way to do it.
-- Dan
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
More information about the Linuxppc-embedded
mailing list