more G-Labs products

Author Topic: Install HG on BeagleBaord Black/Debian  (Read 5596 times)

April 19, 2014, 09:14:25 AM
Read 5596 times

Eric_S

  • *
  • Information
  • Newbie
  • Posts: 22
Hi,

I have a BeagleBoard Black Rev B with the BeagleBoard.org BeagleBone Debian Image 2014-04-14 image. I'm trying to install homegenie-beta_1.00.364_all.deb using gdebi but it fails dependencies for mono-runtime (< 2.10.8.2). Any suggestions?

Maybe this is more for guys at Beagleboard?

Thanks.
« Last Edit: April 19, 2014, 09:35:43 AM by Eric_S »

April 19, 2014, 09:48:36 AM
Reply #1

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
Beagle Board debian image is probably missing mono runtime packages.
You could try compiling from sources:

https://github.com/mono/mono

Unfortunately seem like no-one succeed yet:

http://mono.1490590.n4.nabble.com/MONO-For-Beagle-Bone-Black-Software-Development-td4661979.html

And yes, off course you could also ask to BeagleBoard guys to integrate mono in the debian distro =)

Cheers,
g.

April 19, 2014, 09:51:58 AM
Reply #2

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
Well... there seem to be someone who suceed! =)

https://www.mail-archive.com/[email protected]/msg10286.html

It would be interesting writing an HG driver for BBB GPIO's, it shouldn't be hard starting from the RaspiGPIO library example included in HG-MIG.

Cheers,
g.

April 20, 2014, 04:36:24 AM
Reply #3

Eric_S

  • *
  • Information
  • Newbie
  • Posts: 22
Thanks for the reply. Unfortunately, the server at the link you posted just happened to die today. I found the article on Google Groups though.

https://groups.google.com/forum/#!searchin/beagleboard/mono/beagleboard/MSDKhL0bdrQ/ZZFnzmmT6N4J

I'll let you know how things work out.

April 23, 2014, 10:03:41 AM
Reply #4

Eric_S

  • *
  • Information
  • Newbie
  • Posts: 22
No luck. Make would not install. I had to abandon Debian because of poor mono support. I installed Ubuntu and mono went right in. Now for HG...as soon as sourceforge comes back on line.  :-\

April 23, 2014, 06:20:40 PM
Reply #5

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
Ubuntu is also based on debian... and mono it is well supported under debian.
Perhaps it's the BBB debian image not so up to date. For example, the Raspberry one it is.

Cheers,
g.

April 23, 2014, 10:49:22 PM
Reply #6

bkenobi

  • *****
  • Information
  • Global Moderator
  • Posts: 1525
I found that the UK mirror for sourceforge was working yesterday when the main page was down.

April 24, 2014, 05:22:52 AM
Reply #7

Eric_S

  • *
  • Information
  • Newbie
  • Posts: 22
Here is what worked:

Installed BBB-eMMC-flasher-ubuntu-14.04-2014-04-18-2gb.img on BeagleBone Black. I had to boot from the SD and edit /mount/rootfs/etc/shadow to get root access. I just copied in a known password hash. Rebooted from eMMC.

# wget http://downloads.sourceforge.net/project/homegenie/homegenie-beta_1.00.368_all.deb
# sudo dpkg -i homegenie-beta_1.00.368_all.deb

Dependencies failed so I did "apt-get -f install" below.

# sudo apt-get -f install
# sudo dpkg -i homegenie-beta_1.00.368_all.deb

Success!
Plugged in Aeon Labs Z-Stick S2 and waited a minute.

# dmesg
Bunch of stuff
[ 1568.514096] usb 1-1.1.1: New USB device found, idVendor=10c4, idProduct=ea60
Bunch more stuff
# sudo modprobe usbserial vendor=0x10c4 product=0xea60
# dmesg
Bunch of stuff
[ 1568.668361] usb 1-1.1.1: cp210x converter now attached to ttyUSB0
Bunch more stuff

Configured HG, added z-wave devices and it works!
« Last Edit: April 24, 2014, 07:22:29 AM by Eric_S »

April 24, 2014, 05:10:30 PM
Reply #8

bkenobi

  • *****
  • Information
  • Global Moderator
  • Posts: 1525
I read that if you use dpkg -i homegenie... it will not resolve dependencies. If you instead use gdebi homegenie... it will resolve those and run straight away.  I've been using gdebi for several version installs and it works great every time (though I'm starting from a Raspi image that had HG already working, so dependencies may not have been critical).

April 24, 2014, 07:13:36 PM
Reply #9

Eric_S

  • *
  • Information
  • Newbie
  • Posts: 22
Yeah, I chose not to use gdebi because it was not installed in the image and installing ix wasnted to add a whole bunch of other stuff, looked like even gui stuff for X. I don't really want the code bulk.

Off topic: Is the Raspi running Debian with gui (XFCE?) or is it cl? Do you have a Z-Wave interface?

April 24, 2014, 07:23:32 PM
Reply #10

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
Code: [Select]
sudo apt-get install gdebi-core

will only install the command line utility.

No GUI installed by default on the Raspi image.

g.

August 11, 2014, 01:04:00 PM
Reply #11

parmar7725274

  • *
  • Information
  • Newbie
  • Posts: 5
Hi !!

I sucessfully cross-compiled mono-runtime. here it is : https://github.com/parmar7725274/MONO-ARM.git

I'm using BBB Rev B with ubuntu-14.04 .

-Prakash

September 18, 2014, 04:40:50 AM
Reply #12

jarrettv

  • *
  • Information
  • Newbie
  • Posts: 13
Mono-runtime package for pi works fine with BBB. I added the rasbian repo to my sources.list

http://www.raspbian.org/RaspbianRepository

First time using HomeGenie, it feels powerful but a little clumsy to setup. Most of all it is fun, open source, and written in C#.

Anybody benchmark the BBB vs Pi?
« Last Edit: September 18, 2014, 04:46:55 AM by jarrettv »

September 18, 2014, 05:24:46 PM
Reply #13

bkenobi

  • *****
  • Information
  • Global Moderator
  • Posts: 1525
I've done some informal comparison between Pi and WinXP (AMD Athlon 64 X2 4200) and the two are the same speed when it comes to X10 operations.  Pi is much slower for some Web interactions such as backing up the setup (Windows takes ~1 second while Pi takes ~2 minutes).  Most other thin gs seem comparable.