All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] netbase: add support for htcdream
@ 2010-06-07 20:10 Denis 'GNUtoo' Carikli
  2010-06-07 20:10 ` Denis 'GNUtoo' Carikli
  0 siblings, 1 reply; 5+ messages in thread
From: Denis 'GNUtoo' Carikli @ 2010-06-07 20:10 UTC (permalink / raw)
  To: openembedded-devel

hi,
The default netbase's /etc/network/interfaces lacks 
auto usb0
So usb0 doesn't come up,and we can't ssh into the htcdream

Instead of changing the default netbase's /etc/network/interfaces,
I propose using the override system in order to make it work for 
the htcdream( so we would be using another /etc/network/interfaces 
for the htcdream)
*all the other machine do it like this
*it would have changed the default behaviour(which may not be wanted)

I sent a patch because I consider netbase as core,
nearly all the machines have an ovveride

Denis.




^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH] netbase: add support for htcdream
  2010-06-07 20:10 [PATCH] netbase: add support for htcdream Denis 'GNUtoo' Carikli
@ 2010-06-07 20:10 ` Denis 'GNUtoo' Carikli
  2010-06-07 21:23   ` Khem Raj
  2010-06-09 14:43   ` Michael 'Mickey' Lauer
  0 siblings, 2 replies; 5+ messages in thread
From: Denis 'GNUtoo' Carikli @ 2010-06-07 20:10 UTC (permalink / raw)
  To: openembedded-devel

If we don't add a custom file containing auto usb0,
usb0 is not configured at boot and we can't ssh into the phone

Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@no-log.org>
---
 recipes/netbase/netbase/htcdream/interfaces |   17 +++++++++++++++++
 recipes/netbase/netbase_4.21.bb             |    2 +-
 2 files changed, 18 insertions(+), 1 deletions(-)
 create mode 100644 recipes/netbase/netbase/htcdream/interfaces

diff --git a/recipes/netbase/netbase/htcdream/interfaces b/recipes/netbase/netbase/htcdream/interfaces
new file mode 100644
index 0000000..a75f259
--- /dev/null
+++ b/recipes/netbase/netbase/htcdream/interfaces
@@ -0,0 +1,17 @@
+# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
+ 
+# The loopback interface
+auto lo
+iface lo inet loopback
+
+# Ethernet/RNDIS gadget (g_ether)
+# ... or on host side, usbnet and random hwaddr
+auto usb0
+iface usb0 inet static
+	address 192.168.0.202
+	netmask 255.255.255.0
+	network 192.168.0.0
+	up route add default gw 192.168.0.200 metric 8
+	up echo nameserver 208.67.222.222 > /etc/resolv.conf
+	up echo nameserver 208.67.220.220 >> /etc/resolv.conf
+	down route del default gw 192.168.0.200 metric 8
diff --git a/recipes/netbase/netbase_4.21.bb b/recipes/netbase/netbase_4.21.bb
index 4e1d39f..baec44b 100644
--- a/recipes/netbase/netbase_4.21.bb
+++ b/recipes/netbase/netbase_4.21.bb
@@ -2,7 +2,7 @@ DESCRIPTION = "This package provides the necessary \
 infrastructure for basic TCP/IP based networking."
 SECTION = "base"
 LICENSE = "GPLv2"
-PR = "r41"
+PR = "r42"
 
 inherit update-rc.d
 
-- 
1.7.0.4




^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] netbase: add support for htcdream
  2010-06-07 20:10 ` Denis 'GNUtoo' Carikli
@ 2010-06-07 21:23   ` Khem Raj
  2010-06-09 14:43   ` Michael 'Mickey' Lauer
  1 sibling, 0 replies; 5+ messages in thread
From: Khem Raj @ 2010-06-07 21:23 UTC (permalink / raw)
  To: openembedded-devel

On Mon, Jun 7, 2010 at 1:10 PM, Denis 'GNUtoo' Carikli
<GNUtoo@no-log.org> wrote:
> If we don't add a custom file containing auto usb0,
> usb0 is not configured at boot and we can't ssh into the phone
>
> Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@no-log.org>

Acked-by: Khem Raj <raj.khem@gmail.com>

> ---
>  recipes/netbase/netbase/htcdream/interfaces |   17 +++++++++++++++++
>  recipes/netbase/netbase_4.21.bb             |    2 +-
>  2 files changed, 18 insertions(+), 1 deletions(-)
>  create mode 100644 recipes/netbase/netbase/htcdream/interfaces
>
> diff --git a/recipes/netbase/netbase/htcdream/interfaces b/recipes/netbase/netbase/htcdream/interfaces
> new file mode 100644
> index 0000000..a75f259
> --- /dev/null
> +++ b/recipes/netbase/netbase/htcdream/interfaces
> @@ -0,0 +1,17 @@
> +# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
> +
> +# The loopback interface
> +auto lo
> +iface lo inet loopback
> +
> +# Ethernet/RNDIS gadget (g_ether)
> +# ... or on host side, usbnet and random hwaddr
> +auto usb0
> +iface usb0 inet static
> +       address 192.168.0.202
> +       netmask 255.255.255.0
> +       network 192.168.0.0
> +       up route add default gw 192.168.0.200 metric 8
> +       up echo nameserver 208.67.222.222 > /etc/resolv.conf
> +       up echo nameserver 208.67.220.220 >> /etc/resolv.conf
> +       down route del default gw 192.168.0.200 metric 8
> diff --git a/recipes/netbase/netbase_4.21.bb b/recipes/netbase/netbase_4.21.bb
> index 4e1d39f..baec44b 100644
> --- a/recipes/netbase/netbase_4.21.bb
> +++ b/recipes/netbase/netbase_4.21.bb
> @@ -2,7 +2,7 @@ DESCRIPTION = "This package provides the necessary \
>  infrastructure for basic TCP/IP based networking."
>  SECTION = "base"
>  LICENSE = "GPLv2"
> -PR = "r41"
> +PR = "r42"
>
>  inherit update-rc.d
>
> --
> 1.7.0.4
>
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] netbase: add support for htcdream
  2010-06-07 20:10 ` Denis 'GNUtoo' Carikli
  2010-06-07 21:23   ` Khem Raj
@ 2010-06-09 14:43   ` Michael 'Mickey' Lauer
  2010-06-10 21:51     ` GNUtoo
  1 sibling, 1 reply; 5+ messages in thread
From: Michael 'Mickey' Lauer @ 2010-06-09 14:43 UTC (permalink / raw)
  To: openembedded-devel

Am Montag, den 07.06.2010, 22:10 +0200 schrieb Denis 'GNUtoo' Carikli:
> If we don't add a custom file containing auto usb0,
> usb0 is not configured at boot and we can't ssh into the phone
> 
> Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@no-log.org>

Acked-by: Michael 'Mickey' Lauer <mlauer@vanille-media.de>

:M:





^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] netbase: add support for htcdream
  2010-06-09 14:43   ` Michael 'Mickey' Lauer
@ 2010-06-10 21:51     ` GNUtoo
  0 siblings, 0 replies; 5+ messages in thread
From: GNUtoo @ 2010-06-10 21:51 UTC (permalink / raw)
  To: openembedded-devel

On Wed, 2010-06-09 at 16:43 +0200, Michael 'Mickey' Lauer wrote:
> Am Montag, den 07.06.2010, 22:10 +0200 schrieb Denis 'GNUtoo' Carikli:
> > If we don't add a custom file containing auto usb0,
> > usb0 is not configured at boot and we can't ssh into the phone
> > 
> > Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@no-log.org>
> 
> Acked-by: Michael 'Mickey' Lauer <mlauer@vanille-media.de>
> 
> :M:
Thanks a lot Khem and Mickey for the ack/review,it's pushed now.

Denis.





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-06-10 22:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-07 20:10 [PATCH] netbase: add support for htcdream Denis 'GNUtoo' Carikli
2010-06-07 20:10 ` Denis 'GNUtoo' Carikli
2010-06-07 21:23   ` Khem Raj
2010-06-09 14:43   ` Michael 'Mickey' Lauer
2010-06-10 21:51     ` GNUtoo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.