nixp.ru v3.0

27 мая 2017,
суббота,
18:49:27 MSK

DevOps с компанией «Флант»
Skid написал 20 октября 2006 года в 08:39 (929 просмотров) Ведет себя неопределенно; открыл 2 темы в форуме, оставил 3 комментария на сайте.

Такая вот у меня проблема:

Есть Фря 6.1-RELEASE, есть WiFi адаптер USB D-Link DWL 120+ . Надо поставить, нифига не выходит! Разобрался что он на чипе atmel! Нашел вот такую страничку с дровами: http://vitsch.net/bsd/atuwi/ и стал делать как написано. вот что из этого вышло! Делал по инструкции по этой ссылке

skid# tar -xvzf /home/skid/Desktop/atuwi-0.6.tar.gz

x conf/

x conf/files-atuwi-2004-01-11.diff

x dev/

x dev/usb/

x dev/usb/atuwi_intersil_fw.h

x dev/usb/atuwi_rfmd2958-smc_fw.h

x dev/usb/atuwi_rfmd2958_fw.h

x dev/usb/atuwi_rfmd_fw.h

x dev/usb/if_atuwi.c

x dev/usb/if_atuwireg.h

x dev/usb/uhci-waitintr-2004-10-22.diff

x dev/usb-reset-2004-01-08.diff

x modules/

x modules/atuwi/

x modules/atuwi/CHANGELOG

x modules/atuwi/Makefile

x modules/atuwi/atuwi-compile

x modules/atuwi/atuwi-README.txt

skid# ./modules/atuwi/atuwi-compile

ATUWI driver compiler script

Written by Daan Vreeken — Danovitsch @ Vitsch . net

Kernel sources base directory: /usr/src/sys

Going to download the latest version of 'usbdevs' from www.FreeBSD.org

fetch: http://www.freebsd.org/cgi/cvsweb.cgi/~checkout~/src/sys/dev/usb/usbdevs: size of remote file is not known

usbdevs 58 kB 26 kBps

done.

Applying the usb-reset patch

Hmm… Looks like a unified diff to me…

The text leading up to this was:

————————--

|diff -ur usb.org/usb_port.h usb/usb_port.h

|— usb.org/usb_port.h Wed Oct 2 09:44:20 2002

|+++ usb/usb_port.h Wed Jan 7 20:26:55 2004

————————--

Patching file usb/usb_port.h using Plan A…

Hunk #1 succeeded at 474 with fuzz 1 (offset 39 lines).

Hmm… The next patch looks like a unified diff to me…

The text leading up to this was:

————————--

|diff -ur usb.org/usb_subr.c usb/usb_subr.c

|— usb.org/usb_subr.c Wed Jan 15 00:07:43 2003

|+++ usb/usb_subr.c Wed Jan 7 22:50:20 2004

————————--

Patching file usb/usb_subr.c using Plan A…

Hunk #1 succeeded at 99 (offset 13 lines).

Hunk #2 succeeded at 147 (offset 13 lines).

Hunk #3 succeeded at 907 with fuzz 2 (offset 15 lines).

Hunk #4 succeeded at 991 with fuzz 1 (offset 21 lines).

Hunk #5 succeeded at 1147 (offset 36 lines).

Hunk #6 succeeded at 1145 with fuzz 2 (offset 21 lines).

Hmm… The next patch looks like a unified diff to me…

The text leading up to this was:

————————--

|diff -ur usb.org/usbdi.h usb/usbdi.h

|— usb.org/usbdi.h Mon May 6 20:23:36 2002

|+++ usb/usbdi.h Wed Jan 7 21:45:11 2004

————————--

Patching file usb/usbdi.h using Plan A…

Hunk #1 succeeded at 69 (offset 3 lines).

done

done.

Skipping uhci waitintr patch since it’s already installed

Recompiling the usb subsystem

done.

Patching conf/files

Hmm… Looks like a unified diff to me…

The text leading up to this was:

————————--

|— files~ Sun May 11 08:37:52 2003

