Re: [LEDE-DEV] [PATCHv3 1/1] [brcm63xx] Add initial support for EVG2000

2016-06-05 Thread Jonas Gorski
Hi,

On 5 June 2016 at 15:13, Graham Fairweather  wrote:
> It would great if someone with the knowledge could take at look and
> see if they know why the 53115 switch is not detected so that this is
> a fully working device.

MDIO connected switches aren't currently supported for bcm6368 and
newer, only SPI connected ones (it's a driver limitation). Assuming it
is MDIO connected.


Jonas

___
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev


Re: [LEDE-DEV] [PATCHv3 1/1] [brcm63xx] Add initial support for EVG2000

2016-06-05 Thread Graham Fairweather
It would great if someone with the knowledge could take at look and
see if they know why the 53115 switch is not detected so that this is
a fully working device.

On 3 June 2016 at 12:45, Graham Fairweather  wrote:
> Hi and thanks.
>
> On 3 June 2016 at 12:07, Álvaro Fernández Rojas  wrote:
>> Hello Graham,
>>
>> Pulled into my staging tree with some changes (whitespace fixes, 
>> cleanups...):
>> https://git.lede-project.org/?p=lede/noltari/staging.git;a=shortlog;h=refs/heads/brcm63xx-next
>>
>> Regards,
>> Álvaro.
>>
>> El 23/5/16 a las 0:56, Xotic750 escribió:
>>> From: Graham Fairweather 
>>>
>>> This patch adds support for the Netgear EVG2000 VoIP Gateway to the
>>> bcm63xx targets.
>>> Ran 'make target/linux/refresh V=s' after update to kernel 4.4.10 from
>>> 4.4.8 where the initial patch was added.
>>> This device was not sold to the general public, but rather is/was
>>> provided by telcos to customers in Sweden, Australia, Singapore and
>>> other parts of asia.
>>> System-On-Chip: Broadcom BCM6369 (2 * BMIPS4350 v3.1 / 400 MHz)
>>> Flash size: 16 MiB
>>> RAM size: 64 MiB
>>> Wireless: BCM4322 802.11b/g/n (onboard)
>>> Ethernet: Broadcom BCM53115
>>> USB: 2 x USB 2.0
>>> Known issues:
>>>  - Unable to detect 53115 switch. This appear to be a problem with
>>> probing for the PHY using MDIO and results in error 5. Doesn't seem to
>>> be a problem with the configuration, and could use someone with
>>> experience to have a look at it.
>>>  - Uses the b43 driver as using the OpenWRT/LEDE broadcom-wl driver
>>> fails to load the firmware for the 4322, so 802.11n is not supported.
>>> The factory build uses a newer broadcom-wl driver.
>>>  - No support for the 2 VoIP ports (not attempted)
>>> More info on the device and the research can be found at:
>>> https://wiki.openwrt.org/toh/netgear/evg2000
>>> https://wikidevi.com/wiki/Netgear_EVG2000
>>> https://github.com/Xotic750/mirror-lede/tree/evg2000
>>> https://forum.openwrt.org/viewtopic.php?id=63950
>>> Signed-off-by: Graham Fairweather 
>>> ---
>>>  .../linux/brcm63xx/base-files/etc/board.d/01_leds  |   7 ++
>>>  .../brcm63xx/base-files/etc/board.d/02_network |   1 +
>>>  target/linux/brcm63xx/base-files/etc/diag.sh   |   3 +
>>>  .../base-files/etc/uci-defaults/09_fix_crc |   2 +-
>>>  target/linux/brcm63xx/base-files/lib/brcm63xx.sh   |   3 +
>>>  .../lib/preinit/05_init_interfaces_brcm63xx|   1 +
>>>  target/linux/brcm63xx/dts/evg2000.dts  | 103 
>>> +
>>>  target/linux/brcm63xx/image/Makefile   |   2 +
>>>  .../brcm63xx/patches-4.1/575-board_EVG2000.patch   |  62 +
>>>  ...-m25p80-use-parsers-if-provided-in-flash-.patch |   2 +-
>>>  ...CES-m25p80-add-support-for-limiting-reads.patch |   4 +-
>>>  .../414-MTD-m25p80-allow-passing-pp_data.patch |   2 +-
>>>  .../brcm63xx/patches-4.4/575-board_EVG2000.patch   |  62 +
>>>  target/linux/brcm63xx/profiles/netgear.mk  |  10 ++
>>>  14 files changed, 259 insertions(+), 5 deletions(-)
>>>  create mode 100644 target/linux/brcm63xx/dts/evg2000.dts
>>>  create mode 100644 
>>> target/linux/brcm63xx/patches-4.1/575-board_EVG2000.patch
>>>  create mode 100644 
>>> target/linux/brcm63xx/patches-4.4/575-board_EVG2000.patch
>>>
>>> diff --git a/target/linux/brcm63xx/base-files/etc/board.d/01_leds 
>>> b/target/linux/brcm63xx/base-files/etc/board.d/01_leds
>>> index 8339254..4163214 100755
>>> --- a/target/linux/brcm63xx/base-files/etc/board.d/01_leds
>>> +++ b/target/linux/brcm63xx/base-files/etc/board.d/01_leds
>>> @@ -24,6 +24,13 @@ dgnd3700v1_dgnd3800b)
>>>   ucidef_set_led_usbdev "usb1" "USB1" "DGND3700v1_3800B:green:usb-back" 
>>> "1-1"
>>>   ucidef_set_led_usbdev "usb2" "USB2" 
>>> "DGND3700v1_3800B:green:usb-front" "1-2"
>>>   ;;
>>> +evg2000)
>>> + ucidef_set_led_netdev "lan" "LAN" "EVG2000:green:lan" "eth0"
>>> + ucidef_set_led_netdev "wan" "WAN" "EVG2000:green:wan" "eth1"
>>> + ucidef_set_led_netdev "wlan0" "WIFI" "EVG2000:green:wireless" "wlan0"
>>> + ucidef_set_led_usbdev "usb1" "USB1" "EVG2000:green:voip1" "1-1"
>>> + ucidef_set_led_usbdev "usb2" "USB2" "EVG2000:green:voip2" "1-2"
>>> + ;;
>>>  fast2704n)
>>>   ucidef_set_led_netdev "wan" "WAN" "F@ST2704N:green:inet" "eth0.2"
>>>   ;;
>>> diff --git a/target/linux/brcm63xx/base-files/etc/board.d/02_network 
>>> b/target/linux/brcm63xx/base-files/etc/board.d/02_network
>>> index f96da08..83367c1 100755
>>> --- a/target/linux/brcm63xx/base-files/etc/board.d/02_network
>>> +++ b/target/linux/brcm63xx/base-files/etc/board.d/02_network
>>> @@ -11,6 +11,7 @@ board_config_update
>>>  case "$(brcm63xx_board_name)" in
>>>
>>>  cvg834g |\
>>> +evg2000 |\
>>>  rta770bw |\
>>>  rta770w |\
>>>  spw303v |\
>>> diff --git a/target/linux/brcm63xx/base-files/etc/diag.sh 
>>> b/target/linux/brcm63xx/base-files/etc/diag.sh
>>> index 

Re: [LEDE-DEV] [PATCHv3 1/1] [brcm63xx] Add initial support for EVG2000

2016-06-03 Thread Graham Fairweather
Hi and thanks.

On 3 June 2016 at 12:07, Álvaro Fernández Rojas  wrote:
> Hello Graham,
>
> Pulled into my staging tree with some changes (whitespace fixes, cleanups...):
> https://git.lede-project.org/?p=lede/noltari/staging.git;a=shortlog;h=refs/heads/brcm63xx-next
>
> Regards,
> Álvaro.
>
> El 23/5/16 a las 0:56, Xotic750 escribió:
>> From: Graham Fairweather 
>>
>> This patch adds support for the Netgear EVG2000 VoIP Gateway to the
>> bcm63xx targets.
>> Ran 'make target/linux/refresh V=s' after update to kernel 4.4.10 from
>> 4.4.8 where the initial patch was added.
>> This device was not sold to the general public, but rather is/was
>> provided by telcos to customers in Sweden, Australia, Singapore and
>> other parts of asia.
>> System-On-Chip: Broadcom BCM6369 (2 * BMIPS4350 v3.1 / 400 MHz)
>> Flash size: 16 MiB
>> RAM size: 64 MiB
>> Wireless: BCM4322 802.11b/g/n (onboard)
>> Ethernet: Broadcom BCM53115
>> USB: 2 x USB 2.0
>> Known issues:
>>  - Unable to detect 53115 switch. This appear to be a problem with
>> probing for the PHY using MDIO and results in error 5. Doesn't seem to
>> be a problem with the configuration, and could use someone with
>> experience to have a look at it.
>>  - Uses the b43 driver as using the OpenWRT/LEDE broadcom-wl driver
>> fails to load the firmware for the 4322, so 802.11n is not supported.
>> The factory build uses a newer broadcom-wl driver.
>>  - No support for the 2 VoIP ports (not attempted)
>> More info on the device and the research can be found at:
>> https://wiki.openwrt.org/toh/netgear/evg2000
>> https://wikidevi.com/wiki/Netgear_EVG2000
>> https://github.com/Xotic750/mirror-lede/tree/evg2000
>> https://forum.openwrt.org/viewtopic.php?id=63950
>> Signed-off-by: Graham Fairweather 
>> ---
>>  .../linux/brcm63xx/base-files/etc/board.d/01_leds  |   7 ++
>>  .../brcm63xx/base-files/etc/board.d/02_network |   1 +
>>  target/linux/brcm63xx/base-files/etc/diag.sh   |   3 +
>>  .../base-files/etc/uci-defaults/09_fix_crc |   2 +-
>>  target/linux/brcm63xx/base-files/lib/brcm63xx.sh   |   3 +
>>  .../lib/preinit/05_init_interfaces_brcm63xx|   1 +
>>  target/linux/brcm63xx/dts/evg2000.dts  | 103 
>> +
>>  target/linux/brcm63xx/image/Makefile   |   2 +
>>  .../brcm63xx/patches-4.1/575-board_EVG2000.patch   |  62 +
>>  ...-m25p80-use-parsers-if-provided-in-flash-.patch |   2 +-
>>  ...CES-m25p80-add-support-for-limiting-reads.patch |   4 +-
>>  .../414-MTD-m25p80-allow-passing-pp_data.patch |   2 +-
>>  .../brcm63xx/patches-4.4/575-board_EVG2000.patch   |  62 +
>>  target/linux/brcm63xx/profiles/netgear.mk  |  10 ++
>>  14 files changed, 259 insertions(+), 5 deletions(-)
>>  create mode 100644 target/linux/brcm63xx/dts/evg2000.dts
>>  create mode 100644 target/linux/brcm63xx/patches-4.1/575-board_EVG2000.patch
>>  create mode 100644 target/linux/brcm63xx/patches-4.4/575-board_EVG2000.patch
>>
>> diff --git a/target/linux/brcm63xx/base-files/etc/board.d/01_leds 
>> b/target/linux/brcm63xx/base-files/etc/board.d/01_leds
>> index 8339254..4163214 100755
>> --- a/target/linux/brcm63xx/base-files/etc/board.d/01_leds
>> +++ b/target/linux/brcm63xx/base-files/etc/board.d/01_leds
>> @@ -24,6 +24,13 @@ dgnd3700v1_dgnd3800b)
>>   ucidef_set_led_usbdev "usb1" "USB1" "DGND3700v1_3800B:green:usb-back" 
>> "1-1"
>>   ucidef_set_led_usbdev "usb2" "USB2" "DGND3700v1_3800B:green:usb-front" 
>> "1-2"
>>   ;;
>> +evg2000)
>> + ucidef_set_led_netdev "lan" "LAN" "EVG2000:green:lan" "eth0"
>> + ucidef_set_led_netdev "wan" "WAN" "EVG2000:green:wan" "eth1"
>> + ucidef_set_led_netdev "wlan0" "WIFI" "EVG2000:green:wireless" "wlan0"
>> + ucidef_set_led_usbdev "usb1" "USB1" "EVG2000:green:voip1" "1-1"
>> + ucidef_set_led_usbdev "usb2" "USB2" "EVG2000:green:voip2" "1-2"
>> + ;;
>>  fast2704n)
>>   ucidef_set_led_netdev "wan" "WAN" "F@ST2704N:green:inet" "eth0.2"
>>   ;;
>> diff --git a/target/linux/brcm63xx/base-files/etc/board.d/02_network 
>> b/target/linux/brcm63xx/base-files/etc/board.d/02_network
>> index f96da08..83367c1 100755
>> --- a/target/linux/brcm63xx/base-files/etc/board.d/02_network
>> +++ b/target/linux/brcm63xx/base-files/etc/board.d/02_network
>> @@ -11,6 +11,7 @@ board_config_update
>>  case "$(brcm63xx_board_name)" in
>>
>>  cvg834g |\
>> +evg2000 |\
>>  rta770bw |\
>>  rta770w |\
>>  spw303v |\
>> diff --git a/target/linux/brcm63xx/base-files/etc/diag.sh 
>> b/target/linux/brcm63xx/base-files/etc/diag.sh
>> index b864964..6ac2459 100644
>> --- a/target/linux/brcm63xx/base-files/etc/diag.sh
>> +++ b/target/linux/brcm63xx/base-files/etc/diag.sh
>> @@ -70,6 +70,9 @@ set_state() {
>>   dgnd3700v1_dgnd3800b)
>>   status_led="DGND3700v1_3800B:green:power"
>>   ;;
>> + evg2000)
>> + status_led="EVG2000:green:power"
>> + ;;

Re: [LEDE-DEV] [PATCHv3 1/1] [brcm63xx] Add initial support for EVG2000

2016-06-03 Thread Álvaro Fernández Rojas
Hello Graham,

Pulled into my staging tree with some changes (whitespace fixes, cleanups...):
https://git.lede-project.org/?p=lede/noltari/staging.git;a=shortlog;h=refs/heads/brcm63xx-next

Regards,
Álvaro.

El 23/5/16 a las 0:56, Xotic750 escribió:
> From: Graham Fairweather 
>
> This patch adds support for the Netgear EVG2000 VoIP Gateway to the
> bcm63xx targets.
> Ran 'make target/linux/refresh V=s' after update to kernel 4.4.10 from
> 4.4.8 where the initial patch was added.
> This device was not sold to the general public, but rather is/was
> provided by telcos to customers in Sweden, Australia, Singapore and
> other parts of asia.
> System-On-Chip: Broadcom BCM6369 (2 * BMIPS4350 v3.1 / 400 MHz)
> Flash size: 16 MiB
> RAM size: 64 MiB
> Wireless: BCM4322 802.11b/g/n (onboard)
> Ethernet: Broadcom BCM53115
> USB: 2 x USB 2.0
> Known issues:
>  - Unable to detect 53115 switch. This appear to be a problem with
> probing for the PHY using MDIO and results in error 5. Doesn't seem to
> be a problem with the configuration, and could use someone with
> experience to have a look at it.
>  - Uses the b43 driver as using the OpenWRT/LEDE broadcom-wl driver
> fails to load the firmware for the 4322, so 802.11n is not supported.
> The factory build uses a newer broadcom-wl driver.
>  - No support for the 2 VoIP ports (not attempted)
> More info on the device and the research can be found at:
> https://wiki.openwrt.org/toh/netgear/evg2000
> https://wikidevi.com/wiki/Netgear_EVG2000
> https://github.com/Xotic750/mirror-lede/tree/evg2000
> https://forum.openwrt.org/viewtopic.php?id=63950
> Signed-off-by: Graham Fairweather 
> ---
>  .../linux/brcm63xx/base-files/etc/board.d/01_leds  |   7 ++
>  .../brcm63xx/base-files/etc/board.d/02_network |   1 +
>  target/linux/brcm63xx/base-files/etc/diag.sh   |   3 +
>  .../base-files/etc/uci-defaults/09_fix_crc |   2 +-
>  target/linux/brcm63xx/base-files/lib/brcm63xx.sh   |   3 +
>  .../lib/preinit/05_init_interfaces_brcm63xx|   1 +
>  target/linux/brcm63xx/dts/evg2000.dts  | 103 
> +
>  target/linux/brcm63xx/image/Makefile   |   2 +
>  .../brcm63xx/patches-4.1/575-board_EVG2000.patch   |  62 +
>  ...-m25p80-use-parsers-if-provided-in-flash-.patch |   2 +-
>  ...CES-m25p80-add-support-for-limiting-reads.patch |   4 +-
>  .../414-MTD-m25p80-allow-passing-pp_data.patch |   2 +-
>  .../brcm63xx/patches-4.4/575-board_EVG2000.patch   |  62 +
>  target/linux/brcm63xx/profiles/netgear.mk  |  10 ++
>  14 files changed, 259 insertions(+), 5 deletions(-)
>  create mode 100644 target/linux/brcm63xx/dts/evg2000.dts
>  create mode 100644 target/linux/brcm63xx/patches-4.1/575-board_EVG2000.patch
>  create mode 100644 target/linux/brcm63xx/patches-4.4/575-board_EVG2000.patch
>
> diff --git a/target/linux/brcm63xx/base-files/etc/board.d/01_leds 
> b/target/linux/brcm63xx/base-files/etc/board.d/01_leds
> index 8339254..4163214 100755
> --- a/target/linux/brcm63xx/base-files/etc/board.d/01_leds
> +++ b/target/linux/brcm63xx/base-files/etc/board.d/01_leds
> @@ -24,6 +24,13 @@ dgnd3700v1_dgnd3800b)
>   ucidef_set_led_usbdev "usb1" "USB1" "DGND3700v1_3800B:green:usb-back" 
> "1-1"
>   ucidef_set_led_usbdev "usb2" "USB2" "DGND3700v1_3800B:green:usb-front" 
> "1-2"
>   ;;
> +evg2000)
> + ucidef_set_led_netdev "lan" "LAN" "EVG2000:green:lan" "eth0"
> + ucidef_set_led_netdev "wan" "WAN" "EVG2000:green:wan" "eth1"
> + ucidef_set_led_netdev "wlan0" "WIFI" "EVG2000:green:wireless" "wlan0"
> + ucidef_set_led_usbdev "usb1" "USB1" "EVG2000:green:voip1" "1-1"
> + ucidef_set_led_usbdev "usb2" "USB2" "EVG2000:green:voip2" "1-2"
> + ;;
>  fast2704n)
>   ucidef_set_led_netdev "wan" "WAN" "F@ST2704N:green:inet" "eth0.2"
>   ;;
> diff --git a/target/linux/brcm63xx/base-files/etc/board.d/02_network 
> b/target/linux/brcm63xx/base-files/etc/board.d/02_network
> index f96da08..83367c1 100755
> --- a/target/linux/brcm63xx/base-files/etc/board.d/02_network
> +++ b/target/linux/brcm63xx/base-files/etc/board.d/02_network
> @@ -11,6 +11,7 @@ board_config_update
>  case "$(brcm63xx_board_name)" in
>  
>  cvg834g |\
> +evg2000 |\
>  rta770bw |\
>  rta770w |\
>  spw303v |\
> diff --git a/target/linux/brcm63xx/base-files/etc/diag.sh 
> b/target/linux/brcm63xx/base-files/etc/diag.sh
> index b864964..6ac2459 100644
> --- a/target/linux/brcm63xx/base-files/etc/diag.sh
> +++ b/target/linux/brcm63xx/base-files/etc/diag.sh
> @@ -70,6 +70,9 @@ set_state() {
>   dgnd3700v1_dgnd3800b)
>   status_led="DGND3700v1_3800B:green:power"
>   ;;
> + evg2000)
> + status_led="EVG2000:green:power"
> + ;;
>   fast2504n)
>   status_led="fast2504n:green:ok"
>   ;;
> diff --git a/target/linux/brcm63xx/base-files/etc/uci-defaults/09_fix_crc 
>