Re: [OpenWrt-Devel] [PATCH - for comment only] lantiq: use UbinizeImage instead lantiq-specific ubinize.cfg files

2014-07-02 Thread Ben Mulvihill
On Tue, 2014-07-01 at 22:17 +0200, John Crispin wrote:
 
 On 01/07/2014 22:12, Ben Mulvihill wrote:
  Hello again,
  
  I have just tried sysupgradeNAND on the BTHOMEHUBV2B, and it fails 
  with the following error:
  
  
  cat: can't open '/tmp/sysinfo/board_name': No such file or
  directory Unlocking kernel ...
  
  Writing from stdin to kernel ...  [ ]tar: sysupgrade-/kernel:
  not found in archive
  
  
  Procd relies on /tmp/sysinfo/board_name being present, but I don't 
  have a /tmp/sysinfo directory at all. Should I have? If so, should 
  I add code to lib/functions/lantiq.sh to generate 
  /tmp/sysinfo/board_name using lantiq_board_id() ? And if so, what 
  do I hook it to to make sure it gets executed?
  
  Thanks,
  
  Ben
  
  
 
 ermm yes ... it should work the same as on imx6, ramips, ar71xx ...
 
 you can either do this tonight or i can do it in the morning. which
 ever you prefer :)
 
Just did a quick test and the mechanism seems simple enough. But 
I'm afraid my day job and other commitments will keep me busy
now until the weekend. I guess it depends whether you feel like
taking time from the 101 other things you are working on 
simultaneously ;-) I'll send the UbinizeImage patch anyway now,
with an extra line to generate the SysupgradeNAND tar files.

One unfortunate thing: lantiq has lantiq_board_id and
lantiq_board_name, whereas the other architectures all have 
x_board_name and x_model, and for sysupgrade to
work /temp/sysinfo/board_name will have to contain the
value of lantiq_board_id, not, as would seem logical,
lantiq_board_name. Confusing!



  
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH - for comment only] lantiq: use UbinizeImage instead lantiq-specific ubinize.cfg files

2014-07-02 Thread John Crispin


On 02/07/2014 08:33, Ben Mulvihill wrote:
 On Tue, 2014-07-01 at 22:17 +0200, John Crispin wrote:
 
 On 01/07/2014 22:12, Ben Mulvihill wrote:
 Hello again,
 
 I have just tried sysupgradeNAND on the BTHOMEHUBV2B, and it
 fails with the following error:
 
 
 cat: can't open '/tmp/sysinfo/board_name': No such file or 
 directory Unlocking kernel ...
 
 Writing from stdin to kernel ...  [ ]tar:
 sysupgrade-/kernel: not found in archive
 
 
 Procd relies on /tmp/sysinfo/board_name being present, but I
 don't have a /tmp/sysinfo directory at all. Should I have? If
 so, should I add code to lib/functions/lantiq.sh to generate 
 /tmp/sysinfo/board_name using lantiq_board_id() ? And if so,
 what do I hook it to to make sure it gets executed?
 
 Thanks,
 
 Ben
 
 
 
 ermm yes ... it should work the same as on imx6, ramips, ar71xx
 ...
 
 you can either do this tonight or i can do it in the morning.
 which ever you prefer :)
 
 Just did a quick test and the mechanism seems simple enough. But 
 I'm afraid my day job and other commitments will keep me busy now
 until the weekend. I guess it depends whether you feel like taking
 time from the 101 other things you are working on simultaneously
 ;-) I'll send the UbinizeImage patch anyway now, with an extra line
 to generate the SysupgradeNAND tar files.
 
 One unfortunate thing: lantiq has lantiq_board_id and 
 lantiq_board_name, whereas the other architectures all have 
 x_board_name and x_model, and for sysupgrade to work
 /temp/sysinfo/board_name will have to contain the value of
 lantiq_board_id, not, as would seem logical, lantiq_board_name.
 Confusing!
 
 
 

YES ! :)

i already have staged patches locally that unify this pattern over all
targets and add a /lib/board.sh with a unified api naming etc. i am
just holding it back til BB is done. scared to break stuff in the last
days of the release :)

i'll fix up lantiq so your problem is gone during the day

John


 
 ___ openwrt-devel
 mailing list openwrt-devel@lists.openwrt.org 
 https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
 
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH v2] lantiq: UbinizeImage instead of lantiq-specific ubinize.cfg files

2014-07-02 Thread Ben Mulvihill
New make target in lantiq to use UbinizeImage and SysupgradeNand.
Only enabled for BTHOMEHUBV2B for the moment but should be useable
for other lantiq nand boards. 

Signed-off-by: Ben Mulvihill ben.mulvih...@gmail.com
---

--- a/target/linux/lantiq/image/Makefile2014-07-02 03:44:34.190125289 
+0200
+++ b/target/linux/lantiq/image/Makefile2014-07-01 21:07:11.466127779 
+0200
@@ -12,6 +12,7 @@ include $(TOPDIR)/rules.mk
 include $(INCLUDE_DIR)/image.mk
 
 JFFS2_BLOCKSIZE = 64k 128k 256k
+KDIR_TMP:=$(KDIR)/tmp
 
 LOADER_MAKE := $(NO_TRACE_MAKE) -C lzma-loader KDIR=$(KDIR)
 
@@ -82,6 +83,15 @@ define Image/Build/squashfs
$(if $(3),$(call 
MkBrnImage,$(3),$(4),$(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(3)-brnImage,$(2),$(1),$(5)))
 endef
 
+define Image/BuildNAND/squashfs
+
+ifneq ($($(PROFILE)_UBI_OPTS),)
+   $(call prepare_generic_squashfs,$(KDIR)/root.$(1))
+   $(call 
Image/Build/UbinizeImage,$(PROFILE),,squashfs,$($(PROFILE)_UBI_OPTS))
+   $(call 
Image/Build/SysupgradeNAND,$(PROFILE),$(1),$(KDIR)/uImage-$(PROFILE))
+endif
+endef
+
 DGN3500_SKERNEL=0x5
 DGN3500_SKERNEL_DECIMAL=327680
 define Image/BuildDGN3500/squashfs
@@ -185,6 +195,18 @@ ifneq ($($(PROFILE)_UBI_OPTS),)
 endif
 endef
 
+
+define Image/BuildNAND/ubifs
+
+ifneq ($($(PROFILE)_UBIFS_OPTS),)
+ifneq ($($(PROFILE)_UBI_OPTS),)
+   $(call 
Image/Build/UbinizeImage,$(PROFILE),,ubifs,$($(PROFILE)_UBI_OPTS))
+   $(call 
Image/Build/SysupgradeNAND,$(PROFILE),$(1),$(KDIR)/uImage-$(PROFILE))
+endif
+endif
+endef
+
+
 define Image/InstallKernel/Template
 
 ifneq ($(CONFIG_TARGET_ROOTFS_INCLUDE_KERNEL),)
@@ -293,7 +315,7 @@ ifeq ($(CONFIG_TARGET_lantiq_xway),y)
 
 # Danube
 Image/BuildKernel/Profile/BTHOMEHUBV2B=$(call 
Image/BuildKernel/Template,BTHOMEHUBV2B)
-Image/Build/Profile/BTHOMEHUBV2B=$(call Image/Build/$(1),$(1),BTHOMEHUBV2B)
+Image/Build/Profile/BTHOMEHUBV2B=$(call Image/BuildNAND/$(1),$(1),BTHOMEHUBV2B)
 
 Image/BuildKernel/Profile/EASY50712=$(call 
Image/BuildKernel/Template,EASY50712)
 Image/Build/Profile/EASY50712=$(call Image/Build/$(1),$(1),EASY50712)
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] ar71xx: add support for EnGenius ESR1750

2014-07-02 Thread 林書詠
Answers inline.

On Tue, Jul 1, 2014 at 3:16 PM, John Crispin j...@phrozen.org wrote:
 On 01/07/2014 13:44, Jon Suphammer wrote:
 0t 1 +  part=$(find_mtd_part u-boot-env) +  mac=$(strings $part |
 sed -n 's/^'ethaddr'=//p' |sed 's/\//g') +
 mac_lan=$(macaddr_canonicalize $mac) +[ -n $mac_lan ] 
 ucidef_set_interface_macaddr lan $mac_lan +
 mac_wan=$(mtd_get_mac_ascii u-boot-env wanaddr) + [ -n $mac_wan ]
  ucidef_set_interface_macaddr wan $mac_wan +
 mac_wifi2=$(macaddr_add $mac_lan 1) + ;; +

 package/kernel/uboot-env/ can solve this problem for you i believe
The reason for doing it this was is that macaddr_canonicalize will see
LAN mac address as invalid as the string includes quotation marks
which makes the string greater than 17 chars.

A more correct fix for this would be to strip quotation marks in
macaddr_canonicalize. By doing this we can use mtd_get_mac_ascii to
retrieve LAN mac address as we do for WAN mac address.

I suggest we add: mac=$(echo ${mac} | sed 's/\//g') at top of
macaddr_canonicalize function. I can send a separate patch for this if
you prefer this approach.


 + +static void __init esr1750_gmac_setup(void) +{ +   void __iomem
 *base; +  u32 t; + +  base = ioremap(QCA955X_GMAC_BASE,
 QCA955X_GMAC_SIZE); + +   t = __raw_readl(base +
 QCA955X_GMAC_REG_ETH_CFG); + +t = ~(QCA955X_ETH_CFG_RGMII_EN |
 QCA955X_ETH_CFG_GE0_SGMII); + t |= QCA955X_ETH_CFG_RGMII_EN; + +
 __raw_writel(t, base + QCA955X_GMAC_REG_ETH_CFG); + +
 iounmap(base); +} +

 this function looks wrong. are you sure this cannot be fixed with
 existing code ?
There is currently no ath79_setup_qca955x_eth_cfg function. However I
have made this function in dev_eth now, so I can submit this as a
separate patch. Is this ok ?

If the above solutions is acceptable, I will resubmit this patch once
the two above mentioned patches is accepted.

-- 
Best regards,
Jon
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] kernel: add igb kernel module

2014-07-02 Thread Tim Harvey
Added igb kernel module which supports a variety of Intel GigE PCIe devices

Signed-off-by: Tim Harvey thar...@gateworks.com
---
 package/kernel/linux/modules/netdevices.mk | 18 ++
 1 file changed, 18 insertions(+)

diff --git a/package/kernel/linux/modules/netdevices.mk 
b/package/kernel/linux/modules/netdevices.mk
index 221eb2f..77c71fc 100644
--- a/package/kernel/linux/modules/netdevices.mk
+++ b/package/kernel/linux/modules/netdevices.mk
@@ -443,6 +443,24 @@ endef
 $(eval $(call KernelPackage,e1000e))
 
 
+define KernelPackage/igb
+  SUBMENU:=$(NETWORK_DEVICES_MENU)
+  TITLE:=Intel(R) 82575/82576 PCI-Express Gigabit Ethernet support
+  DEPENDS:=@PCI_SUPPORT +kmod-i2c-algo +kmod-i2c-algo-bit
+  KCONFIG:=CONFIG_IGB \
+CONFIG_IGB_HWMON=n \
+CONFIG_IGB_DCA=n
+  FILES:=$(LINUX_DIR)/drivers/net/ethernet/intel/igb/igb.ko
+  AUTOLOAD:=$(call AutoLoad,35,igb)
+endef
+
+define KernelPackage/igb/description
+ Kernel modules for Intel(R) 82575/82576 PCI-Express Gigabit Ethernet adapters.
+endef
+
+$(eval $(call KernelPackage,igb))
+
+
 define KernelPackage/b44
   TITLE:=Broadcom 44xx driver
   KCONFIG:=CONFIG_B44
-- 
1.8.3.2
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] imx6: kernel: 3.14: backport IMX6DL DVFS support from 3.15

2014-07-02 Thread Tim Harvey
This allows dynamic voltage and frequency scaling to work for IMX6DL CPU's

Signed-off-by: Tim Harvey thar...@gateworks.com
---
 ...070-ARM-dts-imx6dl-enable-cpufreq-support.patch | 48 ++
 1 file changed, 48 insertions(+)
 create mode 100644 
target/linux/imx6/patches-3.14/0070-ARM-dts-imx6dl-enable-cpufreq-support.patch

diff --git 
a/target/linux/imx6/patches-3.14/0070-ARM-dts-imx6dl-enable-cpufreq-support.patch
 
b/target/linux/imx6/patches-3.14/0070-ARM-dts-imx6dl-enable-cpufreq-support.patch
new file mode 100644
index 000..56447b4
--- /dev/null
+++ 
b/target/linux/imx6/patches-3.14/0070-ARM-dts-imx6dl-enable-cpufreq-support.patch
@@ -0,0 +1,48 @@
+From 978ed904c17cd39700a5e1f95ee29ef4fee08ce9 Mon Sep 17 00:00:00 2001
+From: Anson Huang b20...@freescale.com
+Date: Thu, 19 Dec 2013 10:02:10 -0500
+Subject: [PATCH] ARM: dts: imx6dl: enable cpufreq support
+
+This patch adds cpufreq dts for i.mx6dl to support cpufreq driver.
+
+Signed-off-by: Anson Huang b20...@freescale.com
+Signed-off-by: Shawn Guo shawn@linaro.org
+Signed-off-by: Tim Harvey thar...@gateworks.com
+---
+ arch/arm/boot/dts/imx6dl.dtsi | 20 
+ 1 file changed, 20 insertions(+)
+
+diff --git a/arch/arm/boot/dts/imx6dl.dtsi b/arch/arm/boot/dts/imx6dl.dtsi
+index 80d0abe..9c4942f 100644
+--- a/arch/arm/boot/dts/imx6dl.dtsi
 b/arch/arm/boot/dts/imx6dl.dtsi
+@@ -22,6 +22,26 @@
+   device_type = cpu;
+   reg = 0;
+   next-level-cache = L2;
++  operating-points = 
++  /* kHzuV */
++  996000  1275000
++  792000  1175000
++  396000  1075000
++  ;
++  fsl,soc-operating-points = 
++  /* ARM kHz  SOC-PU uV */
++  996000  1175000
++  792000  1175000
++  396000  1175000
++  ;
++  clock-latency = 61036; /* two CLK32 periods */
++  clocks = clks 104, clks 6, clks 16,
++   clks 17, clks 170;
++  clock-names = arm, pll2_pfd2_396m, step,
++pll1_sw, pll1_sys;
++  arm-supply = reg_arm;
++  pu-supply = reg_pu;
++  soc-supply = reg_soc;
+   };
+ 
+   cpu@1 {
+-- 
+1.8.3.2
+
-- 
1.8.3.2
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [Patch][Resend] Support for BMP085 pressure sensor

2014-07-02 Thread Sergey Korolew
Hello !


JC Sergey can you send the patch with git send-email please ?
I'm sorry, but git on my ubuntu buildbox seems to not support send-email 
command,
thunderbird wrap strings and windows client on main pc replace tabs to spaces :)
Just tryed to send from freebsd box using simple mail, hope it works.


-- 
С уважением,
 Sergey  mailto:d...@bittu.org.ru
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [Patch][Resend] BMP085 sensor support

2014-07-02 Thread User Ds
--- a/package/kernel/linux/modules/other.mk 2014-06-29 15:21:39.359850523 
+0400
+++ b/package/kernel/linux/modules/other.mk 2014-06-29 15:17:27.0 
+0400
@@ -698,6 +698,54 @@
 
 $(eval $(call KernelPackage,regmap))
 
+
+define KernelPackage/bmp085
+  SUBMENU:=$(OTHER_MENU)
+  TITLE:=BMP085 digital pressure sensor
+  KCONFIG:=CONFIG_BMP085
+  DEPENDS:=+kmod-regmap
+  FILES:= \
+   $(LINUX_DIR)/drivers/misc/bmp085.ko
+endef
+
+define KernelPackage/bmp085/description
+ Kernel module for BOSCH Sensortec pressure sensor generic support
+endef
+
+$(eval $(call KernelPackage,bmp085))
+
+define KernelPackage/bmp085-i2c
+  SUBMENU:=$(OTHER_MENU)
+  TITLE:=BMP085 sensor on I2C bus
+  KCONFIG:=CONFIG_BMP085_I2C
+  FILES:= \
+   $(LINUX_DIR)/drivers/misc/bmp085-i2c.ko
+  DEPENDS:=kmod-bmp085
+  AUTOLOAD:=$(call AutoProbe,bmp085-i2c)
+endef
+
+define KernelPackage/bmp085-i2c/description
+ Kernel module for BOSCH Sensortec pressure sensor on I2C bus
+endef
+
+$(eval $(call KernelPackage,bmp085-i2c))
+
+define KernelPackage/bmp085-spi
+  SUBMENU:=$(OTHER_MENU)
+  TITLE:=BMP085 sensor on SPI bus
+  KCONFIG:=CONFIG_BMP085_SPI
+  FILES:= \
+   $(LINUX_DIR)/drivers/misc/bmp085-spi.ko
+  DEPENDS:=kmod-bmp085
+  AUTOLOAD:=$(call AutoProbe,bmp085-spi)
+endef
+
+define KernelPackage/bmp085-spi/description
+ Kernel module for BOSCH Sensortec pressure sensor on SPI bus
+endef
+
+$(eval $(call KernelPackage,bmp085-spi))
+
 define KernelPackage/ikconfig
   SUBMENU:=$(OTHER_MENU)
   TITLE:=Kernel configuration via /proc/config.gz
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [Patch][Resend] Kernel patch for BMP085 support

2014-07-02 Thread User Ds
--- a/target/linux/generic/patches-3.6/263-bmp085_dynamic.patch 1970-01-01 
04:00:00.0 +0400
+++ b/target/linux/generic/patches-3.6/263-bmp085_dynamic.patch 2014-06-08 
14:42:38.0 +0400
@@ -0,0 +1,11 @@
+--- a/drivers/misc/Kconfig 2014-04-03 23:01:22.0 +0400
 b/drivers/misc/Kconfig 2014-06-08 14:40:09.129048438 +0400
+@@ -453,7 +453,7 @@
+ still useful.
+ 
+ config BMP085
+-  bool
++  tristate BMP085 digital pressure sensor generic support
+   depends on SYSFS
+ 
+ config BMP085_I2C
--- a/target/linux/generic/patches-3.8/263-bmp085_dynamic.patch 1970-01-01 
04:00:00.0 +0400
+++ b/target/linux/generic/patches-3.8/263-bmp085_dynamic.patch 2014-06-08 
14:42:38.0 +0400
@@ -0,0 +1,11 @@
+--- a/drivers/misc/Kconfig 2014-04-03 23:01:22.0 +0400
 b/drivers/misc/Kconfig 2014-06-08 14:40:09.129048438 +0400
+@@ -443,7 +443,7 @@
+ still useful.
+ 
+ config BMP085
+-  bool
++  tristate BMP085 digital pressure sensor generic support
+   depends on SYSFS
+ 
+ config BMP085_I2C
--- a/target/linux/generic/patches-3.9/263-bmp085_dynamic.patch 1970-01-01 
04:00:00.0 +0400
+++ b/target/linux/generic/patches-3.9/263-bmp085_dynamic.patch 2014-06-08 
14:42:38.0 +0400
@@ -0,0 +1,11 @@
+--- a/drivers/misc/Kconfig 2014-04-03 23:01:22.0 +0400
 b/drivers/misc/Kconfig 2014-06-08 14:40:09.129048438 +0400
+@@ -443,7 +443,7 @@
+ still useful.
+ 
+ config BMP085
+-  bool
++  tristate BMP085 digital pressure sensor generic support
+   depends on SYSFS
+ 
+ config BMP085_I2C
--- a/target/linux/generic/patches-3.10/263-bmp085_dynamic.patch
1970-01-01 04:00:00.0 +0400
+++ b/target/linux/generic/patches-3.10/263-bmp085_dynamic.patch
2014-06-08 14:42:38.0 +0400
@@ -0,0 +1,11 @@
+--- a/drivers/misc/Kconfig 2014-04-03 23:01:22.0 +0400
 b/drivers/misc/Kconfig 2014-06-08 14:40:09.129048438 +0400
+@@ -451,7 +451,7 @@
+ still useful.
+ 
+ config BMP085
+-  bool
++  tristate BMP085 digital pressure sensor generic support
+   depends on SYSFS
+ 
+ config BMP085_I2C
--- a/target/linux/generic/patches-3.12/263-bmp085_dynamic.patch
1970-01-01 04:00:00.0 +0400
+++ b/target/linux/generic/patches-3.12/263-bmp085_dynamic.patch
2014-06-08 14:42:38.0 +0400
@@ -0,0 +1,11 @@
+--- a/drivers/misc/Kconfig 2014-04-03 23:01:22.0 +0400
 b/drivers/misc/Kconfig 2014-06-08 14:40:09.129048438 +0400
+@@ -451,7 +451,7 @@
+ still useful.
+ 
+ config BMP085
+-  bool
++  tristate BMP085 digital pressure sensor generic support
+   depends on SYSFS
+ 
+ config BMP085_I2C
--- a/target/linux/generic/patches-3.13/263-bmp085_dynamic.patch
1970-01-01 04:00:00.0 +0400
+++ b/target/linux/generic/patches-3.13/263-bmp085_dynamic.patch
2014-06-08 14:42:38.0 +0400
@@ -0,0 +1,11 @@
+--- a/drivers/misc/Kconfig 2014-04-03 23:01:22.0 +0400
 b/drivers/misc/Kconfig 2014-06-08 14:40:09.129048438 +0400
+@@ -438,7 +438,7 @@
+ still useful.
+ 
+ config BMP085
+-  bool
++  tristate BMP085 digital pressure sensor generic support
+   depends on SYSFS
+ 
+ config BMP085_I2C
--- a/target/linux/generic/patches-3.14/263-bmp085_dynamic.patch
1970-01-01 04:00:00.0 +0400
+++ b/target/linux/generic/patches-3.14/263-bmp085_dynamic.patch
2014-06-08 14:42:38.0 +0400
@@ -0,0 +1,11 @@
+--- a/drivers/misc/Kconfig 2014-04-03 23:01:22.0 +0400
 b/drivers/misc/Kconfig 2014-06-08 14:40:09.129048438 +0400
+@@ -438,7 +438,7 @@
+ still useful.
+ 
+ config BMP085
+-  bool
++  tristate BMP085 digital pressure sensor generic support
+   depends on SYSFS
+ 
+ config BMP085_I2C
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [Patch][Resend] Support for BMP085 pressure sensor

2014-07-02 Thread Jo-Philipp Wich
Hi,

git send-email support is provided by a separate package on .deb distros:

apt-get install git-email

~ Jow



signature.asc
Description: OpenPGP digital signature
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] fix remote logging

2014-07-02 Thread Reiner Herrmann
in r41439 a flag for enabling remote logging was added,
but the actual check was done on a different variable.

Signed-off-by: Reiner Herrmann rei...@reiner-h.de
---
 package/system/ubox/files/log.init | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/system/ubox/files/log.init 
b/package/system/ubox/files/log.init
index a4d57e2..be38297 100644
--- a/package/system/ubox/files/log.init
+++ b/package/system/ubox/files/log.init
@@ -71,7 +71,7 @@ start_service_remote()
echo validation failed
return 1
}
-   [ ${log_enable} -ne 0 ] || return
+   [ ${log_remote} -ne 0 ] || return
[ -z ${log_ip} ]  return
 
procd_open_instance
-- 
2.0.1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [Patch][Resend] Kernel patch for BMP085 support

2014-07-02 Thread Jonas Gorski
Hi,

this patch is currently missing:
a) a proper changelog
b) a Signed-off-by
c) proper patch headers for the individual patches.

See https://dev.openwrt.org/wiki/SubmittingPatches regarding a) and b), and
https://dev.openwrt.org/browser/trunk/target/linux/generic/PATCHES regarding c)


Jonas
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] [Resend] [kernel] mtd-partial_eraseblock_erase

2014-07-02 Thread Felix Fietkau
On 2014-07-01 16:14, Maciej Skrzypek wrote:
 mtd: allow partial block erase
 This fixes error erasing partial mtd partition which does not start on
 eraseblock boundary and allows using fconfig to configure redboot on
 devices such as the Gateworks Cambria.
 
 Maciej Skrzypek
 Flytronic
 
 Signed-off-by: Maciej Skrzypek maciej.skrzy...@flytronic.pl
I just took another look at this: The change itself makes sense, but it
needs to be done for all kernels not just 3.3. And it should be folded
into 411-mtd-partial_eraseblock_write.patch instead of remaining a
separate patch.

Thanks,

- Felix
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] [Resend] [kernel] mtd-partial_eraseblock_erase

2014-07-02 Thread Maciej Skrzypek
On 07/02/2014 03:05 PM, Felix Fietkau wrote:
 On 2014-07-01 16:14, Maciej Skrzypek wrote:
 mtd: allow partial block erase
 This fixes error erasing partial mtd partition which does not start on
 eraseblock boundary and allows using fconfig to configure redboot on
 devices such as the Gateworks Cambria.

 Maciej Skrzypek
 Flytronic

 Signed-off-by: Maciej Skrzypek maciej.skrzy...@flytronic.pl
 I just took another look at this: The change itself makes sense, but it
 needs to be done for all kernels not just 3.3. And it should be folded
 into 411-mtd-partial_eraseblock_write.patch instead of remaining a
 separate patch.
 
 Thanks,
 
 - Felix
 
I agree that it should be included in all kernels but we use 3.3
and I can test it only on this one,
but It seems that this change is almost the same in all kernels
so I can make that for all kernels.
I also looked at patches and found also 478-mtd-partial_eraseblock_unlock.patch,
so I followed that way, other way both patches should be folded into 
401-partial_eraseblock_write.patch.

Maciej




signature.asc
Description: OpenPGP digital signature
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] ramips: add missing rt3352 usb profile

2014-07-02 Thread michael lee
From: michael igv...@gmail.com

Signed-off-by: michael igv...@gmail.com
---
 target/linux/ramips/dts/rt3352.dtsi | 11 +--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/target/linux/ramips/dts/rt3352.dtsi 
b/target/linux/ramips/dts/rt3352.dtsi
index 6b1f11d..47e30a3 100644
--- a/target/linux/ramips/dts/rt3352.dtsi
+++ b/target/linux/ramips/dts/rt3352.dtsi
@@ -216,6 +216,13 @@
interrupts = 17;
};
 
+   usbphy {
+   compatible = ralink,rt3xxx-usbphy;
+
+   resets = rstctrl 22 rstctrl 25;
+   reset-names = host, device;
+   };
+
wmac@1018 {
compatible = ralink,rt3352-wmac, ralink,rt2880-wmac;
reg = 0x1018 4;
@@ -227,7 +234,7 @@
};
 
ehci@101c {
-   compatible = ralink,rt3352-ehci, ehci-platform;
+   compatible = ralink,rt3xxx-ehci, ehci-platform;
reg = 0x101c 0x1000;
 
interrupt-parent = intc;
@@ -237,7 +244,7 @@
};
 
ohci@101c1000 {
-   compatible = ralink,rt3352-ohci, ohci-platform;
+   compatible = ralink,rt3xxx-ohci, ohci-platform;
reg = 0x101c1000 0x1000;
 
interrupt-parent = intc;
-- 
1.8.5.5
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] ramips: fix target rt5350 only have 28 gpios

2014-07-02 Thread michael lee
From: michael igv...@gmail.com

Signed-off-by: michael igv...@gmail.com
---
 target/linux/ramips/dts/rt5350.dtsi | 27 ---
 1 file changed, 4 insertions(+), 23 deletions(-)

diff --git a/target/linux/ramips/dts/rt5350.dtsi 
b/target/linux/ramips/dts/rt5350.dtsi
index 7353c82..6abb271 100644
--- a/target/linux/ramips/dts/rt5350.dtsi
+++ b/target/linux/ramips/dts/rt5350.dtsi
@@ -109,32 +109,13 @@
#gpio-cells = 2;
 
ralink,gpio-base = 0;
-   ralink,num-gpios = 24;
+   ralink,num-gpios = 22;
ralink,register-map = [ 00 04 08 0c
20 24 28 2c
30 34 ];
};
 
-   gpio1: gpio@638 {
-   compatible = ralink,rt5350-gpio, ralink,rt2880-gpio;
-   reg = 0x638 0x24;
-
-   interrupt-parent = intc;
-   interrupts = 6;
-
-   gpio-controller;
-   #gpio-cells = 2;
-
-   ralink,gpio-base = 24;
-   ralink,num-gpios = 16;
-   ralink,register-map = [ 00 04 08 0c
-   10 14 18 1c
-   20 24 ];
-
-   status = disabled;
-   };
-
-   gpio2: gpio@660 {
+   gpio1: gpio@660 {
compatible = ralink,rt5350-gpio, ralink,rt2880-gpio;
reg = 0x660 0x24;
 
@@ -144,8 +125,8 @@
gpio-controller;
#gpio-cells = 2;
 
-   ralink,gpio-base = 40;
-   ralink,num-gpios = 12;
+   ralink,gpio-base = 22;
+   ralink,num-gpios = 6;
ralink,register-map = [ 00 04 08 0c
10 14 18 1c
20 24 ];
-- 
1.8.5.5
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [Patch][Resend] Kernel patch for BMP085 support

2014-07-02 Thread Sergey Korolew
Hello !

JG this patch is currently missing:
JG a) a proper changelog
JG b) a Signed-off-by
JG c) proper patch headers for the individual patches.

JG See https://dev.openwrt.org/wiki/SubmittingPatches regarding a) and b), and
JG https://dev.openwrt.org/browser/trunk/target/linux/generic/PATCHES 
regarding c)

Thanks for your answer. For c) I used 259-regmap_dynamic.patch as a sample, 
does not
found any headers in this file. Actually changes are self-descriptive, patch is 
so
big because I added all used kernel versions except 3.3 (no spi module here, 
i2c only).
I already contacted drivers/misc maintainer about applying this little bugfix to
the kernel itself (but he still does not reply).
And sorry, I can't add Signed-off line because it require my real name, but I 
does
not want it (From is not real name too).
Feel free to use patch as-is, or I can resend with description. Without it 
kernel
will fail to link because of main part of the driver code always compiled 
built-in.


 Sergey  mailto:d...@bittu.org.ru
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] ramips: add missing rt3352 usb profile

2014-07-02 Thread John Crispin


On 02/07/2014 16:46, michael lee wrote:
 From: michael igv...@gmail.com
 
 Signed-off-by: michael igv...@gmail.com


Thanks, applied in r41475 and r41476

John
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH v2] lantiq: UbinizeImage instead of lantiq-specific ubinize.cfg files

2014-07-02 Thread John Crispin


On 02/07/2014 08:37, Ben Mulvihill wrote:
 New make target in lantiq to use UbinizeImage and SysupgradeNand. 
 Only enabled for BTHOMEHUBV2B for the moment but should be useable 
 for other lantiq nand boards.
 
 Signed-off-by: Ben Mulvihill ben.mulvih...@gmail.com ---

Thanks, applied in r41474 .. and i pushed the /tmp/sysinfo/* patch in
r41472 please let me know if it still blows up or works.
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] [LANTIQ] Add XWAY cpu-feature-overrides.h

2014-07-02 Thread José Vázquez Fernández

Add XWAY cpu-feature-overrides.h file.

This patch adds cpu-feature-overrides.h file for the XWAY family, based 
in the one in FALCON.
Because Amazon SE was deprecated, cpu_has_dsp and cpu_has_mips16 have 
been set, while cpu_has_mt has been undefined due to the lack of mt ASE 
in the Danube.

With this file the kernel size is reduced about 30KB in the XWAY subtarget.
Tested in a Danube based router with no problems and with a little 
improvement in the USB port when using mass storage devices and wireless 
dongles.


Signed off by: José Vázquez Fernández ppvazquez...@gmail.com


--- a/arch/mips/include/asm/mach-lantiq/xway/cpu-feature-overrides.h 
1970-01-01 01:00:00.0 +0100
+++ b/arch/mips/include/asm/mach-lantiq/xway/cpu-feature-overrides.h 
2014-07-01 12:37:07.790313378 +0200

@@ -0,0 +1,58 @@
+/*
+ *  Lantiq XWAY specific CPU feature overrides
+ *
+ *  Copyright (C) 2014 José Vázquez Fernández
+ *
+ *  This file was derived from: include/asm-mips/cpu-features.h
+ * Copyright (C) 2003, 2004 Ralf Baechle
+ * Copyright (C) 2004 Maciej W. Rozycki
+ *
+ *  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.
+ *
+ */
+#ifndef __ASM_MACH_XWAY_CPU_FEATURE_OVERRIDES_H
+#define __ASM_MACH_XWAY_CPU_FEATURE_OVERRIDES_H
+
+#define cpu_has_tlb1
+#define cpu_has_4kex   1
+#define cpu_has_3k_cache   0
+#define cpu_has_4k_cache   1
+#define cpu_has_tx39_cache 0
+#define cpu_has_sb1_cache  0
+#define cpu_has_fpu0
+#define cpu_has_32fpr  0
+#define cpu_has_counter1
+#define cpu_has_watch  1
+#define cpu_has_divec  1
+
+#define cpu_has_prefetch   1
+#define cpu_has_ejtag  1
+#define cpu_has_llsc   1
+
+#define cpu_has_dsp1
+#define cpu_has_mips16 1
+#define cpu_has_dsp2   0
+#define cpu_has_mdmx   0
+#define cpu_has_mips3d 0
+#define cpu_has_smartmips  0
+#define cpu_has_vz 0
+
+#define cpu_has_mips32r1   1
+#define cpu_has_mips32r2   1
+#define cpu_has_mips64r1   0
+#define cpu_has_mips64r2   0
+
+#define cpu_has_vint   1 /* MIPSR2 vectored interrupts */
+#define cpu_has_veic   1 /* MIPSR2 external interrupt controller mode 
*/
+
+#define cpu_has_64bits 0
+#define cpu_has_64bit_zero_reg 0
+#define cpu_has_64bit_gp_regs  0
+#define cpu_has_64bit_addresses0
+
+#define cpu_dcache_line_size() 32
+#define cpu_icache_line_size() 32
+
+#endif /* __ASM_MACH_XWAY_CPU_FEATURE_OVERRIDES_H */
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] [LANTIQ] Add XWAY cpu-feature-overrides.h

2014-07-02 Thread José Vázquez Fernández



On 02/07/14 21:49, José Vázquez Fernández wrote:

Add XWAY cpu-feature-overrides.h file.

This patch adds cpu-feature-overrides.h file for the XWAY family, based
in the one in FALCON.
Because Amazon SE was deprecated, cpu_has_dsp and cpu_has_mips16 have
been set, while cpu_has_mt has been undefined due to the lack of mt ASE
in the Danube.
With this file the kernel size is reduced about 30KB in the XWAY subtarget.
Tested in a Danube based router with no problems and with a little
improvement in the USB port when using mass storage devices and wireless
dongles.

Signed off by: José Vázquez Fernández ppvazquez...@gmail.com

I haven't AR9 nor VR9 based boards so a tests in those SoCs are strongly 
recommended.


diff --git 
a/target/linux/lantiq/patches-3.10/0036-MIPS-lantiq-xway-add-cpu-feature-override.patch 
b/target/linux/lantiq/patches-3.10/0036-MIPS-lantiq-xway-add-cpu-feature-override.patch

new file mode 100644
index 000..5e9a9d2

--- a/arch/mips/include/asm/mach-lantiq/xway/cpu-feature-overrides.h
1970-01-01 01:00:00.0 +0100
+++ b/arch/mips/include/asm/mach-lantiq/xway/cpu-feature-overrides.h
2014-07-01 12:37:07.790313378 +0200
@@ -0,0 +1,58 @@
+/*
+ *  Lantiq XWAY specific CPU feature overrides
+ *
+ *  Copyright (C) 2014 José Vázquez Fernández
+ *
+ *  This file was derived from: include/asm-mips/cpu-features.h
+ *Copyright (C) 2003, 2004 Ralf Baechle
+ *Copyright (C) 2004 Maciej W. Rozycki
+ *
+ *  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.
+ *
+ */
+#ifndef __ASM_MACH_XWAY_CPU_FEATURE_OVERRIDES_H
+#define __ASM_MACH_XWAY_CPU_FEATURE_OVERRIDES_H
+
+#define cpu_has_tlb1
+#define cpu_has_4kex1
+#define cpu_has_3k_cache0
+#define cpu_has_4k_cache1
+#define cpu_has_tx39_cache0
+#define cpu_has_sb1_cache0
+#define cpu_has_fpu0
+#define cpu_has_32fpr0
+#define cpu_has_counter1
+#define cpu_has_watch1
+#define cpu_has_divec1
+
+#define cpu_has_prefetch1
+#define cpu_has_ejtag1
+#define cpu_has_llsc1
+
+#define cpu_has_dsp1
+#define cpu_has_mips161
+#define cpu_has_dsp20
+#define cpu_has_mdmx0
+#define cpu_has_mips3d0
+#define cpu_has_smartmips0
+#define cpu_has_vz0
+
+#define cpu_has_mips32r11
+#define cpu_has_mips32r21
+#define cpu_has_mips64r10
+#define cpu_has_mips64r20
+
+#define cpu_has_vint1 /* MIPSR2 vectored interrupts */
+#define cpu_has_veic1 /* MIPSR2 external interrupt controller
mode */
+
+#define cpu_has_64bits0
+#define cpu_has_64bit_zero_reg0
+#define cpu_has_64bit_gp_regs0
+#define cpu_has_64bit_addresses0
+
+#define cpu_dcache_line_size()32
+#define cpu_icache_line_size()32
+
+#endif /* __ASM_MACH_XWAY_CPU_FEATURE_OVERRIDES_H */

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] [LANTIQ] [resend] Add XWAY cpu-feature-overrides

2014-07-02 Thread José Vázquez Fernández

Add XWAY cpu-feature-overrides.h file.

This patch adds cpu-feature-overrides.h file for the XWAY family, based 
in the one in FALCON.
Because Amazon SE was deprecated, cpu_has_dsp and cpu_has_mips16 have 
been set, while cpu_has_mt has been undefined due to the lack of mt ASE 
in the Danube.

With this file the kernel size is reduced about 30KB in the XWAY subtarget.
Tested in a Danube based router with no problems and with a little 
improvement in the USB port when using mass storage devices and wireless 
dongles.


Signed off by: José Vázquez Fernández ppvazquez...@gmail.com

diff --git 
a/target/linux/lantiq/patches-3.10/0036-MIPS-lantiq-xway-add-cpu-feature-override.patch 
b/target/linux/lantiq/patches-3.10/0036-MIPS-lantiq-xway-add-cpu-feature-override.patch

new file mode 100644
index 000..5e9a9d2
diff -urN a/arch/mips/include/asm/mach-lantiq/xway/cpu-feature- 
overrides.h b/arch/mips/include/asm/mach-lantiq/xway/cpu-feature-overrides.h
--- a/arch/mips/include/asm/mach-lantiq/xway/cpu-feature-overrides.h 
1970-01-01 01:00:00.0 +0100
+++ b/arch/mips/include/asm/mach-lantiq/xway/cpu-feature-overrides.h 
2014-07-01 12:37:07.790313378 +0200

@@ -0,0 +1,58 @@
+/*
+ *  Lantiq XWAY specific CPU feature overrides
+ *
+ *  Copyright (C) 2014 José Vázquez Fernández
+ *
+ *  This file was derived from: include/asm-mips/cpu-features.h
+ * Copyright (C) 2003, 2004 Ralf Baechle
+ * Copyright (C) 2004 Maciej W. Rozycki
+ *
+ *  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.
+ *
+ */
+#ifndef __ASM_MACH_XWAY_CPU_FEATURE_OVERRIDES_H
+#define __ASM_MACH_XWAY_CPU_FEATURE_OVERRIDES_H
+
+#define cpu_has_tlb1
+#define cpu_has_4kex   1
+#define cpu_has_3k_cache   0
+#define cpu_has_4k_cache   1
+#define cpu_has_tx39_cache 0
+#define cpu_has_sb1_cache  0
+#define cpu_has_fpu0
+#define cpu_has_32fpr  0
+#define cpu_has_counter1
+#define cpu_has_watch  1
+#define cpu_has_divec  1
+
+#define cpu_has_prefetch   1
+#define cpu_has_ejtag  1
+#define cpu_has_llsc   1
+
+#define cpu_has_dsp1
+#define cpu_has_mips16 1
+#define cpu_has_dsp2   0
+#define cpu_has_mdmx   0
+#define cpu_has_mips3d 0
+#define cpu_has_smartmips  0
+#define cpu_has_vz 0
+
+#define cpu_has_mips32r1   1
+#define cpu_has_mips32r2   1
+#define cpu_has_mips64r1   0
+#define cpu_has_mips64r2   0
+
+#define cpu_has_vint   1 /* MIPSR2 vectored interrupts */
+#define cpu_has_veic   1 /* MIPSR2 external interrupt controller mode 
*/
+
+#define cpu_has_64bits 0
+#define cpu_has_64bit_zero_reg 0
+#define cpu_has_64bit_gp_regs  0
+#define cpu_has_64bit_addresses0
+
+#define cpu_dcache_line_size() 32
+#define cpu_icache_line_size() 32
+
+#endif /* __ASM_MACH_XWAY_CPU_FEATURE_OVERRIDES_H */
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Status of DFS in OpenWrt - ath9k

2014-07-02 Thread Martin Garbe
On 7/1/14, 10:04 AM, Jacek Kikiewicz wrote:
 Hello,
 
 I have few APs that are using ath9k driver, I've read that now DFS is 
 supported on that driver,
 so I compiled latest revision (yesterday: 41415), and started playing, 
 basically when as per
 manual / howto I run 'iw phy phy1 info' I can see DFS channels, exactly like 
 in howto on a wiki, problem is however
 that I cannot make it work on those channels (I've tried 52,56,100, 104), 
 after changing config and restarting wifi
 I saw in dmesg 'interface wlan1 entered disabled mode) - I tried with HT20 
 for the beginning.
 So, question here is, should this work in current state or is there still 
 some support missing?
 I can pull any logs  / settings that are of interest.

Have you elected
 CONFIG_PACKAGE_ATH_DFS=y
when compiling the driver? This way you agree to the fact that your
hardware supports DFS. After that DFS channels can be selected.


Martin

 
 Thanks!
 Jacek
 ___
 openwrt-devel mailing list
 openwrt-devel@lists.openwrt.org
 https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
 
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] [LANTIQ] Add XWAY cpu-feature-overrides.h

2014-07-02 Thread thomas.langer
Hello José.

cpu_has_veic should be left disabled (this is wrong also for Falcon)

