Skip to content

Commit 344bb7f

Browse files
bfdehhauke
authored andcommitted
mediatek: filogic: add support Netcore NX30V2/N30PRO/POWER30AX/W7/GW3001
Hardware specification: SoC: MediaTek MT7981B Flash: ESMT F50L1G41LB 128MB RAM: ESMT M15T2G16128A DDR3 256MB Ethernet: 3x 1G Button: Reset, WPS MAC addresses LAN: Label MAC (stored in Factory partition offset 0x1fef20) WAN: LAN + 1 WiFi: LAN Official LED layout, from left to right: [power] [internet] [wps] [wifi] [lan3/2/1] [wan] Redefinition for OpenWrt: [power]: used for led-boot, led-failsafe, and led-running [internet]: used for WAN RX/TX indication [wps]: used for led-upgrade [wifi] and [lan3/2/1]: unchanged [wan]: used for WAN link indication Installing OpenWrt: - Setup a tftp server on your PC. Copy xxx-preloader.bin, xxx-bl31-uboot.fip and xxx-initramfs.itb to tftp root directory. - Connect to the router via ssh or telnet, username: useradmin, password is the web login password of the router. - Backup all critical flash partitions with the following commands where x.x.x.x is the IP of your PC. IP=x.x.x.x cd /dev for d in /sys/class/mtd/mtd?; do if [ "$(cat $d/name)" = "BL2" ]; then tftp -l $(basename $d) -r bl2.img -p $IP elif [ "$(cat $d/name)" = "FIP" ]; then tftp -l $(basename $d) -r fip.bin -p $IP elif [ "$(cat $d/name)" = "Factory" ]; then tftp -l $(basename $d) -r factory.bin -p $IP fi done for d in /sys/devices/virtual/ubi/ubi0/ubi0_*; do [ "$(cat $d/name)" != "customer" ] && continue tftp -l $(basename $d) -r customer -p $IP break done - Flash with the following commands: cd /tmp tftp -r xxx-preloader.bin -g x.x.x.x tftp -r xxx-bl31-uboot.fip -g x.x.x.x mtd write xxx-preloader.bin spi0.0 mtd write xxx-bl31-uboot.fip FIP mtd erase ubi - Set a static ip(192.168.1.254) for your PC. And then reboot the router. It will run initramfs image automatically. - After openwrt boots up, perform sysupgrade via web UI. Reverting to the vendor firmware: - Setup a tftp server on your PC with ip address 192.168.1.254. And make sure bl2.img, fip.bin, factory.bin and customer are located in tftp root directory. - Power off the router. - Press and hold WPS key, then power on the router. - Release WPS key, when internet/wifi/wps leds are blinking. - Wait until internet/wifi/wps leds light up, power off the router. - Press and hold reset key, power up the router, release reset key 15s later. - Connect to http://192.168.1.1, now you can upload vendor .bin firmware. Uboot netconsole: Uboot netconsole can be enabled by WPS or reset key. - Setup a linux PC with ip 192.168.1.254. Open a new terminal and execute 'stty -isig -echo cbreak; nc -lup 6666' - Press and hold WPS(or reset) key, then power on the router. - Release key once internet/wifi/wps leds are all on. NOTE: don't hold the key more than 5s after internet/wifi/wps leds on, or it will try to revert to vendor firmware. - 5s later, uboot bootmenu will show on the terminal. Signed-off-by: Zhiwei Cao <[email protected]> Link: openwrt/openwrt#18631 Signed-off-by: Hauke Mehrtens <[email protected]>
1 parent b182f2e commit 344bb7f

File tree

9 files changed

+706
-0
lines changed

9 files changed

+706
-0
lines changed

package/boot/uboot-mediatek/Makefile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,18 @@ define U-Boot/mt7981_konka_komi-a31
398398
DEPENDS:=+trusted-firmware-a-mt7981-spim-nand-ddr3
399399
endef
400400

401+
define U-Boot/mt7981_netis_nx30v2
402+
NAME:=Netis NX30V2
403+
BUILD_SUBTARGET:=filogic
404+
BUILD_DEVICES:=netis_nx30v2
405+
UBOOT_CONFIG:=mt7981_netis_nx30v2
406+
UBOOT_IMAGE:=u-boot.fip
407+
BL2_BOOTDEV:=spim-nand
408+
BL2_SOC:=mt7981
409+
BL2_DDRTYPE:=ddr3
410+
DEPENDS:=+trusted-firmware-a-mt7981-spim-nand-ddr3
411+
endef
412+
401413
define U-Boot/mt7981_netis_nx31
402414
NAME:=netis NX31
403415
BUILD_SUBTARGET:=filogic
@@ -1087,6 +1099,7 @@ UBOOT_TARGETS := \
10871099
mt7981_imou_hx21 \
10881100
mt7981_jcg_q30-pro \
10891101
mt7981_konka_komi-a31 \
1102+
mt7981_netis_nx30v2 \
10901103
mt7981_netis_nx31 \
10911104
mt7981_nokia_ea0326gmp \
10921105
mt7981_openwrt_one-snand \

0 commit comments

Comments
 (0)