openwrtv3/target/linux/ar71xx/files/arch/mips/ath79
Chris Blake 28dd52b079 ar71xx: add mac partition to the MR12/MR16
On the stock Meraki Firmare for the MR12/MR16, a chunk of SPI space
after u-boot-env is used to store the boards Mac address. Sadly as this
was removed on any device already on OpenWRT/LEDE, moving forward a new,
64k partition named "mac" will be used to store the mac address for the
device (which is the minimum size). This allows users to properly set
the correct MAC, without editing the ART partition (which holds the same
MAC for all devices).

The reason the space is taken from kernel instead of rootfs is currently
kernels are only 1.3MB, so that way we can leave the current rootfs
space alone for users who fully utilize the available storage space.

Once this partition is added to a device, you can set your MAC doing the
following:

mtd erase mac
echo -n -e '\x00\x18\x0a\x33\x44\x55' > /dev/mtd5
sync && reboot

Where 00:18:0a:33:44:55 is your MAC address.

This was tested, and confirmed working on both the MR12 and MR16.

Signed-off-by: Chris Blake <chrisrblake93@gmail.com>
2016-10-26 12:37:45 +02:00
..
dev-ap9x-pci.c mac80211: ath9k: enable GPIO buttons 2016-03-05 09:45:03 +00:00
dev-ap9x-pci.h mac80211: ath9k: enable GPIO buttons 2016-03-05 09:45:03 +00:00
dev-dsa.c ar71xx: add v3.18 support 2015-02-15 19:45:29 +00:00
dev-dsa.h ar71xx: merge files-3.2 to files 2012-02-10 08:19:31 +00:00
dev-eth.c ar71xx: disable flow control to the built-in switch on AR934x 2016-08-25 11:54:31 +02:00
dev-eth.h Revert "ar71xx: Allow to set the RXDV, RXD, TXD, TXE delays for QCA955x" 2016-03-23 12:52:17 +00:00
dev-m25p80.c ar71xx: Add ath79_register_m25p80_large to support >16MB SPI chips 2015-12-19 11:32:20 +00:00
dev-m25p80.h ar71xx: Add ath79_register_m25p80_large to support >16MB SPI chips 2015-12-19 11:32:20 +00:00
dev-nfc.c ar71xx: ar934x_nfc: fix memory initialization bug 2014-03-12 12:52:36 +00:00
dev-nfc.h ar71xx: add ath79_nfc_set_ecc_mode helper 2013-09-19 18:43:42 +00:00
Kconfig.openwrt ar71xx: Add support to DomyWifi DW33D 2016-10-25 17:51:08 +02:00
mach-alfa-ap96.c ar71xx: add linux 3.14 support 2014-08-07 12:40:53 +00:00
mach-alfa-ap120c.c ar71xx: cosmetic fix of alfa ap120c/ap96 ordering 2016-03-24 21:09:34 +00:00
mach-alfa-nx.c ar71xx: remove the built-in MTD maps of several boards 2012-03-27 19:38:01 +00:00
mach-all0258n.c ar71xx: remove the built-in MTD map of the ALL0258N 2012-07-03 15:24:01 +00:00
mach-all0315n.c ar71xx: all0315n: fix ethernet according to vendor info 2012-08-29 10:37:54 +00:00
mach-antminer-s1.c ar71xx: Bitmain Antminer S1/S3 set GPIO for USB Power 2015-10-26 09:01:28 +00:00
mach-antminer-s3.c ar71xx: Bitmain Antminer S1/S3 set GPIO for USB Power 2015-10-26 09:01:28 +00:00
mach-antrouter-r1.c V2 ar71xx : Add Support for the Bitmain Antrouter R1 2016-01-01 21:21:13 +00:00
mach-ap83.c
mach-ap96.c
mach-ap113.c
mach-ap132.c ar71xx: add kernel support for Atheros AP132 Reference Board 2013-01-29 19:12:30 +00:00
mach-ap143.c ar71xx: add support for ap143 2015-07-07 08:06:05 +00:00
mach-ap147.c ar71xx: Add support for AP147-010 reference board 2015-07-24 09:09:42 +00:00
mach-ap152.c ar71xx: fix ap152 support 2016-01-10 17:19:34 +00:00
mach-archer-c7.c ar71xx: add proper support for Archer-C7 V2 2016-05-14 21:26:08 +02:00
mach-arduino-yun.c ar71xx: Arduino Yun board 'WLAN RST' button support 2016-03-10 19:11:13 +00:00
mach-aw-nr580.c
mach-bhu-bxu2000n2-a.c ar71xx: add kernel support for BHU Networks BXU2000n-2 A1 board 2013-10-30 06:50:57 +00:00
mach-bsb.c ar71xx: Add support for Black Swift 2015-08-17 06:16:54 +00:00
mach-c55.c ar71xx: Add support for AirTight Networks C-55 2015-12-23 14:43:35 +00:00
mach-c60.c ar71xx: add support for the Airtight C-60 2016-10-15 11:36:50 +02:00
mach-cap324.c ar71xx: Kernel board definition for PowerCloud CAP324 2015-12-19 11:27:19 +00:00
mach-cap4200ag.c ar71xx: add support for the Senao CAP4200AG board 2012-10-27 08:55:38 +00:00
mach-carambola2.c ar71xx: update Carambola2 platform data 2014-08-04 14:46:52 +00:00
mach-cf-e316n-v2.c target: ar71xx: add support for COMFAST CF-E316N v2 board 2015-09-11 16:31:35 +00:00
mach-cpe510.c Revert "ar71xx/cpe510: use second wifi calibration table" 2016-06-16 21:11:24 -07:00
mach-cr3000.c ar71xx: Kernel board definition for PowerCloud CR3000 2015-12-19 11:27:25 +00:00
mach-cr5000.c ar71xx: Kernel board definition for PowerCloud CR5000 2015-12-19 11:27:32 +00:00
mach-dgl-5500-a1.c add D-link DGL-5500 A1 support 2014-11-27 14:27:34 +00:00
mach-dhp-1565-a1.c ar71xx: Added support for D-link DHP-1565 rev. A1 2014-11-19 09:20:47 +00:00
mach-dir-505-a1.c ar71xx: dir-505: fix reset button gpio active_low value 2015-02-09 12:17:00 +00:00
mach-dir-600-a1.c ar71xx: add support for dlink dir-615-e1 2014-06-02 14:43:35 +00:00
mach-dir-615-c1.c ar71xx: fix D-Link DIR-615 rev. C1 WLAN MAC address 2015-01-28 19:19:47 +00:00
mach-dir-615-i1.c ar71xx: add support for D-Link DIR-615 rev. Ix board 2015-07-07 13:48:39 +00:00
mach-dir-825-b1.c ar71xx: dir-825-b1: use ath79_parse_ascii_mac helper 2013-09-20 16:41:32 +00:00
mach-dir-825-c1.c ar71xx: fix WLAN 5 GHz LED init on dir-825-c1 2013-10-20 15:59:04 +00:00
mach-dir-869-a1.c ar71xx: add kernel support for D-Link DIR-869 A1 2016-10-11 22:58:36 +02:00
mach-dlan-hotspot.c ar71xx: add support for the devolo dLAN Hotspot 2015-11-21 21:24:18 +00:00
mach-dlan-pro-500-wp.c ar71xx: add support for the devolo dLAN pro 500 Wireless+ 2015-07-14 07:32:33 +00:00
mach-dlan-pro-1200-ac.c ar71xx: fix AR8337 switch initialization on dLAN pro 1200+ WiFi ac 2016-01-19 10:16:11 +00:00
mach-domywifi-dw33d.c ar71xx: Add support to DomyWifi DW33D 2016-10-25 17:51:08 +02:00
mach-dr344.c ar71xx: Add support for Wallys DR344 2015-12-11 15:04:47 +00:00
mach-dr531.c ar71xx: add support for Wallys DR531 2016-07-13 20:03:10 +02:00
mach-dragino2.c ar71xx: Fix LED definitions for the DRAGINO2 board 2014-10-14 10:33:07 +00:00
mach-eap120.c ar71xx: Add support to TP-Link EAP120 2016-10-18 09:18:55 +02:00
mach-eap300v2.c ar71xx: add kernel support for the EnGenius EAP300 v2 board 2014-07-14 21:30:26 +00:00
mach-eap7660d.c ar71xx: add ALL0305 board alias 2012-08-22 12:33:22 +00:00
mach-el-m150.c ar71xx: Fix the sys LEDs on the EasyLink M150 and mini 2014-11-14 16:58:29 +00:00
mach-el-mini.c ar71xx: Fix the sys LEDs on the EasyLink M150 and mini 2014-11-14 16:58:29 +00:00
mach-epg5000.c Revert "ar71xx: Allow to set the RXDV, RXD, TXD, TXE delays for QCA955x" 2016-03-23 12:52:17 +00:00
mach-esr900.c Revert "ar71xx: Allow to set the RXDV, RXD, TXD, TXE delays for QCA955x" 2016-03-23 12:52:17 +00:00
mach-esr1750.c Revert "ar71xx: Allow to set the RXDV, RXD, TXD, TXE delays for QCA955x" 2016-03-23 12:52:17 +00:00
mach-ew-dorin.c ar71xx: add status led found on ew-dorin boards 2015-05-10 07:47:04 +00:00
mach-f9k1115v2.c Revert "ar71xx: Allow to set the RXDV, RXD, TXD, TXE delays for QCA955x" 2016-03-23 12:52:17 +00:00
mach-gl-ar150.c ar71xx: fix LED names for GL Innovations boards 2016-10-04 11:50:50 +02:00
mach-gl-ar300.c ar71xx: fix LED names for GL Innovations boards 2016-10-04 11:50:50 +02:00
mach-gl-ar300m.c ar71xx: add support for gl-ar300m 2016-07-20 00:21:48 +02:00
mach-gl-domino.c ar71xx: fix LED names for GL Innovations boards 2016-10-04 11:50:50 +02:00
mach-gl-inet.c ar71xx: fix LED names for GL Innovations boards 2016-10-04 11:50:50 +02:00
mach-gl-mifi.c ar71xx: fix LED names for GL Innovations boards 2016-10-04 11:50:50 +02:00
mach-gs-minibox-v1.c ar71xx: Add Gainstrong MiniBox v1.0 support to trunk 2015-10-19 17:55:25 +00:00
mach-gs-oolite.c ar71xx: oolite: the buttons are not active_low 2014-08-01 11:19:34 +00:00
mach-hiwifi-hc6361.c ar71xx: add kernel support for HiWiFi HC6361. 2014-06-02 14:56:24 +00:00
mach-hornet-ub.c Fix (invert/revert) Hornet-UB WPS LED state 2015-03-15 19:25:48 +00:00
mach-ja76pf.c
mach-jwap003.c
mach-jwap230.c ar71xx: add support for jjPlus JWAP230 2016-07-13 20:03:10 +02:00
mach-mc-mac1200r.c ar71xx: Add support for MERCURY MAC1200R 2015-02-09 12:16:51 +00:00
mach-mr12.c ar71xx: add mac partition to the MR12/MR16 2016-10-26 12:37:45 +02:00
mach-mr16.c ar71xx: add mac partition to the MR12/MR16 2016-10-26 12:37:45 +02:00
mach-mr18.c Revert "ar71xx: Allow to set the RXDV, RXD, TXD, TXE delays for QCA955x" 2016-03-23 12:52:17 +00:00
mach-mr600.c ar71xx: Fix 2.4G WiFi LED of the OpenMesh MR600 board 2014-08-18 13:09:14 +00:00
mach-mr900.c ar71xx: Use private version of ath79_setup_qca955x_eth_cfg for MR900 2016-03-23 12:52:09 +00:00
mach-mr1750.c ar71xx: add kernel support for the OpenMesh MR1750v2 2016-05-23 12:19:25 +02:00
mach-mynet-n600.c ar71xx: my net n600: simplify LNA GPIO setup 2014-01-10 09:37:58 +00:00
mach-mynet-n750.c ar71xx: mynet-n750: define LEDs connected to the AR8327 switch 2014-01-21 17:17:42 +00:00
mach-mynet-rext.c ar71xx: fix 100/10mbps ethernet link issues on mynet range extender 2015-06-14 17:41:01 +00:00
mach-mzk-w04nu.c ar71xx: merge files-3.2 to files 2012-02-10 08:19:31 +00:00
mach-mzk-w300nh.c ar71xx: merge files-3.2 to files 2012-02-10 08:19:31 +00:00
mach-nbg460n.c ar71xx: remove __dev{init,exit} annotations from kernel files 2013-02-19 20:52:06 +00:00
mach-nbg6716.c Revert "ar71xx: Allow to set the RXDV, RXD, TXD, TXE delays for QCA955x" 2016-03-23 12:52:17 +00:00
mach-om2p.c ar71xx: add kernel support for the OpenMesh OM2P-HSv3 2016-05-23 12:19:23 +02:00
mach-om5p.c ar71xx: Increase RXD/RDV to 2 on OM5P-AN 2015-04-20 15:01:00 +00:00
mach-om5pac.c ar71xx: add kernel support for the OpenMesh OM5P-AC board 2016-04-09 10:25:47 +00:00
mach-om5pacv2.c ar71xx: fix build error 2016-04-17 22:03:58 +00:00
mach-omy-g1.c ar71xx: Add support for the OMYlink OMY-G1 2016-04-26 11:44:36 +00:00
mach-omy-x1.c ar71xx: Add support for the OMYlink OMY-X1 2016-03-16 09:26:58 +00:00
mach-onion-omega.c ar71xx: add support for Onion Omega 2015-07-24 09:09:49 +00:00
mach-pb42.c
mach-pb92.c treewide: replace nbd@openwrt.org with nbd@nbd.name 2016-06-07 08:58:42 +02:00
mach-qihoo-c301.c ar71xx: qihoo: define flash variable as static 2015-02-07 19:59:02 +00:00
mach-r6100.c Netgear R6100 support 2014-11-26 08:28:22 +00:00
mach-rb4xx.c ar71xx: fix build error 2016-04-17 22:03:58 +00:00
mach-rb91x.c ar71xx: rb91x: fix ethernet packet loss issues 2014-04-13 20:41:52 +00:00
mach-rb95x.c ar71xx: rb95x: use correct SPI flash address 2014-03-12 12:52:39 +00:00
mach-rb750.c ar71xx: Routerboard 751 Mac Address Offset Fix 2013-02-08 09:34:53 +00:00
mach-rb922.c Revert "ar71xx: Allow to set the RXDV, RXD, TXD, TXE delays for QCA955x" 2016-03-23 12:52:17 +00:00
mach-rb2011.c ar71xx: rb2011: apply patch to file 2015-02-07 21:10:51 +00:00
mach-rbsxtlite.c ar71xx: Add support for MikroTik RouterBOARD SXT Lite 2014-07-01 13:38:30 +00:00
mach-rw2458n.c ar71xx: rw2458n - Use eeprom (art) from wifi card 2013-03-15 14:35:50 +00:00
mach-smart-300.c add support for the NC-LINK SMART-300 2014-08-11 11:44:51 +00:00
mach-som9331.c ar71xx: add support for OpenEmbed SOM9331 2016-06-07 11:21:55 +02:00
mach-tellstick-znet-lite.c ar71xx: add support for the Telldus TellStick ZNet Lite 2016-03-10 19:07:26 +00:00
mach-tew-632brp.c ar71xx: TEW632BRP has buttons 'active low', fix board config 2013-07-28 10:23:22 +00:00
mach-tew-673gru.c ar71xx: tew-673gru: use ath79_parse_ascii_mac helper 2013-09-20 16:41:34 +00:00
mach-tew-712br.c ar71xx: tew-712br: use ath79_parse_ascii_mac helper 2013-09-20 16:41:36 +00:00
mach-tew-732br.c ar71xx: add kernel support for the TEW-732BR board 2013-09-23 09:49:01 +00:00
mach-tew-823dru.c Revert "ar71xx: Allow to set the RXDV, RXD, TXD, TXE delays for QCA955x" 2016-03-23 12:52:17 +00:00
mach-tl-mr3x20.c ar71xx: use gpio_request_one instead of ath79_set_usb_power_gpio 2012-11-05 13:23:27 +00:00
mach-tl-mr11u.c ar71xx: improve kernel support for the TL-MR3040 v2 2013-09-25 18:42:10 +00:00
mach-tl-mr13u.c ar71xx: Fix LED polarity for the TP-LINK TL-MR13U. 2015-03-10 13:26:50 +00:00
mach-tl-mr3020.c ar71xx: disable PHY_SWAP and PHY_ADDR_SWAP bits on TL-WR703N/MR3020/MR3040/MR11U boards 2013-01-07 14:30:37 +00:00
mach-tl-wa701nd-v2.c ar71xx: add support for TL-WA701ND v2 2015-01-20 15:48:07 +00:00
mach-tl-wa801nd-v3.c ar71xx: Added support for TL-WA801NDv3 2016-02-12 08:30:28 +00:00
mach-tl-wa830re-v2.c ar71xx: added support for TL-WA830RE V2 2014-07-13 07:12:22 +00:00
mach-tl-wa901nd-v2.c
mach-tl-wa901nd-v4.c ar71xx: add TP-Link TL-WA901ND-v4 support 2016-04-09 10:26:46 +00:00
mach-tl-wa901nd.c ar71xx: fix tl-wa901nd buttons code 2013-08-05 09:09:39 +00:00
mach-tl-wa7210n-v2.c ar71xx: TL-WA7210n v2 support 2015-02-24 12:00:50 +00:00
mach-tl-wax50re.c ar71xx: add support for TP-LINK TL-WA860RE v1 2014-07-13 10:03:41 +00:00
mach-tl-wdr3320-v2.c ar71xx: add TP-LINK TL-WDR3320 v2 support 2015-09-14 20:12:16 +00:00
mach-tl-wdr3500.c ar71xx: fix ethernet LEDs on the TL-WDR3500 2013-03-25 06:40:03 +00:00
mach-tl-wdr4300.c ar71xx: fix TP-LINK TL-WDR3600/4300 RFKILL switch positions 2015-03-15 19:39:47 +00:00
mach-tl-wdr6500-v2.c ar71xx: register only the built-in switch MDIO bus, hook up eth0 to it, should hopefully fix regression reported in #21520 2016-02-07 21:00:11 +00:00
mach-tl-wr703n.c ar71xx: fix typo in tl-wr710n mac setup (fixes #16469) 2014-05-24 08:01:33 +00:00
mach-tl-wr720n-v3.c ar71xx: add support for TL-WR720N-v4. 2015-06-18 18:21:23 +00:00
mach-tl-wr741nd-v4.c ar71xx: add support for WIFI button on tp-link tl-mr3220v2 2013-06-04 13:25:54 +00:00
mach-tl-wr741nd.c
mach-tl-wr810n.c ar71xx: add TP-Link TL-WR810N support 2016-05-10 10:43:12 +02:00
mach-tl-wr841n-v8.c ar71xx: add support for the TP-LINK TL-WR941ND v5 2015-02-04 06:10:20 +00:00
mach-tl-wr841n-v9.c ar71xx: Fix TL-WR841N v11 LEDs, use separate machine 2016-05-31 17:36:51 +02:00
mach-tl-wr841n.c
mach-tl-wr941nd-v6.c ar71xx: add support for TP-LINK TL-WR941ND v6 (international version) 2015-11-08 20:39:18 +00:00
mach-tl-wr941nd.c
mach-tl-wr1041n-v2.c generic: ar8216: rename cpuport_cfg to port0_cfg in ar8327_platform_data 2012-12-22 12:12:35 +00:00
mach-tl-wr1043nd-v2.c Revert "ar71xx: Allow to set the RXDV, RXD, TXD, TXE delays for QCA955x" 2016-03-23 12:52:17 +00:00
mach-tl-wr1043nd.c ar71xx: init switch hw_reset on the TL-WR1043ND board 2012-08-02 09:54:28 +00:00
mach-tl-wr2543n.c ar71xx: fix comment style in mach-tl-wr2543n.c 2012-08-22 12:42:59 +00:00
mach-tube2h.c ar71xx: Ext LNA patch for TUBE2H and HORNET-UB targets 2015-03-12 10:06:53 +00:00
mach-ubnt-unifiac.c ar71xx: Add support for Ubiquiti UniFi AP AC PRO 2016-05-12 03:29:36 +02:00
mach-ubnt-xm.c ar71xx: mach-ubnt-xm.c convert patches to mach file 2016-06-13 22:51:43 +02:00
mach-ubnt.c
mach-weio.c ar71xx: Add WeIO Board Support 2015-09-24 09:08:47 +00:00
mach-whr-hp-g300n.c
mach-wlae-ag300n.c ar71xx: Buffalo WLAE-AG300N initial support 2012-08-01 12:24:52 +00:00
mach-wlr8100.c Revert "ar71xx: Allow to set the RXDV, RXD, TXD, TXE delays for QCA955x" 2016-03-23 12:52:17 +00:00
mach-wndap360.c ar71xx: WNDAP360 adding wifi LED support 2014-06-02 15:02:54 +00:00
mach-wndr3700.c ar71xx: use netgear prefix for WNDR3700 LED names 2013-09-21 15:55:50 +00:00
mach-wndr4300.c ar71xx: split wndr4300 and wndr3700v4 into 2 seperate mips machines 2014-07-21 18:41:52 +00:00
mach-wnr2000-v3.c ar71xx: WPN824N: enable buttons 2016-04-01 07:12:07 +00:00
mach-wnr2000-v4.c ar71xx: do general formatting on wnr2000-v4 2015-05-08 12:24:30 +00:00
mach-wnr2000.c ar71xx: use netgear prefix for WNR2000 LED names 2013-09-21 15:55:51 +00:00
mach-wnr2200.c ar71xx: WNR2200: enable control of all LEDs and buttons 2016-04-01 07:11:34 +00:00
mach-wp543.c ar71xx: wp543: set active_low flag for the buttons 2014-01-26 14:55:32 +00:00
mach-wpe72.c ar71xx: compex wpe72 add space to include statement 2015-07-09 07:04:14 +00:00
mach-wpj342.c ar71xx: add support for Compex WPJ342 2016-04-09 10:26:41 +00:00
mach-wpj344.c ar71xx: fix leds and gpio on wpj344 2015-04-29 20:04:46 +00:00
mach-wpj531.c ar71xx: compex wpj531 register usb support 2015-07-09 07:03:54 +00:00
mach-wpj558.c Revert "ar71xx: Allow to set the RXDV, RXD, TXD, TXE delays for QCA955x" 2016-03-23 12:52:17 +00:00
mach-wrt160nl.c ar71xx: rename wrt160nl's trx partition parser 2015-03-11 15:56:15 +00:00
mach-wrt400n.c
mach-wrtnode2q.c ar71xx: add WRTnode2Q support 2016-06-06 14:58:11 +02:00
mach-wzr-450hp2.c Revert "ar71xx: Allow to set the RXDV, RXD, TXD, TXE delays for QCA955x" 2016-03-23 12:52:17 +00:00
mach-wzr-hp-ag300h.c treewide: replace nbd@openwrt.org with nbd@nbd.name 2016-06-07 08:58:42 +02:00
mach-wzr-hp-g300nh.c ar71xx: use uimage split for WZR-HP-G300NH 2013-07-14 14:05:23 +00:00
mach-wzr-hp-g300nh2.c treewide: replace nbd@openwrt.org with nbd@nbd.name 2016-06-07 08:58:42 +02:00
mach-wzr-hp-g450h.c treewide: replace nbd@openwrt.org with nbd@nbd.name 2016-06-07 08:58:42 +02:00
mach-z1.c ar71xx: add support for Cisco Meraki Z1 Cloud Managed Teleworker Gateway 2016-09-27 17:50:22 +02:00
mach-zbt-we1526.c ar71xx: add support for Zbtlink ZBT-WE1526 2016-08-18 09:49:18 +02:00
mach-zcn-1523h.c ar71xx: don't use the unknown LED on the ZCN-1523-5 board 2012-11-04 22:08:54 +00:00
machtypes.h ar71xx: Add support to DomyWifi DW33D 2016-10-25 17:51:08 +02:00
Makefile ar71xx: Add support to DomyWifi DW33D 2016-10-25 17:51:08 +02:00
nvram.c ar71xx: allow ath79_nvram_parse_mac_addr parsing mac with quotes 2014-07-13 19:43:54 +00:00
nvram.h ar71xx: merge files-3.2 to files 2012-02-10 08:19:31 +00:00
pci-ath9k-fixup.c ar71xx: allow pci calibration fixup to work with ar9344 2015-07-07 13:46:44 +00:00
pci-ath9k-fixup.h ar71xx: merge files-3.2 to files 2012-02-10 08:19:31 +00:00
routerboot.c ar71xx: routerboot: export extended wlan data via sysfs 2015-04-07 20:03:43 +00:00
routerboot.h ar71xx: routerboot: add support for extended radio data 2015-04-07 20:03:35 +00:00