|+++ files Fri Jan 9 14:15:50 2004

————————--

Patching file files using Plan A…

Hunk #1 failed at 763.

1 out of 1 hunks failed--saving rejects to files.rej

done

error: Couldn’t apply 'files' patch!

// Тему переместил(а) fly4life из форума «UNIX FAQ: вопросы по UNIX/Linux».

Skid

Решил сделать вручную как там написано:

skid# cd /usr/src/sys/dev

skid# patch

Hmm… Looks like a unified diff to me…

The text leading up to this was:

————————--

|diff -ur usb.org/usb_port.h usb/usb_port.h

|— usb.org/usb_port.h Wed Oct 2 09:44:20 2002

|+++ usb/usb_port.h Wed Jan 7 20:26:55 2004

————————--

Patching file usb/usb_port.h using Plan A…

Reversed (or previously applied) patch detected! Assume -R? [y] y

Hunk #1 succeeded at 474 with fuzz 1 (offset 39 lines).

Hmm… The next patch looks like a unified diff to me…

The text leading up to this was:

————————--

|diff -ur usb.org/usb_subr.c usb/usb_subr.c

|— usb.org/usb_subr.c Wed Jan 15 00:07:43 2003

|+++ usb/usb_subr.c Wed Jan 7 22:50:20 2004

————————--

Patching file usb/usb_subr.c using Plan A…

Reversed (or previously applied) patch detected! Assume -R? [y] y

Hunk #1 succeeded at 99 (offset 13 lines).

Hunk #2 succeeded at 144 (offset 13 lines).

Hunk #3 succeeded at 903 with fuzz 2 (offset 15 lines).

Hunk #4 succeeded at 979 with fuzz 1 (offset 21 lines).

Hunk #5 succeeded at 1135 (offset 36 lines).

Hunk #6 succeeded at 1127 with fuzz 2 (offset 21 lines).

Hmm… The next patch looks like a unified diff to me…

The text leading up to this was:

————————--

|diff -ur usb.org/usbdi.h usb/usbdi.h

|— usb.org/usbdi.h Mon May 6 20:23:36 2002

|+++ usb/usbdi.h Wed Jan 7 21:45:11 2004

————————--

Patching file usb/usbdi.h using Plan A…

Reversed (or previously applied) patch detected! Assume -R? [y] y

Hunk #1 succeeded at 69 (offset 3 lines).

done

skid# cd /usr/src/sys/dev/usb

skid# patch

Hmm… Looks like a unified diff to me…

The text leading up to this was:

————————--

|— uhci.c.org Fri Oct 22 12:16:29 2004

|+++ uhci.c Fri Oct 22 12:21:11 2004

————————--

Patching file uhci.c using Plan A…

Reversed (or previously applied) patch detected! Assume -R? [y]

Hunk #1 succeeded at 1553 (offset 1 line).

Hunk #2 succeeded at 1577 (offset 1 line).

done

skid# cd /usr/src/sys/dev/usb

skid# fetch http://www.freebsd.org/cgi/cvsweb.cgi/~checkout~/src/sys/dev/usb/usbdevs

fetch: http://www.freebsd.org/cgi/cvsweb.cgi/~checkout~/src/sys/dev/usb/usbdevs: size of remote file is not known

usbdevs 58 kB 31 kBps

skid# make -f Makefile.usbdevs

make: cannot open Makefile.usbdevs.

skid# cd /usr/src/sys/modules/atuwi

skid# make

Warning: Object directory not changed from original /usr/src/sys/modules/atuwi

@ -> /usr/src/sys

machine -> /usr/src/sys/i386/include

touch opt_bdg.h

touch opt_usb.h

awk -f @/tools/makeobjops.awk @/kern/device_if.m -h

awk -f @/tools/makeobjops.awk @/kern/bus_if.m -h

awk -f @/tools/makeobjops.awk @/dev/mii/miibus_if.m -h

