From: Alex <mailinglist@miromico.ch>
To: openembedded-devel@lists.openembedded.org
Subject: Solution for AVR32 kernel link problem
Date: Fri, 01 Feb 2008 20:25:03 +0100 [thread overview]
Message-ID: <47A3720F.1060303@miromico.ch> (raw)
Hi
I played around with OE for AVR32.
I think I found a solution for the kernel linking problem. A known
workaround was to use an external linker.
I tried both, the one from Atmel's toolchain package and the one created
by Atmel's buildroot. The one created
by buildroot should be the same version as the one created by OE.
I copied binutils patches from builtroot to OE. Even though, they have
the same "patch number" (500, 501) they are different
from those OE will download during build.
I changed binutils_2.17.bb receipt to use the files from buildroot:
--- snipp ---
#patches from
http://svn.uclibc.org/cgi-bin/viewcvs.cgi/trunk/buildroot/toolchain/binutils/2.17/
SRC_URI += "\
file://100-uclibc-conf.patch;patch=1 \
file://300-006_better_file_error.patch;patch=1 \
file://702-binutils-skip-comments.patch;patch=1 \
file://110-arm-eabi-conf.patch;patch=1 \
file://300-012_check_ldrunpath_length.patch;patch=1 \
file://300-001_ld_makefile_patch.patch;patch=1 \
file://400-mips-ELF_MAXPAGESIZE-4K.patch;patch=1 \
file://500-avr32-atmel.1.3.0.patch;patch=1 \
file://501-avr32-fix-pool-alignment.patch;patch=1 \
"
#
http://avr32linux.org/twiki/pub/Main/DevelopmentTools/502-avr32-bfd-dont-allow-direct-refs-to-bss.patch.gz;patch=1
\
# file://503-avr32-fix-got-offset-init.patch;patch=1 \
---- snapp ------
Like this kernel will compile and link.
I don't have enough knowledge about OE to say this fix works. I don't
know why and how the patches are different?
I will try to include the other two patches which are currently
commented out. The above receipt applies exactly the same patches as the
buildroot.
Finally, I couldn't test it, as I can't boot the kernel. Something is
wrong with my load address and entry point. It is set to 0x20008000. I
tried to
add UBOOT_ENTRYPOINT = "90000000" to atngw100.conf and just recompile
the kernel by "bitbake virtual/kernel -c clean" and "bitbake
virtual/kernel".
This didn't change the entry point, but maybe I have to recompile
everything..
Hope this helps
Alex
-
next reply other threads:[~2008-02-01 19:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-01 19:25 Alex [this message]
2008-02-04 12:14 ` Solution for AVR32 kernel link problem Koen Kooi
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=47A3720F.1060303@miromico.ch \
--to=mailinglist@miromico.ch \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.