Could someone help me? I try to convert the Netgear WNDAP360 to OpenWrt. It was a already added in ar71xx:
committed 05:03PM - 08 May 13 UTC
Here is corrected version (only thing not working are wifi LEDs).
[juhosg: this… has been created from the following patch:
http://patchwork.openwrt.org/patch/3620/ ]
Signed-off-by: Jacek Kikiewicz <jaceq@aol.pl>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 36578
Device tree seems now okay, the device boots the initramfs. However, the image after flashing does not work.
committed 04:57PM - 20 Mar 22 UTC
SoC: Atheros AR7161
RAM: DDR 128 MiB (hynix h5dU5162ETR-E3C)
Flash: SPI-NOR 8 Mi… B (mx25l6406em2i-12g)
WLAN: 2.4/5 GHz
2.4 GHz: Atheros AR9220
5 GHz: Atheros AR9223
Ethernet: 4x 10/100/1000 Mbps (Atheros AR8021)
LEDs/Keys: 2/2 (Internet + System LED, Mesh button + Reset pin)
UART: RJ45 9600,8N1
Power: 12 VDC, 1.0 A
Installation instruction:
0. Make sure you have latest original firmware (3.7.11.4)
1. Connect to the Serial Port with a Serial Cable RJ45 to DB9/RS232
(9600,8N1)
screen /dev/ttyUSB0 9600,cs8,-parenb,-cstopb,-hupcl,-crtscts,clocal
2. Configure your IP-Address to 192.168.1.42
3. When device boots hit spacebar
3. Configure the device for tftpboot
setenv ipaddr 192.168.1.1
setenv serverip 192.168.1.42
saveenv
4. Reset the device
reset
5. Hit again the spacebar
6. Now load the image via tftp:
tftpboot 0x81000000 INITRAMFS.bin
7. Boot the image:
bootm 0x81000000
8. Copy the squashfs-image to the device.
9. Do a sysupgrade.
https://openwrt.org/toh/netgear/wndap360
Signed-off-by: Nick Hainke <vincent@systemli.org>
### main_loop: bootcmd="bootm 0xbf050000"
Enter SPACE to drop into boot loader: 0
## Booting image at bf050000 ...
Image Name: MIPS OpenWrt Linux-5.10.109
Created: 2022-04-09 6:04:57 UTC
Image Type: MIPS Linux Unknown Image (uncompressed)
Data Size: 2241536 Bytes = 2.1 MB
Load Address: bf070000
Entry Point: bf070000
Verifying Checksum ... OK
Wrong Image Type for bootm command
Can someone help me? I have no idea how the makefile works.
If I boot from tftp it looks like this:
done
Bytes transferred = 16994731 (10351ab hex)
ar7100> bootm 0x81000000
## Booting image at 81000000 ...
Image Name: MIPS OpenWrt Linux-5.10.109
Created: 2022-04-09 6:04:57 UTC
Image Type: MIPS Linux Kernel Image (uncompressed)
Data Size: 16994667 Bytes = 16.2 MB
Load Address: 80060000
Entry Point: 80060000
Verifying Checksum ... OK
OK
No initrd
## Transferring control to Linux (at address 80060000) ...
## Giving linux memsize in bytes, 134217728
Edit:
I tried now different format like the other netgear devices, but now it results in:
### main_loop: bootcmd="bootm 0xbf050000"
Enter SPACE to drop into boot loader: 0
## Booting image at bf050000 ...
Image Name: MIPS OpenWrt Linux-5.10.109
Created: 2022-04-09 6:04:57 UTC
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 2266349 Bytes = 2.2 MB
Load Address: 80060000
Entry Point: 80060000
Verifying Checksum ... OK
Unimplemented compression type 3
ar7100>
with
define Device/netgear_wndap360
$(Device/netgear_generic)
SOC := ar7161
DEVICE_MODEL := WNDAP360
IMAGE_SIZE := 14336k
BLOCKSIZE := 256k
IMAGE/default := append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | \
netgear-rootfs | pad-rootfs
IMAGE/sysupgrade.bin := $$(IMAGE/default) | check-size | append-metadata
IMAGE/factory.img := $$(IMAGE/default) | check-size | netgear-dni
endef
TARGET_DEVICES += netgear_wndap360
Edit:
Ah okay, maybe:
file openwrt-19.07.9-ar71xx-generic-wndap360-squashfs-sysupgrade.bin
openwrt-19.07.9-ar71xx-generic-wndap360-squashfs-sysupgrade.bin: u-boot legacy uImage, MIPS OpenWrt Linux-4.14.267, Linux/MIPS, OS Kernel Image (gzip), 2272692 bytes, Wed Feb 16 20:47:59 2022, Load Address: 0X80060000, Entry Point: 0X80060000, Header CRC: 0XDFB4E6EA, Data CRC: 0XC20A61F4
This seems to work:
define Device/netgear_wndap360
$(Device/netgear_generic)
SOC := ar7161
DEVICE_MODEL := WNDAP360
IMAGE_SIZE := 14336k
BLOCKSIZE := 256k
KERNEL := kernel-bin | append-dtb | gzip | uImage gzip
KERNEL_INITRAMFS := kernel-bin | append-dtb | gzip | uImage gzip
IMAGES := sysupgrade.bin
IMAGE/sysupgrade.bin := append-kernel | pad-to 64k | append-rootfs | pad-rootfs | \
check-size | append-metadata
endef
TARGET_DEVICES += netgear_wndap360
1 Like
Great progress, soon I will have access to two of these devices to test your code including POE 802.11af.
For me it is ready to be merged:
openwrt:master
← PolynomialDivision:add-wndap360
opened 09:26AM - 09 Apr 22 UTC
SoC: Atheros AR7161
RAM: DDR 128 MiB (hynix h5dU5162ETR-E3C)
Flash: SPI-NOR 8 … MiB (mx25l6406em2i-12g)
WLAN: 2.4/5 GHz
2.4 GHz: Atheros AR9220
5 GHz: Atheros AR9223
Ethernet: 4x 10/100/1000 Mbps (Atheros AR8021)
LEDs/Keys: 2/2 (Internet + System LED, Mesh button + Reset pin)
UART: RJ45 9600,8N1
Power: 12 VDC, 1.0 A
Installation instruction:
0. Make sure you have latest original firmware (3.7.11.4)
1. Connect to the Serial Port with a Serial Cable RJ45 to DB9/RS232
(9600,8N1)
screen /dev/ttyUSB0 9600,cs8,-parenb,-cstopb,-hupcl,-crtscts,clocal
2. Configure your IP-Address to 192.168.1.42
3. When device boots hit spacebar
3. Configure the device for tftpboot
setenv ipaddr 192.168.1.1
setenv serverip 192.168.1.42
saveenv
4. Reset the device
reset
5. Hit again the spacebar
6. Now load the image via tftp:
tftpboot 0x81000000 INITRAMFS.bin
7. Boot the image:
bootm 0x81000000
8. Copy the squashfs-image to the device.
9. Do a sysupgrade.
https://openwrt.org/toh/netgear/wndap360
ar71xx commit:
https://github.com/openwrt/openwrt/commit/10b3ca5ccbd602c6d38456431631269018809b87
1 Like
How long did it take to port ar72xx to ath79 for this device and was it your first?
It was not my first device support, but the first with a lot of changes needed. And further, it was the first port from ar71xx to ath79. I think overall it took two or three days of work. However, I did a lot of mistakes. Now I think I would be faster.
system
Closed
April 19, 2022, 4:52pm
8
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.