Re: [OpenWrt-Devel] Etrax support

2008-08-04 Thread Hinko Kocevar
MichelinoK wrote:
 Is there a way to have a more verbose boot (to see where it hangs) ? 
 
 

Run sysinit scripts in /etc/inittab with '#!/bin/sh -x' or use strace to start 
the script. It might help if strace and/or init are both statically linked.

HTH,
Hinko

-- 
ČETRTA POT, d.o.o., Kranj
Planina 3
4000 Kranj
Slovenia, Europe
Tel. +386 (0) 4 280 66 03
E-mail: [EMAIL PROTECTED]
Http: www.cetrtapot.si

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


Re: [OpenWrt-Devel] Etrax support

2008-08-04 Thread MichelinoK

Hinko Kocevar [EMAIL PROTECTED] ha scritto nel messaggio 
news:[EMAIL PROTECTED]
 MichelinoK wrote:
 Is there a way to have a more verbose boot (to see where it hangs) ?



 Run sysinit scripts in /etc/inittab with '#!/bin/sh -x' or use strace to 
 start the script. It might help if strace and/or init are both statically 
 linked.

 HTH,
 Hinko

1) You mean that I must modify the sources and edit all the scripts and add 
-x?
2) How can statically link strace/init ?

Many thanks!



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


Re: [OpenWrt-Devel] Etrax support

2008-08-04 Thread Claudio
2008/8/4, Hinko Kocevar [EMAIL PROTECTED]:
 MichelinoK wrote:
 Is there a way to have a more verbose boot (to see where it hangs) ?



 Run sysinit scripts in /etc/inittab with '#!/bin/sh -x' or use strace to
 start the script. It might help if strace and/or init are both statically
 linked.


How to get strace working on etrax? At the moment the strace inside
OpenWrt cannot be compiles.
Bye

 HTH,
 Hinko

 --
 ČETRTA POT, d.o.o., Kranj
 Planina 3
 4000 Kranj
 Slovenia, Europe
 Tel. +386 (0) 4 280 66 03
 E-mail: [EMAIL PROTECTED]
 Http: www.cetrtapot.si

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



-- 
Claudio
User linux #415284
- http://www.crisos.org/
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] how to briding lan and wan

2008-08-04 Thread Gary Li
Hi all,

 

When I try to modify configuration to support brige in the
etc/config/netwok.

And execute network restart. 

I got a error:

Interface type bridge not supported.

 

Anyone know how to do that?

 

Thanks,

 

Best regards,

Gary

 

 

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


Re: [OpenWrt-Devel] Etrax support

2008-08-04 Thread Hinko Kocevar
MichelinoK wrote:
 Hinko Kocevar [EMAIL PROTECTED] ha scritto nel messaggio 
 news:[EMAIL PROTECTED]
 MichelinoK wrote:
 Is there a way to have a more verbose boot (to see where it hangs) ?


 Run sysinit scripts in /etc/inittab with '#!/bin/sh -x' or use strace to 
 start the script. It might help if strace and/or init are both statically 
 linked.

 HTH,
 Hinko
 
 1) You mean that I must modify the sources and edit all the scripts and add 
 -x?

At least the /etc/init.d/rcS - this one is run first.

 2) How can statically link strace/init ?

if /sbin/init is from busybox, correct me if I'm wrong, so all that is needed 
is to build busybox as static binary - there is a config option in busybox for 
this.

strace is not in openwrt, yet.
I have made a port of 4.5.8 cris patch for 4.5.15. If someone could make the 
openwrt package I'll provide the patch for cris architecture. To build strace 
statically add '-static' flag to the final link command.

Regards,
Hinko

-- 
ČETRTA POT, d.o.o., Kranj
Planina 3
4000 Kranj
Slovenia, Europe
Tel. +386 (0) 4 280 66 03
E-mail: [EMAIL PROTECTED]
Http: www.cetrtapot.si

diff -urN strace-4.5.15/config.h.in strace-4.5.15.1/config.h.in
--- strace-4.5.15/config.h.in	2007-01-11 23:23:56.0 +0100
+++ strace-4.5.15.1/config.h.in	2008-05-11 01:50:45.0 +0200
@@ -397,6 +397,11 @@
 /* Define for the AMD x86-64 architecture. */
 #undef X86_64
 
+/* Define for the CRISv10 architecture. */
+#undef CRISV10
+
+/* Define for the CRISv32 architecture. */
+#undef CRISV32
 /* Enable GNU extensions on systems that have them.  */
 #ifndef _GNU_SOURCE
 # undef _GNU_SOURCE
diff -urN strace-4.5.15/configure strace-4.5.15.1/configure
--- strace-4.5.15/configure	2007-01-11 23:23:33.0 +0100
+++ strace-4.5.15.1/configure	2008-05-11 01:58:16.0 +0200
@@ -2017,6 +2017,22 @@
 _ACEOF
 
 	;;
+cris|crisv10)
+	arch=crisv10
+
+cat confdefs.h \_ACEOF
+#define CRISV10 1
+_ACEOF
+
+	;;
+crisv32)
+	arch=crisv32
+
+cat confdefs.h \_ACEOF
+#define CRISV32 1
+_ACEOF
+
+	;;
 *)
 	echo $as_me:$LINENO: result: NO! 5
 echo ${ECHO_T}NO! 6
diff -urN strace-4.5.15/configure.ac strace-4.5.15.1/configure.ac
--- strace-4.5.15/configure.ac	2007-01-11 12:37:55.0 +0100
+++ strace-4.5.15.1/configure.ac	2008-05-11 01:20:53.0 +0200
@@ -103,6 +103,14 @@
 	arch=x86_64
 	AC_DEFINE([X86_64], 1, [Define for the AMD x86-64 architecture.])
 	;;
+cris|crisv10)
+	arch=crisv10
+	AC_DEFINE([CRISV10], 1, [Define for the CRISv10 architecture.])
+	;;
+crisv32)
+	arch=crisv32
+	AC_DEFINE([CRISV32], 1, [Define for the CRISv32 architecture.])
+	;;
 *)
 	AC_MSG_RESULT([NO!])
 	AC_MSG_ERROR([architecture $host_cpu is not supported by strace])
diff -urN strace-4.5.15/process.c strace-4.5.15.1/process.c
--- strace-4.5.15/process.c	2007-01-11 23:08:38.0 +0100
+++ strace-4.5.15.1/process.c	2008-05-11 01:32:17.0 +0200
@@ -548,7 +548,7 @@
 #  define ARG_PTID	(known_scno(tcp) == SYS_clone2 ? 3 : 2)
 #  define ARG_CTID	(known_scno(tcp) == SYS_clone2 ? 4 : 3)
 #  define ARG_TLS	(known_scno(tcp) == SYS_clone2 ? 5 : 4)
-# elif defined S390 || defined S390X
+# elif defined S390 || defined S390X || defined CRISV10 || defined CRISV32
 #  define ARG_STACK	0
 #  define ARG_FLAGS	1
 #  define ARG_PTID	2
@@ -704,6 +704,10 @@
0x10 | new)  0)
return -1;
return 0;
+#elif defined(CRISV10) || defined(CRISV32)
+	if (ptrace(PTRACE_POKEUSER, tcp-pid, (char*)(4*PT_R9), new)  0)
+		return -1;
+	return 0;
 #elif defined(ARM)
/* Some kernels support this, some (pre-2.6.16 or so) don't.  */
 # ifndef PTRACE_SET_SYSCALL
@@ -2882,7 +2886,77 @@
 	{ uoff(regs.ARM_pc),	pc	},
 	{ uoff(regs.ARM_cpsr),	cpsr	},
 #endif
+#ifdef CRISV10
+	{ 4*PT_FRAMETYPE, 4*PT_FRAMETYPE },
+	{ 4*PT_ORIG_R10, 4*PT_ORIG_R10 },
+	{ 4*PT_R13, 4*PT_R13 },
+	{ 4*PT_R12, 4*PT_R12 },
+	{ 4*PT_R11, 4*PT_R11 },
+	{ 4*PT_R10, 4*PT_R10 },
+	{ 4*PT_R9, 4*PT_R9 },
+	{ 4*PT_R8, 4*PT_R8 },
+	{ 4*PT_R7, 4*PT_R7 },
+	{ 4*PT_R6, 4*PT_R6 },
+	{ 4*PT_R5, 4*PT_R5 },
+	{ 4*PT_R4, 4*PT_R4 },
+	{ 4*PT_R3, 4*PT_R3 },
+	{ 4*PT_R2, 4*PT_R2 },
+	{ 4*PT_R1, 4*PT_R1 },
+	{ 4*PT_R0, 4*PT_R0 },
+	{ 4*PT_MOF, 4*PT_MOF },
+	{ 4*PT_DCCR, 4*PT_DCCR },
+	{ 4*PT_SRP, 4*PT_SRP },
+	{ 4*PT_IRP, 4*PT_IRP },
+	{ 4*PT_CSRINSTR, 4*PT_CSRINSTR },
+	{ 4*PT_CSRADDR, 4*PT_CSRADDR },
+	{ 4*PT_CSRDATA, 4*PT_CSRDATA },
+	{ 4*PT_USP, 4*PT_USP },
+#endif
+#ifdef CRISV32
+	{ 4*PT_ORIG_R10, 4*PT_ORIG_R10 },
+	{ 4*PT_R0, 4*PT_R0 },
+	{ 4*PT_R1, 4*PT_R1 },
+	{ 4*PT_R2, 4*PT_R2 },
+	{ 4*PT_R3, 4*PT_R3 },
+	{ 4*PT_R4, 4*PT_R4 },
+	{ 4*PT_R5, 4*PT_R5 },
+	{ 4*PT_R6, 4*PT_R6 },
+	{ 4*PT_R7, 4*PT_R7 },
+	{ 4*PT_R8, 4*PT_R8 },
+	{ 4*PT_R9, 4*PT_R9 },
+	{ 4*PT_R10, 4*PT_R10 },
+	{ 4*PT_R11, 4*PT_R11 },
+	{ 4*PT_R12, 4*PT_R12 },
+	{ 4*PT_R13, 4*PT_R13 },
+	{ 4*PT_ACR, 4*PT_ACR },
+	{ 4*PT_SRS, 4*PT_SRS },
+	{ 4*PT_MOF, 4*PT_MOF },
+	{ 4*PT_SPC, 4*PT_SPC },
+	{ 4*PT_CCS, 4*PT_CCS },
+	{ 4*PT_SRP, 4*PT_SRP },
+	{ 

Re: [OpenWrt-Devel] how to briding lan and wan

2008-08-04 Thread Karthik Venkateswaran
Can you cut and paste your /etc/config/network and ifconfig to give more 
clarity.

Cheers,
Karthik Venkateswaran
 



Gary Li [EMAIL PROTECTED] 
Sent by: [EMAIL PROTECTED]
08/04/2008 05:11 PM
Please respond to
OpenWrt Development List openwrt-devel@lists.openwrt.org


To
openwrt-devel@lists.openwrt.org
cc

Subject
[OpenWrt-Devel] how to briding lan and wan






Hi all,
 
When I try to modify configuration to support brige in the 
etc/config/netwok.
And execute network restart. 
I got a error:
Interface type bridge not supported.
 
Anyone know how to do that?
 
Thanks,
 
Best regards,
Gary
 
 

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



_
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Etrax support

2008-08-04 Thread Claudio
2008/8/4, Hinko Kocevar [EMAIL PROTECTED]:
 MichelinoK wrote:
 Hinko Kocevar [EMAIL PROTECTED] ha scritto nel messaggio
 news:[EMAIL PROTECTED]
 MichelinoK wrote:
 Is there a way to have a more verbose boot (to see where it hangs) ?


 Run sysinit scripts in /etc/inittab with '#!/bin/sh -x' or use strace to
 start the script. It might help if strace and/or init are both statically

 linked.

 HTH,
 Hinko

 1) You mean that I must modify the sources and edit all the scripts and
 add
 -x?

 At least the /etc/init.d/rcS - this one is run first.

 2) How can statically link strace/init ?

 if /sbin/init is from busybox, correct me if I'm wrong, so all that is
 needed is to build busybox as static binary - there is a config option in
 busybox for this.

 strace is not in openwrt, yet.
 I have made a port of 4.5.8 cris patch for 4.5.15. If someone could make the
 openwrt package I'll provide the patch for cris architecture. To build
 strace statically add '-static' flag to the final link command.

Wonderful!!
This is __exactly__ what I need now!