Thanks,
Thomas

 -Original Message-
 From: openwrt-devel [mailto:openwrt-devel-boun...@lists.openwrt.org] On
 Behalf Of José Vázquez Fernández
 Sent: Wednesday, July 02, 2014 9:50 PM
 To: openwrt-devel@lists.openwrt.org
 Subject: [OpenWrt-Devel] [PATCH] [LANTIQ] Add XWAY cpu-feature-overrides.h
 
 Add XWAY cpu-feature-overrides.h file.
 
 This patch adds cpu-feature-overrides.h file for the XWAY family, based
 in the one in FALCON.
 Because Amazon SE was deprecated, cpu_has_dsp and cpu_has_mips16 have
 been set, while cpu_has_mt has been undefined due to the lack of mt ASE
 in the Danube.
 With this file the kernel size is reduced about 30KB in the XWAY subtarget.
 Tested in a Danube based router with no problems and with a little
 improvement in the USB port when using mass storage devices and wireless
 dongles.
 
 Signed off by: José Vázquez Fernández ppvazquez...@gmail.com
 
 
 --- a/arch/mips/include/asm/mach-lantiq/xway/cpu-feature-overrides.h
 1970-01-01 01:00:00.0 +0100
 +++ b/arch/mips/include/asm/mach-lantiq/xway/cpu-feature-overrides.h
 2014-07-01 12:37:07.790313378 +0200
 @@ -0,0 +1,58 @@
 +/*
 + *  Lantiq XWAY specific CPU feature overrides
 + *
 + *  Copyright (C) 2014 José Vázquez Fernández
 + *
 + *  This file was derived from: include/asm-mips/cpu-features.h
 + *   Copyright (C) 2003, 2004 Ralf Baechle
 + *   Copyright (C) 2004 Maciej W. Rozycki
 + *
 + *  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.
 + *
 + */
 +#ifndef __ASM_MACH_XWAY_CPU_FEATURE_OVERRIDES_H
 +#define __ASM_MACH_XWAY_CPU_FEATURE_OVERRIDES_H
 +
 +#define cpu_has_tlb  1
 +#define cpu_has_4kex 1
 +#define cpu_has_3k_cache 0
 +#define cpu_has_4k_cache 1
 +#define cpu_has_tx39_cache   0
 +#define cpu_has_sb1_cache0
 +#define cpu_has_fpu  0
 +#define cpu_has_32fpr0
 +#define cpu_has_counter  1
 +#define cpu_has_watch1
 +#define cpu_has_divec1
 +
 +#define cpu_has_prefetch 1
 +#define cpu_has_ejtag1
 +#define cpu_has_llsc 1
 +
 +#define cpu_has_dsp  1
 +#define cpu_has_mips16   1
 +#define cpu_has_dsp2 0
 +#define cpu_has_mdmx 0
 +#define cpu_has_mips3d   0
 +#define cpu_has_smartmips0
 +#define cpu_has_vz   0
 +
 +#define cpu_has_mips32r1 1
 +#define cpu_has_mips32r2 1
 +#define cpu_has_mips64r1 0
 +#define cpu_has_mips64r2 0
 +
 +#define cpu_has_vint 1 /* MIPSR2 vectored interrupts */
 +#define cpu_has_veic 1 /* MIPSR2 external interrupt controller
 mode */
 +
 +#define cpu_has_64bits   0
 +#define cpu_has_64bit_zero_reg   0
 +#define cpu_has_64bit_gp_regs0
 +#define cpu_has_64bit_addresses  0
 +
 +#define cpu_dcache_line_size()   32
 +#define cpu_icache_line_size()   32
 +
 +#endif /* __ASM_MACH_XWAY_CPU_FEATURE_OVERRIDES_H */
 ___
 openwrt-devel mailing list
 openwrt-devel@lists.openwrt.org
 https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] System Logs Reporting: IEEE 802.11: Could not add STA to kernel driver for Windows 7 clients

2014-07-02 Thread Derek Vicky

Using
OpenWrt Barrier Breaker r4066, with a TPlink USB  722n on a BCM2708 
platform.
Andriod phones, Iphones, Ubuntu systems, visio TV, Windows 8.1 systems 
connect OK, but No success for windows 7sp1 pro, HP or Lenovo.  Any ideas?


here are the contents of the /etc/config/wireless
config wifi-device 'radio0'
option type 'mac80211'
option hwmode '11ng'
option path 'platform/bcm2708_usb/usb1/1-1/1-1.2/1-1.2:1.0'
option htmode 'HT20'
list ht_capab 'SHORT-GI-20'
list ht_capab 'SHORT-GI-40'
list ht_capab 'RX-STBC1'
list ht_capab 'DSSS_CCK-40'
option txpower '20'
option country 'US'
option channel '1'

config wifi-iface
option device 'radio0'
option mode 'ap'
option ssid 'RaspberryPi'
option key 'xyz12345'
option network 'lan'
option encryption 'psk+ccmp'

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH RESEND] firmware-utils/mkdir615h1: fix magic XOR calculation

2014-07-02 Thread Forest Crossman
Someone changed this patch's state to accepted, but I haven't seen it
appear in SVN yet. Is there something I still need to do? Or does it
just take a while for a patch to go from Accepted to Committed? I
ask because I have some more patches to add that will make this code
more efficient and generic because it actually applies to most if not
all Senao-produced boards.

--
Forest Crossman


On Sun, Jun 22, 2014 at 4:33 PM, Forest Crossman cyro...@gmail.com wrote:
 Signed-off-by: Forest Crossman cyro...@gmail.com
 ---
  tools/firmware-utils/src/mkdir615h1.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)

 diff --git a/tools/firmware-utils/src/mkdir615h1.c 
 b/tools/firmware-utils/src/mkdir615h1.c
 index 84692aa..d9fb35c 100644
 --- a/tools/firmware-utils/src/mkdir615h1.c
 +++ b/tools/firmware-utils/src/mkdir615h1.c
 @@ -199,7 +199,7 @@ static int encode_image(const char *input_file_name,
 }

 for (i = 0; i  bytes_read; i++)
 -   buf[i] ^= magic  i  60) + i)  7) - (i  
 60));
 +   buf[i] ^= magic  (i % 8)  0xff;
 fwrite(buf, bytes_read, 1, fp_output);
 }

 @@ -254,7 +254,7 @@ int decode_image(const char *input_file_name, const char 
 *output_file_name)

 bytes_read = fread(buf, 1, BUF_SIZE, fp_input);
 for (i = 0; i  bytes_read; i++)
 -   buf[i] ^= header.magic  i  60) + i)  7) - (i 
  60));
 +   buf[i] ^= header.magic  (i % 8)  0xff;

 /*
  * Handle padded source file
 --
 1.9.2

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH][ramips]Add support for Aigale Ai-BR100

2014-07-02 Thread 郭传鈜
Ai-BR100 is a router with mt7620a chip.Maybe it's only sold in China.
There are only 2 lights on the board (WAN and WLAN) so I used the wlan
light as the status led.
USB is not working normally (only usb2.0 devices can be recognized when I
select kmod-usb2 and kmod-usb-ohci) I don't know if it is caused by my dts
file:-(

Signed-off-by: Chuanhong Guo gch981...@gmail.com


diff -ruN a/target/linux/ramips/base-files/etc/diag.sh
b/target/linux/ramips/base-files/etc/diag.sh
--- a/target/linux/ramips/base-files/etc/diag.sh 2014-07-02
23:06:16.196364942 +0800
+++ b/target/linux/ramips/base-files/etc/diag.sh 2014-07-02
17:50:24.925880926 +0800
@@ -179,6 +179,9 @@
  na930)
  status_led=na930:blue:power
  ;;
+ ai-br100)
+ status_led=aigale:blue:wlan
+ ;;
  esac
 }

diff -ruN
a/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom
b/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom
--- a/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom
2014-07-02
23:06:16.197364943 +0800
+++ b/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom
2014-07-02
17:50:24.926880924 +0800
@@ -121,6 +121,7 @@
  wr512-3gn | \
  wr6202 | \
  wrtnode | \
+ ai-br100 | \
  mzk-w300nh2 | \
  ur-326n4g | \
  ur-336un | \
diff -ruN a/target/linux/ramips/base-files/etc/uci-defaults/01_leds
b/target/linux/ramips/base-files/etc/uci-defaults/01_leds
--- a/target/linux/ramips/base-files/etc/uci-defaults/01_leds 2014-07-02
23:06:16.197364943 +0800
+++ b/target/linux/ramips/base-files/etc/uci-defaults/01_leds 2014-07-02
17:50:24.926880924 +0800
@@ -153,6 +153,10 @@
  set_usb_led alfa:blue:usb
  set_wifi_led rt2800pci-phy0::radio
  ;;
+ ai-br100)
+ ucidef_set_led_netdev wan wan aigale:blue:wan eth0.2
+ set_wifi_led aigale:blue:wlan
+ ;;
  wcr-150gn)
  set_usb_led wcr150gn:amber:user
  ;;
diff -ruN a/target/linux/ramips/base-files/lib/ramips.sh
b/target/linux/ramips/base-files/lib/ramips.sh
--- a/target/linux/ramips/base-files/lib/ramips.sh 2014-07-02
23:06:16.198364946 +0800
+++ b/target/linux/ramips/base-files/lib/ramips.sh 2014-07-02
17:50:24.926880924 +0800
@@ -304,6 +304,9 @@
  *Wansview NCS601W)
  name=ncs601w
  ;;
+ *Aigale Ai-BR100)
+ name=ai-br100
+ ;;
  *Sercomm NA930)
  name=na930
  ;;
diff -ruN a/target/linux/ramips/base-files/lib/upgrade/platform.sh
b/target/linux/ramips/base-files/lib/upgrade/platform.sh
--- a/target/linux/ramips/base-files/lib/upgrade/platform.sh 2014-07-02
23:06:16.199364951 +0800
+++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh 2014-07-02
17:50:24.927880922 +0800
@@ -90,6 +90,7 @@
  wr512-3gn |\
  wmr300 |\
  wrtnode |\
+ ai-br100 |\
  x5 |\
  x8)
  [ $magic != 27051956 ]  {
diff -ruN a/target/linux/ramips/dts/AIBR100.dts
b/target/linux/ramips/dts/AIBR100.dts
--- a/target/linux/ramips/dts/AIBR100.dts 1970-01-01 08:00:00.0
+0800
+++ b/target/linux/ramips/dts/AIBR100.dts 2014-07-02 17:47:58.887491883
+0800
@@ -0,0 +1,100 @@
+/dts-v1/;
+
+/include/ mt7620a.dtsi
+
+/ {
+ compatible = AIBR100, ralink,mt7620a-soc;
+ model = Aigale Ai-BR100;
+
+ palmbus@1000 {
+ gpio2: gpio@660 {
+ status = okay;
+ };
+
+ gpio3: gpio@688 {
+ status = okay;
+ };
+
+ spi@b00 {
+ status = okay;
+
+ m25p80@0 {
+ #address-cells = 1;
+ #size-cells = 1;
+ compatible = en25q64;
+ reg = 0 0;
+ linux,modalias = m25p80, en25q64;
+ spi-max-frequency = 1000;
+
+ partition@0 {
+ label = u-boot;
+ reg = 0x0 0x2;
+ read-only;
+ };
+
+ partition@2 {
+ label = u-boot-env;
+ reg = 0x2 0x1;
+ read-only;
+ };
+
+ factory: partition@3 {
+ label = factory;
+ reg = 0x3 0x1;
+ read-only;
+ };
+
+ partition@4 {
+ label = firmware;
+ reg = 0x4 0x7c;
+ };
+ };
+ };
+ };
+
+ ehci@101c {
+ status = okay;
+ };
+
+ ohci@101c1000 {
+ status = okay;
+ };
+
+ pinctrl {
+ state_default: pinctrl0 {
+ gpio {
+ ralink,group = i2c, uartf, rgmii1, rgmii2, ephy, wled,
nd_sd;
+ ralink,function = gpio;
+ };
+ };
+ };
+
+ ethernet@1010 {
+ mtd-mac-address = factory 0x4;
+ ralink,port-map = w;
+ };
+
+ gpio-leds {
+ compatible = gpio-leds;
+ wan {
+ label = aigale:blue:wan;
+ gpios = gpio2 4 1;
+ };
+ wlan {
+ label = aigale:blue:wlan;
+ gpios = gpio3 0 1;
+ };
+ };
+
+ gpio-keys-polled {
+ compatible = gpio-keys-polled;
+ #address-cells = 1;
+ #size-cells = 0;
+ poll-interval = 20;
+ reset {
+ label = reset;
+ gpios = gpio0 12 1;
+ linux,code = 0x198;
+ };
+ };
+};
diff -ruN a/target/linux/ramips/image/Makefile
b/target/linux/ramips/image/Makefile
--- a/target/linux/ramips/image/Makefile 2014-07-02 23:06:16.214364992 +0800
+++ b/target/linux/ramips/image/Makefile 2014-07-02 17:50:24.928880926 +0800
@@ -714,6 +714,8 @@
 Image/Build/Profile/DIR-810L=$(call
BuildFirmware/CustomFlash/$(1),$(1),dir-810l,DIR-810L,$(dlink810l_mtd_size))
 na930_mtd_size=20971520
 Image/Build/Profile/NA930=$(call
BuildFirmware/CustomFlash/$(1),$(1),na930,NA930,$(na930_mtd_size))
+br100_mtd_size=8126464
+Image/Build/Profile/AIBR100=$(call

[OpenWrt-Devel] [PATCH][ramips][resend]Add support for Aigale Ai-BR100

2014-07-02 Thread 郭传鈜
Sorry. I resent this because of the text format :-( I don't know why
my patch isn't displayed normally in the patchwork page.What should I
do?
I also uploaded my patch file here:
http://php-gch981213.rhcloud.com/wp-content/uploads/2014/07/br100patch.txt


Ai-BR100 is a router with mt7620a chip.Maybe it's only sold in China.
There are only 2 lights on the board (WAN and WLAN) so I used the wlan
light as the status led.
USB is not working normally (only usb2.0 devices can be recognized
when I select kmod-usb2 and kmod-usb-ohci) I don't know if it is
caused by my dts file:-(

Signed-off-by: Chuanhong Guo gch981...@gmail.com

diff --git a/target/linux/ramips/base-files/etc/diag.sh
b/target/linux/ramips/base-files/etc/diag.sh
index 14d630e..2d34172 100755
--- a/target/linux/ramips/base-files/etc/diag.sh
+++ b/target/linux/ramips/base-files/etc/diag.sh
@@ -179,6 +179,9 @@ get_status_led() {
  na930)
  status_led=na930:blue:power
  ;;
+ ai-br100)
+ status_led=aigale:blue:wlan
+ ;;
  esac
 }

diff --git 
a/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom
b/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom
index b56fb63..64ae008 100644
--- a/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom
+++ b/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom
@@ -121,6 +121,7 @@ case $FIRMWARE in
  wr512-3gn | \
  wr6202 | \
  wrtnode | \
+ ai-br100 | \
  mzk-w300nh2 | \
  ur-326n4g | \
  ur-336un | \
diff --git a/target/linux/ramips/base-files/etc/uci-defaults/01_leds
b/target/linux/ramips/base-files/etc/uci-defaults/01_leds
index c2f768b..1c99acc 100755
--- a/target/linux/ramips/base-files/etc/uci-defaults/01_leds
+++ b/target/linux/ramips/base-files/etc/uci-defaults/01_leds
@@ -153,6 +153,10 @@ case $board in
  set_usb_led alfa:blue:usb
  set_wifi_led rt2800pci-phy0::radio
  ;;
+ ai-br100)
+ ucidef_set_led_netdev wan wan aigale:blue:wan eth0.2
+ set_wifi_led aigale:blue:wlan
+ ;;
  wcr-150gn)
  set_usb_led wcr150gn:amber:user
  ;;
diff --git a/target/linux/ramips/base-files/lib/ramips.sh
b/target/linux/ramips/base-files/lib/ramips.sh
index ca339b3..a46b09d 100755
--- a/target/linux/ramips/base-files/lib/ramips.sh
+++ b/target/linux/ramips/base-files/lib/ramips.sh
@@ -304,6 +304,9 @@ ramips_board_detect() {
  *Wansview NCS601W)
  name=ncs601w
  ;;
+ *Aigale Ai-BR100)
+ name=ai-br100
+ ;;
  *Sercomm NA930)
  name=na930
  ;;
diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh
b/target/linux/ramips/base-files/lib/upgrade/platform.sh
index a39c433..524fc11 100755
--- a/target/linux/ramips/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh
@@ -90,6 +90,7 @@ platform_check_image() {
  wr512-3gn |\
  wmr300 |\
  wrtnode |\
+ ai-br100 |\
  x5 |\
  x8)
  [ $magic != 27051956 ]  {
diff --git a/target/linux/ramips/dts/AIBR100.dts
b/target/linux/ramips/dts/AIBR100.dts
index e69de29..62361ce 100644
--- a/target/linux/ramips/dts/AIBR100.dts
+++ b/target/linux/ramips/dts/AIBR100.dts
@@ -0,0 +1,100 @@
+/dts-v1/;
+
+/include/ mt7620a.dtsi
+
+/ {
+ compatible = AIBR100, ralink,mt7620a-soc;
+ model = Aigale Ai-BR100;
+
+ palmbus@1000 {
+ gpio2: gpio@660 {
+ status = okay;
+ };
+
+ gpio3: gpio@688 {
+ status = okay;
+ };
+
+ spi@b00 {
+ status = okay;
+
+ m25p80@0 {
+ #address-cells = 1;
+ #size-cells = 1;
+ compatible = en25q64;
+ reg = 0 0;
+ linux,modalias = m25p80, en25q64;
+ spi-max-frequency = 1000;
+
+ partition@0 {
+ label = u-boot;
+ reg = 0x0 0x2;
+ read-only;
+ };
+
+ partition@2 {
+ label = u-boot-env;
+ reg = 0x2 0x1;
+ read-only;
+ };
+
+ factory: partition@3 {
+ label = factory;
+ reg = 0x3 0x1;
+ read-only;
+ };
+
+ partition@4 {
+ label = firmware;
+ reg = 0x4 0x7c;
+ };
+ };
+ };
+ };
+
+ ehci@101c {
+ status = okay;
+ };
+
+ ohci@101c1000 {
+ status = okay;
+ };
+
+ pinctrl {
+ state_default: pinctrl0 {
+ gpio {
+ ralink,group = i2c, uartf, rgmii1, rgmii2, ephy, wled, nd_sd;
+ ralink,function = gpio;
+ };
+ };
+ };
+
+ ethernet@1010 {
+ mtd-mac-address = factory 0x4;
+ ralink,port-map = w;
+ };
+
+ gpio-leds {
+ compatible = gpio-leds;
+ wan {
+ label = aigale:blue:wan;
+ gpios = gpio2 4 1;
+ };
+ wlan {
+ label = aigale:blue:wlan;
+ gpios = gpio3 0 1;
+ };
+ };
+
+ gpio-keys-polled {
+ compatible = gpio-keys-polled;
+ #address-cells = 1;
+ #size-cells = 0;
+ poll-interval = 20;
+ reset {
+ label = reset;
+ gpios = gpio0 12 1;
+ linux,code = 0x198;
+ };
+ };
+};
diff --git a/target/linux/ramips/image/Makefile
b/target/linux/ramips/image/Makefile
index 5b23035..567d9d9 100644
--- a/target/linux/ramips/image/Makefile
+++ b/target/linux/ramips/image/Makefile
@@ -714,6 +714,8 @@ dlink810l_mtd_size=6881280
 Image/Build/Profile/DIR-810L=$(call
BuildFirmware/CustomFlash/$(1),$(1),dir-810l,DIR-810L,$(dlink810l_mtd_size))
 na930_mtd_size=20971520
 Image/Build/Profile/NA930=$(call

Re: [OpenWrt-Devel] [PATCH][ramips][resend]Add support for Aigale Ai-BR100

2014-07-02 Thread Xiongfei Guo
hi,

if you are using git, you can try the 'git sent-email ' command. if svn, may be 
there are other similar tool to send a good patch.

Alex Guo
Credo Semi.

郭传鈜 gch981...@gmail.com编写:

Sorry. I resent this because of the text format :-( I don't know why
my patch isn't displayed normally in the patchwork page.What should I
do?
I also uploaded my patch file here:
http://php-gch981213.rhcloud.com/wp-content/uploads/2014/07/br100patch.txt


Ai-BR100 is a router with mt7620a chip.Maybe it's only sold in China.
There are only 2 lights on the board (WAN and WLAN) so I used the wlan
light as the status led.
USB is not working normally (only usb2.0 devices can be recognized
when I select kmod-usb2 and kmod-usb-ohci) I don't know if it is
caused by my dts file:-(

Signed-off-by: Chuanhong Guo gch981...@gmail.com

diff --git a/target/linux/ramips/base-files/etc/diag.sh
b/target/linux/ramips/base-files/etc/diag.sh
index 14d630e..2d34172 100755
--- a/target/linux/ramips/base-files/etc/diag.sh
+++ b/target/linux/ramips/base-files/etc/diag.sh
@@ -179,6 +179,9 @@ get_status_led() {
  na930)
  status_led=na930:blue:power
  ;;
+ ai-br100)
+ status_led=aigale:blue:wlan
+ ;;
  esac
 }

diff --git 
a/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom
b/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom
index b56fb63..64ae008 100644
--- a/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom
+++ b/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom
@@ -121,6 +121,7 @@ case $FIRMWARE in
  wr512-3gn | \
  wr6202 | \
  wrtnode | \
+ ai-br100 | \
  mzk-w300nh2 | \
  ur-326n4g | \
  ur-336un | \
diff --git a/target/linux/ramips/base-files/etc/uci-defaults/01_leds
b/target/linux/ramips/base-files/etc/uci-defaults/01_leds
index c2f768b..1c99acc 100755
--- a/target/linux/ramips/base-files/etc/uci-defaults/01_leds
+++ b/target/linux/ramips/base-files/etc/uci-defaults/01_leds
@@ -153,6 +153,10 @@ case $board in
  set_usb_led alfa:blue:usb
  set_wifi_led rt2800pci-phy0::radio
  ;;
+ ai-br100)
+ ucidef_set_led_netdev wan wan aigale:blue:wan eth0.2
+ set_wifi_led aigale:blue:wlan
+ ;;
  wcr-150gn)
  set_usb_led wcr150gn:amber:user
  ;;
diff --git a/target/linux/ramips/base-files/lib/ramips.sh
b/target/linux/ramips/base-files/lib/ramips.sh
index ca339b3..a46b09d 100755
--- a/target/linux/ramips/base-files/lib/ramips.sh
+++ b/target/linux/ramips/base-files/lib/ramips.sh
@@ -304,6 +304,9 @@ ramips_board_detect() {
  *Wansview NCS601W)
  name=ncs601w
  ;;
+ *Aigale Ai-BR100)
+ name=ai-br100
+ ;;
  *Sercomm NA930)
  name=na930
  ;;
diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh
b/target/linux/ramips/base-files/lib/upgrade/platform.sh
index a39c433..524fc11 100755
--- a/target/linux/ramips/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh
@@ -90,6 +90,7 @@ platform_check_image() {
  wr512-3gn |\
  wmr300 |\
  wrtnode |\
+ ai-br100 |\
  x5 |\
  x8)
  [ $magic != 27051956 ]  {
diff --git a/target/linux/ramips/dts/AIBR100.dts
b/target/linux/ramips/dts/AIBR100.dts
index e69de29..62361ce 100644
--- a/target/linux/ramips/dts/AIBR100.dts
+++ b/target/linux/ramips/dts/AIBR100.dts
@@ -0,0 +1,100 @@
+/dts-v1/;
+
+/include/ mt7620a.dtsi
+
+/ {
+ compatible = AIBR100, ralink,mt7620a-soc;
+ model = Aigale Ai-BR100;
+
+ palmbus@1000 {
+ gpio2: gpio@660 {
+ status = okay;
+ };
+
+ gpio3: gpio@688 {
+ status = okay;
+ };
+
+ spi@b00 {
+ status = okay;
+
+ m25p80@0 {
+ #address-cells = 1;
+ #size-cells = 1;
+ compatible = en25q64;
+ reg = 0 0;
+ linux,modalias = m25p80, en25q64;
+ spi-max-frequency = 1000;
+
+ partition@0 {
+ label = u-boot;
+ reg = 0x0 0x2;
+ read-only;
+ };
+
+ partition@2 {
+ label = u-boot-env;
+ reg = 0x2 0x1;
+ read-only;
+ };
+
+ factory: partition@3 {
+ label = factory;
+ reg = 0x3 0x1;
+ read-only;
+ };
+
+ partition@4 {
+ label = firmware;
+ reg = 0x4 0x7c;
+ };
+ };
+ };
+ };
+
+ ehci@101c {
+ status = okay;
+ };
+
+ ohci@101c1000 {
+ status = okay;
+ };
+
+ pinctrl {
+ state_default: pinctrl0 {
+ gpio {
+ ralink,group = i2c, uartf, rgmii1, rgmii2, ephy, wled, nd_sd;
+ ralink,function = gpio;
+ };
+ };
+ };
+
+ ethernet@1010 {
+ mtd-mac-address = factory 0x4;
+ ralink,port-map = w;
+ };
+
+ gpio-leds {
+ compatible = gpio-leds;
+ wan {
+ label = aigale:blue:wan;
+ gpios = gpio2 4 1;
+ };
+ wlan {
+ label = aigale:blue:wlan;
+ gpios = gpio3 0 1;
+ };
+ };
+
+ gpio-keys-polled {
+ compatible = gpio-keys-polled;
+ #address-cells = 1;
+ #size-cells = 0;
+ poll-interval = 20;
+ reset {
+ label = reset;
+ gpios = gpio0 12 1;
+ linux,code = 0x198;
+ };
+ };
+};
diff --git a/target/linux/ramips/image/Makefile
b/target/linux/ramips/image/Makefile
index 5b23035..567d9d9 100644
--- a/target/linux/ramips/image/Makefile
+++ b/target/linux/ramips/image/Makefile
@@ -714,6 +714,8 @@ dlink810l_mtd_size=6881280
 Image/Build/Profile/DIR-810L=$(call

Re: [OpenWrt-Devel] [PATCH RESEND] firmware-utils/mkdir615h1: fix magic XOR calculation

2014-07-02 Thread Cezary Jackiewicz
Dnia 2014-07-02, o godz. 22:14:22
Forest Crossman cyro...@gmail.com napisał(a):

 Someone changed this patch's state to accepted, but I haven't seen it
 appear in SVN yet. Is there something I still need to do? Or does it
 just take a while for a patch to go from Accepted to Committed? I
 ask because I have some more patches to add that will make this code
 more efficient and generic because it actually applies to most if not
 all Senao-produced boards.

See https://dev.openwrt.org/changeset/41314

-- 
Pozdrawiam,
 Cezary Jackiewicz
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Status of DFS in OpenWrt - ath9k

2014-07-02 Thread Jacek Kikiewicz

Hi,

I sure selected this option, as I said command 'iw phy phy1 info' does 
in fact show DFS channels, but I just cannot set them for usage...


Jacek

On 07/02/14 22:50, Martin Garbe wrote:

On 7/1/14, 10:04 AM, Jacek Kikiewicz wrote:

Hello,

I have few APs that are using ath9k driver, I've read that now DFS is supported 
on that driver,
so I compiled latest revision (yesterday: 41415), and started playing, 
basically when as per
manual / howto I run 'iw phy phy1 info' I can see DFS channels, exactly like in 
howto on a wiki, problem is however
that I cannot make it work on those channels (I've tried 52,56,100, 104), after 
changing config and restarting wifi
I saw in dmesg 'interface wlan1 entered disabled mode) - I tried with HT20 for 
the beginning.
So, question here is, should this work in current state or is there still some 
support missing?
I can pull any logs  / settings that are of interest.

Have you elected
  CONFIG_PACKAGE_ATH_DFS=y
when compiling the driver? This way you agree to the fact that your
hardware supports DFS. After that DFS channels can be selected.


Martin


Thanks!
Jacek
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel