aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ipq40xx/image/Makefile
diff options
context:
space:
mode:
authorStefan Schake <stefan.schake@devolo.de>2020-10-02 14:32:55 +0200
committerPetr Štetiar <ynezz@true.cz>2020-12-22 20:55:40 +0100
commitd3c88811942a9dc9bbb01ca0443ae9cd790d1988 (patch)
tree26c2065707446480d9a664591452ea1bf3269e05 /target/linux/ipq40xx/image/Makefile
parentceb612e463fc0dc6fbd7be66dc1a244544213c24 (diff)
downloadupstream-d3c88811942a9dc9bbb01ca0443ae9cd790d1988.tar.gz
upstream-d3c88811942a9dc9bbb01ca0443ae9cd790d1988.tar.bz2
upstream-d3c88811942a9dc9bbb01ca0443ae9cd790d1988.zip
ipq40xx: add support for devolo Magic 2 WiFi next
SOC: IPQ4018 / QCA Dakota CPU: Quad-Core ARMv7 Processor rev 5 (v71) Cortex-A7 DRAM: 256 MiB NOR: 32 MiB ETH: Qualcomm Atheros QCA8075 (2 ports) PLC: MaxLinear G.hn 88LX5152 WLAN1: Qualcomm Atheros QCA4018 2.4GHz 802.11bgn 2:2x2 WLAN2: Qualcomm Atheros QCA4018 5GHz 802.11a/n/ac 2:2x2 INPUT: RESET, WiFi, PLC Button LEDS: red/white home, white WiFi To modify a retail device to run OpenWRT firmware: 1) Setup a TFTP server on IP address 192.168.0.100 and copy the OpenWRT initramfs (initramfs-fit-uImage.itb) to the TFTP root as 'uploadfile'. 2) Power on the device while pressing the recessed reset button next to the Ethernet ports. This causes the bootloader to retrieve and start the initramfs. 3) Once the initramfs is booted, the device will come up with IP 192.168.1.1. You can then connect through SSH (allow some time for the first connection). 4) On the device shell, run 'fw_printenv' to show the U-boot environment. Backup this information since it contains device unique factory data. 5) Change the boot command to support booting OpenWRT: # fw_setenv bootcmd 'sf probe && sf read 0x84000000 0x180000 0x400000 && bootm' 6) Change directory to /tmp, download the sysupgrade (e.g. through wget) and install it with sysupgrade. The device will reboot into OpenWRT. Notice that there is currently no support for booting the G.hn chip. This requires userland software we lack the rights to share right now. Signed-off-by: Stefan Schake <stefan.schake@devolo.de>
Diffstat (limited to 'target/linux/ipq40xx/image/Makefile')
-rw-r--r--target/linux/ipq40xx/image/Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/target/linux/ipq40xx/image/Makefile b/target/linux/ipq40xx/image/Makefile
index 86bf5a2ccb..487f3b5638 100644
--- a/target/linux/ipq40xx/image/Makefile
+++ b/target/linux/ipq40xx/image/Makefile
@@ -317,6 +317,25 @@ define Device/compex_wpj428
endef
TARGET_DEVICES += compex_wpj428
+define Device/devolo_magic-2-wifi-next
+ $(call Device/FitImage)
+ DEVICE_VENDOR := devolo
+ DEVICE_MODEL := Magic 2 WiFi next
+ SOC := qcom-ipq4018
+ KERNEL_SIZE := 4096k
+
+ # If the bootloader sees 0xDEADC0DE and this trailer at the 64k boundary of a TFTP image
+ # it will bootm it, just like we want for the initramfs.
+ KERNEL_INITRAMFS := kernel-bin | gzip | fit gzip $$(DTS_DIR)/$$(DEVICE_DTS).dtb | pad-to 64k |\
+ append-string -e '\xDE\xAD\xC0\xDE{"fl_initramfs":""}\x00'
+
+ IMAGE_SIZE := 26624k
+ IMAGES := sysupgrade.bin
+ IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
+ DEVICE_PACKAGES := ipq-wifi-devolo_magic-2-wifi-next uboot-envtools
+endef
+TARGET_DEVICES += devolo_magic-2-wifi-next
+
define Device/dlink_dap-2610
$(call Device/FitImageLzma)
DEVICE_VENDOR := D-Link