Same problem here using BT4 Pre-Release & ALFA AWUS036H

Quote Originally Posted by mosjka1 View Post
Please help. I have followed your instruction but ... : (I need the driver for Zioncom WL0162)

Code:
root@bt:~/rt/rt2870-2.6.27-apocolipse# make
make -C tools
make[1]: Entering directory `/root/rt/rt2870-2.6.27-apocolipse/tools'
gcc -g bin2h.c -o bin2h
make[1]: Leaving directory `/root/rt/rt2870-2.6.27-apocolipse/tools'
/root/rt/rt2870-2.6.27-apocolipse/tools/bin2h
cp -f os/linux/Makefile.6 /root/rt/rt2870-2.6.27-apocolipse/os/linux/Makefile
make  -C  /lib/modules/2.6.29.4/build SUBDIRS=/root/rt/rt2870-2.6.27-apocolipse/os/linux modules
make[1]: Entering directory `/usr/src/linux-source-2.6.29.4'

  WARNING: Symbol version dump /usr/src/linux-source-2.6.29.4/Module.symvers
           is missing; modules will have no dependencies and modversions.

  CC [M]  /root/rt/rt2870-2.6.27-apocolipse/os/linux/../../common/md5.o
  CC [M]  /root/rt/rt2870-2.6.27-apocolipse/os/linux/../../common/mlme.o
  CC [M]  /root/rt/rt2870-2.6.27-apocolipse/os/linux/../../common/rtmp_wep.o
  CC [M]  /root/rt/rt2870-2.6.27-apocolipse/os/linux/../../common/action.o
  CC [M]  /root/rt/rt2870-2.6.27-apocolipse/os/linux/../../common/ba_action.o
  CC [M]  /root/rt/rt2870-2.6.27-apocolipse/os/linux/../../common/cmm_data.o
  CC [M]  /root/rt/rt2870-2.6.27-apocolipse/os/linux/../../common/rtmp_init.o
  CC [M]  /root/rt/rt2870-2.6.27-apocolipse/os/linux/../../common/rtmp_tkip.o
  CC [M]  /root/rt/rt2870-2.6.27-apocolipse/os/linux/../../common/cmm_sync.o
  CC [M]  /root/rt/rt2870-2.6.27-apocolipse/os/linux/../../common/eeprom.o
  CC [M]  /root/rt/rt2870-2.6.27-apocolipse/os/linux/../../common/cmm_sanity.o
  CC [M]  /root/rt/rt2870-2.6.27-apocolipse/os/linux/../../common/cmm_info.o
  CC [M]  /root/rt/rt2870-2.6.27-apocolipse/os/linux/../../common/cmm_wpa.o
  CC [M]  /root/rt/rt2870-2.6.27-apocolipse/os/linux/../../common/dfs.o
  CC [M]  /root/rt/rt2870-2.6.27-apocolipse/os/linux/../../sta/assoc.o
  CC [M]  /root/rt/rt2870-2.6.27-apocolipse/os/linux/../../sta/aironet.o
  CC [M]  /root/rt/rt2870-2.6.27-apocolipse/os/linux/../../sta/auth.o
  CC [M]  /root/rt/rt2870-2.6.27-apocolipse/os/linux/../../sta/auth_rsp.o
  CC [M]  /root/rt/rt2870-2.6.27-apocolipse/os/linux/../../sta/sync.o
  CC [M]  /root/rt/rt2870-2.6.27-apocolipse/os/linux/../../sta/sanity.o
  CC [M]  /root/rt/rt2870-2.6.27-apocolipse/os/linux/../../sta/rtmp_data.o
  CC [M]  /root/rt/rt2870-2.6.27-apocolipse/os/linux/../../sta/connect.o
  CC [M]  /root/rt/rt2870-2.6.27-apocolipse/os/linux/../../sta/wpa.o
  CC [M]  /root/rt/rt2870-2.6.27-apocolipse/os/linux/../../os/linux/rt_linux.o
  CC [M]  /root/rt/rt2870-2.6.27-apocolipse/os/linux/../../os/linux/rt_profile.o
/root/rt/rt2870-2.6.27-apocolipse/os/linux/../../os/linux/rt_profile.c: In function 'RTMPReadParametersHook':
/root/rt/rt2870-2.6.27-apocolipse/os/linux/../../os/linux/rt_profile.c:778: error: 'struct task_struct' has no member named 'fsuid'
/root/rt/rt2870-2.6.27-apocolipse/os/linux/../../os/linux/rt_profile.c:779: error: 'struct task_struct' has no member named 'fsgid'
/root/rt/rt2870-2.6.27-apocolipse/os/linux/../../os/linux/rt_profile.c:780: error: 'struct task_struct' has no member named 'fsuid'
/root/rt/rt2870-2.6.27-apocolipse/os/linux/../../os/linux/rt_profile.c:780: error: 'struct task_struct' has no member named 'fsgid'
/root/rt/rt2870-2.6.27-apocolipse/os/linux/../../os/linux/rt_profile.c:1369: error: 'struct task_struct' has no member named 'fsuid'
/root/rt/rt2870-2.6.27-apocolipse/os/linux/../../os/linux/rt_profile.c:1370: error: 'struct task_struct' has no member named 'fsgid'
make[2]: *** [/root/rt/rt2870-2.6.27-apocolipse/os/linux/../../os/linux/rt_profile.o] Error 1
make[1]: *** [_module_/root/rt/rt2870-2.6.27-apocolipse/os/linux] Error 2
make[1]: Leaving directory `/usr/src/linux-source-2.6.29.4'
make: *** [LINUX] Error 2
root@bt:~/rt/rt2870-2.6.27-apocolipse#
I was having the same problem as mosjka1. I have pretty much no experience writing or modifying drivers, but I decided to jump into this one. I found the build was crashing on line 778:

orgfsuid = current->fsuid
orgfsgid = current->fsgid

I made the (most likely unsafe, but it was for my own use) assumption that current->fsuid & current->fsgid where both 0 (root) by reading the comment on the line above in the code. I cleaned up the other two references to fsuid & fsgid and then I got past that file.

I then ran into another problem.
.../rt_main_dev.c:299: error: 'struct net_device' has not member named 'priv'.
I found that netdev->priv was killed off in 2.6.28. The replacement function is netdev_priv(), and went in quite a while ago. I went through rt_main_dev.c and made all the corrections.

Now I'm getting another error.

../rt_main_dev.c:536: error: lvalue required as left operand of assignment
../rt_main_dev.c:1200: error: lvalue required as left operand of assignment

Line 536 is: netdev_priv(net_dev) = 0;
Line 1200 is: netdev_priv(net_dev) = (PVOID)pAd;

At this point, I'm lost, but I'm working on it.