openwrt/target/linux
Liangkuan Yang bc7d36ba3a ramips: add support for RAISECOM MSG1500 X.00
RAISECOM MSG1500 X.00 is a 2.4/5 GHz band 11ac (Wi-Fi 5) router.
Apart from the general model, there are two ISP customized models:
China Mobile and China Telecom.

Specifications:

- SoC: Mediatek MT7621AT
- RAM: 256MiB DDR3
- Flash: 128MiB NAND
- Ethernet: 5 * 10/100/1000Mbps: 4 * LAN + 1 * WAN
  - Switch: MediaTek MT7530 (SoC)
- WLAN: 1 * MT7615DN Dual-Band 2.4GHz 2T2R (400Mbps) 5GHz 2T2R (867Mbps)
- USB: 1 * USB 2.0 port
- Button: 1 * RESET button, 1 * WPS button, 1 * WIFI button
- LED: blue color: POWER, WAN, WPS, 2.4G, 5G, LAN1, LAN2, LAN3, LAN4, USB
- UART: 1 * serial port header (4-pin)
- Power: DC 12V, 1A
  - Switch: 1 * POWER switch

MAC addresses as verified by vendor firmware:

use   address             source
LAN   C8:XX:XX:3A:XX:E7   Config   "protest_lan_mac"  ascii  (label)
WAN   C8:XX:XX:3A:XX:EA   Config   "protest_wan_mac"  ascii
5G    C8:XX:XX:3A:XX:E8   Factory  "0x4"              hex
2.4G  CA:XX:XX:4A:XX:E8   [not on flash]

The increment of the 4th byte for the 2.4g address appears to vary.
Reported cases:

       5g                 2.4g         increment
 C8:XX:XX:90:XX:C3  CA:XX:XX:C0:XX:C3  0x30
 C8:XX:XX:3A:XX:08  CA:XX:XX:4A:XX:08  0x10
 C8:XX:XX:3A:XX:E8  CA:XX:XX:4A:XX:E8  0x10

Since increment is inconsistent and there is no obvious pattern
in swapping bytes, and the 2.4g address has local bit set anyway,
it seems safer to use the LAN address with flipped byte here in
order to prevent collisions between OpenWrt devices and OEM devices
for this interface. This way we at least use an address as base
that is definitely owned by the device at hand.

Notes:

1. The vendor firmware allows you to connect to the router by telnet.
   (known version 1.0.0 can open telnet.)
   There is no official binary firmware available.
   Backup the important partitions data:
   "Bootloader", "Config", "Factory", and "firmware".
   Note that with the vendor firmware the memory is detected only 128MiB
   and the last 512KiB in NAND flash is not used.

2. The POWER LED is default on after press POWER switch.
   The WAN and LAN1 - 4 LEDs are wired to ethernet switch.
   The WPS LED is controlled by MT7615DN's GPIO.
   Currently there is no proper way to configure it.

3. At the time of adding support the wireless config needs to be set up
   by editing the wireless config file:

 * Setting the country code is mandatory, otherwise the router loses
   connectivity at the next reboot. This is mandatory and can be done
   from luci. After setting the country code the router boots correctly.
   A reset with the reset button will fix the issue and the user has to
   reconfigure.

 * This is minor since the 5g interface does not come up online although
   it is not set as disabled. 2 options here:

   1- Either run the "wifi" command. Can be added from LuCI in system -
      startup - local startup and just add wifi above "exit 0".

   2- Or add the serialize option in the wireless config file as shown
      below. This one would work and bring both interfaces automatically
      at every boot:

      config wifi-device 'radio0'
          option serialize '1'

      config wifi-device 'radio1'
          option serialize '1'

Flash instructions using initramfs image:

1. Press POWER switch to power down if the router is running.

2. Connect PC to one of LAN ports, and set
   static IP address to "10.10.10.2", netmask to "255.255.255.0",
   and gateway to "10.10.10.1" manually on the PC.

3. Push and hold the WIFI button, and then power up the router.
   After about 10s (or you can call the recovery page, see "4" below)
   you can release the WIFI button.
   There is no clear indication when the router
   is entering or has entered into "RAISECOM Router Recovery Mode".

4. Call the recovery page for the router at "http://10.10.10.1".
   Keep an eye on the "WARNING!! tip" of the recovery page.
   Click "Choose File" to select initramfs image, then click "Upload".

5. If image is uploaded successfully, you will see the page display
   "Device is upgrading the firmware... %".
   Keep an eye on the "WARNING!! tip" of the recovery page.
   When the page display "Upgrade Successfully",
   you can set IP address as "automatically obtain".

6. After the rebooting (PC should automatically obtain an IP address),
   open the SSH connection, then download the sysupgrade image
   to the router and perform sysupgrade with it.

Flash back to vendor firmware:

 See "Flash instructions 1 - 5" above.
 The only difference is that in step 4
 you should select the vendor firmware which you backup.

Signed-off-by: Liangkuan Yang <ylk951207@gmail.com>
2022-01-08 00:49:59 +01:00
..
apm821xx kernel: bump 5.10 to 5.10.90 2022-01-07 22:30:40 +01:00
arc770 kernel: move two symbols to the generic kconfigs 2021-08-29 17:07:19 +02:00
archs38 kernel: 5.10: consolidate mac80211 crypto options 2021-12-17 16:16:34 +01:00
armvirt kernel: 5.10: consolidate mac80211 crypto options 2021-12-17 16:16:34 +01:00
at91 kernel: filter out both Clang and LLD versions 2021-12-17 16:16:34 +01:00
ath25 ath25: add kernel 5.10 support 2021-12-27 16:00:21 +00:00
ath79 ath79: add usb-phy-analog to reset list in qca953x.dtsi 2021-12-29 22:55:16 +01:00
bcm27xx kernel: bump 5.10 to 5.10.90 2022-01-07 22:30:40 +01:00
bcm47xx bcm47xx: switch to kernel 5.10 2021-11-08 15:56:39 +01:00
bcm53xx kernel: 5.10: consolidate mac80211 crypto options 2021-12-17 16:16:34 +01:00
bcm63xx kernel: filter out both Clang and LLD versions 2021-12-17 16:16:34 +01:00
bcm4908 bcm4908: include ATF in bootfs images 2021-12-24 23:07:39 +01:00
bmips kernel: 5.10: consolidate mac80211 crypto options 2021-12-17 16:16:34 +01:00
gemini kernel: 5.10: consolidate mac80211 crypto options 2021-12-17 16:16:34 +01:00
generic kernel: bump 5.10 to 5.10.90 2022-01-07 22:30:40 +01:00
imx kernel: 5.10: consolidate mac80211 crypto options 2021-12-17 16:16:34 +01:00
ipq40xx kernel: bump 5.4 to 5.4.169 2022-01-03 01:00:03 +01:00
ipq806x ipq806x: ASRock g10: fix bogus read errors 2022-01-02 20:41:50 +01:00
kirkwood kernel: bump 5.10 to 5.10.90 2022-01-07 22:30:40 +01:00
lantiq kernel: 5.10: consolidate mac80211 crypto options 2021-12-17 16:16:34 +01:00
layerscape kernel: bump 5.4 to 5.4.169 2022-01-03 01:00:03 +01:00
malta kernel: 5.10: consolidate mac80211 crypto options 2021-12-17 16:16:34 +01:00
mediatek mediatek: Clause-45 MDIO patch accepted upstream 2022-01-05 14:33:56 +00:00
mpc85xx kernel: bump 5.10 to 5.10.88 2021-12-27 16:00:21 +00:00
mvebu mvebu: puzzle: wan LED and fix default network 2021-12-23 20:17:47 +00:00
mxs kernel: 5.10: consolidate mac80211 crypto options 2021-12-17 16:16:34 +01:00
octeon kernel: 5.10: consolidate mac80211 crypto options 2021-12-17 16:16:34 +01:00
octeontx kernel: 5.10: consolidate mac80211 crypto options 2021-12-17 16:16:34 +01:00
omap kernel: 5.10: consolidate mac80211 crypto options 2021-12-17 16:16:34 +01:00
oxnas kernel: bump 5.10 to 5.10.85 2021-12-17 15:10:22 +01:00
pistachio kernel: 5.10: consolidate mac80211 crypto options 2021-12-17 16:16:34 +01:00
qoriq qoriq: Expand generic subtarget description 2022-01-05 10:54:59 +02:00
ramips ramips: add support for RAISECOM MSG1500 X.00 2022-01-08 00:49:59 +01:00
realtek kernel: bump 5.4 to 5.4.169 2022-01-03 01:00:03 +01:00
rockchip rockchip: remove Kernel 5.4 2021-12-27 03:13:36 +01:00
sunxi kernel: bump 5.10 to 5.10.89 2022-01-03 01:00:03 +01:00
tegra kernel: 5.10: consolidate mac80211 crypto options 2021-12-17 16:16:34 +01:00
uml uml: drop Kernel 5.4 2022-01-04 13:06:03 +01:00
x86 x86: add/improve support for Sophos SG/XG products 2021-12-29 22:55:16 +01:00
zynq kernel: 5.10: consolidate mac80211 crypto options 2021-12-17 16:16:34 +01:00
Makefile target: use SPDX license identifiers on Makefiles 2021-02-10 15:47:18 +01:00