Module kernel compilation | |
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] | |
Hi,
I need compile the peak can driver for arm. It is a kernel module. This is
the step i have made :
- Extract the tar
- Edit Makefile for use arm-linux-gcc
- Edit the main file to add "#define __LINUX_ARCH_ARM__ 9"
- make ARCH=arm CROSS_COMPILE=arm-linux-
I got this error:
octera@octera-desktop:~/canfestival/peakdriver/peak-linux-driver-6.7/driver$
make ARCH=arm CROSS_COMPILE=arm-linux-
***
*** Host machine kernel version=2.6.25.3.080604
*** Driver kernel version=2.6.25.6
*** Path to kernel
sources=/home/octera/Bureau/Stage/Telesurveillance/platineARM/kernel/linux-2.6.25.6
*** use KBUILD=yes
***
pwd > /tmp/.pcan-workdir
make -C
/home/octera/Bureau/Stage/Telesurveillance/platineARM/kernel/linux-2.6.25.6
SUBDIRS=/home/octera/canfestival/peakdriver/peak-linux-driver-6.7/driver
EXTRA_CFLAGS="-I/home/octera/canfestival/peakdriver/peak-linux-driver-6.7/driver
-DNO_DEBUG -DMODVERSIONS -DPARPORT_SUBSYSTEM -DUSB_SUPPORT -DPCI_SUPPORT
-DISA_SUPPORT -DDONGLE_SUPPORT -DPCCARD_SUPPORT -DNO_NETDEV_SUPPORT
-DNO_RT " V=0 modules
make[1]: entrant dans le répertoire «
/home/octera/Bureau/Stage/Telesurveillance/platineARM/kernel/linux-2.6.25.6
»
CC [M]
/home/octera/canfestival/peakdriver/peak-linux-driver-6.7/driver/src/pcan_main.o
/home/octera/canfestival/peakdriver/peak-linux-driver-6.7/driver/src/pcan_main.c:45:1:
warning: "__LINUX_ARM_ARCH__" redefined
<command line>:1:1: warning: this is the location of the previous definition
/tmp/ccynbSG2.s: Assembler messages:
/tmp/ccynbSG2.s:560: Error: selected processor does not support `ldrex
r2,[r3]'
/tmp/ccynbSG2.s:561: Error: selected processor does not support `strex
r2,r6,[r3]'
make[2]: ***
[/home/octera/canfestival/peakdriver/peak-linux-driver-6.7/driver/src/pcan_main.o]
Erreur 1
make[1]: ***
[_module_/home/octera/canfestival/peakdriver/peak-linux-driver-6.7/driver]
Erreur 2
make[1]: quittant le répertoire «
/home/octera/Bureau/Stage/Telesurveillance/platineARM/kernel/linux-2.6.25.6
»
make: *** [all] Erreur 2
So it is the second module kernel driver that I wan't compile, and
approximatively the same error. I don't know how to solve them.
The second point is I wish compile this module natively in the kernel, not
in module, how can I make this?
Thanks
--
Mathieu Roger
IUT de Valence
-------------------------------------------------------------------
List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
FAQ: http://www.arm.linux.org.uk/mailinglists/faq.php
Etiquette: http://www.arm.linux.org.uk/mailinglists/etiquette.php
[Site Home] [Linux ARM Kernel] [Fedora ARM] [IETF Annouce] [Security] [Bugtraq] [Linux] [Linux OMAP] [Linux MIPS] [ECOS] [Tools] [DDR & Rambus] [Monitors]