Content-Transfer-Encoding: 7bit Content-Type: multipart/alternative; boundary="_----------=_1225836575168300" MIME-Version: 1.0 From: =?iso-8859-1?B?TWFyY28gQW509G5pbyBQb3NzYW1haQ==?= Date: Tue, 4 Nov 2008 19:09:34 -0300 Message-Id: <20081104220935.659ED1642C3@domain.hid> Subject: [Xenomai-help] Problems with image building Icecube List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: XENOMAI This is a multi-part message in MIME format. --_----------=_1225836575168300 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" Here's what I've done so far: $ export CROSS_COMPILE=3Dppc_6xx- Get the sources: $ git clone git://git.denx.de/linux-2.6-denx.git $ export KDIR=3D$PWD/linux-2.6-denx $ svn co http://svn.gna.org/svn/xenomai/branches/v2.4.x xenomai-2.4.x $ export XDIR=3D$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=3D$KDIR --verbose --arch=3Dpowerpc The following will appear: Adeos patch [default /home/user/linux-2.6-denx/xenomai-2.4.x/ksrc/arch/powerpc/patches/adeos-ipi= pe-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=3Dpowerpc mpc5200_defconfig $ make ARCH=3Dpowerpc 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=3Dpowerpc uImage $ cd $XDIR $ ./configure --host=3Dppc-linux --prefix=3D/root/xenomai $ make After this 'make' instruction, the following echoes: Making all in src make[1]: Entrando no diret=F3rio `/home/user/xenomai-2.4.x/src' Making all in include make[2]: Entrando no diret=F3rio `/home/user/xenomai-2.4.x/src/include' make all-am make[3]: Entrando no diret=F3rio `/home/user/xenomai-2.4.x/src/include' make[3]: Nada a ser feito para `all-am'. make[3]: Saindo do diret=F3rio `/home/user/xenomai-2.4.x/src/include' make[2]: Saindo do diret=F3rio `/home/user/xenomai-2.4.x/src/include' Making all in rtdk make[2]: Entrando no diret=F3rio `/home/user/xenomai-2.4.x/src/rtdk' /bin/bash ../../libtool --tag=3DCC --mode=3Dcompile 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=F3rio `/home/user/xenomai-2.4.x/src/rtdk' make[1]: ** [all-recursive] Erro 1 make[1]: Saindo do diret=F3rio `/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=F4nio Possamai --=20 Be Yourself @ mail.com! Choose From 200+ Email Addresses Get a Free Account at www.mail.com --_----------=_1225836575168300 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="iso-8859-1"

Here's what I've done so far:

$ export CROSS_COMPILE=3Dppc_6xx-

Get the sources:

$ git clon= e git://git.denx.de/linux-2.6-denx.git
$ export KDIR=3D$PWD/linux-2.6-de= nx

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

$ cd $KDIR
$ git check= out origin/DENX-v2.6.25-stable
$ git checkout -b origin/DENX-v2.6.25-sta= ble


Prepare the kernel for Xenomai:

$ cd $XDIR
$ scrip= ts/prepare-kernel.sh --linux=3D$KDIR --verbose --arch=3Dpowerpc

The = following will appear:

Adeos patch [default /home/user/linux-2.6-den= x/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 ke= rnel enabling RT-Socket-CAN:

$ cd $KDIR
$ make ARCH=3Dpowerpc mpc= 5200_defconfig
$ make ARCH=3Dpowerpc menuconfig
  ... enable RT-= Socket-CAN and MSCAN driver ...
  <*> RT-Socket-CAN, CAN raw = socket interface
  [*]   Enable debug output (NEW)
&nb= sp; [ ]   Enable TX loopback to local sockets (NEW)
  (10= 24) Size of receive ring buffers (must be 2^N) (NEW)
  (4) &nb= sp; Maximum number of devices (NEW)
  (16)  Maximum number of = receive filters per device (NEW)
  < >   Virtual CA= N bus driver (NEW)
  <*>   MSCAN driver for MPC52xx=
  [*]     Enable CAN 1 (NEW)
  [*]&nbs= p;    Enable CAN 2 (NEW)
  (66000000) Clock Frequenc= y in Hz (NEW)
          Pin= Configuration (CAN 1 on I2C1 pins, CAN 2 on TMR01 pin
  ...

Build the image:

$ make ARCH=3Dpowerpc uImage

$ cd $XDI= R
$ ./configure --host=3Dppc-linux --prefix=3D/root/xenomai
$ make

After this 'make' instruction, the following echoes:

Making a= ll in src
make[1]: Entrando no diret=F3rio `/home/user/xenomai-2.4.x/src= '
Making all in include
make[2]: Entrando no diret=F3rio `/home/user/= xenomai-2.4.x/src/include'
make  all-am
make[3]: Entrando no dir= et=F3rio `/home/user/xenomai-2.4.x/src/include'
make[3]: Nada a ser feit= o para `all-am'.
make[3]: Saindo do diret=F3rio `/home/user/xenomai-2.4.= x/src/include'
make[2]: Saindo do diret=F3rio `/home/user/xenomai-2.4.x/= src/include'
Making all in rtdk
make[2]: Entrando no diret=F3rio `/ho= me/user/xenomai-2.4.x/src/rtdk'
/bin/bash ../../libtool --tag=3DCC =   --mode=3Dcompile 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 -M= D -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:
{s= tandard 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 instructio= n: `sync'
make[2]: ** [librtdk_la-rt_print.lo] Erro 1
make[2]: Saindo= do diret=F3rio `/home/user/xenomai-2.4.x/src/rtdk'
make[1]: ** [all-rec= ursive] Erro 1
make[1]: Saindo do diret=F3rio `/home/user/xenomai-2.4.x/= src'
make: ** [all-recursive] Erro 1


I don't know w= hat to make of it.

The ELDK is up and running, by the way.

Than= ks in advance,

Marco Ant=F4nio Possamai


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