openwrt/target/linux/ipq40xx
Marco von Rosenberg cd1b70f6f9
Some checks are pending
Build Kernel / Build all affected Kernels (push) Waiting to run
Build all core packages / Build all core packages for selected target (push) Waiting to run
ipq40xx: add support for Huawei AP4050DN
Hardware
========
SoC: Qualcomm IPQ4018
ETH: Qualcomm QCA8075 (2 x RJ-45)
WDG: OnSemi SCT706
RAM: Micron MT41K128M16JT-125 (256MB)
NOR: Infineon S25FL512S (64MB)

Installation
============

1. Create a ramboot-able image with the command

   { dd if=/dev/zero bs=32 count=1 2>/dev/null; \
     cat openwrt-ipq40xx-generic-huawei_ap4050dn-initramfs-uImage.itb; \
   } > ramboot.bin`

2. Start a TFTP server in the folder with the ramboot.bin.

3. Plug in a USB-RJ45 serial adapter to the CONSOLE port of the device
   and start a serial console session with
   9600 baud, no parity, 1 stop bit.

4. Plug in either 12V power or PoE to the device.

5. On the prompt `Press f or F  to stop Auto-Boot in 3 seconds`,
   press `f` to enter the Huawei U-Boot command line

6. Enter a new password for the u-boot command line

7. In the command line, run these commands to ramboot OpenWrt:

      setenv serverip <IPv4 address of TFTP server>
      setenv ipaddr <IPv4 address for this AP>
      setenv rambootfile ramboot.bin
      run ramboot

8. In OpenWrt, set up the network and then `scp` the files
   `u-boot-huawei_ap4050dn/uImage` and
   `openwrt-ipq40xx-generic-huawei_ap4050dn-squashfs-sysupgrade.bin`
   into `/tmp/`

9. To backup the original firmware, run the following:

      cat /dev/mtd12 /dev/mtd13 > huawei_ap4050dn_fw_backup.bin.bin

10. Run the following commands to flash u-boot and OpenWrt to the device:

      mtd erase uboot
      mtd write /tmp/uImage uboot
      sysupgrade -n /tmp/openwrt-ipq40xx-generic-huawei_ap4050dn-squashfs-sysupgrade.bin

11. The device should now boot OpenWrt! (sometimes the boot process takes a bit
    longer due to the watchdog resetting the device before the watchdog driver runs)

Signed-off-by: Marco von Rosenberg <marcovr@selfnet.de>
2026-03-07 18:52:31 +01:00
..
base-files ipq40xx: add support for Huawei AP4050DN 2026-03-07 18:52:31 +01:00
chromium ipq40xx: chromium: Support Chromium "crossystem" GPIO tooling 2025-01-10 11:50:44 +01:00
dts ipq40xx: add support for Huawei AP4050DN 2026-03-07 18:52:31 +01:00
generic ipq40xx: refresh kernel symbol configs 2025-07-20 15:33:02 +02:00
image ipq40xx: add support for Huawei AP4050DN 2026-03-07 18:52:31 +01:00
mikrotik ipq40xx: mikrotik: kernel: pet watchdog during kernel uncompress 2025-10-18 16:41:53 +02:00
patches-6.12 kernel: refresh patches 2026-03-06 11:33:05 +01:00
config-6.12 ipq40xx: add support for Huawei AP4050DN 2026-03-07 18:52:31 +01:00
Makefile ipq40xx: switch to kernel 6.12 2025-08-17 11:12:25 +02:00