RE: Problem compiling external module on PPC

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



There was already a .config file in /lib/modules/2.6.9-1.667/build.

This .config has the Processor option set to '6xx/7xx/74xx/52xx/8260'. 
Since me processor is reported as 740/750, then I think this option is
et right.

dom 

-----Original Message-----
From: Steve Iribarne [mailto:steve.iribarne@xxxxxxxxxxxxxxxxxxxxx] 
Sent: Friday, April 15, 2005 11:46 PM
To: Curran, Dominic; kernelnewbies@xxxxxxxxxxxx
Subject: RE: Problem compiling external module on PPC


total guess, but did you run make xconfig or make menuconfig?

________________________________

From: kernelnewbies-bounce@xxxxxxxxxxxx on behalf of Curran, Dominic
Sent: Fri 4/15/2005 5:51 PM
To: kernelnewbies@xxxxxxxxxxxx
Subject: Problem compiling external module on PPC




Hi

I'm trying to compile an external kernel module for a PPC (G3) using a
FC3 kernel (2.6.9-1.667).

The modules Makefile I'm using is taken from this articule:
  http://lwn.net/Articles/21823/
This makefile works well for an x86 target on FC2.

But when I come to build the module for the PPC I get these errors:

# make V=1
make -C /lib/modules/2.6.9-1.667/build SUBDIRS=/v-173PPC/driver26
modules
make[1]: Entering directory `/lib/modules/2.6.9-1.667/build' mkdir -p
/v-173PPC/driver26/.tmp_versions make -f scripts/Makefile.build
obj=/v-173PPC/driver26
  gcc -m32 -Wp,-MD,/v-173PPC/driver26/.icem.o.d -nostdinc -iwithprefix
include -D__KERNEL__ -Iinclude  -Iarch/ppc -Wall -Wstrict-prototypes
-Wno-trigraphs -fno-strict-aliasing -fno-common -Os -fomit-frame-pointer
-g -Wdeclaration-after-statement -Iarch/ppc -msoft-float -pipe
-ffixed-r2 -mmultiple -mstring -Wa,-maltivec
-I/v-173PPC/driver26/../share -I/v-173PPC/driver26  -DMODULE
-DKBUILD_BASENAME=icem -DKBUILD_MODNAME=mydriver -c -o
/v-173PPC/driver26/.tmp_icem.o /v-173PPC/driver26/icem.c In file
included from include/asm/machdep.h:8,
                 from include/asm/irq.h:6,
                 from include/asm/hardirq.h:8,
                 from include/linux/hardirq.h:6,
                 from include/asm-generic/local.h:6,
                 from include/asm/local.h:4,
                 from include/linux/module.h:21,
                 from /driver26/icem.c:24:
include/asm/setup.h:8:28: asm-m68k/setup.h: No such file or directory
/v-173PPC/driver26/icem.c:90:31: linux/modversions.h: No such file or
directory
make[2]: *** [/v-173PPC/driver26/icem.o] Error 1
make[1]: *** [_module_/v-173PPC/driver26] Error 2
make[1]: Leaving directory `/lib/modules/2.6.9-1.667/build'
make: *** [default] Error 2
#


Why is it looking for asm-m68k/setup.h ?  Shouldnt it be looking in
asm-ppc/setup.h ?

# locate setup.h
/usr/include/asm-ppc/setup.h
/usr/include/asm/setup.h
/usr/include/asm-ppc64/setup.h
/lib/modules/2.6.9-1.667/build/include/asm-ppc/setup.h


# uname -a
Linux oddsock 2.6.9-1.667 #1 Tue Nov 2 14:40:03 EST 2004 ppc ppc ppc
GNU/Linux

# cat /proc/cpuinfo
processor       : 0
cpu             : 740/750
temperature     : 49 C (uncalibrated)
clock           : 450MHz
revision        : 130.2 (pvr 0008 8202)
bogomips        : 894.97
machine         : PowerMac1,1
motherboard     : PowerMac1,1 MacRISC Power Macintosh
detected as     : 66 (Blue&White G3)
pmac flags      : 00000000
L2 cache        : 1024K unified
memory          : 128MB
pmac-generation : NewWorld

If anyone knows what might be going wrong please tell me.
Thank you
dom

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/




--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux