Tab Content
No Recent Activity

2 Visitor Messages

  1. View Conversation
    Never mind, I watched the kernel compile and got it working with:

    mipsel-linux-gcc -D__KERNEL__ -I/opt/firmware/broadcom/src/linux/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -I/opt/firmware/broadcom/src/linux/linux/../../include -DBCMDRIVER -I /opt/firmware/broadcom/src/linux/linux/include/asm/gcc -G 0 -mno-abicalls -fno-pic -pipe -mcpu=r4600 -mips2 -Wa,--trap -m4710a0kern -DMODULE -mlong-calls -fno-common -nostdinc -iwithprefix include -DKBUILD_BASENAME=module_name
  2. View Conversation
    Hi. Could you please tell me how to compile kernel modules?

    I have the toolchain working and I've compiled many applications but I'm stuck here.

    I downloaded the include files from "GPL_1927\broadcom\src\linux\linux" and added them to the include path. Then I created this simple makefile:

    TARGET := ipip
    INCLUDE := -I/opt/module/include
    CFLAGS := -O2 -Wall -DMODULE -D__KERNEL__ -DLINUX -DCONFIG_IPV6_MODULE -DCONFIG_IPV6

    ${TARGET}.o: ${TARGET}.c
    mipsel-linux-gcc $(CFLAGS) ${INCLUDE} -c ${TARGET}.c


    I'm, however, getting these errors:

    cataphract@debian:/opt/module$ make
    mipsel-linux-gcc -O2 -Wall -DMODULE -D__KERNEL__ -DLINUX -DCONFIG_IPV6_MODULE -DCONFIG_IPV6 -I/opt/module/include -c ipip.c
    /tmp/ccleFnwR.s: Assembler messages:
    /tmp/ccleFnwR.s:529: Error: opcode not supported on this processor: R3000 (MIPS1) `ll $4,0($17)'
    /tmp/ccleFnwR.s:531: Error: opcode not supported on this processor: R3000 (MIPS1) `sc $4,0($17)'
    ...

    I'd really appreciate some help! Thanks
Showing Visitor Messages 1 to 2 of 2
About twinsen

Basic Information

Statistics


Total Posts
Total Posts
3
Posts Per Day
0.00
Visitor Messages
Total Messages
2
Most Recent Message
10-08-2008 07:37
General Information
Last Activity
11-11-2008 19:24
Join Date
12-05-2007