I will test it shortly!!

Many thanks!


 Regards,
 Hinko

Best Regards

 --
 ČETRTA POT, d.o.o., Kranj
 Planina 3
 4000 Kranj
 Slovenia, Europe
 Tel. +386 (0) 4 280 66 03
 E-mail: [EMAIL PROTECTED]
 Http: www.cetrtapot.si




-- 
Claudio
User linux #415284
- http://www.crisos.org/
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] Allow use of parameters for modules in function autoload

2008-08-04 Thread Sergey Vlasov
On Mon, Aug 04, 2008 at 06:09:36PM +0200, Frédéric Moulins wrote:
 Hello,
 
 maybe the following patch will interest you :
 http://lists.openwrt.org/pipermail/openwrt-devel/2008-June/002609.html
 
 It allows to configure kernel modules parameters from uci config files.

Interesting.  But is it really good to have a separate config file for
each module?  This can lead to collisions (if a module has the same
name as a different config file); also, a set of config files without
any common pattern would be hard to use in an UI frontend.

Maybe a single config file with sections for each module would be
better?  Something like this:

config kernel-module scsi_mod
option inq_timeout 60

config kernel-module coolmod2
option param1 1
option param2 42


signature.asc
Description: Digital signature
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] how to briding lan and wan

2008-08-04 Thread Gary Li
 

Hi Karthik,

 

I just try to change lan option proto.

The conf is as below:

 

config interface loopback

option ifname   lo

option protostatic

option ipaddr   127.0.0.1

option netmask  255.0.0.0

 

config interface lan

option ifname   eth0

option proto  bridge

option ipaddr   '192.168.8.180'

option netmask  255.255.255.0

 

config interface wan

option ifname   eth1

option protodhcp

 

the result of ifconfig command:

 

eth0  Link encap:Ethernet  HWaddr 00:01:C1:00:42:80  

  inet addr:192.168.8.188  Bcast:192.168.8.255  Mask:255.255.255.0

  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

  RX packets:112374 errors:0 dropped:0 overruns:0 frame:0

  TX packets:892 errors:0 dropped:0 overruns:0 carrier:0

  collisions:0 txqueuelen:1000 

  RX bytes:9910188 (9.4 MiB)  TX bytes:154740 (151.1 KiB)

 

eth1  Link encap:Ethernet  HWaddr 00:01:C1:00:42:81  

  inet addr:192.168.7.188  Bcast:192.168.7.255  Mask:255.255.255.0

  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

  RX packets:0 errors:0 dropped:0 overruns:0 frame:0

  TX packets:197 errors:0 dropped:0 overruns:0 carrier:0

  collisions:0 txqueuelen:1000 

  RX bytes:0 (0.0 B)  TX bytes:63040 (61.5 KiB)

 

fpLink encap:Ethernet  HWaddr 00:00:00:00:00:00  

  UP RUNNING  MTU:1500  Metric:1

  RX packets:0 errors:0 dropped:0 overruns:0 frame:0

  TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

  collisions:0 txqueuelen:1000 

  RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

 

loLink encap:Local Loopback  

  inet addr:127.0.0.1  Mask:255.0.0.0

  UP LOOPBACK RUNNING  MTU:16436  Metric:1

  RX packets:178 errors:0 dropped:0 overruns:0 frame:0

  TX packets:178 errors:0 dropped:0 overruns:0 carrier:0

  collisions:0 txqueuelen:0 

  RX bytes:27024 (26.3 KiB)  TX bytes:27024 (26.3 KiB)

 

Thanks,

 

Best Regards,

Gary

 

  _  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Karthik
Venkateswaran
Sent: Monday, August 04, 2008 8:18 PM
To: OpenWrt Development List
Subject: Re: [OpenWrt-Devel] how to briding lan and wan

 


Can you cut and paste your /etc/config/network and ifconfig to give more
clarity. 

Cheers, 
Karthik Venkateswaran





Gary Li [EMAIL PROTECTED] 
Sent by: [EMAIL PROTECTED] 

08/04/2008 05:11 PM 


Please respond to
OpenWrt Development List openwrt-devel@lists.openwrt.org


To

openwrt-devel@lists.openwrt.org 


cc

 


Subject

[OpenWrt-Devel] how to briding lan and wan

 


 

 

 


Hi all, 
  
When I try to modify configuration to support brige in the
etc/config/netwok. 
And execute network restart. 
I got a error: 
Interface type bridge not supported. 
  
Anyone know how to do that? 
  
Thanks, 
  
Best regards, 
Gary 
  
  



_
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


__

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


Re: [OpenWrt-Devel] how to briding lan and wan

2008-08-04 Thread Karthik Venkateswaran
Gary,
After analyzing the config.sh from /lib/network (for Kamikaze 7.09:
The bridge is only supported as interface type. 
option type {bridge}
option proto{static, dhcp}
If you are interested in bridging your lan and wan interface you could 
have more success adding it as a type in both interfaces.
I also had to tweak with the firewall settings for bridging to work.


Good day,
Karthik Venkateswaran




Gary Li [EMAIL PROTECTED] 
Sent by: [EMAIL PROTECTED]
08/05/2008 06:58 AM
Please respond to
OpenWrt Development List openwrt-devel@lists.openwrt.org


To
'OpenWrt Development List' openwrt-devel@lists.openwrt.org
cc

Subject
Re: [OpenWrt-Devel] how to briding lan and wan






 
Hi Karthik,
 
I just try to change lan option proto.
The conf is as below:
 
config interface loopback
option ifname   lo
option protostatic
option ipaddr   127.0.0.1
option netmask  255.0.0.0
 
config interface lan
option ifname   eth0
option proto  bridge
option ipaddr   '192.168.8.180'
option netmask  255.255.255.0
 
config interface wan
option ifname   eth1
option protodhcp
 
the result of ifconfig command:
 
eth0  Link encap:Ethernet  HWaddr 00:01:C1:00:42:80 
  inet addr:192.168.8.188  Bcast:192.168.8.255  Mask:255.255.255.0
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:112374 errors:0 dropped:0 overruns:0 frame:0
  TX packets:892 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000 
  RX bytes:9910188 (9.4 MiB)  TX bytes:154740 (151.1 KiB)
 
eth1  Link encap:Ethernet  HWaddr 00:01:C1:00:42:81 
  inet addr:192.168.7.188  Bcast:192.168.7.255  Mask:255.255.255.0
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  TX packets:197 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000 
  RX bytes:0 (0.0 B)  TX bytes:63040 (61.5 KiB)
 
fpLink encap:Ethernet  HWaddr 00:00:00:00:00:00 
  UP RUNNING  MTU:1500  Metric:1
  RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000 
  RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
 
loLink encap:Local Loopback 
  inet addr:127.0.0.1  Mask:255.0.0.0
  UP LOOPBACK RUNNING  MTU:16436  Metric:1
  RX packets:178 errors:0 dropped:0 overruns:0 frame:0
  TX packets:178 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:0 
  RX bytes:27024 (26.3 KiB)  TX bytes:27024 (26.3 KiB)
 
Thanks,
 
Best Regards,
Gary
 

From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of Karthik 
Venkateswaran
Sent: Monday, August 04, 2008 8:18 PM
To: OpenWrt Development List
Subject: Re: [OpenWrt-Devel] how to briding lan and wan
 

Can you cut and paste your /etc/config/network and ifconfig to give more 
clarity. 

Cheers, 
Karthik Venkateswaran



Gary Li [EMAIL PROTECTED] 
Sent by: [EMAIL PROTECTED] 
08/04/2008 05:11 PM 


Please respond to
OpenWrt Development List openwrt-devel@lists.openwrt.org



To
openwrt-devel@lists.openwrt.org 
cc
 
Subject
[OpenWrt-Devel] how to briding lan and wan
 


 
 

 

Hi all, 
  
When I try to modify configuration to support brige in the 
etc/config/netwok. 
And execute network restart. 
I got a error: 
Interface type bridge not supported. 
  
Anyone know how to do that? 
  
Thanks, 
  
Best regards, 
Gary 
  
  

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

__

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



_
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] how to briding lan and wan

2008-08-04 Thread Gary Li
Karthik,

 

Thanks very much!

 

Best Regards,

Gary

 

  _  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Karthik
Venkateswaran
Sent: Tuesday, August 05, 2008 12:04 PM
To: OpenWrt Development List
Subject: Re: [OpenWrt-Devel] how to briding lan and wan

 


Gary, 
After analyzing the config.sh from /lib/network (for Kamikaze 7.09: 

*   The bridge is only supported as interface type. 

option type {bridge} 
option proto{static, dhcp} 

*   If you are interested in bridging your lan and wan interface you
could have more success adding it as a type in both interfaces. 
*   I also had to tweak with the firewall settings for bridging to work.



Good day, 
Karthik Venkateswaran





Gary Li [EMAIL PROTECTED] 
Sent by: [EMAIL PROTECTED] 

08/05/2008 06:58 AM 


Please respond to
OpenWrt Development List openwrt-devel@lists.openwrt.org


To

'OpenWrt Development List' openwrt-devel@lists.openwrt.org 


cc

 


Subject

Re: [OpenWrt-Devel] how to briding lan and wan

 


 

 




  
Hi Karthik, 
  
I just try to change lan option proto. 
The conf is as below: 
  
config interface loopback 
option ifname   lo 
option protostatic 
option ipaddr   127.0.0.1 
option netmask  255.0.0.0 
  
config interface lan 
option ifname   eth0 
option proto  bridge 
option ipaddr   '192.168.8.180' 
option netmask  255.255.255.0 
  
config interface wan 
option ifname   eth1 
option protodhcp 
  
the result of ifconfig command: 
  
eth0  Link encap:Ethernet  HWaddr 00:01:C1:00:42:80   
  inet addr:192.168.8.188  Bcast:192.168.8.255  Mask:255.255.255.0 
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1 
  RX packets:112374 errors:0 dropped:0 overruns:0 frame:0 
  TX packets:892 errors:0 dropped:0 overruns:0 carrier:0 
  collisions:0 txqueuelen:1000 
  RX bytes:9910188 (9.4 MiB)  TX bytes:154740 (151.1 KiB) 
  
eth1  Link encap:Ethernet  HWaddr 00:01:C1:00:42:81   
  inet addr:192.168.7.188  Bcast:192.168.7.255  Mask:255.255.255.0 
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1 
  RX packets:0 errors:0 dropped:0 overruns:0 frame:0 
  TX packets:197 errors:0 dropped:0 overruns:0 carrier:0 
  collisions:0 txqueuelen:1000 
  RX bytes:0 (0.0 B)  TX bytes:63040 (61.5 KiB) 
  
fpLink encap:Ethernet  HWaddr 00:00:00:00:00:00   
  UP RUNNING  MTU:1500  Metric:1 
  RX packets:0 errors:0 dropped:0 overruns:0 frame:0 
  TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 
  collisions:0 txqueuelen:1000 
  RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B) 
  
loLink encap:Local Loopback   
  inet addr:127.0.0.1  Mask:255.0.0.0 
  UP LOOPBACK RUNNING  MTU:16436  Metric:1 
  RX packets:178 errors:0 dropped:0 overruns:0 frame:0 
  TX packets:178 errors:0 dropped:0 overruns:0 carrier:0 
  collisions:0 txqueuelen:0 
  RX bytes:27024 (26.3 KiB)  TX bytes:27024 (26.3 KiB) 
  
Thanks, 
  
Best Regards, 
Gary 
  

 

  _  


From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Karthik
Venkateswaran
Sent: Monday, August 04, 2008 8:18 PM
To: OpenWrt Development List
Subject: Re: [OpenWrt-Devel] how to briding lan and wan 
  

Can you cut and paste your /etc/config/network and ifconfig to give more
clarity. 

Cheers, 
Karthik Venkateswaran


Gary Li [EMAIL PROTECTED] 
Sent by: [EMAIL PROTECTED] 

08/04/2008 05:11 PM 

 


Please respond to
OpenWrt Development List openwrt-devel@lists.openwrt.org

 


To

openwrt-devel@lists.openwrt.org 


cc

  


Subject

[OpenWrt-Devel] how to briding lan and wan


  

 


  

 


  

Hi all, 
 
When I try to modify configuration to support brige in the
etc/config/netwok. 
And execute network restart. 
I got a error: 
Interface type bridge not supported. 
 
Anyone know how to do that? 
 
Thanks, 
 
Best regards, 
Gary 
 
  



_
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel 

__ 



_
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


__

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