Othernet-Project / orx-install

ORx install scripts
http://outernet-project.github.io/orx-install/
GNU General Public License v3.0
94 stars 61 forks source link

Attempt build with stock Raspbian #6

Closed foxbunny closed 9 years ago

foxbunny commented 9 years ago

Stuff we need:

Same set-up as Arch, with TVHeadend added. XBMC should start on boot.

wpt-steve commented 9 years ago

We might be able to do without XBMC if that proves difficult to install.

There is a driver dependent firmware file as well.

--Steve

From: Branko Vukelic [mailto:notifications@github.com] Sent: Tuesday, July 22, 2014 3:18 PM To: Outernet-Project/orx-install Subject: [orx-install] Attempt build with stock Raspbian (#6)

Stuff we need:

Same set-up as Arch, with TVHeadend added. XBMC should start on boot.

— Reply to this email directly or view it on GitHub https://github.com/Outernet-Project/orx-install/issues/6 . https://github.com/notifications/beacon/8193330__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcyMTY3NTg2NywiZGF0YSI6eyJpZCI6Mzc2NTMxMjJ9fQ==--7d0d6b176a56c80e6ddd781d5fda118c7992a791.gif

syedkarim commented 9 years ago

I am really partial to making XBMC a part of this; it also has a huge user community to eventually leverage. And it's just really useful for normal video viewing.

On Jul 22, 2014, at 3:38 PM, wpt-steve notifications@github.com wrote:

We might be able to do without XBMC if that proves difficult to install.

There is a driver dependent firmware file as well.

--Steve

From: Branko Vukelic [mailto:notifications@github.com] Sent: Tuesday, July 22, 2014 3:18 PM To: Outernet-Project/orx-install Subject: [orx-install] Attempt build with stock Raspbian (#6)

Stuff we need:

  • XBMC
  • TVHeadend
  • Librarian
  • hostapd
  • [u]dhcpd
  • dsniff

Same set-up as Arch, with TVHeadend added. XBMC should start on boot.

— Reply to this email directly or view it on GitHub https://github.com/Outernet-Project/orx-install/issues/6 . https://github.com/notifications/beacon/8193330__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcyMTY3NTg2NywiZGF0YSI6eyJpZCI6Mzc2NTMxMjJ9fQ==--7d0d6b176a56c80e6ddd781d5fda118c7992a791.gif — Reply to this email directly or view it on GitHub.

wpt-steve commented 9 years ago

Understood and I agree.
--Steve Sent from my BlackBerry

-----Original Message----- From: syedkarim notifications@github.com Date: Tue, 22 Jul 2014 15:27:38 To: Outernet-Project/orx-installorx-install@noreply.github.com Reply-To: Outernet-Project/orx-install reply@reply.github.com Cc: wpt-steveshastings@westpond.com Subject: Re: [orx-install] Attempt build with stock Raspbian (#6)

I am really partial to making XBMC a part of this; it also has a huge user community to eventually leverage. And it's just really useful for normal video viewing.

On Jul 22, 2014, at 3:38 PM, wpt-steve notifications@github.com wrote:

We might be able to do without XBMC if that proves difficult to install.

There is a driver dependent firmware file as well.

--Steve

From: Branko Vukelic [mailto:notifications@github.com] Sent: Tuesday, July 22, 2014 3:18 PM To: Outernet-Project/orx-install Subject: [orx-install] Attempt build with stock Raspbian (#6)

Stuff we need:

  • XBMC
  • TVHeadend
  • Librarian
  • hostapd
  • [u]dhcpd
  • dsniff

Same set-up as Arch, with TVHeadend added. XBMC should start on boot.

— Reply to this email directly or view it on GitHub https://github.com/Outernet-Project/orx-install/issues/6 . https://github.com/notifications/beacon/8193330__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcyMTY3NTg2NywiZGF0YSI6eyJpZCI6Mzc2NTMxMjJ9fQ==--7d0d6b176a56c80e6ddd781d5fda118c7992a791.gif — Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHub: https://github.com/Outernet-Project/orx-install/issues/6#issuecomment-49810139

foxbunny commented 9 years ago

@wpt-steve @wpt-nathan While I was working on this build, I realized Raspbian doesn't come with upstart out of the box. I didn't go too deep investigating how to get upstart in there, and I suppose some users may actually not want it anyway. What do you think? Should we ask users politely to set up upstart before they run this? And also maybe provide a script that does that for them (once I figure out how to do it myself)?

wpt-nathan commented 9 years ago

Hi Branko,

Is there some specific feature of upstart that you need that can't be addressed with an init script?

--Nate

On 7/23/2014 3:45 PM, Branko Vukelic wrote:

@wpt-steve https://github.com/wpt-steve @wpt-nathan https://github.com/wpt-nathan While I was working on this build, I realized Raspbian doesn't come with upstart out of the box. I didn't go too deep investigating how to get upstart in there, and I suppose some users may actually not want it anyway. What do you think? Should we ask users politely to set up upstart before they run this? And also maybe provide a script that does that for them (once I figure out how to do it myself)?

— Reply to this email directly or view it on GitHub https://github.com/Outernet-Project/orx-install/issues/6#issuecomment-49924881.

foxbunny commented 9 years ago

No.

wpt-steve commented 9 years ago

Hi Syed,

I was OOO yesterday and used that time to give this more thought. I believe the RPi tinkerers come in many flavors. There are those that will purchase a RPi just for this experiment. Many of those will be first time RPi users. In that case I believe we need a fairly well documented, step by step, set of instructions for building a suitable Outernet receiver. I think this should include XBMC, but it doesn’t have too. I believe, but still need to confirm, that you can watch video served by TVheaded on your computer by clicking on a link in the TVheadend UI. Obviously we should make an attempt to get XBMC running because it is a good name to be associated with, but I also believe we have to balance that with the needs of a larger group – those that already have an RPi and want to add the Outernet feature. I believe these people will want the simplest integration. A long detailed set of instructions may appear daunting and scare away users that don’t want to invest that kind of time.

So, it’s a balance. We need a minimal and fully functional approach. XBMC may be the difference between the two.

--Steve

From: syedkarim [mailto:notifications@github.com] Sent: Tuesday, July 22, 2014 6:28 PM To: Outernet-Project/orx-install Cc: wpt-steve Subject: Re: [orx-install] Attempt build with stock Raspbian (#6)

I am really partial to making XBMC a part of this; it also has a huge user community to eventually leverage. And it's just really useful for normal video viewing.

On Jul 22, 2014, at 3:38 PM, wpt-steve notifications@github.com wrote:

We might be able to do without XBMC if that proves difficult to install.

There is a driver dependent firmware file as well.

--Steve

From: Branko Vukelic [mailto:notifications@github.com] Sent: Tuesday, July 22, 2014 3:18 PM To: Outernet-Project/orx-install Subject: [orx-install] Attempt build with stock Raspbian (#6)

Stuff we need:

  • XBMC
  • TVHeadend
  • Librarian
  • hostapd
  • [u]dhcpd
  • dsniff

Same set-up as Arch, with TVHeadend added. XBMC should start on boot.

— Reply to this email directly or view it on GitHub https://github.com/Outernet-Project/orx-install/issues/6 . https://github.com/notifications/beacon/8193330__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcyMTY3NTg2NywiZGF0YSI6eyJpZCI6Mzc2NTMxMjJ9fQ==--7d0d6b176a56c80e6ddd781d5fda118c7992a791.gif — Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/Outernet-Project/orx-install/issues/6#issuecomment-49810139 . https://github.com/notifications/beacon/8193330__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcyMTY4NzI1OCwiZGF0YSI6eyJpZCI6Mzc2NTMxMjJ9fQ==--2848b9643284db20842691fa82dcd5aa8f3a3ba4.gif

wpt-steve commented 9 years ago

My mistake. I didn’t check to see if it was part of the raspbian base image before writing that email. I think we should do our best to keep the instructions simple. In this case I think writing our own init scripts is a better solution.

--Steve

From: Branko Vukelic [mailto:notifications@github.com] Sent: Wednesday, July 23, 2014 3:45 PM To: Outernet-Project/orx-install Cc: wpt-steve Subject: Re: [orx-install] Attempt build with stock Raspbian (#6)

@wpt-steve https://github.com/wpt-steve @wpt-nathan https://github.com/wpt-nathan While I was working on this build, I realized Raspbian doesn't come with upstart out of the box. I didn't go too deep investigating how to get upstart in there, and I suppose some users may actually not want it anyway. What do you think? Should we ask users politely to set up upstart before they run this? And also maybe provide a script that does that for them (once I figure out how to do it myself)?

— Reply to this email directly or view it on GitHub https://github.com/Outernet-Project/orx-install/issues/6#issuecomment-49924881 . https://github.com/notifications/beacon/8193330__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcyMTc2MzkxMCwiZGF0YSI6eyJpZCI6Mzc2NTMxMjJ9fQ==--4e2f3c25111b7c9ed621da016f5a5a298e6f5367.gif

foxbunny commented 9 years ago

Agreed.

foxbunny commented 9 years ago

Running into network issues again with setup-atheros.sh. Contents of /etc/network/interfaces is as follows:

auto lo

iface lo inet loopback
iface eth0 inet dhcp

auto wlan0
iface wlan0 inet static
 address 10.0.0.1
 netmask 255.255.255.0

After boot, wlan0 remains deconfigured (same as on RaspBMC only there's no network-manager or anything custom involved this time).

wlan0     Link encap:Ethernet  HWaddr XX:XX:XX:XX:XX:XX
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:280 errors:0 dropped:40 overruns:0 frame:0
          TX packets:278 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:30135 (29.4 KiB)  TX bytes:34891 (34.0 KiB)

I can bring the interface up by doing ifdown wlan0 && sleep 2 && ifup wlan0. The sleep 2 part is crucial. If I just run ifdown followed by ifup without any delay, it doesn't work. So my guess is the init script for networking doesn't handle this edge case.

Not sure how to tackle this. Maybe patch the init scripts for hostapd, DHCP, and DNS, services so they wait for a custom init script to run, which in turn runs after networking and reinitializes wlan0 correctly. That did the trick on RaspBMC (except it subsequently got defeated by something else). I'll look into this tomorrow.

wpt-steve commented 9 years ago

Adding Nate. It might be useful to see the syslog.

--Steve

From: Branko Vukelic [mailto:notifications@github.com] Sent: Thursday, July 24, 2014 3:12 PM To: Outernet-Project/orx-install Cc: wpt-steve Subject: Re: [orx-install] Attempt build with stock Raspbian (#6)

Running into network issues again with setup-atheros.sh. Contents of /etc/network/interfaces is as follows:

auto lo

iface lo inet loopback iface eth0 inet dhcp

auto wlan0 iface wlan0 inet static address 10.0.0.1 netmask 255.255.255.0

After boot, wlan0 remains deconfigured (same as on RaspBMC only there's no network-manager or anything custom involved this time).

wlan0 Link encap:Ethernet HWaddr XX:XX:XX:XX:XX:XX UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:280 errors:0 dropped:40 overruns:0 frame:0 TX packets:278 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:30135 (29.4 KiB) TX bytes:34891 (34.0 KiB)

I can bring the interface up by doing ifdown wlan0 && sleep 2 && ifup wlan0. The sleep 2 part is crucial. If I just run ifdown followed by ifup without any delay, it doesn't work. So my guess is the init script for networking doesn't handle this edge case.

Not sure how to tackle this. Maybe patch the init scripts for DHCP and DNS services so they wait for a custom init script to run, which in turn runs after networking and reinitializes wlan0 correctly. That did the trick on RaspBMC (except it subsequently got defeated by something else). I'll look into this tomorrow.

— Reply to this email directly or view it on GitHub https://github.com/Outernet-Project/orx-install/issues/6#issuecomment-50063986 . https://github.com/notifications/beacon/8193330__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcyMTg0ODMxNywiZGF0YSI6eyJpZCI6Mzc2NTMxMjJ9fQ==--b31968e1e40d8b532cd954a1893991be34b3bb9f.gif

foxbunny commented 9 years ago

Cloud this be of any relevance?

Jul 24 19:01:01 raspberrypi kernel: [ 3554.339151] ------------[ cut here ]------------
Jul 24 19:01:01 raspberrypi kernel: [ 3554.339560] WARNING: CPU: 0 PID: 2196 at net/mac80211/driver-ops.h:12 __ieee80211_key_destroy+0x148/0x188 [mac80211]()
Jul 24 19:01:01 raspberrypi kernel: [ 3554.339622] wlan0:  Failed check-sdata-in-driver check, flags: 0x0
Jul 24 19:01:01 raspberrypi kernel: [ 3554.339637] Modules linked in: 8021q garp stp llc snd_bcm2835 arc4 ath9k_htc mac80211 ath9k_common snd_soc_bcm2708_i2s regmap_mmio ath9k_hw snd_soc_core ath regmap_spi snd_pcm_dmaengine cfg80211 snd
_pcm snd_page_alloc regmap_i2c rfkill snd_compress snd_seq snd_timer snd_seq_device leds_gpio led_class snd
Jul 24 19:01:01 raspberrypi kernel: [ 3554.339778] CPU: 0 PID: 2196 Comm: hostapd Not tainted 3.12.22+ #691
Jul 24 19:01:01 raspberrypi kernel: [ 3554.339845] [<c0013ec0>] (unwind_backtrace+0x0/0xf0) from [<c0011284>] (show_stack+0x10/0x14)
Jul 24 19:01:01 raspberrypi kernel: [ 3554.339920] [<c0011284>] (show_stack+0x10/0x14) from [<c001edd0>] (warn_slowpath_common+0x68/0x88)
Jul 24 19:01:01 raspberrypi kernel: [ 3554.339953] [<c001edd0>] (warn_slowpath_common+0x68/0x88) from [<c001ee84>] (warn_slowpath_fmt+0x30/0x40)
Jul 24 19:01:01 raspberrypi kernel: [ 3554.340213] [<c001ee84>] (warn_slowpath_fmt+0x30/0x40) from [<bf1af3a8>] (__ieee80211_key_destroy+0x148/0x188 [mac80211])
Jul 24 19:01:01 raspberrypi kernel: [ 3554.340727] [<bf1af3a8>] (__ieee80211_key_destroy+0x148/0x188 [mac80211]) from [<bf1afe64>] (ieee80211_free_keys+0xe0/0x15c [mac80211])
Jul 24 19:01:01 raspberrypi dhcpd: receive_packet failed on wlan0: Network is down
Jul 24 19:01:01 raspberrypi kernel: [ 3554.345518] [<bf1afe64>] (ieee80211_free_keys+0xe0/0x15c [mac80211]) from [<bf19bbf4>] (ieee80211_teardown_sdata+0xc/0xd0 [mac80211])
Jul 24 19:01:01 raspberrypi kernel: [ 3554.345966] [<bf19bbf4>] (ieee80211_teardown_sdata+0xc/0xd0 [mac80211]) from [<bf19e650>] (ieee80211_if_change_type+0x94/0x25c [mac80211])
Jul 24 19:01:01 raspberrypi kernel: [ 3554.346407] [<bf19e650>] (ieee80211_if_change_type+0x94/0x25c [mac80211]) from [<bf1a36dc>] (ieee80211_change_iface+0x24/0xfc [mac80211])
Jul 24 19:01:01 raspberrypi kernel: [ 3554.346890] [<bf1a36dc>] (ieee80211_change_iface+0x24/0xfc [mac80211]) from [<bf082144>] (cfg80211_change_iface+0x9c/0x29c [cfg80211])
Jul 24 19:01:01 raspberrypi kernel: [ 3554.347255] [<bf082144>] (cfg80211_change_iface+0x9c/0x29c [cfg80211]) from [<bf092630>] (nl80211_set_interface+0x138/0x1d4 [cfg80211])
Jul 24 19:01:01 raspberrypi kernel: [ 3554.347503] [<bf092630>] (nl80211_set_interface+0x138/0x1d4 [cfg80211]) from [<c038aac8>] (genl_rcv_msg+0x1f4/0x37c)
Jul 24 19:01:01 raspberrypi kernel: [ 3554.347578] [<c038aac8>] (genl_rcv_msg+0x1f4/0x37c) from [<c0389fb0>] (netlink_rcv_skb+0xac/0xc0)
Jul 24 19:01:01 raspberrypi kernel: [ 3554.347642] [<c0389fb0>] (netlink_rcv_skb+0xac/0xc0) from [<c038a1f8>] (genl_rcv+0x20/0x34)
Jul 24 19:01:01 raspberrypi kernel: [ 3554.347674] [<c038a1f8>] (genl_rcv+0x20/0x34) from [<c03899b4>] (netlink_unicast+0x154/0x1ac)
Jul 24 19:01:01 raspberrypi kernel: [ 3554.347699] [<c03899b4>] (netlink_unicast+0x154/0x1ac) from [<c0389d58>] (netlink_sendmsg+0x2ac/0x35c)
Jul 24 19:01:01 raspberrypi kernel: [ 3554.347728] [<c0389d58>] (netlink_sendmsg+0x2ac/0x35c) from [<c034efbc>] (sock_sendmsg+0x84/0xa4)
Jul 24 19:01:01 raspberrypi kernel: [ 3554.347786] [<c034efbc>] (sock_sendmsg+0x84/0xa4) from [<c0350030>] (___sys_sendmsg.part.30+0x270/0x284)
Jul 24 19:01:01 raspberrypi kernel: [ 3554.347818] [<c0350030>] (___sys_sendmsg.part.30+0x270/0x284) from [<c0351224>] (__sys_sendmsg+0x4c/0x78)
Jul 24 19:01:01 raspberrypi kernel: [ 3554.347857] [<c0351224>] (__sys_sendmsg+0x4c/0x78) from [<c000e180>] (ret_fast_syscall+0x0/0x30)
Jul 24 19:01:01 raspberrypi kernel: [ 3554.347904] ---[ end trace 347c154ad7045a5e ]---
foxbunny commented 9 years ago

Both Librarian/ondd and AP scripts are finished. I still need to test this with DVB-S dongle, though. For now I can only confirm TVHeadend is up and running. Please give it a spin and open a ticket if there are issues.

wpt-steve commented 9 years ago

Great. Will test and report.

From: Branko Vukelic [mailto:notifications@github.com] Sent: Monday, July 28, 2014 3:16 PM To: Outernet-Project/orx-install Cc: wpt-steve Subject: Re: [orx-install] Attempt build with stock Raspbian (#6)

Both Librarian/ondd and AP scripts are finished. I still need to test this with DVB-S dongle, though. For now I can only confirm TVHeadend is up and running. Please give it a spin and open a ticket if there are issuess.

— Reply to this email directly or view it on GitHub https://github.com/Outernet-Project/orx-install/issues/6#issuecomment-50384890 . https://github.com/notifications/beacon/8193330__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcyMjE5NDE1OCwiZGF0YSI6eyJpZCI6Mzc2NTMxMjJ9fQ==--20cf109c0233108a6c5899c479e5d3769aba4be7.gif

foxbunny commented 9 years ago

Closing. Will open new tickets for any issues regarding this build.