immortalwrt/target/linux
Liangkuan Yang a49f023eb7
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>
(cherry picked from commit bc7d36ba3a)
2023-02-26 17:55:30 +08:00
..
apm821xx kernel: bump 5.4 to 5.4.230 2023-01-28 19:26:47 +01:00
arc770 target: use wpad-basic-openssl by default 2022-05-25 22:38:44 +08:00
archs38 target: use wpad-basic-openssl by default 2022-05-25 22:38:44 +08:00
armvirt kernel: move some disabled symbols to generic 2021-04-11 16:54:22 +02:00
at91 treewide: make AddDepends/usb-serial selective 2021-06-08 22:50:32 +02:00
ath25 Merge Official Source 2022-09-05 13:20:57 +08:00
ath79 ath79: switch to wpad-openssl 2023-01-29 23:36:40 +08:00
bcm27xx Merge Official Source 2023-02-19 11:33:29 +08:00
bcm47xx target: use wpad-basic-openssl by default 2022-05-25 22:38:44 +08:00
bcm53xx bcm53xx: switch to wpad-openssl 2023-01-29 23:29:41 +08:00
bcm63xx kernel: bump 5.4 to 5.4.230 2023-01-28 19:26:47 +01:00
bcm4908 kernel: Deactivate B53 symbols in generic configuration 2023-01-02 19:17:49 +08:00
gemini kernel: bump 5.4 to 5.4.150 2021-10-02 16:05:34 +02:00
generic kernel: update mtk wed header 2023-02-25 15:08:45 +08:00
imx6 kernel: bump 5.4 to 5.4.231 2023-02-18 19:18:13 +01:00
ipq40xx kernel: bump 5.4 to 5.4.230 2023-01-28 19:26:47 +01:00
ipq806x ipq806x: fix patch offset 2023-02-25 14:25:59 +08:00
kirkwood target: use wpad-basic-openssl by default 2022-05-25 22:38:44 +08:00
lantiq kernel: bump 5.4 to 5.4.230 2023-01-28 19:26:47 +01:00
layerscape Merge Official Source 2023-02-19 11:33:29 +08:00
malta target: use wpad-basic-openssl by default 2022-05-25 22:38:44 +08:00
mediatek mediatek: switch to wpad-openssl 2023-01-29 23:31:38 +08:00
mpc85xx Merge Official Source 2023-02-14 05:34:01 +08:00
mvebu mvebu: switch to wpad-openssl 2023-01-29 23:30:23 +08:00
mxs target: use SPDX license identifiers on scripts 2021-02-10 15:47:23 +01:00
octeon kernel: bump 5.4 to 5.4.211 2022-09-04 15:32:22 +02:00
octeontx Merge Official Source 2022-09-05 13:20:57 +08:00
omap target: use wpad-basic-openssl by default 2022-05-25 22:38:44 +08:00
oxnas Merge Official Source 2022-11-13 13:52:38 +08:00
pistachio kernel: bump 5.4 to 5.4.230 2023-01-28 19:26:47 +01:00
ramips ramips: add support for RAISECOM MSG1500 X.00 2023-02-26 17:55:30 +08:00
realtek Merge Official Source 2023-01-07 16:35:05 +08:00
rockchip rockchip: rk3328: use 1.45v for 1512MHz overclocking 2023-01-29 20:44:57 +08:00
sunxi Merge Official Source 2023-02-19 11:33:29 +08:00
tegra target: use wpad-basic-openssl by default 2022-05-25 22:38:44 +08:00
uml target: use wpad-basic-openssl by default 2022-05-25 22:38:44 +08:00
x86 x86: switch to vendor i40e driver 2023-02-24 14:46:32 +08:00
zynq kernel: move some disabled symbols to generic 2021-04-11 16:54:22 +02:00
Makefile target: use SPDX license identifiers on Makefiles 2021-02-10 15:47:18 +01:00