openwrt/target/linux
Christian Lamparter 9e0fd1b52a apm821xx: add support for the Netgear Centria N900 WNDR4700/WNDR4720
This patch adds support for Netgear Centria N900 WNDR4700/WNDR4720

hardware highlights:

CPU:	AMCC PowerPC APM82181 Rev. E at 1000 MHz (PLB=166, OPB=83, EBC=83 MHz)
	Security support, Boot ROM Location NAND wo/ECC 2k page (8 bits)
	32 kB I-Cache 32 kB D-Cache, 256 kB L2-Cache, 32 kB OnChip Memory
Board:	AMCC APM82181 Evaluation Board, PCIE0/SATA1, 1*USB OTG
DRAM:	256 MB (ECC not enabled, 500 Mb/s, 32-bit, CL3)
NAND:	128 MiB (SLC, erase size: 128 KiB, page size: 2048, OOB size: 64)
ETH:	Atheros AR8327N Gigabit Switch (4 x LAN, 1 x WAN)
USB:	2 x 3.0 (Renesas uPD720202K8-711-BAA-A, firmware not included)
SATA:	1 x SATA-II 3.5" Hard Drive Bay for HDDs (DesignWare SATA).
WLAN1:	Atheros AR9380 5GHz 802.11an 3:3x3
WLAN2:	Atheros AR9581 2.4GHz 802.11bgn 3:3x3
SDCARD:	GL827L SD/MMC/MS Flash Card Reader (on internal dwc2 USB 2.0 host)
I2C:	GMT G781 (i2c-0 @ 0x4d - lm90 compatible temperature sensor)
	TC654    (i2c-0 @ 0x1b - Dual PWM fan Speed controller)

WARNING: The serial port needs a TTL/RS-232 v3.3 level converter!

INFO: Since this device only has a NAND chip. I opted for going with
root.squashfs in a UBI volume. There's no squashfs/jffs2 image.

This target produces three images.
  a. netgear factory image
     This image can be used to flash the Netgear WNDR4700 via the
     firmware recovery mechanism and the web admin site.

     The bootloader can be instructed to do a firmware recovery via the
     # fw_recovery
     command. It will start a tftp server and listen on 192.168.1.1
     (the ipaddr variable in u-boot) for incoming, binary tftp clients.
     The firmware recovery mechanism is also started if any of the flash
     content which contains the kernel, device-tree definitions or the
     (fake)rootfs fails to verify or load.

  b. sysupgrade.tar image for sysupgrade
     An sysupgrade will replace the entire current LEDE installation
     with a newer version. This does include the kernel and the ubi rootfs
     partition. The configuration can be carried over automatically as well
     if desired.

     simply copy the sysupgrade.tar to a the WNDR4700 running LEDE and run:

     root@lede:~# sysupgrade sysupgrade.tar

     and let it reboot.

     Note: The devicetree flash area is NOT updated. Until the devicetree
	   definition is stable, this can lead to all sorts of hardware
	   detection problems! So make sure, if you experience issues: try
	   the fw_recovery. If you are unsure whenever this affects you:
	   test if you can reproduce your issue with the initramfs method.
	   As it will always have up-to-date device-tree definitions.

  c. initramfs image for TFTP (for development and testing)
     To use the initramfs method, follow the following steps:
       1) Move the "lede-apm821xx-netgear-WNDR4700-initramfs-kernel.bin"
	  file to to the root directory of your TFTP server.

       2) rename it to wndr4700.bin

       3) On the WNDR4700 - Hit Enter during u-boot and insert:
	  # tftp 400000 wndr4700.bin; run addtty; bootm 400000 -

     This will boot the LEDE image.

     Note: The default tftp server is 192.168.1.7, if you want to change it:
     # setenv serverip 192.168.8.7;

     Note2: The default address for the WNDR4700 is 192.168.1.1:
     # setenv ipaddr 192.168.8.8;

     Note: Connect you tftp server on the last LAN port (not the WAN)

