Re: kernel cross-compile problem with embdebian's toolchain

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


On Wed, Mar 18, 2009 at 07:32:02AM +0100, Zachár Balázs wrote:
> Russell King - ARM Linux wrote:
> > On Tue, Mar 17, 2009 at 02:56:07PM +0100, Zachár Balázs wrote:
> >> I found the solution...
> >> I make the objcopy without -R .note.gnu.build-id option see this patch:
> >> http://www.arm.linux.org.uk/developer/patches/viewpatch.php?id=4600
> > 
> > I don't believe that could be the cause of your problem.  Removing
> > it might change things in a subtle way so you don't see the problem,
> > but that should not cause any difference.
> 
> Hi, firstly thanks for the help...
> 
> My theory for the undefined instruction:
> If I forget the "-R .note.gnu.build-id" when I use objcopy it create a 3GB binary from the kernel (see that patch description) and after a gzip -9 it will 4MB... Then I make an u-boot image from it
> with mkimage and using tftp to boot up from this image. The tftp load this image to 0xa1000000 and trying to unzip the 4MB to 3GB to the 0xa0008000 space. After 16MB unzip (0xa1000000-0xa0008000=
> about 16MB) it overwrite the orig gzipped image and unzip trash... Thats why I get undefined instruction...
> 
> If I use the "-R .note.gnu.build-id" too it works almost (see Problem with init call thread) properly...

So, what you're now saying is that if you _add_ "-R .note.gnu.build-id"
then the undefined instruction error goes away.

That's not what your original message said - it said the precise opposite.

-------------------------------------------------------------------
List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
FAQ:        http://www.arm.linux.org.uk/mailinglists/faq.php
Etiquette:  http://www.arm.linux.org.uk/mailinglists/etiquette.php


[Linux ARM]     [Linux ARM MSM]     [Linux ARM Kernel]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

Add to Google Follow linuxarm on Twitter