slackit-ml
[Top][All Lists]
Advanced

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

[Slackit.org] Il primo colpo - hcf


From: Arwan
Subject: [Slackit.org] Il primo colpo - hcf
Date: Mon, 6 Jan 2003 22:04:56 +0100

Come promesso, eccomi qui.
Il primo problema che dovrei risolvere e' questo: installare il modem interno 
hcf sulla Slack (e possibilmente farlo funzionare)

Ho scaricato i driver in formato tar; scompattati e seguito passo passo le 
istruzioni. Ma, durante il make install, la shell mi da' un errore: me lo 
aspettavo, visto che la cosa era segnalata dalle stesse istruzioni. Pero' non 
so come risolvere...
Allora vi trascrivo il punto delle istruzioni che non mi e' chiaro; la 
risposta della shell; il file che, secondo me, e' la causa di tutto e dovrei 
modificare. Spero che qualcuno sappia smuovermi da questo pantano...

*** ISTRUZIONE
3. run "make install" from the top of the package directory.
(Debian users might need to change the KERNELSRC definition in
modules/common.mak first)

*** SHELL
bash-2.05a# make install
make[1]: Entering directory `/home/arwan/hcfpcimodem-0.99mbsibeta02123100/inf'
install -m 644 hcf_linux.cty hcfv90_lan_linux.inf hcfv90_linux.inf 
hcfv92_linux.inf hcfv92_riptide_linux.inf /etc/hcfpci/inf
make[1]: Leaving directory `/home/arwan/hcfpcimodem-0.99mbsibeta02123100/inf'
make[1]: Entering directory 
`/home/arwan/hcfpcimodem-0.99mbsibeta02123100/scripts'
install -m 755 hcfpciconfig hcfpcistop /usr/sbin
make[1]: Leaving directory 
`/home/arwan/hcfpcimodem-0.99mbsibeta02123100/scripts'
make[1]: Entering directory 
`/home/arwan/hcfpcimodem-0.99mbsibeta02123100/modules'
common.mak:11: *** Is the kernel-source package installed? KERNELSRC does not 
point to a proper directory (/lib/modules/2.4.18/build).  Stop.
make[1]: Leaving directory 
`/home/arwan/hcfpcimodem-0.99mbsibeta02123100/modules'
make: *** [install] Error 2

*** FILE common.mak
include $(TOP)/config.mak

# Configure location of current 2.4 kernel source directory for compiling
KERNELSRC= /lib/modules/$(shell uname -r)/build
# Debian 3.0 example:
#KERNELSRC= /usr/src/kernel-headers-2.4.18-686

KERNELSRC_EXISTS= $(shell test -r ${KERNELSRC}/include/linux/version.h && 
echo y || echo n)
ifneq ($(KERNELSRC_EXISTS),y)
$(error Is the kernel-source package installed? KERNELSRC does not point to a 
proper directory ($(KERNELSRC)))
endif

KERNELVER= $(shell echo UTS_RELEASE | gcc -E ${DISTRO_CFLAGS} 
-I${KERNELSRC}/include -include ${KERNELSRC}/include/linux/version.h - | grep 
'^"' | tr -d '"         ')

# Configure compiler (on some systems, kgcc must be used to compile kernel 
code)
#
#CC= kgcc
#CC= gcc
CC := $(shell $(TOP)/modules/kernelcompiler.sh $(KERNELVER) $(KERNELSRC))

KMODS_DIR= /lib/modules/$(KERNELVER)

IMPORTED = $(TOP)/imported

CFLAGS = -I$(IMPORTED)/include -I$(TOP)/modules/osspec/include
CFLAGS += $(IMPORTED_COMPILATION_FLAGS)
CFLAGS += $(IMPORTED_FRAMEWORK_DEFS) -imacros $(IMPORTED)/include/framewrk.h
CFLAGS += $(IMPORTED_GENERAL_DEFS)
CFLAGS += $(IMPORTED_DEBUG_DEFS)

CFLAGS += $(OTHER_INCLUDES)
CFLAGS += $(DISTRO_CFLAGS)

# Configure various machine specific CFLAGS for compiling kernel modules
#CFLAGS+= -mpreferred-stack-boundary=2
#CFLAGS+= -fomit-frame-pointer
CFLAGS+= -Wall -Wno-unknown-pragmas -Wno-multichar -I$(KERNELSRC)/include
# The following is for 2.5
CFLAGS+= -I$(KERNELSRC)/arch/i386/mach-generic
CFLAGS+= -D__KERNEL__ -DMODULE

CFLAGS+= -DOS_NOREDEFS

CFLAGS += -DHCFSERIALMAJOR=$(HCFSERIALMAJOR) 
-DHCFCALOUTMAJOR=$(HCFCALOUTMAJOR)
CFLAGS += -DHCFSERIALMINOR=$(HCFSERIALMINOR)

CFLAGS += -DHCFSCRDMPMAJOR=$(HCFSCRDMPMAJOR)

CONFIG_MODVERSIONS= $(shell echo CONFIG_MODVERSIONS | gcc -E ${DISTRO_CFLAGS} 
-I${KERNELSRC}/include -include ${KERNELSRC}/include/linux/config.h - | grep 
-q 'CONFIG_MODVERSIONS' && echo n || echo y)
ifeq ($(CONFIG_MODVERSIONS),y)
MODVERFLAGS= -DMODVERSIONS -include $(KERNELSRC)/include/linux/modversions.h
endif

CFLAGS+= -include $(KERNELSRC)/include/linux/config.h
CFLAGS+= $(MODVERFLAGS)

## END OF CONFIGURATION SECTION
## no changes should be necessary beyond this point
#####################################################################

.PHONY: default
default: all

-include $(IMPORTED)/makeflags.mak

.c.o:
        @echo "* compiling ($(CC)) $<"
        @$(COMPILE.c) $(CFLAGS-$*) $(OUTPUT_OPTION) $<

.cpp.o:
        @echo "* compiling ($(CXX)) $<"
        @$(COMPILE.cc) $(OUTPUT_OPTION) $<

ifdef SUBDIRS
.PHONY: $(SUBDIRS)
$(SUBDIRS):
        $(MAKE) -C $@ all
endif

CLEAN= *.o *.a

.PHONY: clean
clean::
        rm -f $(CLEAN)
ifdef SUBDIRS
        @for subdir in $(SUBDIRS); do \
                $(MAKE) -C $$subdir $@; \
        done
endif
***

Grazie!

-- 
Arwan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]