Note: The firmware for the USB 3.0 Host chip is not included anymore.
Therefore the two USB 3.0 ports will not work without the
uPD7070x-firmware package installed.

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2016-07-22 09:48:12 +02:00
..
adm5120 adm5120: remove target specific /etc/config/system 2016-06-08 00:31:09 +02:00
adm8668 treewide: replace nbd@openwrt.org with nbd@nbd.name 2016-06-07 08:58:42 +02:00
apm821xx apm821xx: add support for the Netgear Centria N900 WNDR4700/WNDR4720 2016-07-22 09:48:12 +02:00
ar7 all: drop old uci-defaults.sh 2015-12-11 15:26:06 +00:00
ar71xx ar71xx: add missing profile for the nand subtarget (FS#56) 2016-07-21 13:58:47 +02:00
arc770 image.mk: clean up redundant code related to DEVICE_DTS 2016-07-15 14:14:11 +02:00
archs38 image.mk: clean up redundant code related to DEVICE_DTS 2016-07-15 14:14:11 +02:00
arm64 kernel: remove bogus CONFIG_LOG_BUF_SHIFT overrides 2016-05-21 22:35:41 +02:00
at91 at91: fix SAMA5D3 subtarget 2016-04-25 14:54:07 +02:00
ath25 ath25: add the small_Flash feature 2016-06-13 22:51:43 +02:00
au1000 image: fix jffs2(_nand) image generation 2015-08-05 13:55:52 +00:00
bcm53xx kernel: update bcma backporting changes up to 4.8 2016-07-20 13:42:42 +02:00
brcm47xx kernel: update kernel 4.4 to version 4.4.15 2016-07-13 15:39:15 +02:00
brcm63xx image.mk: clean up redundant code related to DEVICE_DTS 2016-07-15 14:14:11 +02:00
brcm2708 image.mk: clean up redundant code related to DEVICE_DTS 2016-07-15 14:14:11 +02:00
cns3xxx cns3xxx: remove obsolete jffs2 image build code 2016-07-20 10:13:50 +02:00
gemini gemini: delete 3.18 support 2016-05-12 17:55:15 +02:00
generic kernel: enable CONFIG_SND_PROC_FS by default (FS#54) 2016-07-21 15:33:50 +02:00
imx6 image.mk: clean up redundant code related to DEVICE_DTS 2016-07-15 14:14:11 +02:00
ipq806x ipq806x: clean up redundant initialization of core device image variables 2016-07-20 10:13:50 +02:00
ixp4xx ixp4xx: fix Avila SoC audio driver compilation 2016-06-07 11:15:55 +02:00
kirkwood kirkwood: remove obsolete code for including kernel/dtb in rootfs 2016-07-20 10:13:50 +02:00
lantiq lantiq: fix image creation of P2812HNUF3 & BTHOMEHUBV3A 2016-07-22 09:46:44 +02:00
malta malta: remove NAMESPACES config symbols 2016-06-06 14:58:11 +02:00
mcs814x branding: add LEDE branding 2016-03-24 22:40:13 +01:00
mediatek kernel: update kernel 4.4 to version 4.4.15 2016-07-13 15:39:15 +02:00
mpc85xx ppc4xx: remove booke-wdt watchdog package 2016-07-22 09:48:12 +02:00
mvebu mvebu: switch to the new image build code 2016-07-21 13:29:04 +02:00
mxs mxs: unconditionally install kernel images/dtb files into rootfs (needed by boards) 2016-07-20 10:13:50 +02:00
octeon kernel: update to version 4.4.14 2016-06-26 18:20:37 +02:00
omap omap: remove obsolete code for including kernel/dtb in rootfs 2016-07-20 10:13:50 +02:00
omap24xx image / basefiles: make console password configurable 2016-04-18 21:53:07 +02:00
orion all: drop old uci-defaults.sh 2015-12-11 15:26:06 +00:00
oxnas oxnas: add kmod-ledtrig-timer to default package set 2016-07-18 20:05:15 +02:00
ppc40x ppc4xx: remove booke-wdt watchdog package 2016-07-22 09:48:12 +02:00
ppc44x ppc4xx: remove booke-wdt watchdog package 2016-07-22 09:48:12 +02:00
ramips ramips: mt7621: add missing kernel symbol 2016-07-16 13:59:12 +02:00
rb532 treewide: replace nbd@openwrt.org with nbd@nbd.name 2016-06-07 08:58:42 +02:00
realview realview: sync kernel config file 2016-06-15 15:58:05 +02:00
sunxi kernel: rename B53 symbols to avoid upstream kernel conflict 2016-06-20 08:00:14 +02:00
uml uml: revert accidentally committed change 2016-04-25 14:09:05 +02:00
x86 x86: remove obsolete reference to $(PROFILE) 2016-07-20 10:13:50 +02:00
xburst xburst: remove target specific /etc/config/system 2016-06-08 00:31:09 +02:00
zynq image.mk: clean up redundant code related to DEVICE_DTS 2016-07-15 14:14:11 +02:00
Makefile