Building Wireless Drivers (with changes)
Posted: 06 Mar 2012, 22:07
Background: I'm working on migrating from Slax to Porteus. One of my requirements is to use a RT2860-based card as an Access Point. Back on Slax, I was using compat-wireless with a couple of patches to get this working. In particular, I need rt2x00 to be compiled with so that I can reset the card by doing this:
and I need to apply this patch:
because another card I'm using thinks it is in China, and I'm... not in China.
So now that I'm in the land of a modern kernel, I don't think using compat-wireless is the way to go any more. Instead, I think I just want to grab the kernel sources, apply my changes, and rebuild the rt2x00pci.ko and friends.
I'm a little confused about how to do this, though. My porteus-1.1 reports that it is using kernel 3.1.8. But I see mention on these groups that it should be 3.2.something. What's up with that?
Can someone walk me through:
- what version of kernel sources I should get from kernel.org;
- where are the patches to apply for porteus;
- what are the steps to build a fresh copy of select kernel modules;
Thanks in advance!
-Joshua
Code: Select all
CONFIG_RT2X00_LIB_DEBUGFS=y
Code: Select all
echo 1 > /sys/kernel/debug/ieee80211/phy0/reset
Code: Select all
https://dev.openwrt.org/browser/trunk/package/mac80211/patches/404-ath_regd_optional.patch
So now that I'm in the land of a modern kernel, I don't think using compat-wireless is the way to go any more. Instead, I think I just want to grab the kernel sources, apply my changes, and rebuild the rt2x00pci.ko and friends.
I'm a little confused about how to do this, though. My porteus-1.1 reports that it is using kernel 3.1.8. But I see mention on these groups that it should be 3.2.something. What's up with that?
Can someone walk me through:
- what version of kernel sources I should get from kernel.org;
- where are the patches to apply for porteus;
- what are the steps to build a fresh copy of select kernel modules;
Thanks in advance!
-Joshua