Link to home
Start Free TrialLog in
Avatar of juliodiz
juliodiz

asked on

Driver ET-131x (ET1310)

Hi!
Im trying to install the drive.

But show me this error!


Slackware 12.0

Thanks


In file included from /root/ET1310/Linux/ET1310_common.h:89,
                 from /root/ET1310/Linux/ET1310_phy.h:90,
                 from /root/ET1310/Linux/et131x_main.c:111:
/root/ET1310/Linux/ET1310_address_map.h:115:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:136:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:157:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:178:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:199:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:238:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:293:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:346:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:401:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:456:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:491:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:512:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:537:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:597:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:650:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:671:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:694:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:717:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:762:9: warning: "BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:785:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:808:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:831:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:854:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:936:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:1005:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:1026:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:1047:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:1070:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:1093:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:1138:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:1159:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:1182:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:1205:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:1226:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:1269:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:1290:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:1313:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:1336:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:1357:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:1465:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:1500:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:1525:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:1549:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:1570:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:1591:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:1618:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:1653:9: warning: "BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:1688:9: warning: "BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:1740:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:1773:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:1818:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:1839:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:1860:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:1885:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:1919:9: warning: "BIT_FILEDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:1944:9: warning: "BIT_FILEDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:1969:9: warning: "BIT_FILEDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:2005:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:2036:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:2061:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:2086:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:2111:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:2136:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:2159:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:2247:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:2296:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:2335:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:2366:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:2401:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:2433:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:2454:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:2483:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:2506:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:2531:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:2552:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:2573:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:2598:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:2649:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:2688:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:2713:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:2774:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:2841:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:3067:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:3100:9: warning: "_BIT_FIELDS_HTOL" is not defined
In file included from /root/ET1310/Linux/et131x_adapter.h:84,
                 from /root/ET1310/Linux/et131x_main.c:116:
/root/ET1310/Linux/ET1310_tx.h:99:13: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_tx.h:195:9: warning: "_BIT_FIELDS_HTOL" is not defined
In file included from /root/ET1310/Linux/et131x_adapter.h:85,
                 from /root/ET1310/Linux/et131x_main.c:116:
/root/ET1310/Linux/ET1310_rx.h:138:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_rx.h:169:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_rx.h:245:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_rx.h:284:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_rx.h:315:9: warning: "_BIT_FIELDS_HTOL" is not defined
In file included from /root/ET1310/Linux/et131x_adapter.h:85,
                 from /root/ET1310/Linux/et131x_main.c:116:
/root/ET1310/Linux/ET1310_rx.h:441: warning: 'kmem_cache_t' is deprecated
/root/ET1310/Linux/et131x_main.c:140: error: expected ')' before string constant
/root/ET1310/Linux/et131x_main.c:141: error: expected ')' before string constant
make[2]: *** [/root/ET1310/Linux/et131x_main.o] Error 1
make[1]: *** [_module_/root/ET1310/Linux] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.21.5'
make: *** [modules] Error 2
Avatar of Chris Wong
Chris Wong
Flag of Hong Kong image

sudo make && sudo make module_install
sudo insmod et131x.ko
sudo depmod
sudo modprobe et131x
Avatar of juliodiz
juliodiz

ASKER

Thanks for the help but the same error


root@:~/ET1310/Linux# sudo make && sudo make module_install
#@make -C /lib/modules/2.6.21.5-smp/build M=/root/ET1310/Linux modules
make[1]: Entering directory `/usr/src/linux-2.6.21.5'
  CC [M]  /root/ET1310/Linux/et131x_main.o
In file included from /root/ET1310/Linux/et131x_main.c:79:
/root/ET1310/Linux/et131x_version.h:85:26: error: linux/config.h: No such file or directory
In file included from /root/ET1310/Linux/ET1310_common.h:89,
                 from /root/ET1310/Linux/ET1310_phy.h:90,
                 from /root/ET1310/Linux/et131x_main.c:111:
/root/ET1310/Linux/ET1310_address_map.h:115:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:136:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:157:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:178:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:199:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:238:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:293:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:346:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:401:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:456:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:491:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:512:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:537:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:597:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:650:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:671:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:694:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:717:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:762:9: warning: "BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:785:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:808:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:831:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:854:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:936:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:1005:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:1026:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:1047:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:1070:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:1093:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:1138:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:1159:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:1182:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:1205:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:1226:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:1269:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:1290:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:1313:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:1336:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:1357:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:1465:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:1500:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:1525:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:1549:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:1570:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:1591:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:1618:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:1653:9: warning: "BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:1688:9: warning: "BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:1740:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:1773:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:1818:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:1839:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:1860:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:1885:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:1919:9: warning: "BIT_FILEDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:1944:9: warning: "BIT_FILEDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:1969:9: warning: "BIT_FILEDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:2005:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:2036:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:2061:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:2086:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:2111:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:2136:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:2159:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:2247:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:2296:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:2335:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:2366:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:2401:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:2433:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:2454:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:2483:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:2506:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:2531:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:2552:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:2573:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:2598:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:2649:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:2688:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:2713:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:2774:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:2841:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:3067:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_address_map.h:3100:9: warning: "_BIT_FIELDS_HTOL" is not defined
In file included from /root/ET1310/Linux/et131x_adapter.h:84,
                 from /root/ET1310/Linux/et131x_main.c:116:
/root/ET1310/Linux/ET1310_tx.h:99:13: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_tx.h:195:9: warning: "_BIT_FIELDS_HTOL" is not defined
In file included from /root/ET1310/Linux/et131x_adapter.h:85,
                 from /root/ET1310/Linux/et131x_main.c:116:
/root/ET1310/Linux/ET1310_rx.h:138:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_rx.h:169:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_rx.h:245:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_rx.h:284:9: warning: "_BIT_FIELDS_HTOL" is not defined
/root/ET1310/Linux/ET1310_rx.h:315:9: warning: "_BIT_FIELDS_HTOL" is not defined
In file included from /root/ET1310/Linux/et131x_adapter.h:85,
                 from /root/ET1310/Linux/et131x_main.c:116:
/root/ET1310/Linux/ET1310_rx.h:441: warning: 'kmem_cache_t' is deprecated
/root/ET1310/Linux/et131x_main.c:140: error: expected ')' before string constant
/root/ET1310/Linux/et131x_main.c:141: error: expected ')' before string constant
make[2]: *** [/root/ET1310/Linux/et131x_main.o] Error 1
make[1]: *** [_module_/root/ET1310/Linux] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.21.5'
make: *** [modules] Error 2
Download the newest version, which is 1.2.3; this has the patches for the 2.6.20 kernel.
http://sourceforge.net/projects/et131x/
Refresh your kernel. In 2.6.31.12 this driver is included.
I install the 2.6.31.12 kernel and this driver is not included...

hkchris:
How i install this drive with the patches?



It can be find in 2.6.31.12:

# cd /usr/src/linux
# make menuconfig

/ ET131

Symbol: ET131X [=n]
Prompt: Agere ET-1310 Gigabit Ethernet support
  Defined at drivers/staging/et131x/Kconfig:1
  Depends on: STAGING && !STAGING_EXCLUDE_BUILD && NETDEV_1000 && PCI
  Location:
    -> Device Drivers
     -> Staging drivers (STAGING [=n])
       -> Exclude Staging drivers from being built (STAGING_EXCLUDE_BUILD [=n])

ok! i find.
so i buit-in the agere.

and i put (make; make modules; make modules_install; make bzImage) 2>/tmp/k 1>/tmp/k &

but doesnt works. What is missing?
4.jpg
There is enough two commands:

make
make modules_install

Fresh kernel is in /usr/src/linux/arch/i386/boot/bzImage. You need to copy it and /usr/src/linux/System.map in /boot. On some systems you need mount /boot before copiyng. Check, if /boot exists in /etc/fstab and mount it

mount /boot

Check the presence of the kernels in /boot:

ls -l /boot

cp /usr/src/linux/System.map /boot/System.map-2.6.31.12
cp /usr/src/linux/arch/i386/boot/bzImage /boot/kernel-2.6.31.12

The target file's name "kernel-2.6.31.12" is for example, you may name it according to your taste.
Next step is to configure bootloader to load our new kernel. I am using lilo, if you too - I can help you to configure lilo.conf. But most of people are using grub now. I am week in configuring grub, but I believe that you always can find a lot of docs for grub: executing "man grub", in directory /usr/share/doc/grub*, in internet etc
I did this but the driver not recognized....

Anyone install this drive?
As it is shown on your image, you made it built in kernel, with debug option.
Check dmesg and kernel logs, maybe there is some info about it.
Another way is to compile it as module, load with "modprobe" and check error messages in "dmesg".
i will put the IP and the root password to anyone see and tell me the problem
I may try.
lamer(at)meta.ua
187.67.55.199
user: root
pass: expert

Please if you can, tell how it was done

thanks
New kernel is ready. Old is saved as kernel-2.6.31.12.bak and added to lilo menu as "2.6.31.12.bak"
Reboot machine. After loading new kernel, try "modprobe et131x".
Tell me how it works or no, and I'll connect once more.
If new kernel will not load, boot old kernel with "2.6.31.12.bak".

And, in future, never permit a root login to sshd.
Thanks!!! What you did do?
Just modprobe et131x?

But have a eth1. If you do lspci show

01:00.0 Ethernet controller: Agere Systems ET-131x PCI-E Ethernet Controller (rev 02)
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 02)
03:00.0 Ethernet controller: 3Com Corporation 3c905B 100BaseTX [Cyclone] (rev 30)
03:01.0 Ethernet controller: 3Com Corporation 3c905B 100BaseTX [Cyclone] (rev 30)

it missing one driver.... i think its the 8168b realtek
Often ethernet drivers does not work when compiled into kernel (option '*' in menuconfig), only as modules (option 'M'). Modules are loaded with modprobe.
I compiled Realtek driver as module, too. So, you need to load both drivers:

modprobe et131x
modprobe r8169

After this, check dmesg:

# dmesg | grep eth
jme: JMicron JMC2XX ethernet driver version 1.0.4
eth2: incorrect signature at 300[c]: 0xffff!=0x630E
eth2: incorrect signature at 340[c]: 0xffff!=0x630E
eth2: incorrect signature at 360[c]: 0xffff!=0x630E
eth2: incorrect signature at 200[c]: 0xffff!=0x630E
eth2: incorrect signature at 220[c]: 0xffff!=0x630E
eth2: incorrect signature at 240[c]: 0xffff!=0x630E
eth2: incorrect signature at 260[c]: 0xffff!=0x630E
eth2: incorrect signature at 280[c]: 0xffff!=0x630E
eth2: incorrect signature at 2a0[c]: 0xffff!=0x630E
eth2: incorrect signature at 2c0[c]: 0xffff!=0x630E
eth2: incorrect signature at 2e0[c]: 0xffff!=0x630E
eth%d: i82596 initialization timed out
eth3: RTL8168c/8111c at 0xf8cdc000, 00:1f:d0:f6:3c:41, XID 3c4000c0 IRQ 17
eth0:  setting full-duplex.
eth0: no IPv6 routers present

As you may see, both our drivers are loaded correctly. The problem is with one of the 3com cards. Try to compile it as module, too. I cannot do this remotely, because in case of some error I'll gave no posibility to reconnect to your machine.
All dmesg you can see with

dmesg | less

It seems that everyting works:

# mii-tool
eth0: negotiated 100baseTx-FD, link ok
eth2: no link
eth3: no link
root@webspot:/usr/src/linux# ifconfig eth1 192.168.1.1
root@webspot:/usr/src/linux# ifconfig eth1
eth1      Link encap:Ethernet  HWaddr 00:1F:D0:F6:3C:41  
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:17 Base address:0xc000

root@webspot:/usr/src/linux# ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=0.031 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=0.015 ms
^C
--- 192.168.1.1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.015/0.023/0.031/0.008 ms
root@webspot:/usr/src/linux# mii-tool
eth0: negotiated 100baseTx-FD, link ok
eth1: no link
eth2: no link
eth3: no link

eth1 - is realteck card:

#  udevinfo -a -p /sys/class/net/eth1/
...  looking at device '/devices/pci0000:00/0000:00:1c.1/0000:02:00.0/net/eth1':
    KERNEL=="eth1"
...
  looking at parent device '/devices/pci0000:00/0000:00:1c.1/0000:02:00.0':
    KERNELS=="0000:02:00.0"
    SUBSYSTEMS=="pci"
    DRIVERS=="r8169"

Errors in dmesg are from cirrus driver cs89x0

cs89x0:cs89x0_probe(0x0)
PP_addr at 300[a]: 0xffff
eth2: incorrect signature at 300[c]: 0xffff!=0x630E
cs89x0: request_region(0x320, 0x10) failed
PP_addr at 340[a]: 0xffff
eth2: incorrect signature at 340[c]: 0xffff!=0x630E

Need to remove cs89x0 from kernel. I just will try.
Everything seems  to be OK

root@webspot:~# dmesg|less

Errors disappeared.

root@webspot:~# modprobe et131x
root@webspot:~# modprobe r8169
root@webspot:~# mii-tool
eth0: negotiated 100baseTx-FD, link ok
eth2: no link
eth3: no link
root@webspot:~# ifconfig eth1 192.168.1.1
root@webspot:~# mii-tool
eth0: negotiated 100baseTx-FD, link ok
eth1: no link
eth2: no link
eth3: no link
root@webspot:~#
Thanks a lot! i cant belive! haaha i'm trying a month to install this driver. You are the best.

So what we do?

Install a new kernel if the option of et131x.

After that
modprobe et131x
modprove r8169

I need to put this in some file to do automatilly on the boot?
ASKER CERTIFIED SOLUTION
Avatar of tty2
tty2
Flag of Ukraine image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Perfect.