* [Buildroot] Building for ARM
@ 2006-08-12 23:32 Brian C. Lane
2006-08-12 23:53 ` Ed Swierk
2006-08-13 22:42 ` Brian C. Lane
0 siblings, 2 replies; 5+ messages in thread
From: Brian C. Lane @ 2006-08-12 23:32 UTC (permalink / raw)
To: buildroot
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I am trying to build a basic system for ARM to use with qemu. I have
successfully doen this for i386 so all the tools are in place.
1. I configured buildroot for armeb and the ARM926 processor and then
built the basic filesystem and tools (I have also tried with arm instead
of armeb).
2. I configured kernel 2.6.12.6 for ARM (make ARCH="arm" menuconfig) and
selected Versatile for the ARM system type (qemu supports this and
Integrator)
3. I added the buildroot tools to the beginning of the path and try to
compile the kernel with:
export PATH=../buildroot/build_armeb/staging_dir/bin:$PATH
make CROSS-COMPILE="armeb-linux-" ARCH="arm" bzImage
I get this result:
CC arch/arm/kernel/asm-offsets.s
cc1: error: invalid option ?little-endian?
cc1: error: invalid option ?apcs?
cc1: error: invalid option ?no-sched-prolog?
cc1: error: invalid option ?abi=apcs-gnu?
arch/arm/kernel/asm-offsets.c:1: error: bad value (armv4) for -march= switch
arch/arm/kernel/asm-offsets.c:1: error: bad value (arm9tdmi) for -mtune=
switch
It is acting like the compiler doesn't support arm, but I obviously set
the PATH and CROSS-COMPILE to point to the buildroot tools.
Does anyone have any idea of what I'm doing wrong? I've also done a
bunch of googleing and haven't come up with a decent howto for building
a basic system (coverage of uclibc, busybox and buildroot are great, but
none seem to talk about the kernel).
Thanks,
Brian
- --
- ---[Office 72.2F]--[Outside 70.8F]--[Server 86.2F]--[Coaster 72.2F]---
Linux Software Developer http://www.brianlane.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Remember Lexington Green!
iD8DBQFE3mUMIftj/pcSws0RAgc5AJ9vYQKixGR9Irk/b7prQBOUIaDECgCghMwO
nrXIo1CQoMItua5NvuEwNWw=
=+r66
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] Building for ARM
2006-08-12 23:32 [Buildroot] Building for ARM Brian C. Lane
@ 2006-08-12 23:53 ` Ed Swierk
2006-08-13 18:03 ` Brian C. Lane
2006-08-13 22:42 ` Brian C. Lane
1 sibling, 1 reply; 5+ messages in thread
From: Ed Swierk @ 2006-08-12 23:53 UTC (permalink / raw)
To: buildroot
:\x7f??o??\x1a?jp?jw?rV????jw??l+???!?]y?ay???????h?[-??^m?"?x??????Z?\x16?v????(???z?^???z\"?\x17????<\x04???????????)]j??o?-j\b???????<\x04???\x1e \x13?H#?<??j??nX??\x10\x11\bv??????\x1e"\a??\x18???.???j?!????G???\x7fj??}?\x1e??\x1csW?????????)?*'?+m???v&?q?^??+?{??'h?????\??5z???)?jX???b?y???^v????\x1csW?????????)?*'i?
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] Building for ARM
@ 2006-08-13 15:37 NuNash
0 siblings, 0 replies; 5+ messages in thread
From: NuNash @ 2006-08-13 15:37 UTC (permalink / raw)
To: buildroot
I don't have answer to your question. But wondering whether you can help
me.
Can you please share your buildroot config and ulibc config. Also which
versions of
buildroot, gcc, busybox and uclibc you used to compile successfully for
arm926? Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://busybox.net/lists/buildroot/attachments/20060813/f709b27f/attachment.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] Building for ARM
2006-08-12 23:53 ` Ed Swierk
@ 2006-08-13 18:03 ` Brian C. Lane
0 siblings, 0 replies; 5+ messages in thread
From: Brian C. Lane @ 2006-08-13 18:03 UTC (permalink / raw)
To: buildroot
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Ed Swierk wrote:
> On 8/12/06, Brian C. Lane <bcl@brianlane.com> wrote:
>> 3. I added the buildroot tools to the beginning of the path and try to
>> compile the kernel with:
>>
>> export PATH=../buildroot/build_armeb/staging_dir/bin:$PATH
>> make CROSS-COMPILE="armeb-linux-" ARCH="arm" bzImage
[snip]
>
> Not sure if this is the cause of your problem, but adding a relative
> pathname to PATH doesn't seem like a good idea. Try
> PATH=$(pwd)/../buildroot/build_armeb/staging_dir/bin:$PATH instead.
>
Very good point. I've switched to using an absolute path.
>> Does anyone have any idea of what I'm doing wrong? I've also done a
>> bunch of googleing and haven't come up with a decent howto for building
>> a basic system (coverage of uclibc, busybox and buildroot are great, but
>> none seem to talk about the kernel).
>
> The various kernel makefiles under the targets directory are
> instructive; I created a fairly generic linux kernel makefile based on
> those. See the attached patch if you want to try it out for yourself.
Thanks for the patch -- After changing your ppc references to arm it
almost works :) It compiles most of the kernel without complaint but is
now stopping in rtc-lib.c with a complaint about cmpxchg:
drivers/built-in.o: In function `drm_lock_take':
rtc-lib.c:(.text+0x86920): undefined reference to `cmpxchg'
drivers/built-in.o: In function `drm_lock_free':
I probably don't have the kernel configured quite right.
Brian
- --
- ---[Office 71.6F]--[Outside 83.5F]--[Server 85.4F]--[Coaster 71.5F]---
Linux Software Developer http://www.brianlane.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Remember Lexington Green!
iD8DBQFE32lfIftj/pcSws0RAtSKAJwKzm6zGo/0Euxylr3w6xBMHRJPRgCcDzS6
A+BKy6/fZWaPMoLt+0O2wGs=
=HxY/
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] Building for ARM
2006-08-12 23:32 [Buildroot] Building for ARM Brian C. Lane
2006-08-12 23:53 ` Ed Swierk
@ 2006-08-13 22:42 ` Brian C. Lane
1 sibling, 0 replies; 5+ messages in thread
From: Brian C. Lane @ 2006-08-13 22:42 UTC (permalink / raw)
To: buildroot
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Brian C. Lane wrote:
>
> export PATH=../buildroot/build_armeb/staging_dir/bin:$PATH
> make CROSS-COMPILE="armeb-linux-" ARCH="arm" bzImage
This should have been CROSS_COMPILE with an underscore. But even with
that it wasn't compiling correctly, until I discovered the defconfig
make targets. Using the versatile_defconfig target worked. Now I just
have to get qemu to run it without crashing.
Thanks for the help,
Brian
- --
- ---[Office 73.1F]--[Outside 75.4F]--[Server 86.8F]--[Coaster 73.1F]---
Linux Software Developer http://www.brianlane.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Remember Lexington Green!
iD8DBQFE36rVIftj/pcSws0RAhD8AJ9DQtZ9jg909CTe44gq8B+Gt5DvBACZAWix
UbVuZcN/XN2YIG4MrXReIRY=
=8We5
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-08-13 22:42 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-12 23:32 [Buildroot] Building for ARM Brian C. Lane
2006-08-12 23:53 ` Ed Swierk
2006-08-13 18:03 ` Brian C. Lane
2006-08-13 22:42 ` Brian C. Lane
-- strict thread matches above, loose matches on Subject: below --
2006-08-13 15:37 NuNash
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox