I have prepared newer patch that supports sysupgrade not sure how can I update this?
On 04/08/2013 03:19 PM, Jacek Kikiewicz wrote: > Developer's Certificate of Origin 1.1 > > By making a contribution to this project, I certify that: > > (a) The contribution was created in whole or in part by me and I > have the right to submit it under the open source license > indicated in the file; or > > (b) The contribution is based upon previous work that, to the best > of my knowledge, is covered under an appropriate open source > license and I have the right under that license to submit that > work with modifications, whether created in whole or in part > by me, under the same open source license (unless I am > permitted to submit under a different license), as indicated > in the file; or > > (c) The contribution was provided directly to me by some other > person who certified (a), (b) or (c) and I have not modified > it. > > (d) I understand and agree that this project and the contribution > are public and that a record of the contribution (including all > personal information I submit with it, including my sign-off) is > maintained indefinitely and may be redistributed consistent with > this project or the open source license(s) involved. > > Signed-off-by: Jacek Kikiewicz <[email protected]> > > --- > > Comments: > Things not working: sysupgrade, WIFI LEDs > System needs to be flashed from uboot. > > > Index: target/linux/ar71xx/base-files/lib/ar71xx.sh > =================================================================== > --- target/linux/ar71xx/base-files/lib/ar71xx.sh (revision 36156) > +++ target/linux/ar71xx/base-files/lib/ar71xx.sh (working copy) > @@ -447,6 +447,9 @@ > *WPE72) > name="wpe72" > ;; > + *WNDAP360) > + name="wndap360" > + ;; > *"WNDR3700/WNDR3800/WNDRMAC") > wndr3700_board_detect "$machine" > ;; > Index: target/linux/ar71xx/base-files/etc/uci-defaults/02_network > =================================================================== > --- target/linux/ar71xx/base-files/etc/uci-defaults/02_network > (revision 36156) > +++ target/linux/ar71xx/base-files/etc/uci-defaults/02_network > (working copy) > @@ -199,6 +199,7 @@ > tl-wa901nd |\ > tl-wa901nd-v2 |\ > tl-wr703n |\ > +wndap360 |\ > wp543) > ucidef_set_interface_lan "eth0" > ;; > Index: target/linux/ar71xx/base-files/etc/uci-defaults/01_leds > =================================================================== > --- target/linux/ar71xx/base-files/etc/uci-defaults/01_leds (revision > 36156) > +++ target/linux/ar71xx/base-files/etc/uci-defaults/01_leds (working > copy) > @@ -200,6 +200,10 @@ > ucidef_set_led_wlan "wlan" "WLAN" "wrt160nl:blue:wlan" "phy0tpt" > ;; > > +wndap360) > + ucidef_set_led_power "power" "POWER GREEN" > "wndap360:green:power" "1" > + ;; > + > wndr3700) > ucidef_set_led_default "wan" "WAN LED (green)" > "wndr3700:green:wan" "0" > ucidef_set_led_usbdev "usb" "USB" "wndr3700:green:usb" "1-1" > Index: target/linux/ar71xx/base-files/etc/diag.sh > =================================================================== > --- target/linux/ar71xx/base-files/etc/diag.sh (revision 36156) > +++ target/linux/ar71xx/base-files/etc/diag.sh (working copy) > @@ -158,6 +158,9 @@ > wzr-hp-g300nh2) > status_led="buffalo:red:diag" > ;; > + wndap360) > + status_led="wndap360:green:power" > + ;; > wndr3700) > status_led="wndr3700:green:power" > ;; > Index: target/linux/ar71xx/config-3.8 > =================================================================== > --- target/linux/ar71xx/config-3.8 (revision 36156) > +++ target/linux/ar71xx/config-3.8 (working copy) > @@ -81,6 +81,7 @@ > CONFIG_ATH79_MACH_UBNT_XM=y > CONFIG_ATH79_MACH_WHR_HP_G300N=y > CONFIG_ATH79_MACH_WLAE_AG300N=y > +CONFIG_ATH79_MACH_WNDAP360=y > CONFIG_ATH79_MACH_WNDR3700=y > CONFIG_ATH79_MACH_WNDR4300=y > CONFIG_ATH79_MACH_WNR2000=y > Index: target/linux/ar71xx/generic/profiles/netgear.mk > =================================================================== > --- target/linux/ar71xx/generic/profiles/netgear.mk (revision 36156) > +++ target/linux/ar71xx/generic/profiles/netgear.mk (working copy) > @@ -5,6 +5,17 @@ > # See /LICENSE for more information. > # > > +define Profile/WNDAP360 > + NAME:=NETGEAR WNDAP360 > + PACKAGES:= > +endef > + > +define Profile/WNDAP360/Description > + Package set optimized for the NETGEAR WNDAP360 > +endef > + > +$(eval $(call Profile,WNDAP360)) > + > define Profile/WNDR3700 > NAME:=NETGEAR WNDR3700/WNDR3800/WNDRMAC > PACKAGES:=kmod-usb-core kmod-usb-ohci kmod-usb2 > kmod-ledtrig-usbdev kmod-leds-wndr3700-usb > Index: target/linux/ar71xx/image/Makefile > =================================================================== > --- target/linux/ar71xx/image/Makefile (revision 36156) > +++ target/linux/ar71xx/image/Makefile (working copy) > @@ -185,6 +185,7 @@ > > uap_pro_mtdlayout=mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,1536k(kernel),14208k(rootfs),256k(cfg)ro,64k(EEPROM)ro,15744k@0x50000(firmware) > > > ubdev_mtdlayout=mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,1024k(kernel),6464k(rootfs),64k(certs),256k(cfg)ro,64k(EEPROM)ro,7488k@0x50000(firmware) > > > whrhpg300n_mtdlayout=mtdparts=spi0.0:248k(u-boot)ro,8k(u-boot-env)ro,1024k(kernel),2752k(rootfs),64k(art)ro,3712k@0x40000(firmware) > > +wndap360_mtdlayout=mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,1728k(kernel),6080k(rootfs),64k(art)ro,7808k@0x50000(firmware) > > > wndr3700_mtdlayout=mtdparts=spi0.0:320k(u-boot)ro,128k(u-boot-env)ro,1024k(kernel),6656k(rootfs),64k(art)ro,7680k@0x70000(firmware) > > > wndr3700v2_mtdlayout=mtdparts=spi0.0:320k(u-boot)ro,128k(u-boot-env)ro,1024k(kernel),14848k(rootfs),64k(art)ro,15872k@0x70000(firmware) > > > wndr4300_mtdlayout=mtdparts=ar934x-nfc:256k(u-boot)ro,256k(u-boot-env)ro,256k(caldata),512k(pot),2048k(language),512k(config),3072k(traffic_meter),1152k(kernel),24448k(rootfs),25600k@0x6c0000(firmware),256k(caldata_backup),-(reserved) > > @@ -876,6 +877,8 @@ > $(eval $(call > SingleProfile,MyLoader,$(fs_64k),WPE72_8M,wpe72,,ttyS0,115200,0x800000,8M)) > $(eval $(call > SingleProfile,MyLoader,$(fs_64k),WPE72_16M,wpe72,,ttyS0,115200,0x1000000,16M)) > > +# This is used with AthGzip profile for now > +$(eval $(call > SingleProfile,AthGzip,$(fs_64k),WNDAP360,wndap360,WNDAP360,ttyS0,9600,$$(wndap360_mtdlayout),1769472,6225920,RKuImage)) > $(eval $(call > SingleProfile,Netgear,$(fs_64k),WNDR3700V1,wndr3700,WNDR3700,ttyS0,115200,$$(wndr3700_mtdlayout),3700,WNDR3700,"" > NA,)) > $(eval $(call > SingleProfile,Netgear,$(fs_64k),WNDR3700V2,wndr3700v2,WNDR3700,ttyS0,115200,$$(wndr3700v2_mtdlayout),3701,WNDR3700v2,"",-H > 29763654+16+64)) > $(eval $(call > SingleProfile,Netgear,$(fs_64k),WNDR3800,wndr3800,WNDR3700,ttyS0,115200,$$(wndr3700v2_mtdlayout),3701,WNDR3800,"",-H > 29763654+16+128)) > Index: > target/linux/ar71xx/patches-3.8/610-MIPS-ath79-openwrt-machines.patch > =================================================================== > --- > target/linux/ar71xx/patches-3.8/610-MIPS-ath79-openwrt-machines.patch > (revision 36156) > +++ > target/linux/ar71xx/patches-3.8/610-MIPS-ath79-openwrt-machines.patch > (working copy) > @@ -1,6 +1,6 @@ > --- a/arch/mips/ath79/machtypes.h > +++ b/arch/mips/ath79/machtypes.h > -@@ -16,22 +16,112 @@ > +@@ -16,22 +16,113 @@ > > enum ath79_mach_type { > ATH79_MACH_GENERIC = 0, > @@ -97,6 +97,7 @@ > + ATH79_MACH_WHR_HP_G300N, /* Buffalo WHR-HP-G300N */ > + ATH79_MACH_WHR_HP_GN, /* Buffalo WHR-HP-GN */ > + ATH79_MACH_WLAE_AG300N, /* Buffalo WLAE-AG300N */ > ++ ATH79_MACH_WNDAP360, /* NETGEAR WNDAP360 */ > + ATH79_MACH_WNDR3700, /* NETGEAR WNDR3700/WNDR3800/WNDRMAC */ > + ATH79_MACH_WNDR4300, /* NETGEAR WNDR4300 */ > + ATH79_MACH_WNR2000, /* NETGEAR WNR2000 */ > @@ -216,7 +217,7 @@ > config ATH79_MACH_PB44 > bool "Atheros PB44 reference board" > select SOC_AR71XX > -@@ -68,6 +148,488 @@ config ATH79_MACH_PB44 > +@@ -68,6 +148,498 @@ config ATH79_MACH_PB44 > Say 'Y' here if you want your kernel to support the > Atheros PB44 reference board. > > @@ -417,6 +418,16 @@ > + select ATH79_DEV_WMAC > + select ATH79_ROUTERBOOT > + > ++config ATH79_MACH_WNDAP360 > ++ bool "NETGEAR WNDAP360 board support" > ++ select SOC_AR71XX > ++ select ATH79_DEV_AP9X_PCI if PCI > ++ select ATH79_DEV_ETH > ++ select ATH79_DEV_GPIO_BUTTONS > ++ select ATH79_DEV_LEDS_GPIO > ++ select ATH79_DEV_M25P80 > ++ select ATH79_DEV_USB > ++ > +config ATH79_MACH_WNDR3700 > + bool "NETGEAR WNDR3700 board support" > + select SOC_AR71XX > @@ -826,6 +837,7 @@ > obj-$(CONFIG_ATH79_MACH_UBNT_XM) += mach-ubnt-xm.o > +obj-$(CONFIG_ATH79_MACH_WHR_HP_G300N) += mach-whr-hp-g300n.o > +obj-$(CONFIG_ATH79_MACH_WLAE_AG300N) += mach-wlae-ag300n.o > ++obj-$(CONFIG_ATH79_MACH_WNDAP360) += mach-wndap360.o > +obj-$(CONFIG_ATH79_MACH_WNDR3700) += mach-wndr3700.o > +obj-$(CONFIG_ATH79_MACH_WNDR4300) += mach-wndr4300.o > +obj-$(CONFIG_ATH79_MACH_WNR2000) += mach-wnr2000.o > Index: target/linux/ar71xx/files/arch/mips/ath79/mach-wndap360.c > =================================================================== > --- target/linux/ar71xx/files/arch/mips/ath79/mach-wndap360.c > (revision 0) > +++ target/linux/ar71xx/files/arch/mips/ath79/mach-wndap360.c (working > copy) > @@ -0,0 +1,105 @@ > +/* > + * Netgear WNDAP360 board support (proper leds / button support > missing) > + * > + * Based on AP96 > + * Copyright (C) 2013 Jacek Kikiewicz > + * Copyright (C) 2009 Marco Porsch > + * Copyright (C) 2009-2012 Gabor Juhos <[email protected]> > + * Copyright (C) 2010 Atheros Communications > + * > + * This program is free software; you can redistribute it and/or > modify it > + * under the terms of the GNU General Public License version 2 as > published > + * by the Free Software Foundation. > + */ > + > +#include <linux/platform_device.h> > +#include <linux/delay.h> > + > +#include <asm/mach-ath79/ath79.h> > + > +#include "dev-ap9x-pci.h" > +#include "dev-eth.h" > +#include "dev-gpio-buttons.h" > +#include "dev-leds-gpio.h" > +#include "dev-m25p80.h" > +#include "dev-usb.h" > +#include "machtypes.h" > + > +#define WNDAP360_GPIO_LED_POWER_ORANGE 0 > +#define WNDAP360_GPIO_LED_POWER_GREEN 2 > + > +/* Reset button - next to the power connector */ > +#define WNDAP360_GPIO_BTN_RESET 3 > +/* WPS button - next to a led on right */ > +#define WNDAP360_GPIO_BTN_WPS 8 > + > +#define WNDAP360_KEYS_POLL_INTERVAL 20 /* msecs */ > +#define WNDAP360_KEYS_DEBOUNCE_INTERVAL (3 * > WNDAP360_KEYS_POLL_INTERVAL) > + > +#define WNDAP360_WMAC0_MAC_OFFSET 0x120c > +#define WNDAP360_WMAC1_MAC_OFFSET 0x520c > +#define WNDAP360_CALDATA0_OFFSET 0x1000 > +#define WNDAP360_CALDATA1_OFFSET 0x5000 > + > +/* > + * WNDAP360 this still uses leds definitions from AP96 > + * > + */ > +static struct gpio_led wndap360_leds_gpio[] __initdata = { > + { > + .name = "wndap360:green:power", > + .gpio = WNDAP360_GPIO_LED_POWER_GREEN, > + .active_low = 1, > + }, { > + .name = "wndap360:orange:power", > + .gpio = WNDAP360_GPIO_LED_POWER_ORANGE, > + .active_low = 1, > + } > +}; > + > +static struct gpio_keys_button wndap360_gpio_keys[] __initdata = { > + { > + .desc = "reset", > + .type = EV_KEY, > + .code = KEY_RESTART, > + .debounce_interval = WNDAP360_KEYS_DEBOUNCE_INTERVAL, > + .gpio = WNDAP360_GPIO_BTN_RESET, > + .active_low = 1, > + } > +}; > + > +#define WNDAP360_LAN_PHYMASK 0x0f > + > +static void __init wndap360_setup(void) > +{ > + u8 *art = (u8 *) KSEG1ADDR(0x1fff0000); > + > + ath79_register_mdio(0, ~(WNDAP360_LAN_PHYMASK)); > + > + ath79_init_mac(ath79_eth0_data.mac_addr, art, 0); > + ath79_eth0_pll_data.pll_1000 = 0x11110000; > + ath79_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_RGMII; > + ath79_eth0_data.phy_mask = WNDAP360_LAN_PHYMASK; > + ath79_eth0_data.speed = SPEED_1000; > + ath79_eth0_data.duplex = DUPLEX_FULL; > + > + ath79_register_eth(0); > + > + ath79_register_usb(); > + > + ath79_register_m25p80(NULL); > + > + ath79_register_leds_gpio(-1, ARRAY_SIZE(wndap360_leds_gpio), > + wndap360_leds_gpio); > + > + ath79_register_gpio_keys_polled(-1, WNDAP360_KEYS_POLL_INTERVAL, > + ARRAY_SIZE(wndap360_gpio_keys), > + wndap360_gpio_keys); > + > + ap94_pci_init(art + WNDAP360_CALDATA0_OFFSET, > + art + WNDAP360_WMAC0_MAC_OFFSET, > + art + WNDAP360_CALDATA1_OFFSET, > + art + WNDAP360_WMAC1_MAC_OFFSET); > +} > + > +MIPS_MACHINE(ATH79_MACH_WNDAP360, "WNDAP360", "Netgear WNDAP360", > wndap360_setup); > _______________________________________________ > openwrt-devel mailing list > [email protected] > https://lists.openwrt.org/mailman/listinfo/openwrt-devel _______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/mailman/listinfo/openwrt-devel
