The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]



"Realtek RTL8168 на Asus a8jc и FreeBSD 6.1"
Версия для распечатки Пред. тема | След. тема
Форум Портативные устройства, платы и ноутбуки
Исходное сообщение [ Отслеживать ]

. "Asus a8jc и FreeBSD 6.1" +1 +/
Сообщение от sergicus (ok), 13-Ноя-09, 09:30 
Подскажите пожалуйста как решить эту проблему
Угораздило меня купить карту TP-LINK TG-3468 (в ней чипсет Realtek RTL8168B )

У меня стоит freebsd amd64 (я не знаю поддерживает ли драйер эту архитектуру ???)

Не работает, поискал в инете , нашел драйвер для free bsd на сайте realtek
В драйвере 4 файла
if_rl.c  if_rlreg.h  Makefile  Readme.txt


Читаю инструкцию

Method 1:
    1.Copy if_rl.ko in "modules" directory to "/modules" directory and overwrite
      the existing file.
    2.Modify the file "/boot/defaults/loader.conf" and set "if_rl_load" in "Network
      drivers" section to "Yes"
    3.Reboot.

собираю  драйвер - make

вот в начале

[root@gw2 /usr/home/serge/source/rtl_bsd_drv_v179]# make
Warning: Object directory not changed from original /usr/home/serge/source/rtl_bsd_drv_v179
cc -O2 -fno-strict-aliasing -pipe  -D_KERNEL -DKLD_MODULE -std=c99 -nostdinc   -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common  -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone  -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow  -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions -c if_rl.c
if_rl.c:74:5: warning: "OS_VER" is not defined
if_rl.c:74:14: warning: "VERSION" is not defined
if_rl.c:74:21: error: missing binary operator before token "("
if_rl.c:85:5: warning: "OS_VER" is not defined
if_rl.c:85:14: warning: "VERSION" is not defined
if_rl.c:85:21: error: missing binary operator before token "("
if_rl.c:130: warning: initialization makes integer from pointer without a cast
if_rl.c:130: error: initializer element is not computable at load time
if_rl.c:130: error: (near initialization for 'rl_devs[0].rl_basetype')
if_rl.c:132: warning: initialization makes integer from pointer without a cast
if_rl.c:132: error: initializer element is not computable at load time


чем заканчивается

if_rl.c:3899: error: 'RL_PHY_1000_FULL' undeclared (first use in this function)
if_rl.c:3900: error: 'RL_PHY_1000_HALF' undeclared (first use in this function)
if_rl.c:3900: error: invalid operands to binary |
if_rl.c:3900: warning: assignment makes integer from pointer without a cast
if_rl.c:3902: error: 'RL_PHY_NWAY_EN' undeclared (first use in this function)
if_rl.c:3902: error: 'RL_PHY_RESTART_NWAY' undeclared (first use in this function)
if_rl.c:3902: error: invalid operands to binary |
if_rl.c:3902: warning: assignment makes integer from pointer without a cast
if_rl.c: In function 'MP_WritePhyUshort':
if_rl.c:3918: error: 'PHYAR' undeclared (first use in this function)
if_rl.c:3918: warning: passing argument 3 of 'bus_space_write_4' makes integer from pointer without a cast
if_rl.c:3924: warning: passing argument 3 of 'bus_space_read_4' makes integer from pointer without a cast
if_rl.c:3925: error: 'PHYAR_Flag' undeclared (first use in this function)
if_rl.c:3925: error: invalid operands to binary &
if_rl.c: In function 'MP_ReadPhyUshort':
if_rl.c:3939: error: 'PHYAR' undeclared (first use in this function)
if_rl.c:3939: warning: passing argument 3 of 'bus_space_write_4' makes integer from pointer without a cast
if_rl.c:3945: warning: passing argument 3 of 'bus_space_read_4' makes integer from pointer without a cast
if_rl.c:3946: error: 'PHYAR_Flag' undeclared (first use in this function)
if_rl.c:3946: error: invalid operands to binary &
if_rl.c:3948: warning: passing argument 3 of 'bus_space_read_4' makes integer from pointer without a cast
if_rl.c: In function 'MP_WriteEPhyUshort':
if_rl.c:3961: error: 'RL_EPHYAR' undeclared (first use in this function)
if_rl.c:3961: warning: passing argument 3 of 'bus_space_write_4' makes integer from pointer without a cast
if_rl.c:3967: warning: passing argument 3 of 'bus_space_read_4' makes integer from pointer without a cast
if_rl.c:3968: error: 'PHYAR_Flag' undeclared (first use in this function)
if_rl.c:3968: error: invalid operands to binary &
if_rl.c: In function 'MP_ReadEPhyUshort':
if_rl.c:3979: error: 'RL_EPHYAR' undeclared (first use in this function)
if_rl.c:3979: warning: passing argument 3 of 'bus_space_write_4' makes integer from pointer without a cast
if_rl.c:3985: warning: passing argument 3 of 'bus_space_read_4' makes integer from pointer without a cast
if_rl.c:3986: error: 'PHYAR_Flag' undeclared (first use in this function)
if_rl.c:3986: error: invalid operands to binary &
if_rl.c:3988: warning: passing argument 3 of 'bus_space_read_4' makes integer from pointer without a cast
if_rl.c: In function 'MP_ReadEfuse':
if_rl.c:4009: error: 'PHYAR_Flag' undeclared (first use in this function)
if_rl.c:4009: error: invalid operands to binary &
if_rl.c: In function 'rl_eeprom_getword':
if_rl.c:4157: error: 'RL_RXCFG_RX_9356SEL' undeclared (first use in this function)
if_rl.c:4157: error: invalid operands to binary &
*** Error code 1

В чем проблема - как собрать ??

Ответить | Правка | Наверх | Cообщить модератору

Оглавление
Realtek RTL8168 на Asus a8jc и FreeBSD 6.1, Necron, 18-Сен-06, 12:35  [смотреть все]
Форумы | Темы | Пред. тема | След. тема



Партнёры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2024 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру