Changes between Version 5 and Version 6 of Internal/UbiquitiDrivers


Ignore:
Timestamp:
Oct 23, 2008, 5:34:28 PM (16 years ago)
Author:
ssugrim
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Internal/UbiquitiDrivers

    v5 v6  
    4040
    4141Scratch that, the .config file is in the generic directory, much of this directory is really symlinks to /usr/src/linux-headers-2.6.24-21. When you set the kernel path to that directory then it complains about .config files (rightly so).
     42
     43=== 10/23/08 ===
     44
     45Discovered the issue was that I had a space in the name of the containing directory, and the cc targets were getting confused.  The 9.04 stock distribution of madwifi does indeed compile appropriately. But make install fails.
     46
     47This is however of no consequence, because unbt hal (the ubiquiti hal) comes with it's own version of mad-wifi which it patches. Previously I hunted the documentation to find what version of mad-wifi was the one that should be patched with this ubnt hal, but could find it documented any where. It does however list it in the make file, and retains a copy of it in the src directory. For reference the version it comes with is madwifi-dfs-r3319-20080201.
     48
     49It says I should be able to run make from the "main package directory" which I guess means the top level directory as there is a make file there, and it has patch targets for the included version of madwifi. It looks like there are targets to downlad the src from www.madwifi.org. However the download target does nothing.
     50
     51The unpack target on the other hand, does extract a copy of the source from a stored tgz file.
     52
     53The make all command fails with:
     54{{{
     55/home/ubiquiti/ubnt-hal-0.6.280/src/madwifi-dfs-r3319-20080201/net80211/ieee80211_output.c:87:21: error: macro "for_each_netdev" requires 2 arguments, but only 1 given
     56/home/ubiquiti/ubnt-hal-0.6.280/src/madwifi-dfs-r3319-20080201/net80211/ieee80211_output.c: In function 'ieee80211_setup_macclone':
     57/home/ubiquiti/ubnt-hal-0.6.280/src/madwifi-dfs-r3319-20080201/net80211/ieee80211_output.c:87: error: 'for_each_netdev' undeclared (first use in this function)
     58/home/ubiquiti/ubnt-hal-0.6.280/src/madwifi-dfs-r3319-20080201/net80211/ieee80211_output.c:87: error: (Each undeclared identifier is reported only once
     59/home/ubiquiti/ubnt-hal-0.6.280/src/madwifi-dfs-r3319-20080201/net80211/ieee80211_output.c:87: error: for each function it appears in.)
     60/home/ubiquiti/ubnt-hal-0.6.280/src/madwifi-dfs-r3319-20080201/net80211/ieee80211_output.c:88: error: expected ';' before 'if'
     61make[4]: *** [/home/ubiquiti/ubnt-hal-0.6.280/src/madwifi-dfs-r3319-20080201/net80211/ieee80211_output.o] Error 1
     62make[3]: *** [/home/ubiquiti/ubnt-hal-0.6.280/src/madwifi-dfs-r3319-20080201/net80211] Error 2
     63make[2]: *** [_module_/home/ubiquiti/ubnt-hal-0.6.280/src/madwifi-dfs-r3319-20080201] Error 2
     64make[2]: Leaving directory `/usr/src/linux-headers-2.6.24-21-generic'
     65make[1]: *** [modules] Error 2
     66make[1]: Leaving directory `/home/ubiquiti/ubnt-hal-0.6.280/src/madwifi-dfs-r3319-20080201'
     67make: *** [build] Error 2
     68root@ubiquiti-desktop:~/ubnt-hal-0.6.280#
     69}}}
     70
     71however if I just unpack and build (i.e. Don't patch), the build happens just fine.