openwrt/package
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 base-files: avoid rm error messages in failsafe_wait 2026-03-04 12:54:16 +01:00
boot uboot-fritz4040: add Huawei AP4050DN support 2026-03-07 18:48:57 +01:00
devel gdb: add CPPFLAGS 2026-02-17 22:16:58 +01:00
firmware ipq40xx: add support for Huawei AP4050DN 2026-03-07 18:52:31 +01:00
kernel mac80211: ath9k: rework led allocation 2026-03-06 12:03:10 +01:00
libs libunistring: update to 1.4.2 2026-03-01 17:07:58 +01:00
network ppp: add memmove fortify and remove MRU patch 2026-03-07 00:04:48 +01:00
system apk: bump to 3.0.5 2026-03-04 00:48:12 +01:00
utils ucode: nl80211: add missing survey info attributes and fix DFS CAC time 2026-03-01 18:41:24 +00:00
Makefile build: propagate errors when generating apk indexes 2026-02-13 21:17:21 +01:00