Skip to contentSkip to conversation

How to make mudules on linux-ppc2.6.12

DISCUSSION JohnsonCheng 2 participants 2 messages Oct 20, 2005

lore
Share & tools
lore
#0 lore raw

Dear All,

I just write a "hello world" module code, but I can't compile it for ppc2.6.12.

My Makefile is list as following:

obj-m := test.o

all:

make ARCH=ppc CROSS_COMPILE=powerpc-linux- -C /root/linux-2.6.12.3
SUBDIR=. modules

When I run make, no error message output, but I find no test.ko modules. The output message is list as following:

make ARCH=ppc CROSS_COMPILE=powerpc-linux- -C /root/linux-2.6.1

2.3 SUBDIR=. modules

make[1]: Entering directory `/root/linux-2.6.12.3'

CHK include/linux/version.h

make[2]: `arch/ppc/kernel/asm-offsets.s' is up to date.

Building modules, stage 2.

MODPOST

make[1]: Leaving directory `/root/linux-2.6.12.3'

Do anyone can give me some help ?

Thanks,

Johnson Cheng

#1 lore raw

Johnson,

See:

http://lwn.net/Articles/21817/

I found this article to be helpful in the past.

-andy

Quoted 16 lines · JohnsonCheng

Dear All,

I just write a "hello world" module code, but I can't compile it for ppc2.6.12.

My Makefile is list as following:

obj-m :=3D test.o

Quoted 8 lines

all:

make ARCH=3Dppc CROSS_COMPILE=3Dpowerpc-linux- -C /root/linux-2.6.12.3
SUBDIR=3D. modules

When I run make, no error message output, but I find no test.ko modules. =

The

Quoted 37 lines

output message is list as following:

make ARCH=3Dppc CROSS_COMPILE=3Dpowerpc-linux- -C /root/linux-2.6.1

2.3 SUBDIR=3D. modules

make[1]: Entering directory `/root/linux-2.6.12.3'

CHK include/linux/version.h

make[2]: `arch/ppc/kernel/asm-offsets.s' is up to date.

Building modules, stage 2.

MODPOST

make[1]: Leaving directory `/root/linux-2.6.12.3'

Do anyone can give me some help ?

Thanks,

Johnson Cheng

_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded