* How to make mudules on linux-ppc2.6.12
@ 2005-10-20 10:56 JohnsonCheng
2005-10-20 12:19 ` Andy Gospodarek
0 siblings, 1 reply; 5+ messages in thread
From: JohnsonCheng @ 2005-10-20 10:56 UTC (permalink / raw)
To: linux-ppc-embedded
[-- Attachment #1: Type: text/plain, Size: 755 bytes --]
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
[-- Attachment #2: Type: text/html, Size: 6266 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to make mudules on linux-ppc2.6.12
2005-10-20 10:56 JohnsonCheng
@ 2005-10-20 12:19 ` Andy Gospodarek
0 siblings, 0 replies; 5+ messages in thread
From: Andy Gospodarek @ 2005-10-20 12:19 UTC (permalink / raw)
To: JohnsonCheng; +Cc: linux-ppc-embedded
Johnson,
See:
http://lwn.net/Articles/21817/
I found this article to be helpful in the past.
-andy
On 10/20/05, JohnsonCheng <JohnsonCheng@qnap.com.tw> wrote:
>
>
>
> 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
>
> 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
> 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
> Linuxppc-embedded@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: How to make mudules on linux-ppc2.6.12
@ 2005-10-21 3:35 JohnsonCheng
2005-10-21 4:36 ` White
0 siblings, 1 reply; 5+ messages in thread
From: JohnsonCheng @ 2005-10-21 3:35 UTC (permalink / raw)
To: linux-ppc-embedded
[-- Attachment #1: Type: text/plain, Size: 1351 bytes --]
Dear Andy,
Thanks your reply. But I am sorry that it doesn't work on my box.
My kernel had been configured and compiled, and I also modify my Makefile as
following:
Obj-m := test.o
All:
$(MAKE) ARCH=ppc CROSS_COMPILE=powerpc-linux- -C /root/linux-2.6.12.3
SUBDIRS=$(PWD) modules
The output message is the same as before, no error message and no test.ko
module.
Thanks,
Johnson Cheng
_____
From: JohnsonCheng [mailto:JohnsonCheng@qnap.com.tw]
Sent: Thursday, October 20, 2005 6:57 PM
To: linux-ppc-embedded
Subject: How to make mudules on linux-ppc2.6.12
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
[-- Attachment #2: Type: text/html, Size: 10925 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to make mudules on linux-ppc2.6.12
2005-10-21 3:35 How to make mudules on linux-ppc2.6.12 JohnsonCheng
@ 2005-10-21 4:36 ` White
0 siblings, 0 replies; 5+ messages in thread
From: White @ 2005-10-21 4:36 UTC (permalink / raw)
To: linuxppc-embedded
Please try
obj-m += test.o
small case ! :)
good luck
Am Fri, 21 Oct 2005 11:35:51 +0800 schrieb "JohnsonCheng"
<JohnsonCheng@qnap.com.tw> :
> Dear Andy,
>
>
>
> Thanks your reply. But I am sorry that it doesn't work on my box.
>
> My kernel had been configured and compiled, and I also modify my Makefile as
> following:
>
>
>
> Obj-m := test.o
>
> All:
>
> $(MAKE) ARCH=ppc CROSS_COMPILE=powerpc-linux- -C /root/linux-2.6.12.3
> SUBDIRS=$(PWD) modules
>
>
>
> The output message is the same as before, no error message and no test.ko
> module.
>
>
>
>
>
> Thanks,
>
> Johnson Cheng
>
>
>
>
>
> _____
>
> From: JohnsonCheng [mailto:JohnsonCheng@qnap.com.tw]
> Sent: Thursday, October 20, 2005 6:57 PM
> To: linux-ppc-embedded
> Subject: How to make mudules on linux-ppc2.6.12
>
>
>
> 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
>
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: How to make mudules on linux-ppc2.6.12
@ 2005-10-21 4:48 JohnsonCheng
0 siblings, 0 replies; 5+ messages in thread
From: JohnsonCheng @ 2005-10-21 4:48 UTC (permalink / raw)
To: linux-ppc-embedded
[-- Attachment #1: Type: text/plain, Size: 1756 bytes --]
Thanks for your kindly suggestion. I have found out the problem.
Just do some modification as following:
$(MAKE) ARCH=ppc CROSS_COMPILE=powerpc-linux- -C /root/linux-2.6.12.3
M=$(PWD) modules
Good Luck.!!
_____
From: JohnsonCheng [mailto:JohnsonCheng@qnap.com.tw]
Sent: Friday, October 21, 2005 11:36 AM
To: linux-ppc-embedded
Subject: RE: How to make mudules on linux-ppc2.6.12
Dear Andy,
Thanks your reply. But I am sorry that it doesn't work on my box.
My kernel had been configured and compiled, and I also modify my Makefile as
following:
Obj-m := test.o
All:
$(MAKE) ARCH=ppc CROSS_COMPILE=powerpc-linux- -C /root/linux-2.6.12.3
SUBDIRS=$(PWD) modules
The output message is the same as before, no error message and no test.ko
module.
Thanks,
Johnson Cheng
_____
From: JohnsonCheng [mailto:JohnsonCheng@qnap.com.tw]
Sent: Thursday, October 20, 2005 6:57 PM
To: linux-ppc-embedded
Subject: How to make mudules on linux-ppc2.6.12
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
[-- Attachment #2: Type: text/html, Size: 14219 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-10-21 4:48 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-21 3:35 How to make mudules on linux-ppc2.6.12 JohnsonCheng
2005-10-21 4:36 ` White
-- strict thread matches above, loose matches on Subject: below --
2005-10-21 4:48 JohnsonCheng
2005-10-20 10:56 JohnsonCheng
2005-10-20 12:19 ` Andy Gospodarek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).