How to install precompiled ath9k driver? Up vote 1 down vote favorite. I have a Ubuntu and I have cross compiled an ath9k driver for an ARM architecture. Ath9k is a completely FOSS wireless driver for all Atheros IEEE 802.11n PCI/PCI-Express and AHB WLAN based chipsets. ![]() I have a Ubuntu and I have cross compiled an ath9k driver for an ARM architecture. The problem is a can't make the install work as I want to work. README says the following: Building for external kernels If you have a kernel you do not have installed but yet want to build the compat-wireless-2.6 drivers for it you can use this syntax: make KLIB=/home/mcgrof/kernels/linux-2.6.23.9 KLIB_BUILD=/home/mcgrof/kernels/linux->2.6.23.9 If you have a kernel installed, which is not your currently running kernel (e.g. The kmalloc() function has a 2-factor argument form, kmalloc_array(). This patch replaces cases of: kmalloc(a * b, gfp) with: kmalloc_array(a * b, gfp) as well as handling cases of: kmalloc(a * b * c, gfp) with: kmalloc(array3_size(a, b, c), gfp) as it's slightly less ugly than: kmalloc_array(array_size(a, b), c, gfp) This does, however, attempt to ignore constant size factors like: kmalloc(4 * 1024, gfp) though any constants defined via macros get caught up in the conversion. Any factors with a sizeof() of 'unsigned char', 'char', and 'u8' were dropped, since they're redundant. The tools/ directory was manually excluded, since it has its own implementation of kmalloc(). The Coccinelle script used for this was: // Fix redundant parens around sizeof(). @@ type TYPE; expression THING, E; @@ ( kmalloc( - (sizeof(TYPE)) * E + sizeof(TYPE) * E.)| kmalloc( - (sizeof(THING)) * E + sizeof(THING) * E.) ) // Drop single-byte sizes and redundant parens. @@ expression COUNT; typedef u8; typedef __u8; @@ ( kmalloc( - sizeof(u8) * (COUNT) + COUNT.)| kmalloc( - sizeof(__u8) * (COUNT) + COUNT.)| kmalloc( - sizeof(char) * (COUNT) + COUNT.)| kmalloc( - sizeof(unsigned char) * (COUNT) + COUNT.)| kmalloc( - sizeof(u8) * COUNT + COUNT.)| kmalloc( - sizeof(__u8) * COUNT + COUNT.)| kmalloc( - sizeof(char) * COUNT + COUNT.)| kmalloc( - sizeof(unsigned char) * COUNT + COUNT.) ) // 2-factor product with sizeof(type/expression) and identifier or constant. Failed to load latest commit information.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2019
Categories |