immortalwrt/target/linux
Tianling Shen 767c4681fd
mediatek: add Nokia EA0326GMP support
Hardware specification:
  SoC: MediaTek MT7981B 2x A53
  Flash: 128 MB SPI-NAND
  RAM: 256MB
  Ethernet: 4x 10/100/1000 Mbps
  Switch: MediaTek MT7531AE
  WiFi: MediaTek MT7976C
  Button: Reset, WPS/Mesh
  Power: DC 12V 1A

Gain SSH access:
1. Login into web interface, and download the configuration.
2. Download the configration utilities:
   https://firmware.download.immortalwrt.eu.org/cnsztl/mediatek/filogic/openwrt-mediatek-mt7981-nokia-ea0326gmp-config-utils.tar.gz
     These binaries are extraced from the factory firmware, which are
     dynamically linked with aarch64 musl 1.1.24. To use them, you
     must run them under the same runtime environment, otherwise the
     binaries will not work properly!
3. Upload the configuration and utilities to a suitable environment.
4. Uncompress the utilities, move them to '/bin' and give them executable permisison:
   tar -zxf openwrt-mediatek-mt7981-nokia-ea0326gmp-config-utils.tar.gz
   mv mkconfig seama /bin
   chmod +x /bin/mkconfig
   chmod +x /bin/seama
5. Decrypt and uncompress the configuration:
     Enter fakeroot if you are not login as root.
   mkconfig -a de-enca -m EA0326GMP_3FE79221BAAA -i EA0326GMP_3FE79221BAAA-xxxxxxxx-backup.tar.gz -o backup.tar.gz
   tar -zxf backup.tar.gz
6. Edit 'etc/config/dropbear', set 'enable' to '1'.
7. Edit `etc/passwd`, remove root password: 'root::1:0:99999:7:::'.
8. Repack the configuration:
   tar -zcf backup.tar.gz etc/
   mkconfig -a enca -m EA0326GMP_3FE79221BAAA -i backup.tar.gz -o EA0326GMP_3FE79221BAAA-xxxxxxxx-backup.tar.gz
9. Upload new configuration via web interface, now you can SSH to EA0326GMP.

A minimum configuration which enabled SSH access is also provided to simplify the process:
https://firmware.download.immortalwrt.eu.org/cnsztl/mediatek/filogic/openwrt-mediatek-mt7981-nokia-ea0326gmp-enable-ssh.tar.gz

Flash instructions:
1. SSH to EA0326GMP, backup everything, especially 'Factory' part.
2. Write new BL2:
   mtd write immortalwrt-mediatek-filogic-nokia_ea0326gmp-preloader.bin BL2
3. Write new FIP:
   mtd write immortalwrt-mediatek-filogic-nokia_ea0326gmp-bl31-uboot.fip FIP
4. Set static IP on your PC:
   IP 192.168.1.254/24, GW 192.168.1.1
5. Serve ImmortalWrt initramfs image using TFTP server.
6. Cut off the power and re-engage, wait for TFTP recovery to complete.
7. After OpenWrt has booted, run the following command:
     This is required as there is a bug about detecting rootdisk.
   sed -i 's,ubiblock,,g' /lib/upgrade/platform.sh
8. Perform sysupgrade.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-03-24 21:33:42 +08:00
..
airoha treewide: disable spectre mitigation on unaffected Arm32 targets 2024-03-23 20:00:49 +01:00
apm821xx Merge Official Source 2024-03-24 21:24:08 +08:00
archs38 Merge Official Source 2024-03-22 18:21:12 +08:00
armsr
at91 treewide: disable spectre mitigation on unaffected Arm32 targets 2024-03-23 20:00:49 +01:00
ath79 ath79: disable build for tp archer d50-v1 by default 2024-03-19 14:57:10 +08:00
bcm27xx Merge Official Source 2024-03-24 21:24:08 +08:00
bcm47xx
bcm53xx Merge Official Source 2024-03-22 18:21:12 +08:00
bcm4908 treewide: disable spectre mitigation on unaffected Arm64 targets 2024-03-23 20:00:49 +01:00
bmips Merge Official Source 2024-03-14 21:41:17 +08:00
d1 kernel: bump 6.1 to 6.1.80 2024-03-05 00:23:59 +01:00
gemini
generic Merge Official Source 2024-03-24 21:24:08 +08:00
imx treewide: disable spectre mitigation on unaffected Arm32 targets 2024-03-23 20:00:49 +01:00
ipq40xx Merge Official Source 2024-03-24 21:24:08 +08:00
ipq806x Merge Official Source 2024-02-25 13:24:47 +08:00
ixp4xx
kirkwood Merge Official Source 2024-03-22 18:21:12 +08:00
lantiq Merge Official Source 2024-03-09 13:53:56 +08:00
layerscape treewide: disable spectre mitigation on unaffected Arm32 targets 2024-03-23 20:00:49 +01:00
malta
mediatek mediatek: add Nokia EA0326GMP support 2024-03-24 21:33:42 +08:00
mpc85xx Merge Official Source 2024-03-09 13:53:56 +08:00
mvebu Merge Official Source 2024-03-24 21:24:08 +08:00
mxs mxs: switch default kernel to 6.1 2024-03-14 14:24:16 +01:00
octeon octeon: convert to new LED color/function format where possible 2024-02-07 14:48:41 +01:00
octeontx kernel: bump 5.15 to 5.15.149 2024-03-07 19:30:54 +01:00
omap Merge Official Source 2024-02-14 12:49:57 +08:00
oxnas
pistachio
qoriq
qualcommax Merge Official Source 2024-03-24 21:24:08 +08:00
ramips Merge Official Source 2024-03-24 21:24:08 +08:00
realtek realtek: support common GPIOs on D-Link DGS-1210-16 2024-03-23 18:36:51 +01:00
rockchip rockchip: add Radxa E25 board support 2024-03-23 07:55:43 +01:00
sifiveu
starfive generic: 6.1: backport AXP PMIC support 2024-03-19 13:07:16 +08:00
sunxi Merge Official Source 2024-03-24 21:24:08 +08:00
tegra
uml Merge Official Source 2024-03-24 21:24:08 +08:00
x86 Merge Official Source 2024-03-22 18:21:12 +08:00
zynq
Makefile linux: add dtb makefile target to targets list 2024-02-08 23:04:55 +01:00