I have worked on this project for a long time.
This project is based on Leitec's openwrt for MI424WR-REVI.
This project is for ZTE F420/F460/F620/F660 V3.0 or HQW HGG420N with a Marvell 88f6560 SoC.
voice chip/port(impossible to work)
G/EPON port(impossible to work)
four ETH ports
(for F420/F620 v3, they don't have USB or WLAN chip)
I'm using it as a NAS server.
You must compile it by yourself, no binaries are offered.
Project link: https://github.com/msdos03/openwrt-avanta
To boot openwrt, you need to flash the uboot image in there.
For F420/F620/F460/F660 v3: https://github.com/msdos03/avanta-uboot-f660/releases
For HQW HGG420N: https://github.com/msdos03/avanta-uboot-hgg420n/releases
Follow these steps to flash uboot for them
- Prepare a UART to USB cable and log into the linux console of your box. Make sure you can do this, or you can only try other methods.
- Use tftp or usb disk to put the uboot image to your box.
- Use "dd if='path to uboot image' of=/dev/mtdblock0" to flash uboot image.
- Prepare a UART to USB cable and enter uboot console. Make sure you can enter uboot console, or you can only try other methods.
- set your PC ip address to 192.168.1.100, and set router address to 192.168.1.1. Then set up a tftp server, put the uboot image in the server directory.
- Connect the box to your PC with network cable. Use "tftp 'uboot image file name'" to download it to ram. Use "nand erase" to erase the whole flash and use "nand write 0x2000000 0x0 0x100000" to write uboot image to the head of flash.
This method can be used when your box is bricked.
- You need a linux system(I use ubuntu 20.04). It can be a virtual machine. Old versions are not suggested, they may not work with this method.
- connect your USB to UART cable to your linux system.
- Make sure you are root user.
- Install u-boot-tools software package(we need kwboot in it)
- Change to the directory of uboot image, and run "kwboot -t -p -B115200 /dev/ttyUSB0 -b 'uboot file name'". Then, power on your box and wait until uboot starts. Remember to enter uboot console.
- Follow step 2,3 in method 2 to flash uboot to nand.
Now you have the cuatom uboot on your box.
You should backup your whole NAND before flashing openwrt. You can plug a usb disk and use cat command to have a backup.
Q: How to flash openwrt?
A: You need to compile openwrt yourself and get the factory firmware.
1, Put it into the tftp server and download it to RAM just like before.
2, Use 'nand erase 0x100000' to erase the stock firmware(I believe you have erased it when you are flashing uboot)
3, Use 'nand write 0x2000000 0x100000 0xNNNNN' (replace NNNNN with the openwrt factory firmware size)
4, Reboot and enjoy!