From: "Maxim Ivanov" <maxipios@gmail.com> To: "ALT Linux Community" <community@lists.altlinux.org> Subject: [Comm] Сборка "родного" драйвера Broadcom NetXtreme BCM5721 PCI-E Gb Date: Tue, 21 Nov 2006 14:39:20 +0000 Message-ID: <70988a130611210639m415bc188hc68d6806bd9f36db@mail.gmail.com> (raw) Прошу помочь. Есть проблема. Материнская плата Asus P5MT-MX c указанным LAN (Broadcom NetXtreme BCM5721). Никак, никаими силами не удается работать сеть под Alt Linux Master 2.4. Внимательно читал архивы рассылки, все что предлагалось - попробовал. Не помогло. В рассылке http://lists.altlinux.org/pipermail/community/2005-December/171215.html упоминалась возможность сборки драйвера с сакйта производителя. На странице http://www.broadcom.com/support/ethernet_nic/netxtreme.php есть tg3 драйвер для Linux. Однако не собирается - ошибка в Makerfile. Сам Makfile выглядит следующим образом: #!/usr/bin/make # Makefile for building Linux Broadcom Gigabit ethernet driver as a module. # $id$ KVER= ifeq ($(KVER),) KVER=$(shell uname -r) endif # PREFIX may be set by the RPM build to set the effective root. PREFIX= ifeq ($(shell ls /lib/modules/$(KVER)/build > /dev/null 2>&1 && echo build),) ifeq ($(shell ls /usr/src/linux > /dev/null 2>&1 && echo linux),) LINUX= else LINUX=/usr/src/linux endif else LINUX=/lib/modules/$(KVER)/build ifeq ($(shell ls /lib/modules/$(KVER)/source > /dev/null 2>&1 && echo source),) LINUXSRC=$(LINUX) else LINUXSRC=/lib/modules/$(KVER)/source endif endif ifneq ($(shell grep netdump_mode $(LINUXSRC)/include/linux/kernel.h > /dev/null 2>&1 && echo rh),) NETDUMP_CFLAG = -DRED_HAT_LINUX_KERNEL else NETDUMP_CFLAG = endif # check if 2.4 kernel or 2.5+ kernel BCM_KVER:=$(shell echo $(KVER) | cut -c1-3 | sed 's/2\.[56]/2\.6/') ifeq ($(BCM_KVER), 2.6) # Makefile for 2.5+ kernel BCM_DRV = tg3.ko ifneq ($(KERNELRELEASE),) obj-m += tg3.o EXTRA_CFLAGS = $(NETDUMP_CFLAG) else default: make -C $(LINUX) SUBDIRS=$(shell pwd) modules endif else # ifeq ($(BCM_KVER),2.6) # Makefile for 2.4 kernel BCM_DRV = tg3.o ifeq ($(LINUX),) $(error Linux kernel source tree not found) endif CC = gcc CFLAGS=-DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes -I$(LINUX)/include $(NETDUMP_CFLAG) ifeq ($(shell grep netif_poll_disable $(LINUXSRC)/include/linux/netdevice.h > /dev/null 2>&1 && echo newnetif),) CFLAGS+=-DOLD_NETIF endif ifeq ($(wildcard ~/rpmdir),) rpmdir = /usr/src/redhat else rpmdir = $(wildcard ~/rpmdir) endif ARCH:=$(shell uname -m) ifeq ($(ARCH),x86_64) CFLAGS+=-mno-red-zone -mcmodel=kernel -pipe -finline-limit=2000 endif ifeq ($(ARCH),ia64) CFLAGS+=-pipe -ffixed-r13 -mfixed-range=f10-f15,f32-f127 -falign-functions=32 endif ifeq ($(ARCH),ppc64) ifneq ($(shell ls /opt/cross/bin/powerpc64-linux-gcc > /dev/null 2>&1 && echo ppcgcc),) CC=/opt/cross/bin/powerpc64-linux-gcc endif CFLAGS+=-fno-strict-aliasing -fno-common -fomit-frame-pointer -msoft-float -pipe -mminimal-toc -fno-builtin endif CFLAGS += -O2 all: tg3.o endif # ifeq ($(BCM_KVER),2.6) tg3.4.gz: gzip -c tg3.4 > tg3.4.gz ifeq ($(BCM_KVER), 2.6) install: default tg3.4.gz else install: $(BCM_DRV) tg3.4.gz endif mkdir -p $(PREFIX)/lib/modules/$(KVER)/kernel/drivers/net; install -m 444 $(BCM_DRV) $(PREFIX)/lib/modules/$(KVER)/kernel/drivers/net; @if [ "$(PREFIX)" = "" ]; then /sbin/depmod -a ;\ else echo " *** Run '/sbin/depmod -a' to update the module database.";\ fi install -m 444 tg3.4.gz $(PREFIX)/usr/share/man/man4;\ .PHONEY: all clean install tar clean: -rm -f tg3.o tg3.ko tg3.mod.c tg3.mod.o tg3.4.gz При сборке говорит, что не найдены сырцы ядра. Однако они есть. Может, как-то файл поправить? Ошибка выглядит примерно так: Выполняется(%build): /bin/sh -e /home/ivanov/tmp/rpm-tmp.40890 + umask 022 + /bin/mkdir -p /home/ivanov/RPM/BUILD + cd /home/ivanov/RPM/BUILD + cd tg3-3.66d + value= + '[' -z '' ']' ++ uname -r + KVER=2.4.26-std-up-alt6 + make KVER=2.4.26-std-up-alt6 make: Entering directory `/home/ivanov/RPM/BUILD/tg3-3.66d' Makefile:59: *** Linux kernel source tree not found. Stop. make: Leaving directory `/home/ivanov/RPM/BUILD/tg3-3.66d' ошибка: Неверный код возврата из /home/ivanov/tmp/rpm-tmp.40890 (%build) Ошибки сборки пакетов: Неверный код возврата из /home/ivanov/tmp/rpm-tmp.40890 (%build) Что делать и как поправить? __________________ Максим Иванов
reply other threads:[~2006-11-21 14:39 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=70988a130611210639m415bc188hc68d6806bd9f36db@mail.gmail.com \ --to=maxipios@gmail.com \ --cc=community@lists.altlinux.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Community general discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 community community/ http://lore.altlinux.org/community \ mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com public-inbox-index community Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.community AGPL code for this site: git clone https://public-inbox.org/public-inbox.git