Skip to contentSkip to conversation

building image error regarding xenomai/can/mscan/rtcan_mscan.o

Xenomai-help Marco Antônio Possamai 2 participants 2 messages Feb 19, 2009

lore
Share & tools
lore
#0 lore raw

Greetings, all.

I'm working on building a kernel image for the mpc5200b board with Xenomai and CAN settings. I wish to generate a cuImage.lite5200b.

Got the xenomai-2.4.3 and the linux-2.6.24. Patched it with adeos-ipipe-2.6.24-powerpc-DENX-2.1-04.patch.

Then I've configured the CAN settings as I wanted:

$ make ARCH=powerpc lite5200_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
...

But I've got the following error message after doing the 'make ARCH=powerpc zImage' command:

...

LD      drivers/video/built-in.o
CC      drivers/xenomai/can/rtcan_dev.o
CC      drivers/xenomai/can/rtcan_socket.o
CC      drivers/xenomai/can/rtcan_module.o
CC      drivers/xenomai/can/rtcan_raw.o
CC      drivers/xenomai/can/rtcan_raw_dev.o
CC      drivers/xenomai/can/rtcan_raw_filter.o
LD      drivers/xenomai/can/xeno_can.o
CC      drivers/xenomai/can/mscan/rtcan_mscan.o

drivers/xenomai/can/mscan/rtcan_mscan.c:32:25: error: asm/ppcboot.h: No such file or directory
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

It seems to have something to do with this asm/ppcboot.h which seems to be absent. What can I do about it?

Thanks for the attention.

Marco Antônio Possamai

Universidade Federal de Santa Catarina

Signature · 3 lines
Be Yourself @ mail.com!
Choose From 200+ Email Addresses
Get a Free Account at www.mail.com
#1 lore raw
Quoted 7 lines · Marco Antônio Possamai

Greetings, all.

I'm working on building a kernel image for the mpc5200b board with Xenomai and CAN settings. I wish to generate a cuImage.lite5200b.

Got the xenomai-2.4.3 and the linux-2.6.24. Patched it with adeos-ipipe-2.6.24-powerpc-DENX-2.1-04.patch.

When starting a new development, there is no reason not to pick the latest release i.e. xenomai-2.4.6.1. As for why the compilation fails, I bet it is because the I-pipe patches are made for DENX tree, not the vanilla kernel.

Signature · 1 line
					    Gilles.