|
Home > Archive > Red Hat Installation > March 2004 > Problems with ASUS A7V8X-MX
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Problems with ASUS A7V8X-MX
|
|
| Puppet 2004-03-27, 2:35 pm |
|
Hi everybody
I installed the last Red Hat release on my computer. All the process went
well, but I found a problem: the net doesn't work. Is is quite strange,
because if I ping, from my linux computer, his own ip adress, he pongs in
the right way, but I can't see the other computers of my network. In the
same way the other computers can't see my linux workstation.
So I discovered the cause: the net interface is integrated in my motherboard
(ASUS A7V8X-XM) and it is a VT6103, but linux installd a VT6102!!! So I
decided to install it manually, compiling the code given by ASUS... well
guys, it doesn't work! I mean I can't compile it, so I can't have the file.o
I need! It always give me an error, named ERROR 1, without any explanation.
More:
1. I installed the kernel source codes
2. I verified all the paths, and compiling there are no error about a wrong
or not found path
3. I love Linux, I'm trying to make it enter inside the company I work in...
I'm working on sunday to earn time, not to make my boss complain about my
beloved linux ;-)
4. I'm a newbie, anyway, I've always used it as a simple user, not as an
admin, so this is the first time I install this o.s.
5. All the rest of the installation seems to be gone well
6. The ASUS driver codes are the latest release
7. The motherboard is present in the Red Hat site as a compatible one
8. To compile the code, I tried with "make -k" textually in the shell
9. The adresses I used in my linux workstation are good, no conflicts or
else with the other computers on the net
10. I installed RED HAT PROFESSIONAL WORKSTATION KERNEL 2.4.21 GCC 3.2 (an
original one, not downloaded or else)
Please, help me! I'm sure the problem is my unexperience, I probably did
something wrong... anybody else had the same problem?
Thanks everybody
Puppet
---------------------------------------
This is the Makefile:
DEBUG = 0
VMNS = 1
OBJS := rhine_main.o rhine_proc.o rhine_wol.o
SRC = rhine_main.c rhine_proc.c rhine_wol.c
TARGET = rhinefet.o
KSP := /lib/modules/$(shell uname -r)/build \
/usr/src/linux-$(shell uname -r) \
/usr/src/linux-$(shell uname -r | sed 's/-.*//') \
/usr/src/kernel-headers-$(shell uname -r) \
/usr/src/kernel-source-$(shell uname -r) \
/usr/src/linux-$(shell uname -r | sed
's/\([0-9]*\.[0-9]*\)\..*/\1/') \
/usr/src/linux
ifeq ($(VMNS),1)
OBJS+=rhine_vmns.o
SRC+=rhine_vmns.c
endif
test_dir = $(shell [ -e $(dir)/include/linux ] && echo $(dir))
KSP := $(foreach dir, $(KSP), $(test_dir))
KSRC := $(firstword $(KSP))
#KSRC :=/usr/src/ksrc/RedHat/7.2/linux-2.4.7-10alt-ent
ifeq (,$(KSRC))
$(error Linux kernel source not found)
endif
VERSION_FILE := $(KSRC)/include/linux/version.h
CONFIG_FILE := $(KSRC)/include/linux/config.h
ifeq (,$(wildcard $(VERSION_FILE)))
$(error Linux kernel source not configured - missing version.h)
endif
ifeq (,$(wildcard $(CONFIG_FILE)))
$(error Linux kernel source not configured - missing config.h)
endif
ifneq (,$(findstring egcs-2.91.66, $(shell cat /proc/version)))
CC := kgcc gcc cc
else
CC := gcc cc
endif
test_cc = $(shell which $(cc) > /dev/null 2>&1 && echo $(cc))
CC := $(foreach cc, $(CC), $(test_cc))
CC := $(firstword $(CC))
CFLAGS
+= -Wall -DLINUX -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB -D__NO_VERSION__ -O2
-pipe
CFLAGS += -I$(KSRC)/include -I. -Wstrict-prototypes -fomit-frame-pointer
CFLAGS += $(shell [ -f $(KSRC)/include/linux/modversions.h ] && \
echo "-DMODVERSIONS -include
$(KSRC)/include/linux/modversions.h")
KVER := $(shell $(CC) $(CFLAGS) -E -dM $(VERSION_FILE) | grep UTS_RELEASE |
\
awk '{ print $$3 }' | sed 's/\"//g')
KERVER2=$(shell uname -r | cut -d. -f2)
..SILENT: $(TARGET) clean
ifeq ($(TARGET), rhinefet.o)
ifneq ($(KVER),$(shell uname -r))
$(warning ***)
$(warning *** Warning: kernel source version ($(KVER)))
$(warning *** does not match running kernel ($(shell uname -r)))
$(warning *** Continuing with build,)
$(warning *** resulting driver may not be what you want)
$(warning ***)
endif
endif
INSTDIR := $(shell find /lib/modules/$(KVER) -name $(TARGET) -printf "%h\n"
| sort | head -1)
ifeq (,$(INSTDIR))
ifeq (,$(KERVER2))
ifneq (,$(wildcard /lib/modules/$(KVER)/kernel))
INSTDIR := /lib/modules/$(KVER)/kernel/drivers/net
else
INSTDIR := /lib/modules/$(KVER)/net
endif
else
ifneq ($(KERVER2),2)
INSTDIR := /lib/modules/$(KVER)/kernel/drivers/net
else
INSTDIR := /lib/modules/$(KVER)/net
endif
endif
endif
# look for SMP in config.h
SMP := $(shell $(CC) $(CFLAGS) -E -dM $(CONFIG_FILE) | \
grep CONFIG_SMP | awk '{ print $$3 }')
ifneq ($(SMP),1)
SMP := 0
endif
ifeq ($(VMNS), 1)
CFLAGS += -DVMNS
endif
ifeq ($(DEBUG), 1)
CFLAGS += -DRHINE_DBG
endif
ifeq ($(TARGET), rhinefet.o)
ifneq ($(SMP),$(shell uname -a | grep SMP > /dev/null 2>&1 && echo 1 || echo
0))
$(warning ***)
ifeq ($(SMP),1)
$(warning *** Warning: kernel source configuration (SMP))
$(warning *** does not match running kernel (UP))
else
$(warning *** Warning: kernel source configuration (UP))
$(warning *** does not match running kernel (SMP))
endif
$(warning *** Continuing with build,)
$(warning *** resulting driver may not be what you want)
$(warning ***)
endif
endif
ifeq ($(SMP), 1)
CFLAGS += -D__SMP__
endif
$(TARGET): $(filter-out $(TARGET), $(SRC:.c=.o))
$(LD) -r $^ -o $@
echo; echo
echo " ****************************************
**********"
echo "Build options:"
echo " VERSION $(KVER)"
echo -n " SMP "
if [ "$(SMP)" = "1" ]; \
then echo "Enabled"; else echo "Disabled"; fi
echo -n " VMNS "
if [ "$(VMNS)" = "1" ]; \
then echo "Enabled"; else echo "Disabled"; fi
echo " ****************************************
***********"
install: clean $(TARGET)
mkdir -p $(MOD_ROOT)$(INSTDIR)
install -m 644 -o root $(TARGET) $(MOD_ROOT)$(INSTDIR)
@if [ -f $(MOD_ROOT)$(INSTDIR)/via-rhine.o ] ; then \
echo "***** Move official driver via-rhine.o to via-rhine.o.backup" ; \
echo "mv $(MOD_ROOT)$(INSTDIR)/via-rhine.o
$(MOD_ROOT)$(INSTDIR)/via-rhine.o.backup";\
mv $(MOD_ROOT)$(INSTDIR)/via-rhine.o
$(MOD_ROOT)$(INSTDIR)/via-rhine.o.backup ; \
echo ;\
fi ;
@if [ -f $(MOD_ROOT)$(INSTDIR)/linuxfet.o ] ; then \
echo "***** Move previous driver linuxfet.o to linuxfet.o.backup" ; \
echo "mv $(MOD_ROOT)$(INSTDIR)/linuxfet.o
$(MOD_ROOT)$(INSTDIR)/linuxfet.o.backup";\
mv $(MOD_ROOT)$(INSTDIR)/linuxfet.o
$(MOD_ROOT)$(INSTDIR)/linuxfet.o.backup ; \
echo ;\
fi ;
ifeq (,$(MOD_ROOT))
/sbin/depmod -a || true
else
/sbin/depmod -b $(MOD_ROOT) -a || true
endif
uninstall:
rm -f $(INSTDIR)/$(TARGET)
@if [ -f $(MOD_ROOT)$(INSTDIR)/via-rhine.o.backup ] ; then \
echo "***** Restore official driver vai-rhine.o from
$(MOD_ROOT)$(INSTDIR)".; \
echo "mv $(MOD_ROOT)$(INSTDIR)/via-rhine.o.backup
$(MOD_ROOT)$(INSTDIR)/via-rhine.o";\
mv $(MOD_ROOT)$(INSTDIR)/via-rhine.o.backup
$(MOD_ROOT)$(INSTDIR)/via-rhine.o ;\
fi
/sbin/depmod -a
clean:
rm -f $(TARGET) $(SRC:.c=.o) *~
-include .depend.mak
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"Tanta gente urla la verità, ma senza
stile è inutile, non serve." - Bukowsky
www.soundvisionproject.com
http://digilander.iol.it/puppetweb
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.634 / Virus Database: 406 - Release Date: 18/03/2004
| |
| Puppet 2004-03-28, 4:34 pm |
| problems solved
Puppet
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"Tanta gente urla la verità, ma senza
stile è inutile, non serve." - Bukowsky
www.soundvisionproject.com
http://digilander.iol.it/puppetweb
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"Puppet" <mutant.puppet@noXXXXingspam.libero.it> ha scritto nel messaggio
news:GBk9c.96770$FJ6.3531719@twister1.libero.it...
>
> Hi everybody
>
> I installed the last Red Hat release on my computer. All the process went
> well, but I found a problem: the net doesn't work. Is is quite strange,
> because if I ping, from my linux computer, his own ip adress, he pongs in
> the right way, but I can't see the other computers of my network. In the
> same way the other computers can't see my linux workstation.
>
> So I discovered the cause: the net interface is integrated in my
motherboard
> (ASUS A7V8X-XM) and it is a VT6103, but linux installd a VT6102!!! So I
> decided to install it manually, compiling the code given by ASUS... well
> guys, it doesn't work! I mean I can't compile it, so I can't have the
file.o
> I need! It always give me an error, named ERROR 1, without any
explanation.
>
> More:
>
> 1. I installed the kernel source codes
> 2. I verified all the paths, and compiling there are no error about a
wrong
> or not found path
> 3. I love Linux, I'm trying to make it enter inside the company I work
in...
> I'm working on sunday to earn time, not to make my boss complain about my
> beloved linux ;-)
> 4. I'm a newbie, anyway, I've always used it as a simple user, not as an
> admin, so this is the first time I install this o.s.
> 5. All the rest of the installation seems to be gone well
> 6. The ASUS driver codes are the latest release
> 7. The motherboard is present in the Red Hat site as a compatible one
> 8. To compile the code, I tried with "make -k" textually in the shell
> 9. The adresses I used in my linux workstation are good, no conflicts or
> else with the other computers on the net
> 10. I installed RED HAT PROFESSIONAL WORKSTATION KERNEL 2.4.21 GCC 3.2 (an
> original one, not downloaded or else)
>
> Please, help me! I'm sure the problem is my unexperience, I probably did
> something wrong... anybody else had the same problem?
>
> Thanks everybody
> Puppet
>
> ---------------------------------------
>
> This is the Makefile:
>
>
> DEBUG = 0
>
> VMNS = 1
>
> OBJS := rhine_main.o rhine_proc.o rhine_wol.o
> SRC = rhine_main.c rhine_proc.c rhine_wol.c
> TARGET = rhinefet.o
>
> KSP := /lib/modules/$(shell uname -r)/build \
> /usr/src/linux-$(shell uname -r) \
> /usr/src/linux-$(shell uname -r | sed 's/-.*//') \
> /usr/src/kernel-headers-$(shell uname -r) \
> /usr/src/kernel-source-$(shell uname -r) \
> /usr/src/linux-$(shell uname -r | sed
> 's/\([0-9]*\.[0-9]*\)\..*/\1/') \
> /usr/src/linux
>
> ifeq ($(VMNS),1)
> OBJS+=rhine_vmns.o
> SRC+=rhine_vmns.c
> endif
>
> test_dir = $(shell [ -e $(dir)/include/linux ] && echo $(dir))
> KSP := $(foreach dir, $(KSP), $(test_dir))
>
> KSRC := $(firstword $(KSP))
> #KSRC :=/usr/src/ksrc/RedHat/7.2/linux-2.4.7-10alt-ent
> ifeq (,$(KSRC))
> $(error Linux kernel source not found)
> endif
>
> VERSION_FILE := $(KSRC)/include/linux/version.h
> CONFIG_FILE := $(KSRC)/include/linux/config.h
>
> ifeq (,$(wildcard $(VERSION_FILE)))
> $(error Linux kernel source not configured - missing version.h)
> endif
>
> ifeq (,$(wildcard $(CONFIG_FILE)))
> $(error Linux kernel source not configured - missing config.h)
> endif
>
> ifneq (,$(findstring egcs-2.91.66, $(shell cat /proc/version)))
> CC := kgcc gcc cc
> else
> CC := gcc cc
> endif
>
> test_cc = $(shell which $(cc) > /dev/null 2>&1 && echo $(cc))
> CC := $(foreach cc, $(CC), $(test_cc))
> CC := $(firstword $(CC))
>
> CFLAGS
>
+= -Wall -DLINUX -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB -D__NO_VERSION__ -O2
> -pipe
> CFLAGS += -I$(KSRC)/include -I. -Wstrict-prototypes -fomit-frame-pointer
> CFLAGS += $(shell [ -f $(KSRC)/include/linux/modversions.h ] && \
> echo "-DMODVERSIONS -include
> $(KSRC)/include/linux/modversions.h")
>
> KVER := $(shell $(CC) $(CFLAGS) -E -dM $(VERSION_FILE) | grep UTS_RELEASE
|
> \
> awk '{ print $$3 }' | sed 's/\"//g')
>
> KERVER2=$(shell uname -r | cut -d. -f2)
>
> .SILENT: $(TARGET) clean
>
> ifeq ($(TARGET), rhinefet.o)
> ifneq ($(KVER),$(shell uname -r))
> $(warning ***)
> $(warning *** Warning: kernel source version ($(KVER)))
> $(warning *** does not match running kernel ($(shell uname -r)))
> $(warning *** Continuing with build,)
> $(warning *** resulting driver may not be what you want)
> $(warning ***)
> endif
> endif
>
> INSTDIR := $(shell find /lib/modules/$(KVER) -name $(TARGET) -printf
"%h\n"
> | sort | head -1)
>
> ifeq (,$(INSTDIR))
> ifeq (,$(KERVER2))
> ifneq (,$(wildcard /lib/modules/$(KVER)/kernel))
> INSTDIR := /lib/modules/$(KVER)/kernel/drivers/net
> else
> INSTDIR := /lib/modules/$(KVER)/net
> endif
> else
> ifneq ($(KERVER2),2)
> INSTDIR := /lib/modules/$(KVER)/kernel/drivers/net
> else
> INSTDIR := /lib/modules/$(KVER)/net
> endif
> endif
> endif
>
> # look for SMP in config.h
> SMP := $(shell $(CC) $(CFLAGS) -E -dM $(CONFIG_FILE) | \
> grep CONFIG_SMP | awk '{ print $$3 }')
> ifneq ($(SMP),1)
> SMP := 0
> endif
>
> ifeq ($(VMNS), 1)
> CFLAGS += -DVMNS
> endif
>
> ifeq ($(DEBUG), 1)
> CFLAGS += -DRHINE_DBG
> endif
>
> ifeq ($(TARGET), rhinefet.o)
> ifneq ($(SMP),$(shell uname -a | grep SMP > /dev/null 2>&1 && echo 1 ||
echo
> 0))
> $(warning ***)
> ifeq ($(SMP),1)
> $(warning *** Warning: kernel source configuration (SMP))
> $(warning *** does not match running kernel (UP))
> else
> $(warning *** Warning: kernel source configuration (UP))
> $(warning *** does not match running kernel (SMP))
> endif
> $(warning *** Continuing with build,)
> $(warning *** resulting driver may not be what you want)
> $(warning ***)
> endif
> endif
>
> ifeq ($(SMP), 1)
> CFLAGS += -D__SMP__
> endif
>
> $(TARGET): $(filter-out $(TARGET), $(SRC:.c=.o))
> $(LD) -r $^ -o $@
> echo; echo
> echo " ****************************************
**********"
> echo "Build options:"
> echo " VERSION $(KVER)"
> echo -n " SMP "
> if [ "$(SMP)" = "1" ]; \
> then echo "Enabled"; else echo "Disabled"; fi
> echo -n " VMNS "
> if [ "$(VMNS)" = "1" ]; \
> then echo "Enabled"; else echo "Disabled"; fi
> echo " ****************************************
***********"
>
> install: clean $(TARGET)
> mkdir -p $(MOD_ROOT)$(INSTDIR)
> install -m 644 -o root $(TARGET) $(MOD_ROOT)$(INSTDIR)
> @if [ -f $(MOD_ROOT)$(INSTDIR)/via-rhine.o ] ; then \
> echo "***** Move official driver via-rhine.o to via-rhine.o.backup" ; \
> echo "mv $(MOD_ROOT)$(INSTDIR)/via-rhine.o
> $(MOD_ROOT)$(INSTDIR)/via-rhine.o.backup";\
> mv $(MOD_ROOT)$(INSTDIR)/via-rhine.o
> $(MOD_ROOT)$(INSTDIR)/via-rhine.o.backup ; \
> echo ;\
> fi ;
> @if [ -f $(MOD_ROOT)$(INSTDIR)/linuxfet.o ] ; then \
> echo "***** Move previous driver linuxfet.o to linuxfet.o.backup" ; \
> echo "mv $(MOD_ROOT)$(INSTDIR)/linuxfet.o
> $(MOD_ROOT)$(INSTDIR)/linuxfet.o.backup";\
> mv $(MOD_ROOT)$(INSTDIR)/linuxfet.o
> $(MOD_ROOT)$(INSTDIR)/linuxfet.o.backup ; \
> echo ;\
> fi ;
>
> ifeq (,$(MOD_ROOT))
> /sbin/depmod -a || true
> else
> /sbin/depmod -b $(MOD_ROOT) -a || true
> endif
>
> uninstall:
> rm -f $(INSTDIR)/$(TARGET)
> @if [ -f $(MOD_ROOT)$(INSTDIR)/via-rhine.o.backup ] ; then \
> echo "***** Restore official driver vai-rhine.o from
> $(MOD_ROOT)$(INSTDIR)".; \
> echo "mv $(MOD_ROOT)$(INSTDIR)/via-rhine.o.backup
> $(MOD_ROOT)$(INSTDIR)/via-rhine.o";\
> mv $(MOD_ROOT)$(INSTDIR)/via-rhine.o.backup
> $(MOD_ROOT)$(INSTDIR)/via-rhine.o ;\
> fi
> /sbin/depmod -a
>
>
> clean:
> rm -f $(TARGET) $(SRC:.c=.o) *~
>
> -include .depend.mak
>
>
> --
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> "Tanta gente urla la verità, ma senza
> stile è inutile, non serve." - Bukowsky
>
> www.soundvisionproject.com
> http://digilander.iol.it/puppetweb
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.634 / Virus Database: 406 - Release Date: 18/03/2004
>
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.634 / Virus Database: 406 - Release Date: 18/03/2004
|
|
|
|
|