Re: xo-1 os300 -- switch off mesh?

2010-07-15 Thread Frantisek Dufka
martin wrote:
   Hi all,
  
   Is there a way to tweak the os300 build so that it brings up the
   Libertas device just as eth0 (and doesn't enable the 802.11s features
   in the firmware)?


echo 0 /sys/class/net/eth0/lbs_mesh

as per 
http://wiki.laptop.org/go/Mesh_Network_Details#Disabling_the_mesh_network

Not sure what it does exactly but the msh0 interface is gone and the 
wireless led does not randomly blink when in suspend mode (laptop closed).
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: xo-1 os300 -- switch off mesh?

2010-07-13 Thread Mikus Grinbergs
 Is there a way to tweak the os300 build so that it brings up the
 Libertas device just as eth0

I presume you are asking about installing a distribution which embodies
that definition - I myself do not understand how to modify the build
process.  But if the question refers only to hacking an existing
build for someone's use - my answer is 'yes':

 *  File /etc/udev/rules.d/70-persistent-net.rules lists the names
assigned to the device interfaces.  [These names appear to be assigned
in the order in which the respective devices were presented to the
system -- I ran into this problem in 2008, with my no-wireless setup.
Randomly a new build would initialize itself with my ethernet on eth0
(instead of on eth1) -- but there was code in the system which assumed
the XO's radio HAD TO BE at eth0.  Plus I found that if I had been using
an external ethernet adapter with a particular XO, but then plugged in a
different adapter -- that connection got assigned the next name (e.g.,
eth2).  Nowadays I always check this file to verify name assignments -
and manually edit names if they're not what my procedures expect.]

  *  And names are merely parameters specifiable on whatever command
causes that device interface to be created.  For instance, 'wlan_'
gets assigned by command 'iw interface add' (or equivalent).

 
 (and doesn't enable the 802.11s features in the firmware)?

I'm not familiar with the various methods implemented in the software.
 But (for hacking an existing build) there might well exist a
'service' (reachable via DBUS) which disables the XO's 802.11s feature.

mikus

___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: xo-1 os300 -- switch off mesh?

2010-07-13 Thread Daniel Drake
On 12 July 2010 17:59, Martin Langhoff martin.langh...@gmail.com wrote:
 Hi all,

 Is there a way to tweak the os300 build so that it brings up the
 Libertas device just as eth0 (and doesn't enable the 802.11s features
 in the firmware)?

Just curious, why?


The usual NetworkManager methods (if any?) should work, google for
network manager ignore device type thing.
You could delete the hal fdi file that identifies the device as mesh
(in which case it will come up as a regular wifi device).
Not really sure how the mesh on/off thing works at the firmware level,
there's no obvious way to turn it on or off. I guess it will always
forward packets as it hears them etc.

Daniel
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: xo-1 os300 -- switch off mesh?

2010-07-13 Thread John Watlington

On Jul 12, 2010, at 11:03 PM, Martin Langhoff wrote:

 On Mon, Jul 12, 2010 at 10:42 PM, Paul Fox p...@laptop.org wrote:
   Is there a way to tweak the os300 build so that it brings up the
   Libertas device just as eth0 (and doesn't enable the 802.11s features
   in the firmware)?
 
 was there a way to do that in 802?
 
 Good question -- no there wasn't.
 
 But the f11 builds for xo-1 only did 802.11b/g for a long time. I have
 this silly assumption that there's a kmod to blacklist or a kmod
 option to set/change to completely disable the 802.11s support.

As far as I know, there is NO way to completely disable mesh
support on XO-1 without holding the WLAN card in reset.
Even if you don't support it at the OS level, the firmware will
still behave badly if it receives a mesh broadcast packet.

IIRC, we settled for trying to ensure that no mesh packets were
ever broadcast, but if one did get sent, everyone would still
help relay it.

wad

___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: xo-1 os300 -- switch off mesh?

2010-07-13 Thread Martin Langhoff
On Tue, Jul 13, 2010 at 10:22 AM, John Watlington w...@laptop.org wrote:
 As far as I know, there is NO way to completely disable mesh
 support on XO-1 without holding the WLAN card in reset.

Boo. Ok.

 Even if you don't support it at the OS level, the firmware will
 still behave badly if it receives a mesh broadcast packet.

Interesting. Given that we had mesh disabled on XO-1 kernel builds for
quite a while, my understanding was that we were using a different
driver (thinfirmware?) or that there was a way to disable 802.11s.

The nasty bit is that even with an established 802.11b/g connection
(infra or adhoc), it'll forward packets.

cheers,


m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: xo-1 os300 -- switch off mesh?

2010-07-13 Thread Martin Langhoff
On Tue, Jul 13, 2010 at 12:15 PM, Reuben K. Caron reu...@laptop.org wrote:
 Um, I think this should send a mesh stop command to the firmware.

 echo 0  /sys/class/net/eth1/lbs_mesh

 From: http://dev.laptop.org/ticket/5144

I like hearing from people who know stuff :-)

Excellent, so adding that to an init-script that runs before NM starts
up (ie: /etc/init.d/olpc-configure) would nuke msh0.

The reason for this is testing -- there is a team testing throughput
and reliability (and maybe dense environments) for the XO-1 hardware
and they are interested in disabling the mesh forwarding to see if it
changes things.

cheers,



m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: xo-1 os300 -- switch off mesh?

2010-07-12 Thread Paul Fox
martin wrote:
  Hi all,
  
  Is there a way to tweak the os300 build so that it brings up the
  Libertas device just as eth0 (and doesn't enable the 802.11s features
  in the firmware)?

was there a way to do that in 802?

paul
=-
 paul fox, p...@laptop.org
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: xo-1 os300 -- switch off mesh?

2010-07-12 Thread Martin Langhoff
On Mon, Jul 12, 2010 at 10:42 PM, Paul Fox p...@laptop.org wrote:
   Is there a way to tweak the os300 build so that it brings up the
   Libertas device just as eth0 (and doesn't enable the 802.11s features
   in the firmware)?

 was there a way to do that in 802?

Good question -- no there wasn't.

But the f11 builds for xo-1 only did 802.11b/g for a long time. I have
this silly assumption that there's a kmod to blacklist or a kmod
option to set/change to completely disable the 802.11s support.

cheers,


m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel