From: Alex Hacker <hacker@epn.ru>
To: ath9k-devel@lists.ath9k.org
Subject: [ath9k-devel] Sparklan WPEA-121N AR9382 168c:abcd
Date: Tue, 12 Apr 2011 12:01:32 +0600 [thread overview]
Message-ID: <20110412060132.GA28991@infinet.ru> (raw)
Adrian Chadd wrote:
> Is there an easy way to get an EEPROM/OTP contents dump in ath9k?
For AR93xx you can try to use the following script:
#!/usr/bin/perl -w
my $debugPath = '/debug/ath9k/phy0';
sub RegGet($)
{
open(F,">$debugPath/regidx") or die("Unable to open $debugPath/regidx.");
printf(F "0x%x\n",shift());
close(F);
open(F,"$debugPath/regval") or die("Unable to open $debugPath/regval.");
local $val = <F>;
$val =~ s/\s+$//g;
close(F);
return hex($val);
}
sub EepromRead($)
{
RegGet(0x2000 + ((shift()/2) << 2));
while ((RegGet(0x4084) & 0x50000) != 0) {}
return RegGet(0x4084);
}
for (local $addr = 0; $addr < 0x400; $addr += 2)
{
printf("\n%04x:",$addr) if ($addr%16 == 0);
local $val = EepromRead($addr);
printf(" %02x %02x",$val >> 8,$val & 0xff);
}
printf("\n");
next reply other threads:[~2011-04-12 6:01 UTC|newest]
Thread overview: 65+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-12 6:01 Alex Hacker [this message]
-- strict thread matches above, loose matches on Subject: below --
2013-03-27 18:34 [ath9k-devel] Sparklan WPEA-121N AR9382 168c:abcd Steffen Dettmer
2013-03-27 21:31 ` Adrian Chadd
2013-03-27 21:57 ` Peter Stuge
2013-03-27 22:33 ` Adrian Chadd
2013-03-27 22:46 ` Michael Schwingen
2013-03-27 23:11 ` Peter Stuge
2013-03-27 23:04 ` Peter Stuge
2013-03-28 1:02 ` Adrian Chadd
2013-04-01 13:05 ` Daniel Smith
2013-03-28 15:04 ` Steffen Dettmer
2013-03-28 18:44 ` Michael Schwingen
2011-04-08 20:30 Hasan Rashid
2011-04-10 12:09 ` Mohammed Shafi
2011-04-10 12:14 ` Mohammed Shafi
2011-04-10 14:32 ` Peter Stuge
2011-04-10 15:01 ` Mohammed Shafi
2011-04-10 15:11 ` Peter Stuge
2011-04-10 15:17 ` Mohammed Shafi
2011-04-10 15:34 ` Adrian Chadd
2011-04-10 15:41 ` Mohammed Shafi
2011-04-11 1:28 ` Hasan Rashid
2011-04-11 1:45 ` Peter Stuge
2011-04-11 16:05 ` Mohammed Shafi
2011-04-11 16:10 ` Hasan Rashid
2011-04-11 16:18 ` Mohammed Shafi
2011-04-11 16:20 ` Peter Stuge
2011-04-11 17:54 ` Hasan Rashid
2011-04-12 11:46 ` Mohammed Shafi
2011-04-12 15:04 ` Hasan Rashid
2011-04-12 22:58 ` Adrian Chadd
2011-04-12 16:32 ` Hasan Rashid
2011-04-19 4:21 ` Mohammed Shafi
2011-04-19 15:24 ` Hasan Rashid
2011-04-19 16:12 ` Mohammed Shafi
2012-01-10 16:19 ` Manuel Sáez
2012-01-10 16:36 ` Hasan Rashid
2012-01-10 17:36 ` Adrian Chadd
2012-01-10 18:17 ` Hasan Rashid
2012-01-10 18:36 ` Adrian Chadd
2012-01-10 20:45 ` Hasan Rashid
2012-01-10 21:11 ` Adrian Chadd
2012-01-10 21:23 ` Hasan Rashid
2012-01-10 21:53 ` Adrian Chadd
2012-01-10 21:25 ` Daniel Smith
2012-01-10 21:37 ` Hasan Rashid
2012-01-11 13:48 ` Manuel Sáez
2012-01-11 16:33 ` Adrian Chadd
2012-01-11 17:39 ` Hasan Rashid
2012-01-11 21:04 ` Adrian Chadd
2012-01-10 21:54 ` Adrian Chadd
2012-01-11 12:57 ` Daniel Smith
2012-01-11 16:23 ` Adrian Chadd
2013-03-27 22:10 ` Peter Stuge
2013-03-27 22:34 ` Adrian Chadd
2011-04-11 17:48 ` Hasan Rashid
2011-04-11 1:09 ` Hasan Rashid
2011-04-11 2:19 ` Adrian Chadd
2011-04-11 14:06 ` Hasan Rashid
2011-04-11 16:18 ` Peter Stuge
2011-04-11 14:13 ` Mohammed Shafi
2011-04-11 14:24 ` Hasan Rashid
2011-04-11 14:32 ` Mohammed Shafi
2011-04-11 14:57 ` Hasan Rashid
2011-04-11 16:10 ` Mohammed Shafi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110412060132.GA28991@infinet.ru \
--to=hacker@epn.ru \
--cc=ath9k-devel@lists.ath9k.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.