Re: [LEDE-DEV] VRV9510KWAC23

2016-08-29 Thread Mathias Kresin

28.08.2016 13:24, Mathias Kresin:

Am 28.08.2016 um 12:15 schrieb Hauke Mehrtens:

On 08/28/2016 10:31 AM, Mathias Kresin wrote:

Am 27.08.2016 um 19:44 schrieb Juan Rios:

I can load to memory using xmodem transfer and run but all I tried get
locked without any output.


Have you tried the kenrel with both serial interfaces? The SoC supports
two and I do not know which on is used on your hardware.

@Mathias is it normal that this does not work?


Mhh, I've missed that part of Juans mail. It's not clear to me what Juan
tried to load and run from ram.

Loadx and run the kernel from ram is a brilliant idea. Albeit I've done
it dozen times with u-boot, I never considered doing the same with brnboot.

I might have some time later the day to give it a try.


I couldn't manage to start an uncompressed LEDE kernel from ram. I've 
tried kernels with brncmdline and without. But the router immediately 
resets itself.


Running the uncompressed recovery kernel from ram worked however.

Mathias



smime.p7s
Description: S/MIME Cryptographic Signature
___
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev


[LEDE-DEV] [PATCH v2 5/5] brcm63xx: fix Livebox 1 support: config files

2016-08-29 Thread Daniel Gonzalez Cabanelas
Fix configuration files for the Livebox 1 routers.
- Add status led
- Set eth0 as the LAN port, for coherence with RedBoot and comfortability.
- Add led triggers

Signed-off-by: Daniel Gonzalez Cabanelas 
---
change in v2:
Split changes in DTS file
---
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 4163214..8d8a942 100755
--- a/target/linux/brcm63xx/base-files/etc/board.d/01_leds
+++ b/target/linux/brcm63xx/base-files/etc/board.d/01_leds
@@ -58,6 +58,11 @@ homehub2a)
ucidef_set_led_usbdev "usb1" "USB1" "HOMEHUB2A:blue:phone" "1-1"
ucidef_set_led_usbdev "usb2" "USB2" "HOMEHUB2A:green:phone" "2-1"
;;
+livebox1)
+   ucidef_set_led_netdev "lan" "LAN" "Livebox1:red:traffic" "eth0"
+   ucidef_set_led_netdev "wan" "WAN" "Livebox1:red:adsl" "eth1"
+   ucidef_set_led_netdev "wlan0" "WIFI" "Livebox1:red:wifi" "wlan0"
+   ;;
 r5010un_v2)
ucidef_set_led_usbdev "usb" "USB" "R5010UNv2:green:usb" "1-1"
;;
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 83367c1..c20caf9 100755
--- a/target/linux/brcm63xx/base-files/etc/board.d/02_network
+++ b/target/linux/brcm63xx/base-files/etc/board.d/02_network
@@ -129,6 +129,10 @@ bcm963268bu_p300)
"0:lan" "3:lan" "4:lan" "5:lan" "6:lan" "7:lan" "8t@eth0"
;;
 
+livebox1)
+   ucidef_set_interfaces_lan_wan "eth0" "eth1"
+   ;;
+
 *)
ucidef_set_interfaces_lan_wan "eth1" "eth0"
;;
diff --git a/target/linux/brcm63xx/base-files/etc/diag.sh 
b/target/linux/brcm63xx/base-files/etc/diag.sh
index 51756ae..852a701 100644
--- a/target/linux/brcm63xx/base-files/etc/diag.sh
+++ b/target/linux/brcm63xx/base-files/etc/diag.sh
@@ -102,6 +102,9 @@ set_state() {
hg655b)
status_led="HW65x:green:power"
;;
+   livebox1)
+   status_led="Livebox1:red:adsl-fail-power"
+   ;;
p870hw-51a_v2)
status_led="P870HW-51a:green:power"
;;

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


[LEDE-DEV] [PATCH v2 1/5] brcm63xx: fix Livebox 1 support: DTS

2016-08-29 Thread Daniel Gonzalez Cabanelas
Fix the DTS file for the Livebox 1 routers:
- no failsafe button, use button 1 for this purpose

Signed-off-by: Daniel Gonzalez Cabanelas 
---
change in v2:
Split changes in DTS file
Tune button labels
---
diff --git a/target/linux/brcm63xx/dts/livebox-blue-5g.dts 
b/target/linux/brcm63xx/dts/livebox-blue-5g.dts
index 0df5fa8..cb3b019 100644
--- a/target/linux/brcm63xx/dts/livebox-blue-5g.dts
+++ b/target/linux/brcm63xx/dts/livebox-blue-5g.dts
@@ -21,13 +21,13 @@
debounce-interval = <60>;
 
button1 {
-   label = "BTN_1";
+   label = "1";
gpios = < 4 1>;
-   linux,code = ;
+   linux,code = ;
};
 
button2 {
-   label = "BTN_2";
+   label = "2";
gpios = < 7 1>;
linux,code = ;
};


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


[LEDE-DEV] [PATCH v2 3/5] brcm63xx: fix Livebox 1 support: DTS

2016-08-29 Thread Daniel Gonzalez Cabanelas
Fix the DTS file for the Livebox 1 routers:
- part probe wrong, it should be RedBoot (uppercase matters)

Signed-off-by: Daniel Gonzalez Cabanelas 
---
change in v2:
Split changes in DTS file
---
diff --git a/target/linux/brcm63xx/dts/livebox-blue-5g.dts 
b/target/linux/brcm63xx/dts/livebox-blue-5g.dts
index 0df5fa8..e776652 100644
--- a/target/linux/brcm63xx/dts/livebox-blue-5g.dts
+++ b/target/linux/brcm63xx/dts/livebox-blue-5g.dts
@@ -68,5 +68,5 @@
reg = <0x1e40 0x80>;
status = "ok";
 
-   linux,part-probe = "redboot";
+   linux,part-probe = "RedBoot";
 };


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


[LEDE-DEV] [PATCH v2 2/5] brcm63xx: fix Livebox 1 support: DTS

2016-08-29 Thread Daniel Gonzalez Cabanelas
Fix the DTS file for the Livebox 1 routers:
- leds are totally wrong, fix them.
Signed-off-by: Daniel Gonzalez Cabanelas 
---
change in v2:
Split changes in DTS file
---
diff --git a/target/linux/brcm63xx/dts/livebox-blue-5g.dts 
b/target/linux/brcm63xx/dts/livebox-blue-5g.dts
index 0df5fa8..c92e9e6 100644
--- a/target/linux/brcm63xx/dts/livebox-blue-5g.dts
+++ b/target/linux/brcm63xx/dts/livebox-blue-5g.dts
@@ -37,28 +37,28 @@
compatible = "gpio-leds";
 
red_adsl_fail {
-   label = "Livebox-blue-5g:red:adsl-fail";
+   label = "Livebox1:red:adsl-fail-power";
gpios = < 0 0>;
default-state = "on";
};
 
red_adsl {
-   label = "Livebox-blue-5g:red:adsl-fail";
+   label = "Livebox1:red:adsl";
gpios = < 1 0>;
};
 
red_traffic {
-   label = "Livebox-blue-5g:red:adsl-fail";
+   label = "Livebox1:red:traffic";
gpios = < 2 0>;
};
 
red_phone {
-   label = "Livebox-blue-5g:red:adsl-fail";
+   label = "Livebox1:red:phone";
gpios = < 3 0>;
};
 
red_wifi {
-   label = "Livebox-blue-5g:red:adsl-fail";
+   label = "Livebox1:red:wifi";
gpios = < 4 0>;
};
};


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