From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from qnap.com.tw (unknown [211.75.85.28]) by ozlabs.org (Postfix) with SMTP id F055268629 for ; Fri, 21 Oct 2005 14:48:46 +1000 (EST) From: "JohnsonCheng" To: "linux-ppc-embedded" Date: Fri, 21 Oct 2005 12:48:37 +0800 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0097_01C5D63D.C36DA8A0" In-Reply-To: Message-Id: <20051021044846.F055268629@ozlabs.org> Subject: RE: How to make mudules on linux-ppc2.6.12 List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , This is a multi-part message in MIME format. ------=_NextPart_000_0097_01C5D63D.C36DA8A0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 ------=_NextPart_000_0097_01C5D63D.C36DA8A0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Thanks for your = kindly suggestion. I have found out the problem.

Just do some = modification as following:

 <= /span>

$(MAKE) = ARCH=3Dppc CROSS_COMPILE=3Dpowerpc-linux- -C /root/linux-2.6.12.3 M=3D$(PWD) modules

 <= /span>

Good = Luck.!!

 <= /span>

 <= /span>


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,

 <= /span>

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:

 <= /span>

Obj-m :=3D = test.o

All:

  $(MAKE) = ARCH=3Dppc CROSS_COMPILE=3Dpowerpc-linux- -C /root/linux-2.6.12.3 SUBDIRS=3D$(PWD) modules

 <= /span>

The output = message is the same as before, no error message and no test.ko = module.

 <= /span>

 <= /span>

Thanks,=

Johnson = Cheng

 <= /span>

 <= /span>


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 :=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

 

------=_NextPart_000_0097_01C5D63D.C36DA8A0--