All of lore.kernel.org
 help / color / mirror / Atom feed
From: Robert Berger <gmane@reliableembeddedsystems.com>
To: poky@pokylinux.org
Subject: Re: Third party toolchain, kernel, bootloader
Date: Mon, 09 May 2011 20:39:56 +0300	[thread overview]
Message-ID: <iq98td$jo6$1@dough.gmane.org> (raw)
In-Reply-To: <iq47ab$t58$1@dough.gmane.org>

Hi Darren,

> On 05/06/2011 08:09 PM, Darren Hart wrote:
>>
>>
>> On 05/05/2011 11:28 PM, Robert Berger wrote:
>>> Hi,
>>>
>>> I'm working on a couple of projects trying to use yocto and it boils
>>> down to the fact, that the packages and the package management (with a
>>> few tweaks) are very valuable.
>>>
>>> On the other hand "just to give it a try" it's a major effort to add
>>> kernel and bootloader to poky and moreover the gcc which comes with poky
>>> is not always what I need in terms of stability but also features (need
>>> e.g. Cortex-A8 support). So I would also need to cook gcc to compile a
>>> vendor provided kernel and bootloader.
>>
>>
>> We build for Beagleboard xM, which is a Cortex-A8. Are you missing a
>> specific feature? Hitting a particular bug?

It looks like I'm hitting a compiler/configuration bug.

1) I build everything for the beagle.
2) I use this kernel (vendor supplied 2.6.32):
wget -O xuk-src.tar.bz2
http://www.technexion.com/index.php/support-center/downloads/arm-cpu-modules/tam-3517/389-xuk-src-tar/download
3) I use this kernel config:
wget ftp://ftp.denx.de/pub/os-images/debian-6.0/arm/twister-kernel.config
4)
source tmp/environment-setup-armv7a-poky-linux-gnueabi
export ARCH=arm
export CROSS_COMPILE=arm-poky-linux-gnueabi-
make menuconfig
make -j2 uImage
...
*** End of Linux kernel configuration.
*** Execute 'make' to build the kernel or try 'make help'.

scripts/kconfig/conf -s arch/arm/Kconfig
  CHK     include/linux/version.h
  SYMLINK include/asm -> include/asm-arm
make[1]: `include/asm-arm/mach-types.h' is up to date.
  CHK     include/linux/utsrelease.h
  CALL    scripts/checksyscalls.sh
<stdin>:1523:2: warning: #warning syscall recvmmsg not implemented
  CHK     include/linux/compile.h
  CC      arch/arm/kernel/sysfs_v7.o
/tmp/ccFfYvGD.s: Assembler messages:
/tmp/ccFfYvGD.s:264: Error: selected processor does not support ARM mode
`smc #0'
/tmp/ccFfYvGD.s:306: Error: selected processor does not support ARM mode
`smc #0'
make[1]: *** [arch/arm/kernel/sysfs_v7.o] Error 1
make: *** [arch/arm/kernel] Error 2
make: *** Waiting for unfinished jobs....


That's not very elegant, but I get it to compile like this:

/*
#ifdef CONFIG_ARCH_OMAP34XX
...
*/
#define aux_ctl_store NULL
#define AUX_WR 0
/*
#ifdef CONFIG_ARCH_OMAP34XX
...
*/
#define l2_aux_ctl_store NULL
#define L2AUX_WR 0


Regards,

Robert
...Under a government which imprisons any unjustly, the true place for a
just man is also a prison. -- Henry David Thoreau

My public pgp key is available at:
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x90320BF1




  parent reply	other threads:[~2011-05-09 17:40 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-06  6:28 Third party toolchain, kernel, bootloader Robert Berger
2011-05-06 17:09 ` Darren Hart
2011-05-07 19:42   ` Robert Berger
2011-05-07 22:10     ` Xianghua Xiao
2011-05-08 15:29       ` Robert Berger
2011-05-09 17:39     ` Robert Berger [this message]
2011-05-09 17:57       ` Koen Kooi
2011-05-09 20:21         ` Robert Berger
2011-05-09 21:18           ` Darren Hart

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='iq98td$jo6$1@dough.gmane.org' \
    --to=gmane@reliableembeddedsystems.com \
    --cc=poky@pokylinux.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.