[hsflinux] Problem compiling modules for iBook G4

Kieran Ryan k1 at kieranryan.net
Sun Nov 14 10:48:18 EST 2004


Hi,

I am new to the list. I have been trying for some time to get the internal
modem working in my iBook G4. I know that it's a USB modem and from previous
discussion on this list it would appear that the Linuxant hsfmodem should do
the trick.

I am using Debian, problem is Linuxant only have .deb packages for x86
architecture. So I've downloaded the tar
hsfmodem-6.03.00lnxt04082400full.tar package.

I am getting the following error when trying to compile the hsfmodem modules:

hsfconfig output:
-------------------------------
No pre-built modules for: Debian-3.1 linux-2.6.8-powerpc ppc

Trying to automatically build the driver modules...
(this requires a C compiler and proper kernel sources to be installed)

Where is the linux source build directory that matches your running kernel?
[/usr/src/linux]

Building modules for kernel 2.6.8-powerpc, using source directory
/usr/src/linux. Please wait...

ERROR: Module build failed!
Please examine the log file "/tmp/hsfconfig-buildlog.txt" to determine why.

The build log says this:
---------------------------------
rm -rf *.o GPL/*.o *.ko GPL/*.ko *.mod.c GPL/*.mod.c .*.cmd GPL/.*.cmd
.tmp_versions  /usr/src/linux/.tmp_versions/hsfosspec.mod
/usr/src/linux/.tmp_versions/hsfserial.mod
/usr/src/linux/.tmp_versions/hsfengine.mod
/usr/src/linux/.tmp_versions/hsfpcibasic2.mod
/usr/src/linux/.tmp_versions/hsfmc97ich.mod
/usr/src/linux/.tmp_versions/hsfmc97via.mod
/usr/src/linux/.tmp_versions/hsfmc97ali.mod
/usr/src/linux/.tmp_versions/hsfsoar.mod
(cd /usr/src/linux && make "CNXT_KERNELSRC=/usr/src/linux"
"M=/usr/lib/hsfmodem/modules" modules)
make[1]: Entering directory `/usr/src/kernel-source-2.6.8'
  CC [M]  /usr/lib/hsfmodem/modules/mod_engine.o
cc1: Invalid option `arch=pentium'
In file included from include/asm/setup.h:8,
                 from include/asm/machdep.h:8,
                 from include/asm/irq.h:6,
                 from include/asm/hardirq.h:8,
                 from include/linux/interrupt.h:12,
                 from /usr/lib/hsfmodem/modules/GPL/oscompat.h:75,
                 from /usr/lib/hsfmodem/modules/mod_engine.c:9:
include/asm-m68k/setup.h:341: warning: `CPU_TYPE' redefined
/usr/lib/hsfmodem/modules/imported/include/framewrk.h:176: warning: this is
the location of the previous definition
make[2]: *** [/usr/lib/hsfmodem/modules/mod_engine.o] Error 1
make[1]: *** [_module_/usr/lib/hsfmodem/modules] Error 2
make[1]: Leaving directory `/usr/src/kernel-source-2.6.8'
make: *** [all] Error 2
----

Looks suspciously like this package is assuming a x86 architecture?? I
notice the file /usr/lib/hsfmodem/modules/imported/makeflags.mak contains
this:
IMPORTED_COMPILATION_FLAGS = -O2 -march=pentium -ffast-math
-fno-strict-aliasing -fno-common
IMPORTED_TARGET = TARGET_HSF_LINUX
IMPORTED_ARCH = i386
IMPORTED_FRAMEWORK = FWK_LINUX_SOFTK56
IMPORTED_FRAMEWORK_DEFS = -DFRAME_WORK=FWK_LINUX_SOFTK56 -DTARGET_HSF_LINUX
-DUSE_ORCA_MODULATIONS -DNO_DUMPMGR_SUPPORT -DNO_BLAM_SUPPORT
-DFRAME_WORK_IMPORTED
IMPORTED_GENERAL_DEFS =
IMPORTED_DEBUG_DEFS = -DNOASSERTS -DUSE_TRACE_ONLY="T__FATAL_ERROR|T__ERROR"
-DUSE_TRACE
IMPORTED_BLAM_SUPPORT =
IMPORTED_SCR_SUPPORT =
IMPORTED_DMP_SUPPORT =
IMPORTED_FREE_VERSION = no
IMPORTED_BUILD_TYPE = full
IMPORTED_CNXTLINUXVERSION = 6.03.00lnxt04082400full

Does anyone have any ideas on this? Note: I have installed the kernel
headers in /usr/src/linux but since I'm using a debian kernel image I'm not
100% sure I've configured it correctly. (I've done a make mrpoper and make
oldconfig in the source directory which seemed to work ok and I can see ppc
specific links etc my make bzImage fails but I'm not sure this is required
anyway?)

Any help much appreciated...

Kieran Ryan.




More information about the hsflinux mailing list