Content-Transfer-Encoding: 7bit Content-Type: multipart/alternative; boundary="_----------=_1221671769182210" MIME-Version: 1.0 From: =?iso-8859-1?B?TWFyY28gQW509G5pbyBQb3NzYW1haQ==?= Date: Wed, 17 Sep 2008 14:16:09 -0300 Message-Id: <20080917171609.0666E1CE825@domain.hid> Subject: [Xenomai-help] Image building, porting issues 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. --_----------=_1221671769182210 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" Hi, all! Once again I have come across several error codes when I try the build image command. Same Ubuntu 8.04 distro, here. (All ELDK installing and configuring are now correctly done. Bad installing and configuring were causing the previous errors I mailed before; doesn't matter now) Check the code so far: $ export CROSS_COMPILE=3Dppc_6xx- $ 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 (All tools and sources acquired) $ cd $XDIR $ scripts/prepare-kernel.sh --linux=3D$KDIR --verbose --arch=3Dpowerpc $ cd $KDIR $ make ARCH=3Dpowerpc mpc5200_defconfig $ make ARCH=3Dpowerpc menuconfig (Here's the options I've enabled in the config menu that followed) ... 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 ... $ make ARCH=3Dpowerpc uImage It then echoes the following lines plus the error messages: CHK include/linux/version.h CHK include/linux/utsrelease.h CALL scripts/checksyscalls.sh CHK include/linux/compile.h CALL arch/powerpc/kernel/systbl_chk.sh CC drivers/xenomai/can/mscan/rtcan_mscan.o drivers/xenomai/can/mscan/rtcan_mscan.c: In function 'mscan_gpio_config': drivers/xenomai/can/mscan/rtcan_mscan.c:705: error: implicit declaration of function 'mpc52xx_find_and_map' make[4]: ** [drivers/xenomai/can/mscan/rtcan_mscan.o] Erro 1 make[3]: ** [drivers/xenomai/can/mscan] Erro 2 make[2]: ** [drivers/xenomai/can] Erro 2 make[1]: ** [drivers/xenomai] Erro 2 make: ** [drivers] Erro 2 I've also tested with the following command: $ make ARCH=3Dpowerpc uImage and it issued the same error lines. Any thoughts? Thanks in advance! Marco Ant=F4nio Possamai Universidade Federal de Santa Catarina --=20 Be Yourself @ mail.com! Choose From 200+ Email Addresses Get a Free Account at www.mail.com --_----------=_1221671769182210 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="iso-8859-1"

Hi, all!

Once again I have come across several error codes whe= n I try the build image command.

Same Ubuntu 8.04 distro, here.

(All ELDK installing and configuring are now correctly done. Bad installing and configuring were causing the previous errors I mailed before; doesn't matter now)

Check the code so far:


$= export CROSS_COMPILE=3Dppc_6xx-


$ 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 check= out origin/DENX-v2.6.25-stable

(All tools and sources acquired)


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


= $ cd $KDIR
$ make ARCH=3Dpowerpc mpc5200_defconfig
$ make ARCH=3Dpowe= rpc menuconfig

(Here's the options I've enabled in the config menu that followed)

  ... enable RT-Socket-CAN and MSCAN driver ...
  <*> R= T-Socket-CAN, CAN raw socket interface
  [*]   Enable deb= ug 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
  [*] &n= bsp;   Enable CAN 1 (NEW)
  [*]     E= nable CAN 2 (NEW)
  (66000000) Clock Frequency in Hz (NEW)
 = ;         Pin Configuration (CAN 1 = on I2C1 pins, CAN 2 on TMR01 pin
  ...


$ make ARCH=3Dpowerpc uImage


It then = echoes the following lines plus the error messages:

  CHK&nb= sp;    include/linux/version.h
  CHK  &nbs= p;  include/linux/utsrelease.h
  CALL    script= s/checksyscalls.sh
  CHK     include/linux/comp= ile.h
  CALL    arch/powerpc/kernel/systbl_chk.sh  CC      drivers/xenomai/can/mscan/rtcan_ms= can.o
drivers/xenomai/can/mscan/rtcan_mscan.c: In function 'mscan_gpio_c= onfig':
drivers/xenomai/can/mscan/rtcan_mscan.c:705: error: implicit dec= laration of function 'mpc52xx_find_and_map'
make[4]: ** [drivers/xenomai= /can/mscan/rtcan_mscan.o] Erro 1
make[3]: ** [drivers/xenomai/can/mscan]= Erro 2
make[2]: ** [drivers/xenomai/can] Erro 2
make[1]: ** [drivers= /xenomai] Erro 2
make: ** [drivers] Erro 2


I've als= o tested with the following command:

$ make ARCH=3Dpowerpc uImage

and it issued the same error lines.


Any thoughts?<= br>


Thanks in advance!


Marco Ant=F4nio Possamai

Universidade Federal de Santa Catarina

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