[OpenWrt-Devel] [PATCH] brcm63xx: add Observa VH4032N support

2016-05-05 Thread dani
Add support for the Observa VH4032N router. It's a BCM6368 based board with 128MB RAM, 32MB flash. Equiped with an onboard USB hub. This hub has the RST# pin wired to the GPIO27 pin. For pulling the chip out of reset, we use ephy_reset since there isn't specific code for this function in the USB d

[OpenWrt-Devel] [PATCH v2] brcm63xx: implement gpio to irq

2016-04-12 Thread dani
Implement "to_irq" in the GPIO driver. Some GPIOs in bcm63xx have IRQs. They are known in this target as external IRQs. This patch just adds the function "to_irq" for allowing to use the generic GPIO lib function gpio_to_irq(). This function just returns the IRQ number at the GPIO line. Signed-of

[OpenWrt-Devel] [PATCH] brcm63xx: fix external IRQs

2016-04-11 Thread dani
External IRQs are currently broken, fix the BCM6345_EXT_IRQ driver. Since the adoption of the new driver irq-bcm6345-ext, in Chaos Calmer, external IRQs don't work. It seems there were some minor errors at the initial development of the driver. This patch fixes the ticket https://dev.openwrt.org/

[OpenWrt-Devel] [PATCH] brcm63xx: implement gpio to irq

2016-03-28 Thread dani
Implement "to_irq" in the GPIO driver. Some GPIOs in bcm63xx have IRQs. They are known in this target as external IRQs. This patch just adds the function "to_irq" for allowing to use the generic GPIO lib function gpio_to_irq(). This function just returns the IRQ number at the GPIO line. Signed-of

[OpenWrt-Devel] [PATCH] brcm63xx: fix Livebox1 support

2016-03-06 Thread dani
Livebox firmware is totally broken, fix it and make specific firmware for the DV4210 model. - Added relocate stuff to allow boot the kernel - Fix RAM firmware - Rename dts file, now specific for the DV4210 model - Fix leds in the dts file - Add status led - Set button 1 as failsafe button - Disabl

Re: [OpenWrt-Devel] [PATCH] brcm63xx: Let the CFE partition in HG556a to be writeable

2016-03-02 Thread dani
ing to run Openwrt with half icache. Regards. 2016-01-18 14:15 GMT+01:00 Jonas Gorski : > Hi, > > On Wed, Dec 2, 2015 at 9:37 PM, dani wrote: > > In the HG556a router the partition mtd0, where CFE lives, is read only. > > This patch allows this partition to be writeable.

[OpenWrt-Devel] [PATCH] brcm63xx: fix CT-536p/CT-5621T support

2016-02-11 Thread dani
Fix support for the Comtrend CT-536p, CT-5361 and CT-5621T routers support. Currently the firmware is broken for these routers, because there is a missing bar in the code at the DTS file. The power led also has a typo. This causes the router boots without ethernet connectivity. Fixed and and als

[OpenWrt-Devel] [PATCH] brcm63xx: fix HG556a C button

2016-01-26 Thread dani
One button of the HG556a-C has the wrong GPIO pin defined in the dts file, fix it Probably as it happened with leds previously, the buttons were copied from the A, B versions of this router, but nobody checked it. The "help" button has the GPIO pin 36 not the pin 8. Signed-off-by: Daniel Gonzale

Re: [OpenWrt-Devel] [PATCH] brcm63xx: fix gpio ephy-reset

2016-01-18 Thread dani
Thanks Jonas. Tested and working OK. It would be nice if the patch is also backported to Chaos Calmer revision. Regards. 2016-01-18 14:16 GMT+01:00 Jonas Gorski : > Hi, > > On 12 December 2015 at 14:10, dani wrote: > > Currently ephy-reset, which uses a GPIO for enabling ex

[OpenWrt-Devel] brcm63xx: Question about external IRQs

2015-12-19 Thread dani
I have no idea if external IRQs are currenlty used for any purpose in bcm63xx, buy they seem to be broken. Some GPIOs in bcm63xx are shared with those external IRQs. Usually those GPIOs in bcm63xx are wired to some buttons, but not all. Since I know the matching between external IRQs and GPIOs, I

[OpenWrt-Devel] [PATCH] CC: brcm63xx: backport fix gpio ephy-reset

2015-12-12 Thread dani
ephy-reset, which uses a GPIO for enabling external ethernet phys, is broken. This patch fix the problem. This problem causes in boards with external phys with a reset pin connected to gpio, are initialized without lan interfaces. The line ephy_reset.table[0].chip_label = gpio_chip_labels[hw

[OpenWrt-Devel] [PATCH] brcm63xx: fix gpio ephy-reset

2015-12-12 Thread dani
Currently ephy-reset, which uses a GPIO for enabling external ethernet phys, is broken. This patch fix the problem. This problem causes in boards with external phys with a reset pin connected to gpio, are initialized without lan interfaces. The line ephy_reset.table[0].chip_label = gpio_chip

[OpenWrt-Devel] [PATCH] brcm63xx: Let the CFE partition in HG556a to be writeable

2015-12-02 Thread dani
In the HG556a router the partition mtd0, where CFE lives, is read only. This patch allows this partition to be writeable. The BCM6358 SoC has two cores, but they are not identical. The second core has half icache. core0: icache=32kB core1: icache=16kB As default the HG556a uses the second core

[OpenWrt-Devel] [PATCH v3] brcm63xx: Add NuCom R5010UNv2 support

2015-12-01 Thread dani
This patch adds support for the NuCom R5010UNv2. It's a BCM6328 based board. It has an onboard BCM43217 wifi chip. For this wifi chip looks like the brcmsmac driver isn't still supported, b43 drivers are used for the profile of the router. It's worth mentioning this board was affected by a bug s

[OpenWrt-Devel] [PATCH v2] brcm63xx: Add NuCom R5010UNv2 support

2015-12-01 Thread dani
This patch adds support for the NuCom R5010UNv2. It's a BCM6328 based board. It has an onboard BCM43217 wifi chip. For this wifi chip looks like the brcmsmac driver isn't still supported, b43 drivers are used for the profile of the router. It's worth mentioning this board was affected by a bug s

[OpenWrt-Devel] [PATCH v2] brcm63xx: Add NuCom R5010UNv2 support

2015-11-30 Thread dani
This patch adds support for the NuCom R5010UNv2. It's a BCM6328 based board. It has an onboard BCM43217 wifi chip. For this wifi chip looks like the brcmsmac driver isn't still supported, b43 drivers are used for the profile of the router. It's worth mentioning this board was affected by a bug s

[OpenWrt-Devel] [PATCH] brcm63xx: Add NuCom R5010UNv2 support

2015-11-27 Thread dani
This patch adds support for the NuCom R5010UNv2. It's a BCM6328 based board. It has an onboard BCM43217 wifi chip. For this wifi chip looks like the brcmsmac driver isn't still supported, b43 drivers are used for the profile of the router. It's worth mentioning this board was affected by a bug s

[OpenWrt-Devel] [PATCH] brcm63xx: Add Huawei HG655b support

2015-05-09 Thread dani
This patch adds support for the Huawei HG655b. Nothing much special in this router, it's just another BCM6368 with a Ralink RT3062 wifi chip and the calibration data embedded in the main flash chip at offset 0x7c. There is also configuration data used by the OEM firmware before the cal_data p

[OpenWrt-Devel] [PATCH] brcm63xx: Add BT Home Hub 2A support.

2015-03-20 Thread dani
Support for the BT HomeHub 2.0 Type A. This router was manufactured by Thomson, and it's BCM6358 based. The leds are controled by two chained HC594, all working ok. The BCM5325 switch has the RESET# pin wired to the GPIO15, but currently there is no way to tell the b53 driver how to get this gpi

Re: [OpenWrt-Devel] [PATCH][bcm63xx]: Add DGND3700 v1 / DGND3800B support

2015-02-28 Thread dani
Ok, patch updated with latest changes in trunk, and suggestions. About SPROM fixups, I misundertsood its purpouse. Deleted since it's not required. Signed-off-by: Daniel Gonzalez diff --git a/target/linux/brcm63xx/base-files/etc/uci-defaults/01_leds b/target/linux/brcm63xx/base-files/etc/uci-d

[OpenWrt-Devel] [PATCH][bcm63xx]: Add DGND3700 v1 / DGND3800B support

2015-02-20 Thread dani
This adds support for the Netgear DGND3700 v1 and DGND3800B. DGND3700 v1 and DGND3800B are exactly the same router, only one difference, the factory firmware. This patch produces two factory firmwares for each router. The miniPCI card have two radios, I included sprom fixups bor both spite wifi

[OpenWrt-Devel] [PATCH][bcm63xx]: fix Livebox 1 support

2014-05-18 Thread dani
The Livebox 1 support is currently broken. Fixed with this patch Fixes: - Redboot partitioning broken: fixed - Replaced custom ephy reset with platform code - USB code breaks the building process: fixed - Led colors - Removed unneded EHCI code since bcm6348 only has OHCI Signed-off-by: Daniel Gon

[OpenWrt-Devel] [PATCH][bcm63xx]: CPVA502+ board fixes

2014-04-23 Thread dani
Some fixes for Telsey CPVA502+ bcm6348 routers: - reset the external PHY (eth1) with proper platform code, not using a led definiton - eth1 is an external phy, not a switch, deleted forced link speed - fixed led color Patch made for 3.14 kernel patches. Signed-off-by: Daniel Gonzalez Index: ta

[OpenWrt-Devel] [PATCH][bcm63xx]: add Livebox 1 firmware image generation

2014-04-22 Thread dani
Currently there isn't images ready for flashing liveboxes boards. This patch adds a script and the code to call it in the bcm63xx images builder makefile to generate the livebox 1 firmware. I removed some lines to avoid generating unneded files in the bin/ dir for this board. And added code

[OpenWrt-Devel] [PATCH][ramips]: add support for SMCWBR14S-N3

2014-03-17 Thread dani
This patch adds support for a new rt3052 board, SMC SMCWBR14S-N3 - Only two GPIO leds, one has no label, I labeled it as "extra" - 4 ethernet LAN, 1 ethernet WAN - No USB port, but the pads are visible at the board ready for soldering. - Two GPIO buttons, WPS and reset. I'm new to this platform a

[OpenWrt-Devel] arecord intermittent behavior

2014-03-10 Thread dani
Ok, I didn't imagine better title for this curious bug, don't think this is an arecord problem, it might be a deeper problem in Openwrt. Scenario: USB sound card installed in a MIPS BE router (bcm63xx), using OHCI module, alsa-utils installed. Let's make some recordings with arecord. arecord -q

[OpenWrt-Devel] [PATCH] mcs814x: enable POSIX file locking - AA backport fix

2014-02-10 Thread dani
This is a critical fix for a correct system behavior, just backport it to AA. It was already fixed in trunk revisions: https://dev.openwrt.org/changeset/37745 It should be also fixed in 12.09. Several stuff is broken without this fix. Regards. Signed-off-by: Daniel Gonzalez Index: target/linu

[OpenWrt-Devel] [PATCH] bcm63xx: decrease bcm6348 SPI FIFO size

2014-02-02 Thread dani
Decrease the SPI FIFO size in BMC6348 boards to avoid random reads/writes. The parameter BCM63XX_SPI_MAX_PREPEND is causing the SPI driver exceeds the hardware capabilities when reading transfer lengths over 58 bytes. Decreasing the SPI fifo size exactly the BCM63XX_SPI_MAX_PREPEND lenght solve

[OpenWrt-Devel] [PATCH] bcm63xx: fix MIPS_L1_CACHE_SHIFT at the kernel config (trunk)

2014-01-08 Thread dani
Currently the parameter MIPS_L1_CACHE_SHIFT defaults to 5 , but should be 4. MIPS_L1_CACHE_SHIFT = 5 matches to a cache linesize of 32 bytes, but BCM63xx SoCs use cores with 16 bytes linesize and therefore should be MIPS_L1_CACHE_SHIFT = 4. This parameter is used by the compiler for some alignmen

[OpenWrt-Devel] [PATCH] bcm63xx: don't build CRAMFS

2013-05-03 Thread dani
Don't build the CRAMFS file system module in the kernel, and save some bytes. No bcm63xx board needs this obsolete file system, neither those ones using the Redboot bootloader (liveboxes). Thus, there is no need to build it, since it has been replaced long time ago by squashfs. Signed-off-by:

Re: [OpenWrt-Devel] [PATCH] bcm63xx: fix/enable livebox minipci (BB)

2013-04-23 Thread dani
Patch updated to apply on 3.8 kernel too. Signed-off-by: Daniel Gonzalez Index: target/linux/brcm63xx/patches-3.7/513-board_livebox.patch === --- target/linux/brcm63xx/patches-3.7/513-board_livebox.patch (revision 36407) +++ targe

[OpenWrt-Devel] [PATCH] bcm63xx: fix/enable livebox minipci (BB)

2013-04-23 Thread dani
2013/4/23 Jonas Gorski > > On Wed, Apr 17, 2013 at 5:52 PM, danitool wrote: > > Enable the livebox-1 minipci, otherwise, the board won't detect > > any device connected on it (included wifi cards). > > > > I've made a patch against current AA svn. I didn't notice this issue > > earlier since I'm

[OpenWrt-Devel] [PATCH] [lantiq] AA: Fix ARV4518PW wifi

2013-04-13 Thread dani
This patch corrects an issue with the wifi for the ARV4518PW in Attitude Adjustment that involves the PCI bus configuration in this board. I'm trying to guess if gmail webinterface is really able to send clean patches. Sorry for the disturbances. Signed-off-by: Jose Vazquez Fernandez gmail.com>

Re: [OpenWrt-Devel] [PATCH] bcm63xx: HW553 buttons and net patch

2012-10-27 Thread dani
Again this patch tested against current AA. I didn't include refresh patches. The patch is in the attachment. It seems gmail decided to add some spaces in the previous plain text patches I sent. Regards. hw553.patch Description: Binary data ___ openwr

[OpenWrt-Devel] HW553: buttons and net patch

2012-10-08 Thread dani
- Added the buttons for this bcm6358 board. - The internal phy is unused in this board, deleted. Index: target/linux/brcm63xx/patches-3.3/board_HW553_buttons_net.patch === --- target/linux/brcm63xx/patches-3.3/board_HW553_buttons_net.

Re: [OpenWrt-Devel] mmc_spi on bcm6348 board

2012-09-27 Thread dani
t [2.728000] mmc_spi spi0.0: setup mode 0, 8 bits/w, 40 Hz max --> 0 [2.728000] mmc0: error -14 whilst initialising MMC card At least now it doesn't complain about "mmc_spi spi0.0: bcm63xx_spi_check_transfer, unsupported" I still don't know if something missing in

Re: [OpenWrt-Devel] mmc_spi on bcm6348 board

2012-09-26 Thread dani
'm afraid the SPI controler Openwrt code is broken for bcm6348. 2012/9/26 Florian Fainelli > > Hello, > > On Wednesday 26 September 2012 14:41:51 dani wrote: > > Hi, I'm trying to make a micro sd card work connected to a bcm6348 board > > (livebox 1) SPI pins

[OpenWrt-Devel] mmc_spi on bcm6348 board

2012-09-26 Thread dani
Hi, I'm trying to make a micro sd card work connected to a bcm6348 board (livebox 1) SPI pins. I guessed the platform file of my device should be modified in order to make the kernel comunicate with the mmc_spi and recognice the microsd card. I added this code in my platform data file (board_liveb

Re: [OpenWrt-Devel] Strange behaviour in Wi-Fi link adaptation

2012-09-20 Thread Dani Camps
igher data rates.) On Tue, Sep 18, 2012 at 3:55 PM, Dani Camps wrote: > Dear all, > > I have OpenWrt Backfire (10.03.1, r29592), with kernel 2.6.32.27 and as > wireless drivers ath9k. My problem is that I have been observing very > erratic behaviours in the wireless link. Please,

[OpenWrt-Devel] Strange behaviour in Wi-Fi link adaptation

2012-09-18 Thread Dani Camps
Dear all, I have OpenWrt Backfire (10.03.1, r29592), with kernel 2.6.32.27 and as wireless drivers ath9k. My problem is that I have been observing very erratic behaviours in the wireless link. Please, look at the graphic attached, the output corresponds to the wireless real-time graphs in Ope

[OpenWrt-Devel] [PATCH] hiawatha webserver 8.4

2012-06-12 Thread dani
hello, i tested this patch on a wr703n, added dep on polarssl and menuconfig options for CACHE, RPROXY, SSL, TOOLKIT and XSLT. i appreciate if you guys can review it, thanks! Signed-off-by: Daniel Petre --- Index: files/php-fcgi.conf ==

[OpenWrt-Devel] r31489 default ipv6 route via dual stack pppoe..

2012-04-27 Thread dani
Hello, So i have compiled latest trunk and adjusted network, radvd, dhcp6c and dhcp6s config files as i knew they worked just fine few months ago but i had the surprise to find default ipv6 route won' t come up.. I am using pppoe on a dual stack connection, i see that some ipv6 related scripts f

[OpenWrt-Devel] Lost connection to OpenWRT router

2012-04-09 Thread Dani Camps
Dear all, I have a Netgear WNDR3700v2 with OpenWRT. The problem is that I created a custom boot script as explained here (http://wiki.openwrt.org/doc/techref/initscripts) and after rebooting I was not able to connect to the router. What the custom script contained was the following: ---

[OpenWrt-Devel] Error with action mark on tc add filter

2012-03-11 Thread Dani Camps
Dear all, I want to redirect the incoming data to eth1 into ifb1 and at the same time mark it for further classification in the ifb device. I am using the following instruction: # tc filter add dev eth1 parent : protocol ip prio 1 u32 match u32 0 0 flowid 1:1 action ipt -j MARK --set-mar

[OpenWrt-Devel] dir-825 squashfs factory image..?

2012-02-11 Thread dani
hello, did a make clean and removed the files in trunk/bin/ar71xx a bit earlier, svn updated my trunk directory for dlink dir-825 and after make i notice there isnt anymore a squashfs factory image, just two for jffs2 and squashfs each of: backup-loader and sysupgrade images.. anything changed

[OpenWrt-Devel] php5 update to 5.3.10

2012-02-06 Thread dani
hello, dani@x60t ~/wr740n/trunk $ grep PKG_VERSION feeds/packages/lang/php5/Makefile PKG_VERSION:=5.3.9 maybe the maintainer can help us with the latest update patch? http://www.php.net/archive/2012.php#id2012-02-02-1 "Security Fixes in PHP 5.3.10: Fixed arbitrary remote code exec

[OpenWrt-Devel] wide-dhcp6c, duid generation and pppoe-wan ifname..

2012-02-02 Thread dani
hello, from my tests using wide-dhcp6 client over a ipv6 enabled pppoe link it seems the /etc/init.d/dhcp6c script will attempt to generate duid using "pppoe-wan" which ofcourse does not have a hw addr. with trunk r30004 (and using netifd) it seems "config_get wan ifname" will always return ppp