The plot thickens.

The Pi doesn't support 802.11s but 'batman-adv'
( works. 
A 'short install guide'
for Raspbian was posted on Reddit. 

I've added the batman-adv module to pcp 3.22 (it's not available from
the GUI I think, but I found it in the 4.9.50-pcpCore_v7_modules.tar.gz
archive on
Then I compiled batctl (see the Reddit post; optional), and could create
and manage my first bat0 interfaces. 
I attach these 2 files, compiled for the "normal" pcpCore 4.9.50 on Pi
    tc@clt3:/mnt/nfs/tce/optional$ md5sum batctl.tcz 
  71f77ddd67e5f4ca0ff16a8e3d6f0ef4  batctl.tcz
  tc@clt3:/mnt/nfs/tce/optional$ md5sum batman-adv.tcz
  9a06abf2d1380d82a3408037fb227cb3  batman-adv.tcz

Attached file: 24564

>From there, you can create batman mesh wireless interfaces on PCP 3.22
"non-Audio" version, and try your luck synching players.

I have synched 3 players: one has bat0 bridged with eth0, so it can
reach LMS; the 2 others are only using the mesh network. I am not
testing in the ideal conditions (and with analog out on the Pi 3s) but
for CD-resolution music (<1Mbps) the 3 players did sync quite well.
On HD tracks things went downhill, but this was a test with 0
optimization to say the least.
The mesh network somewhat reminds me of syncing with hardware SBs: when
sync break they all stop at the same time. With the mesh when a node in
the middle can't keep up, its peers stop as well :)

It's not better than good wifi coverage from an AP. But it might be
better than bad wifi coverage.
Overall this seems encouraging, perhaps others will care to try and
report their findings.

PS: some extra information that will probably confuse the hell out of
- Just in case, my current onboot.lst. Quite a mess:  
- You need wifi.tcz (iwconfig and firmware for your adapter) for
  batman to work, but the idea was to make a player work without an AP.
  The pCP GUI wipes out the firmware and wifi-related tcz packages from
  onboot.lst if you don't activate wifi. So the trick here is to
  activate wifi from the GUI, save, then edit /usr/local/sbin/config.cfg
  and set WIFI="off" instead of "on". Don't forget to "pcp bu" after
  Or do the deed by hand with "tce-load -w -i <pacakge>" until you have
  enough packages to fulfill the dependencies.
- Because I am short of SDs and expected to crash a lot, I decided to
  revive my attempt at netbooting, so the the pCP installs would be on a
  server and easier to access even when a player is stranded. The
  SD-free netboot seems slightly better than it was, but still not up to
  Since netbooting works only over ethernet, I added insult to injury
  and bridged the ethernet link with the batman interface created later
  at boot. After boot I can unplug the ethernet cord on 2 players out of
  3 (one must be able to reach LMS on the ethernet LAN)
  These are the scripts I've been using:
  - /opt/ (the NFS boot part is incidental) 
      # put other system startup commands here
      GREEN="$(echo -e '\033[1;32m')"
      echo "${GREEN}Running"
      /home/tc/www/cgi-bin/ 2>&1 | tee -a /var/log/pcp_boot.log
      # Wireless stuff
      # NFS mounting. See
      for i in `cat /proc/cmdline`; do            
      case $i in                      
      # Allows to update pCP boot config over NFS
      SERVER=$(echo $NFSBOOT | awk -F: '{ print $1 }')
      DIR=$(echo $NFSBOOT | awk -F: '{ print $2 }')
      OPTS=$(echo $NFSBOOT | awk -F: '{ print $3 }' | tr ',' ' ')
      OPTS=$(echo defaults noauto nolock addr=${SERVER} ${OPTS} | tr ' ' ',')
      echo "Creating directory ${BOOTMNT}"
      sudo mkdir ${BOOTMNT} >/dev/null 2>&1
      # pCP checks in fstab for device /dev/mmcblk itself so mounts fail...
      # echo "Creating /etc/fstab entry for ${BOOTMNT} over NFS"
      # ME="$0"
      # sudo sh -c "cat << EOF >> /etc/fstab
      ## Added by $ME
      #${SERVER}:${DIR} ${BOOTMNT} nfs ${OPTS} 0 0
      # ... so instead we mount permanently as pCP won't mount/unmount
      # if mounted already.
      echo "Mounting ${SERVER}:${DIR} to ${BOOTMNT}"
      sudo mount -t nfs -o ${OPTS} ${SERVER}:${DIR} ${BOOTMNT}
      # Keep pCP happy with a normal-looking SD mount
      echo "Creating directory ${TCEMNT}"
      sudo mkdir ${TCEMNT} >/dev/null 2>&1
      echo "Adding bind mount for ${TCEMNT}"
      sudo mount -o bind ${NFSMOUNT} ${TCEMNT} >/dev/null 2>&1
  - /home/tc/ (slight variations in the end from player to
    player. Basically copied from the Reddit post) 
      # Activate batman-adv
      modprobe batman-adv
      # Disable and configure wlan0
      ip link set wlan0 down
      ifconfig wlan0 mtu 1532
      iwconfig wlan0 mode ad-hoc
      iwconfig wlan0 essid mesh
      #RPi built-in doesn't seem to support a MAC instead of any
      iwconfig wlan0 ap any
      iwconfig wlan0 channel 8
      sleep 1
      ip link set wlan0 up
      sleep 1
      batctl if add wlan0
      sleep 1
      ifconfig bat0 up
      # Using DHCP and bridging, make sure br0 will use the MAC of eth0
      # Otherwise we change of IP address and the previous NFS mount goes 
stale. No good.
      ip link set dev bat0 address fe:12:3c:4e:5f:6a
      sleep 1
      brctl addbr br0
      brctl setfd br0 2
      # Kill the lease on eth0
      killall udhcpc
      ifconfig br0 up
      ifconfig eth0 up
      ifconfig bat0 up
      brctl addif br0 eth0
      brctl addif br0 bat0
      /sbin/udhcpc -b -i br0 -x hostname clt3 -p /var/run/
    I really don't think bridging is a good idea; I needed it due to NFS
    booting. The bridge has to have an address on the LAN, when a
    wireless mesh with ipv4ll addresses would be much more suited
    (assuming LMS uses an ipv4ll address too). The bridges in mesh nodes
    hold all the MACs in the LAN, something tells me that might not be
    completely necessary...
  - cmdline.txt (nothing specific to wireless, only NFS-related)
      host=clt3 nfsmount= 
tz=CET-1CEST,M3.5.0,M10.5.0/3 dwc_otg.fiq_fsm_mask=0xF dwc_otg.lpm_enable=0 
console=tty1 root=/dev/ram0 elevator=deadline rootwait quiet nortc loglevel=3 
noembed smsc95xx.turbo_mode=N noswap cron consoleblank=0 waitusb=2

3 SB 3 • Libratone Loop, Zipp Mini • iPeng (iPhone + iPad) • LMS 7.9
(linux) with plugins: CD Player, WaveInput, Triode's BBC iPlayer by bpa
• IRBlaster by Gwendesign (Felix) • Server Power Control by Gordon
Harris • Smart Mix, Music Walk With Me, What Was That Tune? by Michael
Herger • PowerSave by Jason Holtzapple • Song Info, Song Lyrics by
Erland Isaksson • AirPlay Bridge by philippe_44 • WeatherTime by Martin
Rehfeld • Auto Dim Display, SaverSwitcher, ContextMenu by Peter Watkins.
epoch1970's Profile:
View this thread:

unix mailing list

Reply via email to