Problems with uImage
Hi, all. I'm having some trouble trying to build uImage. Here's the steps I took in order to get it built. It didn't quite work, unfortunately:
$ 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 $ git checkout -b origin/DENX-v2.6.25-stable
$ cd $XDIR $ scripts/prepare-kernel.sh --linux=$KDIR --verbose --arch=powerpc
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]:
$ 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
...
$ make ARCH=powerpc uImage
It starts building alright, but when it gets to the mscan part it crashes, echoing the following:
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: 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
How can I correct it? I've managed to succesfully build the image before on a different PC using the same steps.
I'd really appreciate some help. Thanks in advance!
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