ubuntu@ubuntu:~/Desktop/MacNB-iwleeprom-src$ sudo -s root@ubuntu:~/Desktop/MacNB-iwleeprom-src# ./iwleeprom -d 0000:02:00.0 -s -r ./iwleeprom: option requires an argument -- 'r' root@ubuntu:~/Desktop/MacNB-iwleeprom-src# ./iwleeprom -d 0000:02:00.0 -r ./iwleeprom: option requires an argument -- 'r' root@ubuntu:~/Desktop/MacNB-iwleeprom-src# ./iwleeprom -d 0000:02:00.0 -I Using device 0000:02:00.0 [RW] AR928X Wireless Adapter (PCI-E) IO driver: ath9k No file names given nor actions selected! No EEPROM actions will be performed, just write-enable test HW: AR9280 (PCI-E) rev 0002 RF: integrated Checking NVM size... ath9k short eeprom base: 512 size: 3256 root@ubuntu:~/Desktop/MacNB-iwleeprom-src# ./iwleeprom -r ./iwleeprom: option requires an argument -- 'r' root@ubuntu:~/Desktop/MacNB-iwleeprom-src# ./iwleeprom r Supported devices detected: [1] 0000:02:00.0 [RW] AR928X Wireless Adapter (PCI-E) (168c:002a, 103c:3041) Select device [1-1] (or 0 to quit): 1 Using device 0000:02:00.0 [RW] AR928X Wireless Adapter (PCI-E) IO driver: ath9k No file names given nor actions selected! No EEPROM actions will be performed, just write-enable test HW: AR9280 (PCI-E) rev 0002 RF: integrated Checking NVM size... ath9k short eeprom base: 512 size: 3256 root@ubuntu:~/Desktop/MacNB-iwleeprom-src# ./iwleeprom -d 0000:02:00.0 -I Using device 0000:02:00.0 [RW] AR928X Wireless Adapter (PCI-E) IO driver: ath9k No file names given nor actions selected! No EEPROM actions will be performed, just write-enable test HW: AR9280 (PCI-E) rev 0002 RF: integrated Checking NVM size... ath9k short eeprom base: 512 size: 3256 root@ubuntu:~/Desktop/MacNB-iwleeprom-src# ./iwleeprom -d 0000:02:00.0 -s Using device 0000:02:00.0 [RW] AR928X Wireless Adapter (PCI-E) IO driver: ath9k HW: AR9280 (PCI-E) rev 0002 RF: integrated Checking NVM size... ath9k short eeprom base: 512 size: 3256 MAC address : 00:03:7f:8e:2e:70 Reg. domain : 0069 Capabilities: 0003 Bands: 5GHz 2.4GHz HT 2G: HT20 HT40 HT 5G: HT20 HT40 CRC (stored): 4bc9 Calculating EEPROM CRC............................... CRC (eval) : 4bc9 root@ubuntu:~/Desktop/MacNB-iwleeprom-src# echo -ne '\00' | dd of=etsic0x65.bin bs=1 seek=520 conv=notrunc 1+0 records in 1+0 records out 1 byte copied, 5.789e-05 s, 17.3 kB/s root@ubuntu:~/Desktop/MacNB-iwleeprom-src# echo Y|./iwleeprom -d 0000:02:00.0 -i etsic0x65.bin Using device 0000:02:00.0 [RW] AR928X Wireless Adapter (PCI-E) IO driver: ath9k HW: AR9280 (PCI-E) rev 0002 RF: integrated Checking NVM size... ath9k short eeprom base: 512 size: 3256 About to write device EEPROM, press 'Y' if you are sure... Writing data to EEPROM... '.' = match, 'x' = write Dump file byte order: LITTLE ENDIAN 0000 [................................................................] 0080 [................................................................] 0100 [................................................................] 0180 [................................................................] 0200 [....x...........................................................] 0280 [................................................................] 0300 [................................................................] 0380 [................................................................] 0400 [................................................................] 0480 [................................................................] 0500 [................................................................] 0580 [................................................................] 0600 [................................................................] 0680 [................................................................] 0700 [................................................................] 0780 [................................................................] 0800 [................................................................] 0880 [................................................................] 0900 [................................................................] 0980 [................................................................] 0a00 [................................................................] 0a80 [................................................................] 0b00 [................................................................] 0b80 [................................................................] 0c00 [................................................................] 0c80 [................................................................] 0d00 [................................................................] 0d80 [................................................................] 0e00 [................................................................] 0e80 [................................................................] 0f00 [................................................................] 0f80 [................................................................] EEPROM has been written from 'etsic0x65.bin' root@ubuntu:~/Desktop/MacNB-iwleeprom-src# ./iwleeprom -d 0000:02:00.0 -s Using device 0000:02:00.0 [RW] AR928X Wireless Adapter (PCI-E) IO driver: ath9k HW: AR9280 (PCI-E) rev 0002 RF: integrated Checking NVM size... ath9k short eeprom base: 512 size: 3256 MAC address : 00:03:7f:8e:2e:70 Reg. domain : 0000 Capabilities: 0003 Bands: 5GHz 2.4GHz HT 2G: HT20 HT40 HT 5G: HT20 HT40 CRC (stored): 4bc9 Calculating EEPROM CRC............................... CRC (eval) : 4ba0 root@ubuntu:~/Desktop/MacNB-iwleeprom-src# cp etsic0x65.bin etsic0x65crc.bin root@ubuntu:~/Desktop/MacNB-iwleeprom-src# echo -ne '\xa0\x4b' | dd of=etsic0x65crc.bin bs=1 seek=514 conv=notrunc 2+0 records in 2+0 records out 2 bytes copied, 8.7352e-05 s, 22.9 kB/s root@ubuntu:~/Desktop/MacNB-iwleeprom-src# echo Y|./iwleeprom -d 0000:02:00.0 -i etsic0x65crc.bin Using device 0000:02:00.0 [RW] AR928X Wireless Adapter (PCI-E) IO driver: ath9k HW: AR9280 (PCI-E) rev 0002 RF: integrated Checking NVM size... ath9k short eeprom base: 512 size: 3256 About to write device EEPROM, press 'Y' if you are sure... Writing data to EEPROM... '.' = match, 'x' = write Dump file byte order: LITTLE ENDIAN 0000 [................................................................] 0080 [................................................................] 0100 [................................................................] 0180 [................................................................] 0200 [.x..............................................................] 0280 [................................................................] 0300 [................................................................] 0380 [................................................................] 0400 [................................................................] 0480 [................................................................] 0500 [................................................................] 0580 [................................................................] 0600 [................................................................] 0680 [................................................................] 0700 [................................................................] 0780 [................................................................] 0800 [................................................................] 0880 [................................................................] 0900 [................................................................] 0980 [................................................................] 0a00 [................................................................] 0a80 [................................................................] 0b00 [................................................................] 0b80 [................................................................] 0c00 [................................................................] 0c80 [................................................................] 0d00 [................................................................] 0d80 [................................................................] 0e00 [................................................................] 0e80 [................................................................] 0f00 [................................................................] 0f80 [................................................................] EEPROM has been written from 'etsic0x65crc.bin' root@ubuntu:~/Desktop/MacNB-iwleeprom-src# ./iwleeprom -d 0000:02:00.0 -s Using device 0000:02:00.0 [RW] AR928X Wireless Adapter (PCI-E) IO driver: ath9k HW: AR9280 (PCI-E) rev 0002 RF: integrated Checking NVM size... ath9k short eeprom base: 512 size: 3256 MAC address : 00:03:7f:8e:2e:70 Reg. domain : 0000 Capabilities: 0003 Bands: 5GHz 2.4GHz HT 2G: HT20 HT40 HT 5G: HT20 HT40 CRC (stored): 4ba0 Calculating EEPROM CRC............................... CRC (eval) : 4ba0 root@ubuntu:~/Desktop/MacNB-iwleeprom-src# ./iwleeprom -d 0000:02:00.0 -o new.bin Using device 0000:02:00.0 [RW] AR928X Wireless Adapter (PCI-E) IO driver: ath9k HW: AR9280 (PCI-E) rev 0002 RF: integrated Checking NVM size... ath9k short eeprom base: 512 size: 3256 Saving dump with byte order: LITTLE ENDIAN 0000 [xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx] 0080 [xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx] 0100 [xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx] 0180 [xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx] 0200 [xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx] 0280 [xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx] 0300 [xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx] 0380 [xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx] 0400 [xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx] 0480 [xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx] 0500 [xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx] 0580 [xx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xxxxxxxxxxxxxxxxxxxxxxxx] 0d00 [xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx] 0d80 [xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx] 0e00 [xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx] 0e80 [xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx] 0f00 [xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx] 0f80 [xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx] EEPROM has been dumped to 'new.bin' root@ubuntu:~/Desktop/MacNB-iwleeprom-src# md5sum etsic0x65crc.bin new.bin e33e8c491903331064dc172db52e16a3 etsic0x65crc.bin e33e8c491903331064dc172db52e16a3 new.bin root@ubuntu:~/Desktop/MacNB-iwleeprom-src# rmmod ath9k root@ubuntu:~/Desktop/MacNB-iwleeprom-src# modprobe ath9k root@ubuntu:~/Desktop/MacNB-iwleeprom-src# dmesg | grep ath [ 36.868163] ath: phy0: ASPM enabled: 0x42 [ 36.868166] ath: EEPROM regdomain: 0x69 [ 36.868166] ath: EEPROM indicates we should expect a direct regpair map [ 36.868167] ath: Country alpha2 being used: 00 [ 36.868168] ath: Regpair used: 0x69 [ 37.207545] ath9k 0000:02:00.0 wlp2s0: renamed from wlan0 [ 1148.763485] ath9k: ath9k: Driver unloaded [ 1160.893523] ath: phy1: ASPM enabled: 0x42 [ 1160.893524] ath: EEPROM regdomain: 0x69 [ 1160.893525] ath: EEPROM indicates we should expect a direct regpair map [ 1160.893526] ath: Country alpha2 being used: 00 [ 1160.893526] ath: Regpair used: 0x69 [ 1160.903290] ath9k 0000:02:00.0 wlp2s0: renamed from wlan0 [ 9851.938605] ath9k: ath9k: Driver unloaded [ 9863.784743] ath: phy2: ASPM enabled: 0x42 [ 9863.784746] ath: EEPROM regdomain: 0x0 [ 9863.784747] ath: EEPROM indicates default country code should be used [ 9863.784747] ath: doing EEPROM country->regdmn map search [ 9863.784748] ath: country maps to regdmn code: 0x3a [ 9863.784749] ath: Country alpha2 being used: US [ 9863.784750] ath: Regpair used: 0x3a [ 9863.793479] ath9k 0000:02:00.0 wlp2s0: renamed from wlan0 root@ubuntu:~/Desktop/MacNB-iwleeprom-src#