Join Today
+ Reply to Thread
Results 1 to 3 of 3
  1. #1

    Default Compiling kernel module on A780, problem with linux/slab.h?

    Hi,

    I've been playing around with my A780 and trying to get a kernel module compiled on there. When I try to use kmalloc()/kfree() and include <linux/slab.h>, I get the following error at compilation:

    Code:
    In file included from /home/tom/a780/e680-a780/e680-linux/include/linux/slab.h:14,
                     from myModule.c:24:
    /home/tom/a780/e680-a780/e680-linux/include/linux/mm.h:485: error: syntax error before "phys_addr_t"
    make: *** [myModule.o] Error 1
    I'm using lsb's cross-comiplation toolkit and include the kernel headers with -isystem /home/tom/a780/e680-a780/e680-linux/include

    where e680-a780 is the tarball downloaded from opensource.motorola.com .

    kprintf()'s and such work fine.

    Any help is appreciated. Thanks!

  2. #2

    Default

    I was able to get this resolved by including <asm-generic/mmu.h> where phys_addr_t is defined.

    However, it seems that the issue was mixing of kernel headers from the 2.4.20 montavista source and 2.4.26 source included with ezx-crosstool. I also get a kernel version of 2.4.26 in the module and I can't seem to tell ezx-crosstool not to use the 2.4.26 source.

    Anybody have issues with ezx-crosstool like this before? Does anybody know if the tool is somehow kernel version specific?

    Thanks in advance for any help.

  3. #3
    Join Date
    Sep 2005
    Location
    Jakarta, Indonesia
    Posts
    1,091

    Default

    Forgot how I did it but I use Motorola's 2.4.20 ezx kernel source when building ezx-crosstool. If we need to build this kernel, we have to apply a patch. If not wrong this patch made by Motorolafans member pnail and ready around here or maybe mkezx source from www.mkezx.org will help you with this problem.


 
+ Reply to Thread

Similar Threads

  1. Problem on compiling with EZX Crosstool
    By arash in forum A1200 General Chat
    Replies: 8
    Last Post: 10-31-2008, 05:43 PM
  2. programming (compiling/interpreting) on A780
    By captain jtejur in forum Development
    Replies: 21
    Last Post: 04-22-2008, 03:58 PM
  3. Problem building and installing kernel module
    By ageraldnaveen in forum Development
    Replies: 1
    Last Post: 07-20-2006, 01:16 AM
  4. Java compiling issues on linux... for the A780
    By mlinuxboy in forum Development
    Replies: 8
    Last Post: 05-04-2006, 12:18 PM
  5. Need some help on Kernel module programming
    By icq8 in forum Development
    Replies: 2
    Last Post: 07-17-2005, 05:53 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Single Sign On provided by vBSSO

Search Engine Optimization by vBSEO 3.6.0 RC 1