openwrtv4/target/linux/ar71xx/image
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
..
lzma-loader ar71xx/lzma-loader: fix O32 ABI conformance 2016-01-17 15:29:03 +00:00
generic.mk ar71xx: add mac partition to the MR12/MR16 2016-10-26 12:37:45 +02:00
legacy-devices.mk ar71xx: Move MR12 & MR16 from legacy to generic 2016-10-26 12:37:44 +02:00
legacy.mk ar71xx: Move MR12 & MR16 from legacy to generic 2016-10-26 12:37:44 +02:00
Makefile ar71xx: add relocation loader 2016-10-11 20:39:16 +02:00
nand.mk switch to the new usbport LED trigger 2016-10-19 12:09:45 +02:00
tp-link.mk switch to the new usbport LED trigger 2016-10-19 12:09:45 +02:00
ubinize-nbg6716.ini ar71xx: nbg6716: Enable procd nand sysupgrage 2014-06-26 11:43:38 +00:00
ubinize-wndr4300.ini ar71xx: remove old jffs2 marker from image generation on nand targets 2014-06-24 18:14:18 +00:00
ubnt.mk image: remove padding parameter from append-kernel/append-rootfs 2016-09-13 19:36:41 +02:00