gsra99 / iwleeprom

Automatically exported from code.google.com/p/iwleeprom
1 stars 0 forks source link

eeprom not modified for Atheros AR9380 card #19

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Save eeprom dump
2. Modify dump
3. Flash modified dump back to card

What is the expected output? What do you see instead?

Eeprom content should change. Instelad, nothing happens, also CRC  stays the 
same.
Issue similar to #17, but NVM type is EEPROM.

~/atheros$ sudo ./iwleeprom -D 1 -d 0000:02:00.0 -i mod.rom 
debug level: 1
Using device 0000:02:00.0 [RW] AR9300 Wireless Adapter (PCI-E) 
IO driver: ath9300
Supported ops:  read write parse
address: 58700000
HW: AR9300 (PCI-E) rev 0003
RF: integrated
Trying EEPROM access...
OTP address out of range: 0fff
OTP address out of range: 1001
ath9300_eeprom_check_header 00000000  @0fff r=0
Filling ath9300 EEPROM... DONE
OTP address out of range: 0401
ath9300_eeprom_check_header 00650000  @03ff r=1
AR9300 device NVM type: EEPROM  (data block @03ff)
Found block at 3ff: code=3 ref=5 length=635 major=2 minor=12 (RAW: 0cb22765)
Calculating EEPROM CRC...
CRC (stored): c211
CRC (eval)  : c211
compression : block
ath9300 short eeprom base: 383 (0x017f) size: 641
About to write device EEPROM, press 'Y' if you are sure... Y
Writing data to EEPROM...
  '.' = match, 'x' = write
Dump file byte order: LITTLE ENDIAN
0000 [.......xx.......................................................]
0080 [................................................................]
0100 [................................................................]
0180 [................................................................]
0200 [................................................................]
0280 [................................................................]
0300 [................................................................]
0380 [................................................................]

EEPROM has been written from 'mod.rom'
~/atheros$

What version of the product are you using? On what operating system?

Tried on Ubuntu 14.10 and 9.04

Please provide any additional information below.

Original issue reported on code.google.com by Ivars.St...@gmail.com on 25 Feb 2015 at 11:11

GoogleCodeExporter commented 9 years ago
Card info from lspci -nv (same as in issue # 7
02:00.0 0280: 168c:0030 (rev 01)
    Subsystem: 106b:009a
    Flags: bus master, fast devsel, latency 0, IRQ 11
    Memory at 58700000 (64-bit, non-prefetchable) [size=128K]
    Expansion ROM at 58a00000 [disabled] [size=64K]
    Capabilities: <access denied>

Original comment by Ivars.St...@gmail.com on 25 Feb 2015 at 11:12