All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] Image building, porting issues
@ 2008-09-11 22:31 Marco Antônio Possamai
  2008-09-12  9:50 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 3+ messages in thread
From: Marco Antônio Possamai @ 2008-09-11 22:31 UTC (permalink / raw)
  To: Xenomai-help

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

Greetings, ppl.

I'm kind of new to the whole Linux and kernel programming scenario, and
I've been having trouble with some stuff I've been encountering along a
project.

I'm using the Ubuntu 8.04 distro, btw.

Here's the beef:

I've been working on getting Xenomai ported to a Freescale mpc5200, and I
have been having trouble on the first steps, specially concerning the
Image creation (to port it to the mpc5200). Still on the configuring the
ELDK stages.

Here's the coding so far:


$ export CROSS_COMPILE=ppc_6xx


$ 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

All tools and sources acquired.


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


$ cd $KDIR
$ make ARCH=powerpc mpc5200_defconfig
$ make ARCH=powerpc menuconfig

(Here's the options I've enabled in the config menu thet 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=powerpc uImage


After this point, the following error messages appeared:

make: ppc_6xxgcc: Comando não encontrado (command not found)
scripts/kconfig/conf -s arch/powerpc/Kconfig
make: ppc_6xxgcc: Comando não encontrado (command not found)
/home/user/linux-2.6-denx/scripts/gcc-version.sh: line 25: ppc_6xxgcc:
comando não encontrado (command not found)
/home/user/linux-2.6-denx/scripts/gcc-version.sh: line 26: ppc_6xxgcc:
comando não encontrado (command not found)
/home/user/linux-2.6-denx/scripts/gcc-version.sh: line 25: ppc_6xxgcc:
comando não encontrado (command not found)
/home/user/linux-2.6-denx/scripts/gcc-version.sh: line 26: ppc_6xxgcc:
comando não encontrado (command not found)
/home/user/linux-2.6-denx/scripts/gcc-version.sh: line 28: ppc_6xxgcc:
comando não encontrado (command not found)
*** 2.6 kernels no longer build correctly with old versions of binutils.
*** Please upgrade your binutils to 2.12.1 or newer
make: ** [checkbin] Erro 1

The strangest thing is that I've got all gcc and binutils updated to
their newest, and somehow the ppc_6xxgcc isn't trackable anywhere.

I'm puzzled by such messages and no similar problems I've found in my
searches using Google.

Can anyone help me?


Marco Antônio Possamai

Universidade Federal de Santa Catarina

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


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

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

* Re: [Xenomai-help] Image building, porting issues
  2008-09-11 22:31 [Xenomai-help] Image building, porting issues Marco Antônio Possamai
@ 2008-09-12  9:50 ` Gilles Chanteperdrix
  0 siblings, 0 replies; 3+ messages in thread
From: Gilles Chanteperdrix @ 2008-09-12  9:50 UTC (permalink / raw)
  To: Marco Antônio Possamai; +Cc: Xenomai-help

Marco Antônio Possamai wrote:
> $ export CROSS_COMPILE=ppc_6xx

This should probably look like CROSS_COMPILE=ppc_6xx- instead.

Regards.

-- 
                                                 Gilles.


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

* [Xenomai-help] Image building, porting issues
@ 2008-09-17 17:16 Marco Antônio Possamai
  0 siblings, 0 replies; 3+ messages in thread
From: Marco Antônio Possamai @ 2008-09-17 17:16 UTC (permalink / raw)
  To: XENOMAI

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

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=ppc_6xx-


$ 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

(All tools and sources acquired)


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


$ cd $KDIR
$ make ARCH=powerpc mpc5200_defconfig
$ make ARCH=powerpc 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=powerpc 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=powerpc uImage

and it issued the same error lines.


Any thoughts?


Thanks in advance!


Marco Antônio Possamai

Universidade Federal de Santa Catarina

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


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

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

end of thread, other threads:[~2008-09-17 17:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-11 22:31 [Xenomai-help] Image building, porting issues Marco Antônio Possamai
2008-09-12  9:50 ` Gilles Chanteperdrix
  -- strict thread matches above, loose matches on Subject: below --
2008-09-17 17:16 Marco Antônio Possamai

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.