From: Stephen Gutknecht (hilltx) Date: Mon, 29 Dec 2008 08:24:54 -0800 Subject: [ath9k-devel] ath9k for ar9102 and ar9103, OpenWRT, AP81 router hardware In-Reply-To: <20081229160759.GS5944@tesla> References: <20081229160759.GS5944@tesla> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org On Mon, Dec 29, 2008 at 8:07 AM, Luis R. Rodriguez wrote: > On Sun, Dec 28, 2008 at 02:22:31PM -0800, Stephen Gutknecht (hilltx) wrote: >> A major discovery, good news! Through exhaustive searching of every >> bit I could find about AHB drivers, I stumbled into the source code >> for the Atheros Radio Testing (ART) for these routers. From my AP81 >> router (Trendnet TEW-652BRP, DLink DIR-615 C1) running OpenWRT trunk: >> >> >> root at OpenWrt:/tmp# insmod art.ko >> CHIP REV ID: b4 >> dk_dev_init::status after register_chrdev(dk) = 0 >> Base Phsycal address :0x180c0000 >> DK::Add client 0 >> DK::Reg phy addr = 180c0000 vir Addr = b80c0000 >> DK::Irq = 2 >> DK::Allocated 0x200000 bytes memory >> DK::memory vir Addr = 80c00000 phy Addr = c00000 >> Device Status is : 0x11 >> root at OpenWrt:/tmp# uname -a >> Linux OpenWrt 2.6.27.10 #18 Sat Dec 27 13:54:44 CST 2008 mips unknown >> >> >> The art driver was made for 2.6.15, I updated it to work on newer >> kernels. It has all the juicy details that an experienced ath9k >> developer should need to get these chips working. >> >> driver source AP81/AP83: >> http://svn.openfoundry.org/jpgdauto/atheros/art_modules_v0_7_b9.tbz >> >> Patch for newer kernels: >> http://forum.openwrt.org/viewtopic.php?pid=78718#p78718 > > These should *not* be posted as they are not part of the driver, whoever > posted this is violating our license and this will be looked into. > > Avoid using this as a source of documentation. > > Luis The module is clearly identified by author and shows GPL license. The binary version distributed by companies such as DLink is also marked in the same way. root at ipcmedialinux1:/DLink615C1_GPL/AthSDK# strings ./rootfs/target/lib/modules/art_ap81.ko | grep "=" cfiamd: write %s @ %p (%x != %x) i=0:fPtr=0x%x:fS=0x%x:ebSize=0x%x i=1:fPtr=0x%x:fS=0x%x:ebSize=0x%x i=2:fPtr=0x%x:fS=0x%x:ebSize=0x%x sysFlashConfigWrite: failed rc=%d dk_dev_init::status after register_chrdev(dk) = %d DK::Free reg space phy=%x vir=%x DK::Free irq = %x page order=%d DK::Reg phy addr = %x vir Addr = %x DK::Irq = %x DK::memory vir Addr = %x phy Addr = %x description=Linux MDK driver 1.0 author=muddin at atheros.com license=GPL depends= vermagic=2.6.15- MIPS32_R2 32BIT gcc-3.4 root at ipcmedialinux1:/home/OpenWRT6/trunk/art_modules/modules# grep -R "MOD_" * include/dk.h:#define MOD_LICENCE "GPL" include/dk.h:#define MOD_AUTHOR "muddin at atheros.com" include/dk.h:#define MOD_DESCRIPTION "Linux MDK driver 1.0" main.c: MODULE_LICENSE(MOD_LICENCE); main.c:MODULE_AUTHOR(MOD_AUTHOR); main.c:MODULE_DESCRIPTION(MOD_DESCRIPTION);