cc -O2 -fno-strict-aliasing -pipe -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I- -I. -I@ -I@/contrib/altq -I@/../include -I/usr/include -finline-limit=8000 -fno-common -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -ffreestanding -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -c /usr/src/sys/modules/atuwi/../../dev/usb/if_atuwi.c

/usr/src/sys/modules/atuwi/../../dev/usb/if_atuwi.c: In function `atuwi_attach’:/usr/src/sys/modules/atuwi/../../dev/usb/if_atuwi.c:1965: error: `USB_ATTACH_NEED_RESET' undeclared (first use in this function)

/usr/src/sys/modules/atuwi/../../dev/usb/if_atuwi.c:1965: error: (Each undeclared identifier is reported only once

/usr/src/sys/modules/atuwi/../../dev/usb/if_atuwi.c:1965: error: for each function it appears in.)

/usr/src/sys/modules/atuwi/../../dev/usb/if_atuwi.c:2035: error: structure has no member named `ac_enaddr'

/usr/src/sys/modules/atuwi/../../dev/usb/if_atuwi.c:2046: error: structure has no member named `ac_if'

/usr/src/sys/modules/atuwi/../../dev/usb/if_atuwi.c: In function `atuwi_detach’:/usr/src/sys/modules/atuwi/../../dev/usb/if_atuwi.c:2165: error: structure has no member named `ac_if'

/usr/src/sys/modules/atuwi/../../dev/usb/if_atuwi.c: In function `atuwi_rxeof’:

/usr/src/sys/modules/atuwi/../../dev/usb/if_atuwi.c:2698: error: structure has no member named `ac_if'

/usr/src/sys/modules/atuwi/../../dev/usb/if_atuwi.c: In function `atuwi_txeof’:

/usr/src/sys/modules/atuwi/../../dev/usb/if_atuwi.c:2926: error: structure has no member named `ac_if'

/usr/src/sys/modules/atuwi/../../dev/usb/if_atuwi.c:2947: error: `IFF_OACTIVE' undeclared (first use in this function)

/usr/src/sys/modules/atuwi/../../dev/usb/if_atuwi.c: In function `atuwi_start’:

/usr/src/sys/modules/atuwi/../../dev/usb/if_atuwi.c:3176: error: `IFF_OACTIVE' undeclared (first use in this function)

/usr/src/sys/modules/atuwi/../../dev/usb/if_atuwi.c: In function `atuwi_init’:

/usr/src/sys/modules/atuwi/../../dev/usb/if_atuwi.c:3252: error: structure has no member named `ac_if'

/usr/src/sys/modules/atuwi/../../dev/usb/if_atuwi.c:3266: error: `IFF_RUNNING' undeclared (first use in this function)

/usr/src/sys/modules/atuwi/../../dev/usb/if_atuwi.c:3321: error: structure has no member named `ac_enaddr'

/usr/src/sys/modules/atuwi/../../dev/usb/if_atuwi.c:3366: error: `IFF_OACTIVE' undeclared (first use in this function)

/usr/src/sys/modules/atuwi/../../dev/usb/if_atuwi.c: In function `atuwi_ioctl’:

/usr/src/sys/modules/atuwi/../../dev/usb/if_atuwi.c:3520: error: `IFF_RUNNING' undeclared (first use in this function)

/usr/src/sys/modules/atuwi/../../dev/usb/if_atuwi.c: In function `atuwi_stop’:

/usr/src/sys/modules/atuwi/../../dev/usb/if_atuwi.c:3886: error: structure has no member named `ac_if'

/usr/src/sys/modules/atuwi/../../dev/usb/if_atuwi.c:3945: error: `IFF_RUNNING' undeclared (first use in this function)

/usr/src/sys/modules/atuwi/../../dev/usb/if_atuwi.c:3945: error: `IFF_OACTIVE' undeclared (first use in this function)

* Error code 1

Stop in /usr/src/sys/modules/atuwi.

skid#

Все…на этом я застрял и ничего не выходит…других дров я обыскался…Помогите пожалуйста. Заранее благодарю!