Coder Social home page Coder Social logo

ar9285_art's Introduction

AR9285 art tool

With this tool you can tune a few parameters in the eeprom dump from the AR9285 wireless chips:

  • Regulatory domain
  • Capabilities

Tested with the "virtual" eeprom present in the Tplink WR741ND v2.4 router. The eeprom at this router lives in a partition called art

Example:
Backup the partition under Openwrt

root@OpenWrt:/# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00020000 00010000 "u-boot"
mtd1: 00104200 00010000 "kernel"
mtd2: 002cbe00 00010000 "rootfs"
mtd3: 000c0000 00010000 "rootfs_data"
mtd4: 00010000 00010000 "art"
mtd5: 003d0000 00010000 "firmware"
root@OpenWrt:/# 

root@OpenWrt:/# dd if=/dev/mtd4 of=/tmp/art.bin

Transfer art.bin to your computer, and hack it with the tool

[dani@tool ath9k_caldata]$ ./ar9285_art -i art.bin -o art-hacked.bin -r 255

Now transfer art-hacked.bin to your router, and write it to art partition

mtd write art-hacked.bin art


Note: The art partition must be writeable. As default it isn't in Openwrt, probably you will need to build a custom firmware with this code:

parts[3].name = "art";
parts[3].offset = art_offset;
parts[3].size = TPLINK_ART_LEN;
parts[3].mask_flags = MTD_WRITEABLE;

changed to

parts[3].name = "art";
parts[3].offset = art_offset;
parts[3].size = TPLINK_ART_LEN;
parts[3].mask_flags = 0;

at file:
./target/linux/ar71xx/files/drivers/mtd/tplinkpart.c

ar9285_art's People

Contributors

danitool avatar noltari avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.