All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] Problems with image building Icecube
@ 2008-11-04 22:09 Marco Antônio Possamai
  2008-11-04 22:16 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 2+ messages in thread
From: Marco Antônio Possamai @ 2008-11-04 22:09 UTC (permalink / raw)
  To: XENOMAI

[-- Attachment #1: Type: text/plain, Size: 3486 bytes --]

Here's what I've done so far:

$ export CROSS_COMPILE=ppc_6xx-

Get the sources:

$ git clone git://git.denx.de/linux-2.6-denx.git
$ export KDIR=$PWD/linux-2.6-denx

$ svn co http://svn.gna.org/svn/xenomai/branches/v2.4.x xenomai-2.4.x
$ export XDIR=$PWD/xenomai-2.4.x

$ cd $KDIR
$ git checkout origin/DENX-v2.6.25-stable
$ git checkout -b origin/DENX-v2.6.25-stable


Prepare the kernel for Xenomai:

$ cd $XDIR
$ scripts/prepare-kernel.sh --linux=$KDIR --verbose --arch=powerpc

The following will appear:

Adeos patch [default
/home/user/linux-2.6-denx/xenomai-2.4.x/ksrc/arch/powerpc/patches/adeos-ipipe-2.6.25-powerpc-DENX-2.2-03.patch]:

Just hit enter.


Configure and create the kernel enabling RT-Socket-CAN:

$ cd $KDIR
$ make ARCH=powerpc mpc5200_defconfig
$ make ARCH=powerpc menuconfig
... enable RT-Socket-CAN and MSCAN driver ...
<*> RT-Socket-CAN, CAN raw socket interface
[*]   Enable debug output (NEW)
[ ]   Enable TX loopback to local sockets (NEW)
(1024) Size of receive ring buffers (must be 2^N) (NEW)
(4)   Maximum number of devices (NEW)
(16)  Maximum number of receive filters per device (NEW)
< >   Virtual CAN bus driver (NEW)
<*>   MSCAN driver for MPC52xx
[*]     Enable CAN 1 (NEW)
[*]     Enable CAN 2 (NEW)
(66000000) Clock Frequency in Hz (NEW)
Pin Configuration (CAN 1 on I2C1 pins, CAN 2 on TMR01 pin
...


Build the image:

$ make ARCH=powerpc uImage

$ cd $XDIR
$ ./configure --host=ppc-linux --prefix=/root/xenomai
$ make

After this 'make' instruction, the following echoes:

Making all in src
make[1]: Entrando no diretório `/home/user/xenomai-2.4.x/src'
Making all in include
make[2]: Entrando no diretório `/home/user/xenomai-2.4.x/src/include'
make  all-am
make[3]: Entrando no diretório `/home/user/xenomai-2.4.x/src/include'
make[3]: Nada a ser feito para `all-am'.
make[3]: Saindo do diretório `/home/user/xenomai-2.4.x/src/include'
make[2]: Saindo do diretório `/home/user/xenomai-2.4.x/src/include'
Making all in rtdk
make[2]: Entrando no diretório `/home/user/xenomai-2.4.x/src/rtdk'
/bin/bash ../../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.
-I../../src/include  -O2 -D_GNU_SOURCE -D_REENTRANT -Wall -pipe
-D__XENO__ -D__IN_XENO__ -Wstrict-prototypes -I../../include    -MT
librtdk_la-rt_print.lo -MD -MP -MF .deps/librtdk_la-rt_print.Tpo -c -o
librtdk_la-rt_print.lo `test -f 'rt_print.c' || echo './'`rt_print.c
 gcc -DHAVE_CONFIG_H -I. -I../../src/include -O2 -D_GNU_SOURCE
-D_REENTRANT -Wall -pipe -D__XENO__ -D__IN_XENO__ -Wstrict-prototypes
-I../../include -MT librtdk_la-rt_print.lo -MD -MP -MF
.deps/librtdk_la-rt_print.Tpo -c rt_print.c  -fPIC -DPIC -o
.libs/librtdk_la-rt_print.o
{standard input}: Assembler messages:
{standard input}:217: Error: no such instruction: `sync'
{standard input}:221: Error: no such instruction: `sync'
{standard input}:565: Error: no such instruction: `sync'
{standard input}:631: Error: no such instruction: `sync'
make[2]: ** [librtdk_la-rt_print.lo] Erro 1
make[2]: Saindo do diretório `/home/user/xenomai-2.4.x/src/rtdk'
make[1]: ** [all-recursive] Erro 1
make[1]: Saindo do diretório `/home/user/xenomai-2.4.x/src'
make: ** [all-recursive] Erro 1


I don't know what to make of it.

The ELDK is up and running, by the way.

Thanks in advance,

Marco Antônio Possamai


-- 
Be Yourself @ mail.com!
Choose From 200+ Email Addresses
Get a Free Account at www.mail.com


[-- Attachment #2: Type: text/html, Size: 4111 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Xenomai-help] Problems with image building Icecube
  2008-11-04 22:09 [Xenomai-help] Problems with image building Icecube Marco Antônio Possamai
@ 2008-11-04 22:16 ` Gilles Chanteperdrix
  0 siblings, 0 replies; 2+ messages in thread
From: Gilles Chanteperdrix @ 2008-11-04 22:16 UTC (permalink / raw)
  To: Marco Antônio Possamai; +Cc: XENOMAI

Marco Antônio Possamai wrote:
> Here's what I've done so far:
> 
> $ export CROSS_COMPILE=ppc_6xx-
> (...)
> $ cd $XDIR
> $ ./configure --host=ppc-linux --prefix=/root/xenomai

You should read configure output, it is probably instructive. Notably,
it should tell you that there is no such compiler as ppc-linux-gcc,
since your compiler is called ppc_6xx-gcc, you should pass
--host=ppc_6xx to xenomai configure script.

alternatively, you can pass CC=ppc_6xx-gcc on configure command line.

This is all documented in README.INSTALL

> $ make
> (...)
> /bin/bash ../../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.

And here you see that xenomai makefiles are using gcc, which is wrong.


-- 
					    Gilles.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-11-04 22:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-04 22:09 [Xenomai-help] Problems with image building Icecube Marco Antônio Possamai
2008-11-04 22:16 ` Gilles Chanteperdrix

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.