1
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-06-17 12:43:56 +02:00
openwrt/package/boot
Christian Lamparter d82d84694e apm821xx: add support for the Netgear WNDAP620 and WNDAP660
This patch adds support for the Netgear WNDAP620 and WNDAP660,
they are similar devices, but due to the LAN LED configuration,
the switch setup and WIFI configuration each gets a different
device target.

Hardware Highlights WNDAP620:
CPU: AMCC PowerPC APM82181 at 1000 MHz
DRAM:  128 MB, 2 x 64 MiB DDR2 Hynix H5PS5162GF
CPU: AMCC PowerPC APM82181 at 1000 MHz
FLASH: 32 MiB, NAND SLC, Hynix HY27US08561A
Ethernet: RealTek RTL8363SB 2x2-Port Switch PHY - Only 1 GBit Port (POE)
Wifi: Atheros AR9380 minipcie - Dual-Band - 3x3:3
Serial: console port with RJ45 Interface (9600-N-8-1)
LEDS: Power, LAN-Activity, dual color LAN-Linkspeed, 2.4GHz, 5GHz LEDs
Button: Soft Reset Button
Antennae: 3 internal dual-band antennae + 3 x RSMA for external antennaes

Hardware Highlights WNDAP660:
CPU: AMCC PowerPC APM82181 at 1000 MHz + 2 Heatsinks
DRAM:  256 MB, 2 x 128 MiB DDR2
FLASH: 32 MiB, NAND SLC, Hynix HY27US08561A
Ethernet: RealTek RTL8363SB 2x2-Port Switch PHY (POE)
Wifi1: Atheros AR9380 minipcie - Dual-Band - 3x3:3
Wifi2: Atheros AR9380 minipcie - Dual-Band - 3x3:3
Serial: console port with RJ45 Interface (9600-N-8-1)
LEDS: Power, LAN-Activity, 2x dual color LAN-Linkspeed, 2.4GHz, 5GHz LEDs
Button: Soft Reset Button
Antennae: 6 internal dual-band antennae + 3 x RSMA for external antennaes

Flashing requirements:

 - needs a tftp server at 192.168.1.10/serverip.
 - special 8P8C(aka RJ45)<->D-SUB9 Console Cable
   ("Cisco Console Cable"). Note: Both WNDAP6x0 have
   a MAX3232 transceivers, hence no need for any separate
   CMOS/TTL level shifters.

External Antenna:
The antennae mux is controlled by GPIO 11 and GPIO14. Valid Configurations:
 = Config# = | = GPIO 11 = | = GPIO 14 = |  ===== Description =====
      1.     |   1 / High  |  0 / Low    | Use the internal antennae (default)
      2.     |   0 / Low   |  1 / High   | Use the external antennae

The external antennaes are only meant for the 2.4 GHz band.

One-way Flashing instructions via u-boot:

 0. connect the serial cable to the RJ45 Console Port
    Note: This requires a poper RS232 and not a TTL/USB adaptor.

 1. power up the AP and interrupt the u-boot process at

    'Hit any key to stop autoboot'

 2. setup serverip and ipaddr env settings
    Enter the following commands into the u-boot shell
    # setenv ipaddr 192.168.1.1
    # setenv serverip 192.168.1.10

 3. download the factory.img image to the AP
    Enter the following commands into the u-boot shell

    # tftp ${kernel_addr_r} openwrt-apm821xx-nand-netgear_wndap660-squashfs-factory.img

 4. verfiy image integrity
    Enter the following commands into the u-boot shell

    # crc32 $fileaddr $filesize

    If the calculated crc32 checksum does not match, go back to step 3.

 5. flash the image
    Enter the following commands into the u-boot shell

    # nand erase 0x110000 0x1bd0000
    # nand write ${kernel_addr_r} 0x110000 ${filesize}

 6. setup uboot environment
    Enter the following commands into the u-boot shell

    # setenv bootargs
    # setenv fileaddr
    # setenv filesize
    # setenv addroot 'setenv bootargs ${bootargs} root=/dev/ubiblock0_0'
    # setenv owrt_boot 'nboot ${kernel_addr_r} nand0 0x110000; run addroot; run addtty; bootm ${kernel_addr_r}'
    # setenv bootcmd 'run owrt_boot'
    # saveenv

 7. boot
    # run bootcmd

Booting initramfs instructions via u-boot:

 Follow steps 0 - 2 from above.

 3. boot initramfs
    Enter the following commands into the u-boot shell

    # tftp ${kernel_addr_r} openwrt-apm821xx-nand-netgear_wndap660-initramfs-kernel.bin
    # run addtty
    # bootm ${kernel_addr_r}

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2018-11-26 12:05:46 +01:00
..
apex apex: Remove dead URL. 2018-08-22 11:21:53 +02:00
arm-trusted-firmware-sunxi arm-trusted-firmware-sunxi: update to version from 2018-02-10 2018-06-18 07:10:20 +02:00
at91bootstrap at91: Add SAMA5D2 PTC EK board 2018-05-05 06:55:22 +02:00
fconfig fconfig: Remove dead URLs 2018-08-22 11:22:04 +02:00
grub2 grub2: fix regression caused by binutils-2.31.1 2018-10-25 16:51:42 +02:00
imx-bootlets treewide: clean up download hashes 2016-12-16 22:39:22 +01:00
kexec-tools kexec-tools: bump version to 2.0.16 2018-02-11 16:10:51 +01:00
kobs-ng kobs-ng: add header for integer definitions 2017-11-16 22:56:54 +01:00
rbcfg rbcfg: Implement CPU frequency control 2017-10-07 15:00:26 +02:00
uboot-ar71xx uboot-ar71xx: fix build error 2017-04-06 16:25:08 +02:00
uboot-at91 at91: Add SAMA5D2 PTC EK board 2018-05-05 06:55:22 +02:00
uboot-envtools apm821xx: add support for the Netgear WNDAP620 and WNDAP660 2018-11-26 12:05:46 +01:00
uboot-fritz4040 ipq40xx: add target 2018-03-14 19:04:50 +01:00
uboot-imx6 imx6: use BUILD_DEVICES in uboot-imx6 for mx6cuboxi 2018-09-05 10:00:01 +02:00
uboot-kirkwood uboot-kirkwood: fix malformed boot configuration 2018-06-27 08:42:54 +02:00
uboot-lantiq uboot-lantiq: fix compile with modern host dtc 2018-10-07 02:12:06 +02:00
uboot-layerscape layerscape: add ls1012afrwy support and drop ls1012afrdm 2018-09-22 21:20:57 +02:00
uboot-layerscape-armv8_32b layerscape: add ls1012afrwy support and drop ls1012afrdm 2018-09-22 21:20:57 +02:00
uboot-mvebu uboot-mvebu: fix build on hosts lacking pkg-config 2018-05-23 09:05:55 +02:00
uboot-mxs uboot-mxs: bump to v2018.09 2018-11-01 17:16:52 +01:00
uboot-omap omap: rename image for sysupgrade compatibility 2018-07-30 11:03:02 +02:00
uboot-oxnas uboot-oxnas: fix typo accidentally committed during oxnas reboot 2018-06-18 18:55:19 +02:00
uboot-sunxi sunxi: add support for Orange Pi Zero 2018-10-07 22:16:10 +02:00
uboot-xburst treewide: clean up download hashes 2016-12-16 22:39:22 +01:00
uboot-zynq uboot-zynq: use a file to modify the default environment 2018-09-10 08:54:41 +02:00
yamonenv yamonenv: Remove dead URLs 2018-08-22 11:22:17 +02:00