openwrt/target/linux/ramips/image
Mikhail Zhilkin a6b0d08060
ramips: get MAC addr from the encrypted partition (WG4хх223)
This commit resolves #10062. Adds decryption of the Arcadyan WG4xx223
configuration partition (board_data)to get base MAC address from it.
As a result, after this change the hack with saving MAC addressees to
u-boot-env before installation of OpenWrt is no longer necessary.

This is necessary for the following devices:
- Beeline Smartbox Flash (Arcadyan WG443223)
- MTS WG430223 (Arcadyan WG430223)

Example:
+----------------+-------------------+------------------------+
|                |    MTS WG430223   | Beeline Smartbox Flash |
+----------------+-------------------+------------------------+
| base mac (mtd) | A4:xx:xx:51:xx:F4 | 30:xx:xx:51:xx:06      |
| label          | A4:xx:xx:51:xx:F4 | 30:xx:xx:51:xx:09      |
| LAN            | A4:xx:xx:51:xx:F6 | 30:xx:xx:51:xx:09      |
| WAN            | A4:xx:xx:51:xx:F4 | 30:xx:xx:51:xx:06      |
| WLAN_2g        | A4:xx:xx:51:xx:F5 | 30:xx:xx:51:xx:07      |
| WLAN_5g        | A6:xx:xx:21:xx:F5 | 32:xx:xx:41:xx:07      |
+----------------+-------------------+------------------------+

Collected statistic shows that the 2-4th bits of the 7th byte of the
WLAN_5g MAC are the constant (see #10062 for more details):
- Beeline Smartbox Flash - 100
- MTS WG430223 - 010

Signed-off-by: Mikhail Zhilkin <csharper2005@gmail.com>
2022-08-19 14:41:18 +02:00
..
lzma-loader ramips: lzma-loader: make FLASH_START configurable 2020-09-03 14:15:30 +02:00
common-sercomm.mk ramips: add support for Beeline SmartBox GIGA 2022-07-03 20:25:38 +02:00
common-tp-link.mk treewide: call check-size before append-metadata 2021-07-10 19:40:10 +02:00
Makefile ramips: add support for Beeline SmartBox GIGA 2022-07-03 20:25:38 +02:00
mt76x8.mk ramips: Add Xiaomi Mi Router 4A 100M International 2022-07-03 22:14:05 +02:00
mt7620.mk ramips: add support for Netcore NW5212 2022-08-06 19:58:46 +02:00
mt7621.mk ramips: get MAC addr from the encrypted partition (WG4хх223) 2022-08-19 14:41:18 +02:00
rt288x.mk ramips: tidy up image subtarget Makefiles 2020-05-08 18:58:39 +02:00
rt305x.mk ramips: fix booting on ZyXEL NBG-419N v2 2022-06-20 11:05:41 +02:00
rt3883.mk ramips: provide default BLOCKSIZE for Device/seama 2021-08-30 00:37:47 +02:00