Re: how add kernel module to linux ported on arm9 | |
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] | |
U can use makefile for compiling kernel module as:
PATH_TO_KERNEL_SOURCE=<path to kernel source on your system>
obj-m += <modname>.o
all:
make ARCH=arm -C $(PATH_TO_KERNEL_SOURCE)
CROSS_COMPILE=arm-linux-uclibc-
SUBDIRS=$(PWD) modules
clean:
make ARCH=arm -C $(PATH_TO_KERNEL_SOURCE)
CROSS_COMPILE=arm-linux-uclibc-
SUBDIRS=$(PWD) clean
ensure that you have exported the path of toolchain before compiling
this will generate modname.ko which can be inserted dynamically
hope this will help
..kulr
On 7/19/08, Manila Goel <manila.goel@xxxxxxxxx> wrote:
>
> hello everyone,
> i m using at91rm9200 board from iwave. i hv to access gpio register for
> that
> i hv to write a driver. i hv written a driver. Now the problem is how can i
> cross compile the driver using arm-linux-gnu to added to the the linux
> kernel(2.6.14) ported on the board.
> please any one help.
>
> Thanks in advance.
>
> Manila
> -------------------------------------------------------------------
> 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
>
--
Best Regards,
Rahul Kulkarni
91-9970288339
-------------------------------------------------------------------
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]