Re: [OpenWrt-Devel] Chaos Calmer 15.05-rc2

2015-06-16 Thread jvasco
On 06/13/15, Steven Barthcy...@openwrt.org wrote:The OpenWrt developers are proud to announce the first release candidateof OpenWrt Chaos Calmer.   ___ __ |   |.-.-.-.|  |  |  |..|  |_ |   -   ||  _  |  -__| ||  |  |  ||   _||   _| |___||   __|_|__|__||||__|  ||  |__| W I R E L E S S   F R E E D O M - CHAOS CALMER (15.05 RC2) -Upgrading from RC1 I ran into problems because opkg was still configured for rc1.I modified /etc/opkg.conf manually and changed all rc1 to rc2 and it worked fine.This was on a buffalo wzr-600dhp using image:openwrt-15.05-rc2-ar71xx-generic-wzr-600dhp-squashfs-sysupgrade.bin
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] MI424WR - add rev D support

2012-06-12 Thread jvasco

Add support for revision D of the MI424WR.
Rev D swaps LAN  WAN ports so this patch maintains
eth0 for LAN and eth1 for WAN. For details on rev D usage,
see http://wiki.openwrt.org/toh/actiontec/mi424wr

Signed-off-by: Jose Vasconcellos jva...@verizon.net

Index: target/linux/ixp4xx/patches-3.3/185-mi424wr_support.patch
===
--- target/linux/ixp4xx/patches-3.3/185-mi424wr_support.patch   (revision 31978)
+++ target/linux/ixp4xx/patches-3.3/185-mi424wr_support.patch   (working copy)
@@ -74,7 +74,7 @@
 +
 --- /dev/null
 +++ b/arch/arm/mach-ixp4xx/mi424wr-setup.c
-@@ -0,0 +1,345 @@
+@@ -0,0 +1,380 @@
 +/*
 + * arch/arm/mach-ixp4xx/mi424wr-setup.c
 + *
@@ -350,13 +350,13 @@
 +  .dev.platform_data = mi424wr_spi_bus_data,
 +};
 +
-+static struct eth_plat_info mi424wr_npeb_data = {
++static struct eth_plat_info mi424wr_wan_data = {
 +  .phy= 17,   /* KS8721 */
 +  .rxq= 3,
 +  .txreadyq   = 20,
 +};
 +
-+static struct eth_plat_info mi424wr_npec_data = {
++static struct eth_plat_info mi424wr_lan_data = {
 +  .phy= IXP4XX_ETH_PHY_MAX_ADDR,
 +  .phy_mask   = 0x1e, /* ports 1-4 of the KS8995 switch */
 +  .rxq= 4,
@@ -367,22 +367,45 @@
 +  {
 +  .name   = ixp4xx_eth,
 +  .id = IXP4XX_ETH_NPEC,
-+  .dev.platform_data  = mi424wr_npec_data,
++  .dev.platform_data  = mi424wr_lan_data,
 +  }, {
 +  .name   = ixp4xx_eth,
 +  .id = IXP4XX_ETH_NPEB,
-+  .dev.platform_data  = mi424wr_npeb_data,
++  .dev.platform_data  = mi424wr_wan_data,
 +  }
 +};
 +
++static struct eth_plat_info mi424wr_wanD_data = {
++  .phy= 5,
++  .rxq= 4,
++  .txreadyq   = 21,
++};
++
++static struct eth_plat_info mi424wr_lanD_data = {
++  .phy= IXP4XX_ETH_PHY_MAX_ADDR,
++  .phy_mask   = 0x1e, /* ports 1-4 of the KS8995 switch */
++  .rxq= 3,
++  .txreadyq   = 20,
++};
++
++static struct platform_device mi424wr_npeD_devices[] = {
++  {
++  .name   = ixp4xx_eth,
++  .id = IXP4XX_ETH_NPEB,
++  .dev.platform_data  = mi424wr_lanD_data,
++  }, {
++  .name   = ixp4xx_eth,
++  .id = IXP4XX_ETH_NPEC,
++  .dev.platform_data  = mi424wr_wanD_data,
++  }
++};
++
 +static struct platform_device *mi424wr_devices[] __initdata = {
 +  mi424wr_uart_device,
 +  mi424wr_flash,
 +  mi424wr_gpio_leds,
 +  mi424wr_latch_leds,
 +  mi424wr_spi_bus,
-+  mi424wr_npe_devices[0],
-+  mi424wr_npe_devices[1],
 +};
 +
 +static void __init mi424wr_init(void)
@@ -405,6 +428,18 @@
 +  __raw_writew(latch_value, iobase);
 +
 +  platform_add_devices(mi424wr_devices, ARRAY_SIZE(mi424wr_devices));
++
++  /* Need to figure out how to detect revD.
++   * Look for a revision argument sent by redboot.
++   */
++#define revD 4
++  if (system_rev == revD) {
++  platform_device_register(mi424wr_npeD_devices[0]);
++  platform_device_register(mi424wr_npeD_devices[1]);
++  } else {
++  platform_device_register(mi424wr_npe_devices[0]);
++  platform_device_register(mi424wr_npe_devices[1]);
++  }
 +}
 +
 +
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel