Difference between revisions of "Create SD Image Version 0.7.4"

From HiveTool
Jump to: navigation, search
(Install TEMPerHUM software)
 
(60 intermediate revisions by 2 users not shown)
Line 1: Line 1:
This page describes how the bootable Raspian-HiveTool image was created. This is for information only.  '''''The easiest and best way to install Hivetool is to [[Software:_Install_Hivetool_Pi_image|download the latest image.]]'''''
+
 
 +
'''Hivetool 0.7.4 image is now available'''
 +
 
 +
Download it here;
 +
https://drive.google.com/file/d/0B_3xqxGS2psWWHhyMUNjbW4tSHc/view?usp=sharing
 +
 
 +
It does not include HiveControl like the HiveConTool version.
 +
 
 +
hivetool074.img      5856092672 bytes
 +
hivetool074.img.zip  2474147900 bytes
 +
 +
md5sum  hivetool074.img  2e26e8f266870cebcd51bf365d861559
 +
sha1sum hivetool074.img  c855c8c1175866bd52ed8143490d320011323108
 +
 +
md5sum  hivetool074.img.zip  7cdca1e73a5d81e3c70909961c6ea4b9
 +
sha1sum hivetool074.img.zip ff504657257fdf13905a1ad24fd2f2eab5af1562
 +
 
 +
 
 +
'''Important Notes:'''
 +
#May not unzip on Apple Mac using Unarchiver.
 +
#Image is greater than 4 gig so it will not fit on FAT32 formatted  memory device.
 +
#It doesn't automatically expand to fit the memory card.
 +
 
 +
'''BUGS'''
 +
#The HX711 python driver based on PIGPIO library (HX711py) doesn't work on the model A+ or B+.  Use the old HX711 driver based on the wiringPI library.
 +
 
 +
 
  
  
Line 17: Line 43:
  
 
5. Fix hive config.pl so it will insert a  NULL instead on nothing in the hive_parameters table if hive elevation is left blank.
 
5. Fix hive config.pl so it will insert a  NULL instead on nothing in the hive_parameters table if hive elevation is left blank.
 +
 +
6. Change DHT22 code to Adafruit
 +
 +
7. Fix error at end of hivetool.log if hive_command.pl is not executable.
  
 
=== Feature Request ===
 
=== Feature Request ===
#add latest Hive Control software
+
#add latest HiveControl software, debug HTML conflicts, restrict both apps from uploading
 
#implement battery voltage monitoring using channel B of HX711, send it to hivetool.net and display it.
 
#implement battery voltage monitoring using channel B of HX711, send it to hivetool.net and display it.
#add way to upgrade to new images (add database conversion script if necessary).
+
#add ability to upgrade & update, github installer like hivecontrol, log & display current version & rev.
 +
#send host IP and MAC addresses to hivetool.net, use MAC for registration
 +
#add scale calibration layman wizard (accept current zero weight, accept known weight)
 +
#add ability to auto register with online hivetool.net database, minimize server blacklisting
  
 
== 0.7.3 ==
 
== 0.7.3 ==
Line 33: Line 66:
 
=== Feature Request ===
 
=== Feature Request ===
  
#'''''Done''''' add Ryans Hive Controller code
+
#'''''Done''''' add Ryans Hive Controller code, not yet available in 074
 
#'''''Done''''' add xrdp, open62541 packages
 
#'''''Done''''' add xrdp, open62541 packages
 
#'''''Done''''' add Data Acquisition Daemon (DAD) code
 
#'''''Done''''' add Data Acquisition Daemon (DAD) code
  
 
Dad supports battery voltage monitoring and the rain gauge.
 
Dad supports battery voltage monitoring and the rain gauge.
 
  
 
== 0.7.2 ==
 
== 0.7.2 ==
Line 94: Line 126:
  
 
http://raspberrypi.stackexchange.com/questions/4120/how-to-automatically-reconnect-wifi
 
http://raspberrypi.stackexchange.com/questions/4120/how-to-automatically-reconnect-wifi
 +
 +
=== Update, upgrade ===
 +
update your system's package list and then upgrade all your installed packages to their latest versions:
 +
sudo apt-get update
 +
sudo apt-get dist-upgrade
 +
 +
'''*** WARNING!  THIS IS A BAD IDEA!  IT MAY BREAK THE GPIO ***'''
 +
 +
rpi-update should probably only be run if you need to install the bleeding
 +
edge experimental firmware.  It has a history of breaking the GPIO.
 +
 +
Update the GPU firmware
 +
sudo apt-get install rpi-update
 +
sudo rpi-update
  
 
=== Remove packages we don't need ===
 
=== Remove packages we don't need ===
This will make room for software without expanding the image.
 
  
 
  sudo apt-get remove --purge penguinspuzzle scratch dillo squeak-vm squeak-plugins-scratch sonic-pi netsurf-gtk netsurf-common
 
  sudo apt-get remove --purge penguinspuzzle scratch dillo squeak-vm squeak-plugins-scratch sonic-pi netsurf-gtk netsurf-common
Line 107: Line 152:
 
NO!  Don't do this if you want to use the video camera: sudo rm -rf /opt/vc
 
NO!  Don't do this if you want to use the video camera: sudo rm -rf /opt/vc
  
sudo apt-get remove --purge penguinspuzzle scratch dillo squeak-vm squeak-plugins-scratch sonic-pi netsurf-gtk netsurf-common
 
Reading package lists... Done
 
Building dependency tree     
 
Reading state information... Done
 
The following packages were automatically installed and are no longer required:
 
  javascript-common libboost-atomic1.55.0 libboost-filesystem1.55.0 libboost-program-options1.55.0 libboost-regex1.55.0 libboost-thread1.55.0 libcwiid1 libjs-jquery
 
  libjs-prettify libqscintilla2-11 libqscintilla2-l10n libqt4-network libqt4-xmlpatterns libqtwebkit4 libruby1.9.1 libruby1.9.1-dbg libruby2.1 libscsynth1 libtcl8.5
 
  libtcltk-ruby1.9.1 libtk8.5 libyaml-0-2 ri1.9.1 ruby ruby1.9.1 ruby1.9.1-dev ruby1.9.1-examples ruby1.9.1-full ruby1.9.3 ruby2.1 rubygems-integration supercollider
 
  supercollider-common supercollider-ide supercollider-language supercollider-server supercollider-supernova tcl8.5 tk8.5
 
Use 'apt-get autoremove' to remove them.
 
The following packages will be REMOVED:
 
  dillo* netsurf-common* netsurf-gtk* nuscratch* penguinspuzzle* scratch* sonic-pi* squeak-plugins-scratch* squeak-vm*
 
0 upgraded, 0 newly installed, 9 to remove and 0 not upgraded.
 
After this operation, 201 MB disk space will be freed.
 
Do you want to continue? [Y/n] y
 
(Reading database ... 118051 files and directories currently installed.)
 
Removing dillo (3.0.4-2+b1) ...
 
Purging configuration files for dillo (3.0.4-2+b1) ...
 
Removing netsurf-gtk (3.2+dfsg-2) ...
 
Purging configuration files for netsurf-gtk (3.2+dfsg-2) ...
 
Removing netsurf-common (3.2+dfsg-2) ...
 
Removing nuscratch (20160502) ...
 
Removing 'diversion of /usr/bin/scratch to /usr/bin/scratch.old by nuscratch'
 
Removing 'diversion of /usr/bin/squeak to /usr/bin/squeak.old by nuscratch'
 
Removing 'diversion of /usr/share/scratch/locale/ja_HIRA.po to /usr/share/scratch/locale/ja_HIRA.po.old by nuscratch'
 
Removing 'diversion of /usr/share/scratch/locale/ja.po to /usr/share/scratch/locale/ja.po.old by nuscratch'
 
Purging configuration files for nuscratch (20160502) ...
 
Removing penguinspuzzle (20120902-1) ...
 
Removing scratch (1.4.0.6~dfsg1-5) ...
 
Purging configuration files for scratch (1.4.0.6~dfsg1-5) ...
 
Removing sonic-pi (1:2.10.0-1) ...
 
Purging configuration files for sonic-pi (1:2.10.0-1) ...
 
Removing squeak-plugins-scratch (1.4.0.2~svn.r83-2) ...
 
Removing squeak-vm (1:4.10.2.2614-1.1+b1) ...
 
Processing triggers for gnome-menus (3.13.3-6) ...
 
Processing triggers for desktop-file-utils (0.22-1) ...
 
Processing triggers for mime-support (3.58) ...
 
Processing triggers for man-db (2.7.0.2-5) ...
 
Processing triggers for libc-bin (2.19-18+deb8u4) ...
 
Processing triggers for hicolor-icon-theme (0.13-1) ...
 
Processing triggers for shared-mime-info (1.3-1) ...
 
Processing triggers for gnome-icon-theme (3.12.0-1) ...
 
 
sudo apt-get autoremove
 
Reading package lists... Done
 
Building dependency tree     
 
Reading state information... Done
 
The following packages will be REMOVED:
 
  javascript-common libboost-atomic1.55.0 libboost-filesystem1.55.0 libboost-program-options1.55.0 libboost-regex1.55.0 libboost-thread1.55.0  libcwiid1 libfltk1.3 libjs-jquery
 
  libjs-prettify libmozjs185-1.0 libqscintilla2-11 libqscintilla2-l10n libqt4-network libqt4-xmlpatterns libqtwebkit4 libruby1.9.1 libruby1.9.1-dbg libruby2.1 libscsynth1
 
  libtcl8.5 libtcltk-ruby1.9.1 libtk8.5 libyaml-0-2 ri1.9.1 ruby ruby1.9.1 ruby1.9.1-dev ruby1.9.1-examples ruby1.9.1-full ruby1.9.3 ruby2.1  rubygems-integration supercollider
 
  supercollider-common supercollider-ide supercollider-language supercollider-server supercollider-supernova tcl8.5 tk8.5
 
0 upgraded, 0 newly installed, 41 to remove and 0 not upgraded.
 
After this operation, 117 MB disk space will be freed.
 
Do you want to continue? [Y/n] y
 
(Reading database ... 113218 files and directories currently installed.)
 
Removing javascript-common (11) ...
 
Removing supercollider-supernova (1:3.6.6~repack-2-1) ...
 
Removing supercollider (1:3.6.6~repack-2-1) ...
 
Removing supercollider-ide (1:3.6.6~repack-2-1) ...
 
Removing supercollider-language (1:3.6.6~repack-2-1) ...
 
Removing libboost-filesystem1.55.0:armhf (1.55.0+dfsg-3) ...
 
Removing libboost-program-options1.55.0:armhf (1.55.0+dfsg-3) ...
 
Removing libboost-regex1.55.0:armhf (1.55.0+dfsg-3) ...
 
Removing supercollider-server (1:3.6.6~repack-2-1) ...
 
Removing libscsynth1 (1:3.6.6~repack-2-1) ...
 
Removing libboost-thread1.55.0:armhf (1.55.0+dfsg-3) ...
 
Removing libcwiid1 (0.6.00+svn201-3.1) ...
 
Removing libfltk1.3:armhf (1.3.2-6) ...
 
Removing libjs-jquery (1.7.2+dfsg-3.2) ...
 
Removing supercollider-common (1:3.6.6~repack-2-1) ...
 
Removing libjs-prettify (2013.03.04+dfsg-4) ...
 
Removing libmozjs185-1.0 (1.8.5-1.0.0+dfsg-4.3) ...
 
Removing libqscintilla2-11 (2.8.4+dfsg-1) ...
 
Removing libqscintilla2-l10n (2.8.4+dfsg-1) ...
 
Removing libqtwebkit4:armhf (2.3.4.dfsg-3) ...
 
Removing libqt4-xmlpatterns:armhf (4:4.8.6+git64-g5dc8b2b+dfsg-3+deb8u1+rpi1) ...
 
Removing libqt4-network:armhf (4:4.8.6+git64-g5dc8b2b+dfsg-3+deb8u1+rpi1) ...
 
Removing ruby1.9.1-full (1.9.3.484-2) ...
 
Removing ruby1.9.1-dev (1.9.3.484-2) ...
 
Removing ruby1.9.3 (1.9.3.484-2) ...
 
Removing libruby1.9.1-dbg (1.9.3.484-2) ...
 
Removing libtcltk-ruby1.9.1 (1.9.3.484-2) ...
 
Removing tk8.5 (8.5.17-1) ...
 
Removing tcl8.5 (8.5.17-1) ...
 
Removing libtk8.5:armhf (8.5.17-1) ...
 
Removing ri1.9.1 (1.9.3.484-2) ...
 
Removing ruby1.9.1-examples (1.9.3.484-2) ...
 
Removing libboost-atomic1.55.0:armhf (1.55.0+dfsg-3) ...
 
Removing libtcl8.5:armhf (8.5.17-1) ...
 
Removing libruby1.9.1 (1.9.3.484-2) ...
 
Removing ruby1.9.1 (1.9.3.484-2) ...
 
Removing ruby (1:2.1.5+deb8u2) ...
 
Removing ruby2.1 (2.1.5-2+deb8u2) ...
 
Removing libruby2.1:armhf (2.1.5-2+deb8u2) ...
 
Removing libyaml-0-2:armhf (0.1.6-3) ...
 
Removing rubygems-integration (1.8) ...
 
Processing triggers for man-db (2.7.0.2-5) ...
 
Processing triggers for gnome-menus (3.13.3-6) ...
 
Processing triggers for desktop-file-utils (0.22-1) ...
 
Processing triggers for mime-support (3.58) ...
 
Processing triggers for libc-bin (2.19-18+deb8u4) ...
 
 
sudo apt-get autoremove
 
rm -rf /home/pi/python_games
 
sudo rm -rf /opt/minecraft-pi
 
 
=== Update, upgrade ===
 
  
Update the GPU firmware
 
sudo apt-get install rpi-update
 
sudo rpi-update
 
  
 
pi@raspberrypi:~$ sudo apt-get install rpi-update                                 
 
Reading package lists... Done                                                     
 
Building dependency tree                                                         
 
Reading state information... Done                                                 
 
rpi-update is already the newest version.                                         
 
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.                   
 
 
pi@raspberrypi:~$ sudo rpi-update                                                 
 
  *** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom         
 
  *** Performing self-update                                                       
 
  % Total    % Received % Xferd  Average Speed  Time    Time    Time  Current   
 
                                Dload  Upload  Total  Spent    Left  Speed     
 
100 10670  100 10670    0    0  7466      0  0:00:01  0:00:01 --:--:--  7466   
 
  *** Relaunching after update                                                     
 
  *** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom         
 
  *** We're running for the first time                                             
 
  *** Backing up files (this will take a few minutes)                             
 
  *** Backing up firmware                                                         
 
  *** Backing up modules 4.4.9-v7+                                                 
 
#############################################################                     
 
This update bumps to rpi-4.4.y linux tree                                         
 
Be aware there could be compatibility issues with some drivers
 
Discussion here:
 
https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=144087
 
##############################################################
 
  *** Downloading specific firmware revision (this will take a few minutes)
 
  % Total    % Received % Xferd  Average Speed  Time    Time    Time  Current
 
                                  Dload  Upload  Total  Spent    Left  Speed
 
100  168    0  168    0    0    419      0 --:--:-- --:--:-- --:--:--  420
 
100 50.5M  100 50.5M    0    0  346k      0  0:02:29  0:02:29 --:--:--  359k
 
  *** Updating firmware
 
  *** Updating kernel modules
 
  *** depmod 4.4.11+
 
  *** depmod 4.4.11-v7+
 
  *** Updating VideoCore libraries
 
  *** Using HardFP libraries
 
  *** Updating SDK
 
  *** Running ldconfig
 
  *** Storing current firmware revision
 
  *** Deleting downloaded files
 
  *** Syncing changes to disk
 
  *** If no errors appeared, your firmware was successfully updated to 2b9c0bfacfc11ee8bb9b30dc9cdb36289698f8a8
 
  *** A reboot is needed to activate the new firmware
 
 
 
Update the package list and then upgrade the Debian packages (CPU) (includes firmware)
 
sudo apt-get -y update
 
sudo apt-get upgrade
 
 
 
                                                       
 
pi@raspberrypi:~$ sudo apt-get -y update                                 
 
Hit http://archive.raspberrypi.org jessie InRelease                     
 
Hit http://mirrordirector.raspbian.org jessie InRelease                 
 
Hit http://archive.raspberrypi.org jessie/main armhf Packages           
 
Hit http://mirrordirector.raspbian.org jessie/main armhf Packages       
 
Hit http://archive.raspberrypi.org jessie/ui armhf Packages             
 
Hit http://mirrordirector.raspbian.org jessie/contrib armhf Packages     
 
Hit http://mirrordirector.raspbian.org jessie/non-free armhf Packages   
 
Hit http://mirrordirector.raspbian.org jessie/rpi armhf Packages         
 
Ign http://archive.raspberrypi.org jessie/main Translation-en_GB         
 
Ign http://archive.raspberrypi.org jessie/main Translation-en           
 
Ign http://archive.raspberrypi.org jessie/ui Translation-en_GB           
 
Ign http://archive.raspberrypi.org jessie/ui Translation-en             
 
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en_GB 
 
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en     
 
Ign http://mirrordirector.raspbian.org jessie/main Translation-en_GB     
 
Ign http://mirrordirector.raspbian.org jessie/main Translation-en       
 
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en_GB 
 
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en   
 
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en_GB     
 
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en         
 
100% [Packages 46.7 MB]
 
 
Wow!  It sure did upgrade a lot of stuff for a new distribution ...
 
 
sudo apt-get upgrade
 
Reading package lists... Done
 
Building dependency tree     
 
Reading state information... Done
 
Calculating upgrade... Done
 
The following packages will be upgraded:
 
  libarchive13 libexpat1 libexpat1-dev libidn11 libraspberrypi-bin libraspberrypi-dev libraspberrypi-doc libraspberrypi0 librsvg2-2 librsvg2-common nodered omxplayer
 
  raspberrypi-bootloader raspberrypi-kernel
 
14 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
 
Need to get 69.7 MB/76.0 MB of archives.
 
After this operation, 1,972 kB of additional disk space will be used.
 
Do you want to continue? [Y/n] y
 
Get:1 http://archive.raspberrypi.org/debian/ jessie/main omxplayer armhf 0.3.7~git20160506~6c90c75 [4,028 kB]
 
Get:2 http://archive.raspberrypi.org/debian/ jessie/main libraspberrypi-dev armhf 1.20160512-1 [403 kB]
 
Get:3 http://archive.raspberrypi.org/debian/ jessie/main libraspberrypi-doc armhf 1.20160512-1 [31.4 MB]                                                                         
 
Get:4 http://archive.raspberrypi.org/debian/ jessie/main raspberrypi-kernel armhf 1.20160512-1 [29.8 MB]                                                                         
 
Get:5 http://archive.raspberrypi.org/debian/ jessie/main libraspberrypi-bin armhf 1.20160512-1 [252 kB]                                                                           
 
Get:6 http://archive.raspberrypi.org/debian/ jessie/main libraspberrypi0 armhf 1.20160512-1 [726 kB]                                                                             
 
Get:7 http://archive.raspberrypi.org/debian/ jessie/main raspberrypi-bootloader armhf 1.20160512-1 [3,150 kB]                                                                     
 
Fetched 66.3 MB in 4min 3s (272 kB/s)                                                                                                                                             
 
Reading changelogs... Done
 
(Reading database ... 117963 files and directories currently installed.)
 
Preparing to unpack .../libidn11_1.29-1+deb8u1_armhf.deb ...
 
Unpacking libidn11:armhf (1.29-1+deb8u1) over (1.29-1) ...
 
Preparing to unpack .../libarchive13_3.1.2-11+deb8u1_armhf.deb ...
 
Unpacking libarchive13:armhf (3.1.2-11+deb8u1) over (3.1.2-11) ...
 
Preparing to unpack .../libexpat1-dev_2.1.0-6+deb8u2_armhf.deb ...
 
Unpacking libexpat1-dev:armhf (2.1.0-6+deb8u2) over (2.1.0-6+deb8u1) ...
 
Preparing to unpack .../libexpat1_2.1.0-6+deb8u2_armhf.deb ...
 
Unpacking libexpat1:armhf (2.1.0-6+deb8u2) over (2.1.0-6+deb8u1) ...
 
Preparing to unpack .../librsvg2-common_2.40.5-1+deb8u2_armhf.deb ...
 
Unpacking librsvg2-common:armhf (2.40.5-1+deb8u2) over (2.40.5-1+deb8u1) ...
 
Preparing to unpack .../librsvg2-2_2.40.5-1+deb8u2_armhf.deb ...
 
Unpacking librsvg2-2:armhf (2.40.5-1+deb8u2) over (2.40.5-1+deb8u1) ...
 
Preparing to unpack .../nodered_0.13.4-1_armhf.deb ...
 
Unpacking nodered (0.13.4-1) over (0.13.4) ...
 
Preparing to unpack .../omxplayer_0.3.7~git20160506~6c90c75_armhf.deb ...
 
Unpacking omxplayer (0.3.7~git20160506~6c90c75) over (0.3.6~git20160102~f544084) ...
 
Preparing to unpack .../libraspberrypi-dev_1.20160512-1_armhf.deb ...
 
Unpacking libraspberrypi-dev (1.20160512-1) over (1.20160506-1) ...
 
Preparing to unpack .../libraspberrypi-doc_1.20160512-1_armhf.deb ...
 
Unpacking libraspberrypi-doc (1.20160512-1) over (1.20160506-1) ...
 
Preparing to unpack .../raspberrypi-kernel_1.20160512-1_armhf.deb ...
 
Adding 'diversion of /boot/bcm2708-rpi-b-plus.dtb to /usr/share/rpikernelhack/bcm2708-rpi-b-plus.dtb by rpikernelhack'
 
Adding 'diversion of /boot/bcm2708-rpi-b.dtb to /usr/share/rpikernelhack/bcm2708-rpi-b.dtb by rpikernelhack'
 
Adding 'diversion of /boot/bcm2708-rpi-cm.dtb to /usr/share/rpikernelhack/bcm2708-rpi-cm.dtb by rpikernelhack'
 
Adding 'diversion of /boot/bcm2709-rpi-2-b.dtb to /usr/share/rpikernelhack/bcm2709-rpi-2-b.dtb by rpikernelhack'
 
Adding 'diversion of /boot/bcm2710-rpi-3-b.dtb to /usr/share/rpikernelhack/bcm2710-rpi-3-b.dtb by rpikernelhack'
 
Adding 'diversion of /boot/kernel.img to /usr/share/rpikernelhack/kernel.img by rpikernelhack'
 
Adding 'diversion of /boot/kernel7.img to /usr/share/rpikernelhack/kernel7.img by rpikernelhack'
 
Adding 'diversion of /boot/COPYING.linux to /usr/share/rpikernelhack/COPYING.linux by rpikernelhack'
 
Adding 'diversion of /boot/overlays/README to /usr/share/rpikernelhack/overlays/README by rpikernelhack'
 
Adding 'diversion of /boot/overlays/ads7846.dtbo to /usr/share/rpikernelhack/overlays/ads7846.dtbo by rpikernelhack'
 
Adding 'diversion of /boot/overlays/akkordion-iqdacplus.dtbo to /usr/share/rpikernelhack/overlays/akkordion-iqdacplus.dtbo by rpikernelhack'
 
Adding 'diversion of /boot/overlays/at86rf233.dtbo to /usr/share/rpikernelhack/overlays/at86rf233.dtbo by rpikernelhack'
 
Adding 'diversion of /boot/overlays/bmp085_i2c-sensor.dtbo to /usr/share/rpikernelhack/overlays/bmp085_i2c-sensor.dtbo by rpikernelhack'
 
Adding 'diversion of /boot/overlays/boomberry-dac.dtbo to /usr/share/rpikernelhack/overlays/boomberry-dac.dtbo by rpikernelhack'
 
Adding 'diversion of /boot/overlays/boomberry-digi.dtbo to /usr/share/rpikernelhack/overlays/boomberry-digi.dtbo by rpikernelhack'
 
Adding 'diversion of /boot/overlays/dht11.dtbo to /usr/share/rpikernelhack/overlays/dht11.dtbo by rpikernelhack'
 
Adding 'diversion of /boot/overlays/dpi24.dtbo to /usr/share/rpikernelhack/overlays/dpi24.dtbo by rpikernelhack'
 
Adding 'diversion of /boot/overlays/dwc-otg.dtbo to /usr/share/rpikernelhack/overlays/dwc-otg.dtbo by rpikernelhack'
 
Adding 'diversion of /boot/overlays/dwc2.dtbo to /usr/share/rpikernelhack/overlays/dwc2.dtbo by rpikernelhack'
 
Adding 'diversion of /boot/overlays/enc28j60.dtbo to /usr/share/rpikernelhack/overlays/enc28j60.dtbo by rpikernelhack'
 
Adding 'diversion of /boot/overlays/gpio-ir.dtbo to /usr/share/rpikernelhack/overlays/gpio-ir.dtbo by rpikernelhack'
 
Adding 'diversion of /boot/overlays/gpio-poweroff.dtbo to /usr/share/rpikernelhack/overlays/gpio-poweroff.dtbo by rpikernelhack'
 
Adding 'diversion of /boot/overlays/hifiberry-amp.dtbo to /usr/share/rpikernelhack/overlays/hifiberry-amp.dtbo by rpikernelhack'
 
Adding 'diversion of /boot/overlays/hifiberry-dac.dtbo to /usr/share/rpikernelhack/overlays/hifiberry-dac.dtbo by rpikernelhack'
 
Adding 'diversion of /boot/overlays/hifiberry-dacplus.dtbo to /usr/share/rpikernelhack/overlays/hifiberry-dacplus.dtbo by rpikernelhack'
 
Adding 'diversion of /boot/overlays/hifiberry-digi.dtbo to /usr/share/rpikernelhack/overlays/hifiberry-digi.dtbo by rpikernelhack'
 
Adding 'diversion of /boot/overlays/hy28a.dtbo to /usr/share/rpikernelhack/overlays/hy28a.dtbo by rpikernelhack'
 
Adding 'diversion of /boot/overlays/hy28b.dtbo to /usr/share/rpikernelhack/overlays/hy28b.dtbo by rpikernelhack'
 
Adding 'diversion of /boot/overlays/i2c-gpio.dtbo to /usr/share/rpikernelhack/overlays/i2c-gpio.dtbo by rpikernelhack'
 
Adding 'diversion of /boot/overlays/i2c-mux-pca9548a.dtbo to /usr/share/rpikernelhack/overlays/i2c-mux-pca9548a.dtbo by rpikernelhack'
 
Adding 'diversion of /boot/overlays/i2c-pwm-pca9685a.dtbo to /usr/share/rpikernelhack/overlays/i2c-pwm-pca9685a.dtbo by rpikernelhack'
 
Adding 'diversion of /boot/overlays/i2c-rtc.dtbo to /usr/share/rpikernelhack/overlays/i2c-rtc.dtbo by rpikernelhack'
 
Adding 'diversion of /boot/overlays/i2c0-bcm2708.dtbo to /usr/share/rpikernelhack/overlays/i2c0-bcm2708.dtbo by rpikernelhack'
 
Adding 'diversion of /boot/overlays/i2c1-bcm2708.dtbo to /usr/share/rpikernelhack/overlays/i2c1-bcm2708.dtbo by rpikernelhack'
 
Adding 'diversion of /boot/overlays/i2s-gpio28-31.dtbo to /usr/share/rpikernelhack/overlays/i2s-gpio28-31.dtbo by rpikernelhack'
 
Adding 'diversion of /boot/overlays/i2s-mmap.dtbo to /usr/share/rpikernelhack/overlays/i2s-mmap.dtbo by rpikernelhack'
 
Adding 'diversion of /boot/overlays/iqaudio-dac.dtbo to /usr/share/rpikernelhack/overlays/iqaudio-dac.dtbo by rpikernelhack'
 
Adding 'diversion of /boot/overlays/iqaudio-dacplus.dtbo to /usr/share/rpikernelhack/overlays/iqaudio-dacplus.dtbo by rpikernelhack'
 
Adding 'diversion of /boot/overlays/lirc-rpi.dtbo to /usr/share/rpikernelhack/overlays/lirc-rpi.dtbo by rpikernelhack'
 
Adding 'diversion of /boot/overlays/mcp2515-can0.dtbo to /usr/share/rpikernelhack/overlays/mcp2515-can0.dtbo by rpikernelhack'
 
Adding 'diversion of /boot/overlays/mcp2515-can1.dtbo to /usr/share/rpikernelhack/overlays/mcp2515-can1.dtbo by rpikernelhack'
 
Adding 'diversion of /boot/overlays/mmc.dtbo to /usr/share/rpikernelhack/overlays/mmc.dtbo by rpikernelhack'
 
Adding 'diversion of /boot/overlays/mz61581.dtbo to /usr/share/rpikernelhack/overlays/mz61581.dtbo by rpikernelhack'
 
Adding 'diversion of /boot/overlays/pi3-act-led.dtbo to /usr/share/rpikernelhack/overlays/pi3-act-led.dtbo by rpikernelhack'
 
Adding 'diversion of /boot/overlays/pi3-disable-bt.dtbo to /usr/share/rpikernelhack/overlays/pi3-disable-bt.dtbo by rpikernelhack'
 
Adding 'diversion of /boot/overlays/pi3-miniuart-bt.dtbo to /usr/share/rpikernelhack/overlays/pi3-miniuart-bt.dtbo by rpikernelhack'
 
Adding 'diversion of /boot/overlays/piscreen.dtbo to /usr/share/rpikernelhack/overlays/piscreen.dtbo by rpikernelhack'
 
Adding 'diversion of /boot/overlays/piscreen2r.dtbo to /usr/share/rpikernelhack/overlays/piscreen2r.dtbo by rpikernelhack'
 
Adding 'diversion of /boot/overlays/pitft22.dtbo to /usr/share/rpikernelhack/overlays/pitft22.dtbo by rpikernelhack'
 
Adding 'diversion of /boot/overlays/pitft28-capacitive.dtbo to /usr/share/rpikernelhack/overlays/pitft28-capacitive.dtbo by rpikernelhack'
 
Adding 'diversion of /boot/overlays/pitft28-resistive.dtbo to /usr/share/rpikernelhack/overlays/pitft28-resistive.dtbo by rpikernelhack'
 
Adding 'diversion of /boot/overlays/pps-gpio.dtbo to /usr/share/rpikernelhack/overlays/pps-gpio.dtbo by rpikernelhack'
 
Adding 'diversion of /boot/overlays/pwm-2chan.dtbo to /usr/share/rpikernelhack/overlays/pwm-2chan.dtbo by rpikernelhack'
 
Adding 'diversion of /boot/overlays/pwm.dtbo to /usr/share/rpikernelhack/overlays/pwm.dtbo by rpikernelhack'
 
Adding 'diversion of /boot/overlays/qca7000.dtbo to /usr/share/rpikernelhack/overlays/qca7000.dtbo by rpikernelhack'
 
Adding 'diversion of /boot/overlays/raspidac3.dtbo to /usr/share/rpikernelhack/overlays/raspidac3.dtbo by rpikernelhack'
 
Adding 'diversion of /boot/overlays/rpi-backlight.dtbo to /usr/share/rpikernelhack/overlays/rpi-backlight.dtbo by rpikernelhack'
 
Adding 'diversion of /boot/overlays/rpi-dac.dtbo to /usr/share/rpikernelhack/overlays/rpi-dac.dtbo by rpikernelhack'
 
Adding 'diversion of /boot/overlays/rpi-display.dtbo to /usr/share/rpikernelhack/overlays/rpi-display.dtbo by rpikernelhack'
 
Adding 'diversion of /boot/overlays/rpi-ft5406.dtbo to /usr/share/rpikernelhack/overlays/rpi-ft5406.dtbo by rpikernelhack'
 
Adding 'diversion of /boot/overlays/rpi-proto.dtbo to /usr/share/rpikernelhack/overlays/rpi-proto.dtbo by rpikernelhack'
 
Adding 'diversion of /boot/overlays/rpi-sense.dtbo to /usr/share/rpikernelhack/overlays/rpi-sense.dtbo by rpikernelhack'
 
Adding 'diversion of /boot/overlays/sdhost.dtbo to /usr/share/rpikernelhack/overlays/sdhost.dtbo by rpikernelhack'
 
Adding 'diversion of /boot/overlays/sdio-1bit.dtbo to /usr/share/rpikernelhack/overlays/sdio-1bit.dtbo by rpikernelhack'
 
Adding 'diversion of /boot/overlays/sdio.dtbo to /usr/share/rpikernelhack/overlays/sdio.dtbo by rpikernelhack'
 
Adding 'diversion of /boot/overlays/sdtweak.dtbo to /usr/share/rpikernelhack/overlays/sdtweak.dtbo by rpikernelhack'
 
Adding 'diversion of /boot/overlays/smi-dev.dtbo to /usr/share/rpikernelhack/overlays/smi-dev.dtbo by rpikernelhack'
 
Adding 'diversion of /boot/overlays/smi-nand.dtbo to /usr/share/rpikernelhack/overlays/smi-nand.dtbo by rpikernelhack'
 
Adding 'diversion of /boot/overlays/smi.dtbo to /usr/share/rpikernelhack/overlays/smi.dtbo by rpikernelhack'
 
Adding 'diversion of /boot/overlays/spi-gpio35-39.dtbo to /usr/share/rpikernelhack/overlays/spi-gpio35-39.dtbo by rpikernelhack'
 
Adding 'diversion of /boot/overlays/spi1-1cs.dtbo to /usr/share/rpikernelhack/overlays/spi1-1cs.dtbo by rpikernelhack'
 
Adding 'diversion of /boot/overlays/spi1-2cs.dtbo to /usr/share/rpikernelhack/overlays/spi1-2cs.dtbo by rpikernelhack'
 
Adding 'diversion of /boot/overlays/spi1-3cs.dtbo to /usr/share/rpikernelhack/overlays/spi1-3cs.dtbo by rpikernelhack'
 
Adding 'diversion of /boot/overlays/spi2-1cs.dtbo to /usr/share/rpikernelhack/overlays/spi2-1cs.dtbo by rpikernelhack'
 
Adding 'diversion of /boot/overlays/spi2-2cs.dtbo to /usr/share/rpikernelhack/overlays/spi2-2cs.dtbo by rpikernelhack'
 
Adding 'diversion of /boot/overlays/spi2-3cs.dtbo to /usr/share/rpikernelhack/overlays/spi2-3cs.dtbo by rpikernelhack'
 
Adding 'diversion of /boot/overlays/tinylcd35.dtbo to /usr/share/rpikernelhack/overlays/tinylcd35.dtbo by rpikernelhack'
 
Adding 'diversion of /boot/overlays/uart1.dtbo to /usr/share/rpikernelhack/overlays/uart1.dtbo by rpikernelhack'
 
Adding 'diversion of /boot/overlays/vc4-kms-v3d.dtbo to /usr/share/rpikernelhack/overlays/vc4-kms-v3d.dtbo by rpikernelhack'
 
Adding 'diversion of /boot/overlays/vga666.dtbo to /usr/share/rpikernelhack/overlays/vga666.dtbo by rpikernelhack'
 
Adding 'diversion of /boot/overlays/w1-gpio-pullup.dtbo to /usr/share/rpikernelhack/overlays/w1-gpio-pullup.dtbo by rpikernelhack'
 
Adding 'diversion of /boot/overlays/w1-gpio.dtbo to /usr/share/rpikernelhack/overlays/w1-gpio.dtbo by rpikernelhack'
 
Adding 'diversion of /boot/overlays/wittypi.dtbo to /usr/share/rpikernelhack/overlays/wittypi.dtbo by rpikernelhack'
 
Unpacking raspberrypi-kernel (1.20160512-1) over (1.20160506-1) ...
 
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.4.9+ /boot/kernel.img
 
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.4.9-v7+ /boot/kernel7.img
 
Preparing to unpack .../libraspberrypi-bin_1.20160512-1_armhf.deb ...
 
Unpacking libraspberrypi-bin (1.20160512-1) over (1.20160506-1) ...
 
Preparing to unpack .../libraspberrypi0_1.20160512-1_armhf.deb ...
 
Unpacking libraspberrypi0 (1.20160512-1) over (1.20160506-1) ...
 
Preparing to unpack .../raspberrypi-bootloader_1.20160512-1_armhf.deb ...
 
Adding 'diversion of /boot/start.elf to /usr/share/rpikernelhack/start.elf by rpikernelhack'
 
Adding 'diversion of /boot/start_cd.elf to /usr/share/rpikernelhack/start_cd.elf by rpikernelhack'
 
Adding 'diversion of /boot/start_db.elf to /usr/share/rpikernelhack/start_db.elf by rpikernelhack'
 
Adding 'diversion of /boot/start_x.elf to /usr/share/rpikernelhack/start_x.elf by rpikernelhack'
 
Adding 'diversion of /boot/fixup.dat to /usr/share/rpikernelhack/fixup.dat by rpikernelhack'
 
Adding 'diversion of /boot/fixup_cd.dat to /usr/share/rpikernelhack/fixup_cd.dat by rpikernelhack'
 
Adding 'diversion of /boot/fixup_db.dat to /usr/share/rpikernelhack/fixup_db.dat by rpikernelhack'
 
Adding 'diversion of /boot/fixup_x.dat to /usr/share/rpikernelhack/fixup_x.dat by rpikernelhack'
 
Adding 'diversion of /boot/bootcode.bin to /usr/share/rpikernelhack/bootcode.bin by rpikernelhack'
 
Adding 'diversion of /boot/LICENCE.broadcom to /usr/share/rpikernelhack/LICENCE.broadcom by rpikernelhack'
 
Unpacking raspberrypi-bootloader (1.20160512-1) over (1.20160506-1) ...
 
Processing triggers for libgdk-pixbuf2.0-0:armhf (2.31.1-2+deb8u4) ...
 
Processing triggers for gnome-menus (3.13.3-6) ...
 
Processing triggers for desktop-file-utils (0.22-1) ...
 
Processing triggers for mime-support (3.58) ...
 
Processing triggers for gnome-icon-theme (3.12.0-1) ...
 
Processing triggers for man-db (2.7.0.2-5) ...
 
Setting up libidn11:armhf (1.29-1+deb8u1) ...
 
Setting up libarchive13:armhf (3.1.2-11+deb8u1) ...
 
Setting up libexpat1:armhf (2.1.0-6+deb8u2) ...
 
Setting up libexpat1-dev:armhf (2.1.0-6+deb8u2) ...
 
Setting up librsvg2-2:armhf (2.40.5-1+deb8u2) ...
 
Setting up librsvg2-common:armhf (2.40.5-1+deb8u2) ...
 
Setting up nodered (0.13.4-1) ...
 
Setting up omxplayer (0.3.7~git20160506~6c90c75) ...
 
Setting up raspberrypi-kernel (1.20160512-1) ...
 
Removing 'diversion of /boot/bcm2708-rpi-b-plus.dtb to /usr/share/rpikernelhack/bcm2708-rpi-b-plus.dtb by rpikernelhack'
 
Removing 'diversion of /boot/bcm2708-rpi-b.dtb to /usr/share/rpikernelhack/bcm2708-rpi-b.dtb by rpikernelhack'
 
Removing 'diversion of /boot/bcm2708-rpi-cm.dtb to /usr/share/rpikernelhack/bcm2708-rpi-cm.dtb by rpikernelhack'
 
Removing 'diversion of /boot/bcm2709-rpi-2-b.dtb to /usr/share/rpikernelhack/bcm2709-rpi-2-b.dtb by rpikernelhack'
 
Removing 'diversion of /boot/bcm2710-rpi-3-b.dtb to /usr/share/rpikernelhack/bcm2710-rpi-3-b.dtb by rpikernelhack'
 
Removing 'diversion of /boot/kernel.img to /usr/share/rpikernelhack/kernel.img by rpikernelhack'
 
Removing 'diversion of /boot/kernel7.img to /usr/share/rpikernelhack/kernel7.img by rpikernelhack'
 
Removing 'diversion of /boot/COPYING.linux to /usr/share/rpikernelhack/COPYING.linux by rpikernelhack'
 
Removing 'diversion of /boot/overlays/README to /usr/share/rpikernelhack/overlays/README by rpikernelhack'
 
Removing 'diversion of /boot/overlays/ads7846.dtbo to /usr/share/rpikernelhack/overlays/ads7846.dtbo by rpikernelhack'
 
Removing 'diversion of /boot/overlays/akkordion-iqdacplus.dtbo to /usr/share/rpikernelhack/overlays/akkordion-iqdacplus.dtbo by rpikernelhack'
 
Removing 'diversion of /boot/overlays/at86rf233.dtbo to /usr/share/rpikernelhack/overlays/at86rf233.dtbo by rpikernelhack'
 
Removing 'diversion of /boot/overlays/bmp085_i2c-sensor.dtbo to /usr/share/rpikernelhack/overlays/bmp085_i2c-sensor.dtbo by rpikernelhack'
 
Removing 'diversion of /boot/overlays/boomberry-dac.dtbo to /usr/share/rpikernelhack/overlays/boomberry-dac.dtbo by rpikernelhack'
 
Removing 'diversion of /boot/overlays/boomberry-digi.dtbo to /usr/share/rpikernelhack/overlays/boomberry-digi.dtbo by rpikernelhack'
 
Removing 'diversion of /boot/overlays/dht11.dtbo to /usr/share/rpikernelhack/overlays/dht11.dtbo by rpikernelhack'
 
Removing 'diversion of /boot/overlays/dpi24.dtbo to /usr/share/rpikernelhack/overlays/dpi24.dtbo by rpikernelhack'
 
Removing 'diversion of /boot/overlays/dwc-otg.dtbo to /usr/share/rpikernelhack/overlays/dwc-otg.dtbo by rpikernelhack'
 
Removing 'diversion of /boot/overlays/dwc2.dtbo to /usr/share/rpikernelhack/overlays/dwc2.dtbo by rpikernelhack'
 
Removing 'diversion of /boot/overlays/enc28j60.dtbo to /usr/share/rpikernelhack/overlays/enc28j60.dtbo by rpikernelhack'
 
Removing 'diversion of /boot/overlays/gpio-ir.dtbo to /usr/share/rpikernelhack/overlays/gpio-ir.dtbo by rpikernelhack'
 
Removing 'diversion of /boot/overlays/gpio-poweroff.dtbo to /usr/share/rpikernelhack/overlays/gpio-poweroff.dtbo by rpikernelhack'
 
Removing 'diversion of /boot/overlays/hifiberry-amp.dtbo to /usr/share/rpikernelhack/overlays/hifiberry-amp.dtbo by rpikernelhack'
 
Removing 'diversion of /boot/overlays/hifiberry-dac.dtbo to /usr/share/rpikernelhack/overlays/hifiberry-dac.dtbo by rpikernelhack'
 
Removing 'diversion of /boot/overlays/hifiberry-dacplus.dtbo to /usr/share/rpikernelhack/overlays/hifiberry-dacplus.dtbo by rpikernelhack'
 
Removing 'diversion of /boot/overlays/hifiberry-digi.dtbo to /usr/share/rpikernelhack/overlays/hifiberry-digi.dtbo by rpikernelhack'
 
Removing 'diversion of /boot/overlays/hy28a.dtbo to /usr/share/rpikernelhack/overlays/hy28a.dtbo by rpikernelhack'
 
Removing 'diversion of /boot/overlays/hy28b.dtbo to /usr/share/rpikernelhack/overlays/hy28b.dtbo by rpikernelhack'
 
Removing 'diversion of /boot/overlays/i2c-gpio.dtbo to /usr/share/rpikernelhack/overlays/i2c-gpio.dtbo by rpikernelhack'
 
Removing 'diversion of /boot/overlays/i2c-mux-pca9548a.dtbo to /usr/share/rpikernelhack/overlays/i2c-mux-pca9548a.dtbo by rpikernelhack'
 
Removing 'diversion of /boot/overlays/i2c-pwm-pca9685a.dtbo to /usr/share/rpikernelhack/overlays/i2c-pwm-pca9685a.dtbo by rpikernelhack'
 
Removing 'diversion of /boot/overlays/i2c-rtc.dtbo to /usr/share/rpikernelhack/overlays/i2c-rtc.dtbo by rpikernelhack'
 
Removing 'diversion of /boot/overlays/i2c0-bcm2708.dtbo to /usr/share/rpikernelhack/overlays/i2c0-bcm2708.dtbo by rpikernelhack'
 
Removing 'diversion of /boot/overlays/i2c1-bcm2708.dtbo to /usr/share/rpikernelhack/overlays/i2c1-bcm2708.dtbo by rpikernelhack'
 
Removing 'diversion of /boot/overlays/i2s-gpio28-31.dtbo to /usr/share/rpikernelhack/overlays/i2s-gpio28-31.dtbo by rpikernelhack'
 
Removing 'diversion of /boot/overlays/i2s-mmap.dtbo to /usr/share/rpikernelhack/overlays/i2s-mmap.dtbo by rpikernelhack'
 
Removing 'diversion of /boot/overlays/iqaudio-dac.dtbo to /usr/share/rpikernelhack/overlays/iqaudio-dac.dtbo by rpikernelhack'
 
Removing 'diversion of /boot/overlays/iqaudio-dacplus.dtbo to /usr/share/rpikernelhack/overlays/iqaudio-dacplus.dtbo by rpikernelhack'
 
Removing 'diversion of /boot/overlays/lirc-rpi.dtbo to /usr/share/rpikernelhack/overlays/lirc-rpi.dtbo by rpikernelhack'
 
Removing 'diversion of /boot/overlays/mcp2515-can0.dtbo to /usr/share/rpikernelhack/overlays/mcp2515-can0.dtbo by rpikernelhack'
 
Removing 'diversion of /boot/overlays/mcp2515-can1.dtbo to /usr/share/rpikernelhack/overlays/mcp2515-can1.dtbo by rpikernelhack'
 
Removing 'diversion of /boot/overlays/mmc.dtbo to /usr/share/rpikernelhack/overlays/mmc.dtbo by rpikernelhack'
 
Removing 'diversion of /boot/overlays/mz61581.dtbo to /usr/share/rpikernelhack/overlays/mz61581.dtbo by rpikernelhack'
 
Removing 'diversion of /boot/overlays/pi3-act-led.dtbo to /usr/share/rpikernelhack/overlays/pi3-act-led.dtbo by rpikernelhack'
 
Removing 'diversion of /boot/overlays/pi3-disable-bt.dtbo to /usr/share/rpikernelhack/overlays/pi3-disable-bt.dtbo by rpikernelhack'
 
Removing 'diversion of /boot/overlays/pi3-miniuart-bt.dtbo to /usr/share/rpikernelhack/overlays/pi3-miniuart-bt.dtbo by rpikernelhack'
 
Removing 'diversion of /boot/overlays/piscreen.dtbo to /usr/share/rpikernelhack/overlays/piscreen.dtbo by rpikernelhack'
 
Removing 'diversion of /boot/overlays/piscreen2r.dtbo to /usr/share/rpikernelhack/overlays/piscreen2r.dtbo by rpikernelhack'
 
Removing 'diversion of /boot/overlays/pitft22.dtbo to /usr/share/rpikernelhack/overlays/pitft22.dtbo by rpikernelhack'
 
Removing 'diversion of /boot/overlays/pitft28-capacitive.dtbo to /usr/share/rpikernelhack/overlays/pitft28-capacitive.dtbo by rpikernelhack'
 
Removing 'diversion of /boot/overlays/pitft28-resistive.dtbo to /usr/share/rpikernelhack/overlays/pitft28-resistive.dtbo by rpikernelhack'
 
Removing 'diversion of /boot/overlays/pps-gpio.dtbo to /usr/share/rpikernelhack/overlays/pps-gpio.dtbo by rpikernelhack'
 
Removing 'diversion of /boot/overlays/pwm-2chan.dtbo to /usr/share/rpikernelhack/overlays/pwm-2chan.dtbo by rpikernelhack'
 
Removing 'diversion of /boot/overlays/pwm.dtbo to /usr/share/rpikernelhack/overlays/pwm.dtbo by rpikernelhack'
 
Removing 'diversion of /boot/overlays/qca7000.dtbo to /usr/share/rpikernelhack/overlays/qca7000.dtbo by rpikernelhack'
 
Removing 'diversion of /boot/overlays/raspidac3.dtbo to /usr/share/rpikernelhack/overlays/raspidac3.dtbo by rpikernelhack'
 
Removing 'diversion of /boot/overlays/rpi-backlight.dtbo to /usr/share/rpikernelhack/overlays/rpi-backlight.dtbo by rpikernelhack'
 
Removing 'diversion of /boot/overlays/rpi-dac.dtbo to /usr/share/rpikernelhack/overlays/rpi-dac.dtbo by rpikernelhack'
 
Removing 'diversion of /boot/overlays/rpi-display.dtbo to /usr/share/rpikernelhack/overlays/rpi-display.dtbo by rpikernelhack'
 
Removing 'diversion of /boot/overlays/rpi-ft5406.dtbo to /usr/share/rpikernelhack/overlays/rpi-ft5406.dtbo by rpikernelhack'
 
Removing 'diversion of /boot/overlays/rpi-proto.dtbo to /usr/share/rpikernelhack/overlays/rpi-proto.dtbo by rpikernelhack'
 
Removing 'diversion of /boot/overlays/rpi-sense.dtbo to /usr/share/rpikernelhack/overlays/rpi-sense.dtbo by rpikernelhack'
 
Removing 'diversion of /boot/overlays/sdhost.dtbo to /usr/share/rpikernelhack/overlays/sdhost.dtbo by rpikernelhack'
 
Removing 'diversion of /boot/overlays/sdio-1bit.dtbo to /usr/share/rpikernelhack/overlays/sdio-1bit.dtbo by rpikernelhack'
 
Removing 'diversion of /boot/overlays/sdio.dtbo to /usr/share/rpikernelhack/overlays/sdio.dtbo by rpikernelhack'
 
Removing 'diversion of /boot/overlays/sdtweak.dtbo to /usr/share/rpikernelhack/overlays/sdtweak.dtbo by rpikernelhack'
 
Removing 'diversion of /boot/overlays/smi-dev.dtbo to /usr/share/rpikernelhack/overlays/smi-dev.dtbo by rpikernelhack'
 
Removing 'diversion of /boot/overlays/smi-nand.dtbo to /usr/share/rpikernelhack/overlays/smi-nand.dtbo by rpikernelhack'
 
Removing 'diversion of /boot/overlays/smi.dtbo to /usr/share/rpikernelhack/overlays/smi.dtbo by rpikernelhack'
 
Removing 'diversion of /boot/overlays/spi-gpio35-39.dtbo to /usr/share/rpikernelhack/overlays/spi-gpio35-39.dtbo by rpikernelhack'
 
Removing 'diversion of /boot/overlays/spi1-1cs.dtbo to /usr/share/rpikernelhack/overlays/spi1-1cs.dtbo by rpikernelhack'
 
Removing 'diversion of /boot/overlays/spi1-2cs.dtbo to /usr/share/rpikernelhack/overlays/spi1-2cs.dtbo by rpikernelhack'
 
Removing 'diversion of /boot/overlays/spi1-3cs.dtbo to /usr/share/rpikernelhack/overlays/spi1-3cs.dtbo by rpikernelhack'
 
Removing 'diversion of /boot/overlays/spi2-1cs.dtbo to /usr/share/rpikernelhack/overlays/spi2-1cs.dtbo by rpikernelhack'
 
Removing 'diversion of /boot/overlays/spi2-2cs.dtbo to /usr/share/rpikernelhack/overlays/spi2-2cs.dtbo by rpikernelhack'
 
Removing 'diversion of /boot/overlays/spi2-3cs.dtbo to /usr/share/rpikernelhack/overlays/spi2-3cs.dtbo by rpikernelhack'
 
Removing 'diversion of /boot/overlays/tinylcd35.dtbo to /usr/share/rpikernelhack/overlays/tinylcd35.dtbo by rpikernelhack'
 
Removing 'diversion of /boot/overlays/uart1.dtbo to /usr/share/rpikernelhack/overlays/uart1.dtbo by rpikernelhack'
 
Removing 'diversion of /boot/overlays/vc4-kms-v3d.dtbo to /usr/share/rpikernelhack/overlays/vc4-kms-v3d.dtbo by rpikernelhack'
 
Removing 'diversion of /boot/overlays/vga666.dtbo to /usr/share/rpikernelhack/overlays/vga666.dtbo by rpikernelhack'
 
Removing 'diversion of /boot/overlays/w1-gpio-pullup.dtbo to /usr/share/rpikernelhack/overlays/w1-gpio-pullup.dtbo by rpikernelhack'
 
Removing 'diversion of /boot/overlays/w1-gpio.dtbo to /usr/share/rpikernelhack/overlays/w1-gpio.dtbo by rpikernelhack'
 
Removing 'diversion of /boot/overlays/wittypi.dtbo to /usr/share/rpikernelhack/overlays/wittypi.dtbo by rpikernelhack'
 
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.9+ /boot/kernel.img
 
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.9+ /boot/kernel.img
 
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.9-v7+ /boot/kernel7.img
 
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.9-v7+ /boot/kernel7.img
 
Setting up raspberrypi-bootloader (1.20160512-1) ...
 
Removing 'diversion of /boot/start.elf to /usr/share/rpikernelhack/start.elf by rpikernelhack'
 
Removing 'diversion of /boot/start_cd.elf to /usr/share/rpikernelhack/start_cd.elf by rpikernelhack'
 
Removing 'diversion of /boot/start_db.elf to /usr/share/rpikernelhack/start_db.elf by rpikernelhack'
 
Removing 'diversion of /boot/start_x.elf to /usr/share/rpikernelhack/start_x.elf by rpikernelhack'
 
Removing 'diversion of /boot/fixup.dat to /usr/share/rpikernelhack/fixup.dat by rpikernelhack'
 
Removing 'diversion of /boot/fixup_cd.dat to /usr/share/rpikernelhack/fixup_cd.dat by rpikernelhack'
 
Removing 'diversion of /boot/fixup_db.dat to /usr/share/rpikernelhack/fixup_db.dat by rpikernelhack'
 
Removing 'diversion of /boot/fixup_x.dat to /usr/share/rpikernelhack/fixup_x.dat by rpikernelhack'
 
Removing 'diversion of /boot/bootcode.bin to /usr/share/rpikernelhack/bootcode.bin by rpikernelhack'
 
Removing 'diversion of /boot/LICENCE.broadcom to /usr/share/rpikernelhack/LICENCE.broadcom by rpikernelhack'
 
Setting up libraspberrypi0 (1.20160512-1) ...
 
Setting up libraspberrypi-dev (1.20160512-1) ...
 
Setting up libraspberrypi-doc (1.20160512-1) ...
 
Setting up libraspberrypi-bin (1.20160512-1) ...
 
Processing triggers for libc-bin (2.19-18+deb8u4) ...
 
Processing triggers for libgdk-pixbuf2.0-0:armhf (2.31.1-2+deb8u4) ...
 
  
 
=== Install packages we need ===
 
=== Install packages we need ===
Line 568: Line 161:
 
  sudo apt-get install dh-autoreconf libudev-dev libusb-1
 
  sudo apt-get install dh-autoreconf libudev-dev libusb-1
  
 
sudo apt-get -y install gawk bc apache2 libusb-dev libgd-graph-perl libexpat1-dev sqlite3
 
Reading package lists... Done
 
Building dependency tree       
 
Reading state information... Done
 
libexpat1-dev is already the newest version.
 
libexpat1-dev set to manually installed.
 
The following extra packages will be installed:
 
  apache2-bin apache2-data apache2-utils libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libgd-perl libgd-text-perl liblua5.1-0 libsigsegv2 ssl-cert
 
Suggested packages:
 
  apache2-doc apache2-suexec-pristine apache2-suexec-custom gawk-doc fonts-dustin sqlite3-doc openssl-blacklist
 
The following NEW packages will be installed:
 
  apache2 apache2-bin apache2-data apache2-utils bc gawk libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libgd-graph-perl  libgd-perl libgd-text-perl liblua5.1-0
 
  libsigsegv2 libusb-dev sqlite3 ssl-cert
 
0 upgraded, 18 newly installed, 0 to remove and 0 not upgraded.
 
Need to get 3,091 kB of archives.
 
After this operation, 8,620 kB of additional disk space will be used.
 
Get:1 http://mirrordirector.raspbian.org/raspbian/ jessie/main libapr1 armhf 1.5.1-3 [77.1 kB]
 
Get:2 http://mirrordirector.raspbian.org/raspbian/ jessie/main libaprutil1 armhf 1.5.4-1 [75.9 kB]
 
Get:3 http://mirrordirector.raspbian.org/raspbian/ jessie/main libaprutil1-dbd-sqlite3 armhf 1.5.4-1 [17.7 kB]
 
Get:4 http://mirrordirector.raspbian.org/raspbian/ jessie/main libaprutil1-ldap armhf 1.5.4-1 [16.7 kB]
 
Get:5 http://mirrordirector.raspbian.org/raspbian/ jessie/main liblua5.1-0 armhf 5.1.5-7.1 [83.7 kB]
 
Get:6 http://mirrordirector.raspbian.org/raspbian/ jessie/main apache2-bin armhf 2.4.10-10+deb8u4 [893 kB]
 
Get:7 http://mirrordirector.raspbian.org/raspbian/ jessie/main apache2-utils armhf 2.4.10-10+deb8u4 [194 kB]
 
Get:8 http://mirrordirector.raspbian.org/raspbian/ jessie/main apache2-data all 2.4.10-10+deb8u4 [162  kB]                                                                         
 
Get:9 http://mirrordirector.raspbian.org/raspbian/ jessie/main apache2 armhf 2.4.10-10+deb8u4 [205  kB]                                                                           
 
Get:10 http://mirrordirector.raspbian.org/raspbian/ jessie/main libsigsegv2 armhf 2.10-4 [28.2 kB]                                                                               
 
Get:11 http://mirrordirector.raspbian.org/raspbian/ jessie/main gawk armhf 1:4.1.1+dfsg-1 [480 kB]                                                                               
 
Get:12 http://mirrordirector.raspbian.org/raspbian/ jessie/main bc armhf 1.06.95-9 [96.3 kB]                                                                                     
 
Get:13 http://mirrordirector.raspbian.org/raspbian/ jessie/main libusb-dev armhf 2:0.1.12-25 [34.4 kB]                                                                           
 
Get:14 http://mirrordirector.raspbian.org/raspbian/ jessie/main sqlite3 armhf 3.8.7.1-1+deb8u1 [99.5 kB]                                                                         
 
Get:15 http://mirrordirector.raspbian.org/raspbian/ jessie/main ssl-cert all 1.0.35 [20.9 kB]                                                                                     
 
Get:16 http://mirrordirector.raspbian.org/raspbian/ jessie/main libgd-perl armhf 2.53-1+b1 [175 kB]                                                                               
 
Get:17 http://mirrordirector.raspbian.org/raspbian/ jessie/main libgd-text-perl all 0.86-9 [41.4 kB]                                                                             
 
Get:18 http://mirrordirector.raspbian.org/raspbian/ jessie/main libgd-graph-perl all 1.48-2 [389  kB]                                                                             
 
Fetched 3,091 kB in 13s (225 kB/s)                                                                                                                                               
 
Preconfiguring packages ...
 
Selecting previously unselected package libapr1:armhf.
 
(Reading database ... 92999 files and directories currently installed.)
 
Preparing to unpack .../libapr1_1.5.1-3_armhf.deb ...
 
Unpacking libapr1:armhf (1.5.1-3) ...
 
Selecting previously unselected package libaprutil1:armhf.
 
Preparing to unpack .../libaprutil1_1.5.4-1_armhf.deb ...
 
Unpacking libaprutil1:armhf (1.5.4-1) ...
 
Selecting previously unselected package libaprutil1-dbd-sqlite3:armhf.
 
Preparing to unpack .../libaprutil1-dbd-sqlite3_1.5.4-1_armhf.deb ...
 
Unpacking libaprutil1-dbd-sqlite3:armhf (1.5.4-1) ...
 
Selecting previously unselected package libaprutil1-ldap:armhf.
 
Preparing to unpack .../libaprutil1-ldap_1.5.4-1_armhf.deb ...
 
Unpacking libaprutil1-ldap:armhf (1.5.4-1) ...
 
Selecting previously unselected package liblua5.1-0:armhf.
 
Preparing to unpack .../liblua5.1-0_5.1.5-7.1_armhf.deb ...
 
Unpacking liblua5.1-0:armhf (5.1.5-7.1) ...
 
Selecting previously unselected package apache2-bin.
 
Preparing to unpack .../apache2-bin_2.4.10-10+deb8u4_armhf.deb ...
 
Unpacking apache2-bin (2.4.10-10+deb8u4) ...
 
Selecting previously unselected package apache2-utils.
 
Preparing to unpack .../apache2-utils_2.4.10-10+deb8u4_armhf.deb ...
 
Unpacking apache2-utils (2.4.10-10+deb8u4) ...
 
Selecting previously unselected package apache2-data.
 
Preparing to unpack .../apache2-data_2.4.10-10+deb8u4_all.deb ...
 
Unpacking apache2-data (2.4.10-10+deb8u4) ...
 
Selecting previously unselected package apache2.
 
Preparing to unpack .../apache2_2.4.10-10+deb8u4_armhf.deb ...
 
Unpacking apache2 (2.4.10-10+deb8u4) ...
 
Selecting previously unselected package libsigsegv2:armhf.
 
Preparing to unpack .../libsigsegv2_2.10-4_armhf.deb ...
 
Unpacking libsigsegv2:armhf (2.10-4) ...
 
Processing triggers for man-db (2.7.0.2-5) ...
 
Processing triggers for systemd (215-17+deb8u4) ...
 
Setting up libsigsegv2:armhf (2.10-4) ...
 
Processing triggers for libc-bin (2.19-18+deb8u4) ...
 
Selecting previously unselected package gawk.
 
(Reading database ... 93685 files and directories currently installed.)
 
Preparing to unpack .../gawk_1%3a4.1.1+dfsg-1_armhf.deb ...
 
Unpacking gawk (1:4.1.1+dfsg-1) ...
 
Selecting previously unselected package bc.
 
Preparing to unpack .../bc_1.06.95-9_armhf.deb ...
 
Unpacking bc (1.06.95-9) ...
 
Selecting previously unselected package libusb-dev.
 
Preparing to unpack .../libusb-dev_2%3a0.1.12-25_armhf.deb ...
 
Unpacking libusb-dev (2:0.1.12-25) ...
 
Selecting previously unselected package sqlite3.
 
Preparing to unpack .../sqlite3_3.8.7.1-1+deb8u1_armhf.deb ...
 
Unpacking sqlite3 (3.8.7.1-1+deb8u1) ...
 
Selecting previously unselected package ssl-cert.
 
Preparing to unpack .../ssl-cert_1.0.35_all.deb ...
 
Unpacking ssl-cert (1.0.35) ...
 
Selecting previously unselected package libgd-perl.
 
Preparing to unpack .../libgd-perl_2.53-1+b1_armhf.deb ...
 
Unpacking libgd-perl (2.53-1+b1) ...
 
Selecting previously unselected package libgd-text-perl.
 
Preparing to unpack .../libgd-text-perl_0.86-9_all.deb ...
 
Unpacking libgd-text-perl (0.86-9) ...
 
Selecting previously unselected package libgd-graph-perl.
 
Preparing to unpack .../libgd-graph-perl_1.48-2_all.deb ...
 
Unpacking libgd-graph-perl (1.48-2) ...
 
Processing triggers for man-db (2.7.0.2-5) ...
 
Processing triggers for install-info (5.2.0.dfsg.1-6) ...
 
Setting up libapr1:armhf (1.5.1-3) ...
 
Setting up libaprutil1:armhf (1.5.4-1) ...
 
Setting up libaprutil1-dbd-sqlite3:armhf (1.5.4-1) ...
 
Setting up libaprutil1-ldap:armhf (1.5.4-1) ...
 
Setting up liblua5.1-0:armhf (5.1.5-7.1) ...
 
Setting up apache2-bin (2.4.10-10+deb8u4) ...
 
Setting up apache2-utils (2.4.10-10+deb8u4) ...
 
Setting up apache2-data (2.4.10-10+deb8u4) ...
 
Setting up apache2 (2.4.10-10+deb8u4) ...
 
Enabling module mpm_event.
 
Enabling module authz_core.
 
Enabling module authz_host.
 
Enabling module authn_core.
 
Enabling module auth_basic.
 
Enabling module access_compat.
 
Enabling module authn_file.
 
Enabling module authz_user.
 
Enabling module alias.
 
Enabling module dir.
 
Enabling module autoindex.
 
Enabling module env.
 
Enabling module mime.
 
Enabling module negotiation.
 
Enabling module setenvif.
 
Enabling module filter.
 
Enabling module deflate.
 
Enabling module status.
 
Enabling conf charset.
 
Enabling conf localized-error-pages.
 
Enabling conf other-vhosts-access-log.
 
Enabling conf security.
 
Enabling conf serve-cgi-bin.
 
Enabling site 000-default.
 
Setting up gawk (1:4.1.1+dfsg-1) ...
 
Setting up bc (1.06.95-9) ...
 
Setting up libusb-dev (2:0.1.12-25) ...
 
Setting up sqlite3 (3.8.7.1-1+deb8u1) ...
 
Setting up ssl-cert (1.0.35) ...
 
Setting up libgd-perl (2.53-1+b1) ...
 
Setting up libgd-text-perl (0.86-9) ...
 
Setting up libgd-graph-perl (1.48-2) ...
 
Processing triggers for libc-bin (2.19-18+deb8u4) ...
 
Processing triggers for systemd (215-17+deb8u4) ...
 
 
 
 
 
  pi@raspberrypi:~ $  sudo apt-get install dh-autoreconf libudev-dev libusb-1
 
  pi@raspberrypi:~ $  sudo apt-get install dh-autoreconf libudev-dev libusb-1
 
  Reading package lists... Done
 
  Reading package lists... Done
Line 722: Line 171:
  
 
  sudo apt-get install dh-autoreconf libudev-dev  
 
  sudo apt-get install dh-autoreconf libudev-dev  
Reading package lists... Done
 
Building dependency tree     
 
Reading state information... Done
 
The following extra packages will be installed:
 
  autoconf automake autopoint autotools-dev debhelper gettext intltool-debian libasprintf-dev libgettextpo-dev libgettextpo0 libltdl-dev  libmail-sendmail-perl
 
  libsys-hostname-long-perl libtool libunistring0 m4 po-debconf
 
Suggested packages:
 
  autoconf-archive gnu-standards autoconf-doc dh-make gettext-doc libtool-doc automaken gfortran fortran95-compiler gcj-jdk libmail-box-perl
 
The following NEW packages will be installed:
 
  autoconf automake autopoint autotools-dev debhelper dh-autoreconf gettext intltool-debian libasprintf-dev libgettextpo-dev libgettextpo0  libltdl-dev libmail-sendmail-perl
 
  libsys-hostname-long-perl libtool libudev-dev libunistring0 m4 po-debconf
 
0 upgraded, 19 newly installed, 0 to remove and 0 not upgraded.
 
Need to get 4,965 kB of archives.
 
After this operation, 16.2 MB of additional disk space will be used.
 
Do you want to continue? [Y/n] y
 
Get:1 http://mirrordirector.raspbian.org/raspbian/ jessie/main libunistring0 armhf 0.9.3-5.2 [253 kB]
 
Get:2 http://mirrordirector.raspbian.org/raspbian/ jessie/main libgettextpo0 armhf 0.19.3-2 [115 kB]
 
Get:3 http://mirrordirector.raspbian.org/raspbian/ jessie/main m4 armhf 1.4.17-4 [238 kB]
 
Get:4 http://mirrordirector.raspbian.org/raspbian/ jessie/main autoconf all 2.69-8 [340 kB]
 
Get:5 http://mirrordirector.raspbian.org/raspbian/ jessie/main autotools-dev all 20140911.1 [70.5 kB]
 
Get:6 http://mirrordirector.raspbian.org/raspbian/ jessie/main automake all 1:1.14.1-4 [725 kB]
 
Get:7 http://mirrordirector.raspbian.org/raspbian/ jessie/main autopoint all 0.19.3-2 [413  kB]                                                                                   
 
Get:8 http://mirrordirector.raspbian.org/raspbian/ jessie/main gettext armhf 0.19.3-2 [1,167 kB]                                                                                 
 
Get:9 http://mirrordirector.raspbian.org/raspbian/ jessie/main intltool-debian all 0.35.0+20060710.1 [29.8 kB]                                                                   
 
Get:10 http://mirrordirector.raspbian.org/raspbian/ jessie/main po-debconf all 1.0.16+nmu3 [220  kB]                                                                               
 
Get:11 http://mirrordirector.raspbian.org/raspbian/ jessie/main debhelper all 9.20150101 [813 kB]                                                                                 
 
Get:12 http://mirrordirector.raspbian.org/raspbian/ jessie/main libtool all 2.4.2-1.11 [190 kB]                                                                                   
 
Get:13 http://mirrordirector.raspbian.org/raspbian/ jessie/main dh-autoreconf all 10 [15.2 kB]                                                                                   
 
Get:14 http://mirrordirector.raspbian.org/raspbian/ jessie/main libasprintf-dev armhf 0.19.3-2 [31.0 kB]                                                                         
 
Get:15 http://mirrordirector.raspbian.org/raspbian/ jessie/main libgettextpo-dev armhf 0.19.3-2 [128 kB]                                                                         
 
Get:16 http://mirrordirector.raspbian.org/raspbian/ jessie/main libltdl-dev armhf 2.4.2-1.11 [155 kB]                                                                             
 
Get:17 http://mirrordirector.raspbian.org/raspbian/ jessie/main libsys-hostname-long-perl all 1.4-3 [11.6 kB]                                                                     
 
Get:18 http://mirrordirector.raspbian.org/raspbian/ jessie/main libmail-sendmail-perl all 0.79.16-1 [26.6 kB]                                                                     
 
Get:19 http://mirrordirector.raspbian.org/raspbian/ jessie/main libudev-dev armhf 215-17+deb8u4 [23.2 kB]                                                                         
 
Fetched 4,965 kB in 17s (282 kB/s)                                                                                                                                               
 
Selecting previously unselected package libunistring0:armhf.
 
(Reading database ... 94122 files and directories currently installed.)
 
Preparing to unpack .../libunistring0_0.9.3-5.2_armhf.deb ...
 
Unpacking libunistring0:armhf (0.9.3-5.2) ...
 
Selecting previously unselected package libgettextpo0:armhf.
 
Preparing to unpack .../libgettextpo0_0.19.3-2_armhf.deb ...
 
Unpacking libgettextpo0:armhf (0.19.3-2) ...
 
Selecting previously unselected package m4.
 
Preparing to unpack .../archives/m4_1.4.17-4_armhf.deb ...
 
Unpacking m4 (1.4.17-4) ...
 
Selecting previously unselected package autoconf.
 
Preparing to unpack .../autoconf_2.69-8_all.deb ...
 
Unpacking autoconf (2.69-8) ...
 
Selecting previously unselected package autotools-dev.
 
Preparing to unpack .../autotools-dev_20140911.1_all.deb ...
 
Unpacking autotools-dev (20140911.1) ...
 
Selecting previously unselected package automake.
 
Preparing to unpack .../automake_1%3a1.14.1-4_all.deb ...
 
Unpacking automake (1:1.14.1-4) ...
 
Selecting previously unselected package autopoint.
 
Preparing to unpack .../autopoint_0.19.3-2_all.deb ...
 
Unpacking autopoint (0.19.3-2) ...
 
Selecting previously unselected package gettext.
 
Preparing to unpack .../gettext_0.19.3-2_armhf.deb ...
 
Unpacking gettext (0.19.3-2) ...
 
Selecting previously unselected package intltool-debian.
 
Preparing to unpack .../intltool-debian_0.35.0+20060710.1_all.deb ...
 
Unpacking intltool-debian (0.35.0+20060710.1) ...
 
Selecting previously unselected package po-debconf.
 
Preparing to unpack .../po-debconf_1.0.16+nmu3_all.deb ...
 
Unpacking po-debconf (1.0.16+nmu3) ...
 
Selecting previously unselected package debhelper.
 
Preparing to unpack .../debhelper_9.20150101_all.deb ...
 
Unpacking debhelper (9.20150101) ...
 
Selecting previously unselected package libtool.
 
Preparing to unpack .../libtool_2.4.2-1.11_all.deb ...
 
Unpacking libtool (2.4.2-1.11) ...
 
Selecting previously unselected package dh-autoreconf.
 
Preparing to unpack .../dh-autoreconf_10_all.deb ...
 
Unpacking dh-autoreconf (10) ...
 
Selecting previously unselected package libasprintf-dev:armhf.
 
Preparing to unpack .../libasprintf-dev_0.19.3-2_armhf.deb ...
 
Unpacking libasprintf-dev:armhf (0.19.3-2) ...
 
Selecting previously unselected package libgettextpo-dev:armhf.
 
Preparing to unpack .../libgettextpo-dev_0.19.3-2_armhf.deb ...
 
Unpacking libgettextpo-dev:armhf (0.19.3-2) ...
 
Selecting previously unselected package libltdl-dev:armhf.
 
Preparing to unpack .../libltdl-dev_2.4.2-1.11_armhf.deb ...
 
Unpacking libltdl-dev:armhf (2.4.2-1.11) ...
 
Selecting previously unselected package libsys-hostname-long-perl.
 
Preparing to unpack .../libsys-hostname-long-perl_1.4-3_all.deb ...
 
Unpacking libsys-hostname-long-perl (1.4-3) ...
 
Selecting previously unselected package libmail-sendmail-perl.
 
Preparing to unpack .../libmail-sendmail-perl_0.79.16-1_all.deb ...
 
Unpacking libmail-sendmail-perl (0.79.16-1) ...
 
Selecting previously unselected package libudev-dev:armhf.
 
Preparing to unpack .../libudev-dev_215-17+deb8u4_armhf.deb ...
 
Unpacking libudev-dev:armhf (215-17+deb8u4) ...
 
Processing triggers for install-info (5.2.0.dfsg.1-6) ...
 
Processing triggers for man-db (2.7.0.2-5) ...
 
Setting up libunistring0:armhf (0.9.3-5.2) ...
 
Setting up libgettextpo0:armhf (0.19.3-2) ...
 
Setting up m4 (1.4.17-4) ...
 
Setting up autoconf (2.69-8) ...
 
Setting up autotools-dev (20140911.1) ...
 
Setting up automake (1:1.14.1-4) ...
 
update-alternatives: using /usr/bin/automake-1.14 to provide /usr/bin/automake (automake) in auto mode
 
Setting up autopoint (0.19.3-2) ...
 
Setting up gettext (0.19.3-2) ...
 
Setting up intltool-debian (0.35.0+20060710.1) ...
 
Setting up po-debconf (1.0.16+nmu3) ...
 
Setting up debhelper (9.20150101) ...
 
Setting up libtool (2.4.2-1.11) ...
 
Setting up dh-autoreconf (10) ...
 
Setting up libasprintf-dev:armhf (0.19.3-2) ...
 
Setting up libgettextpo-dev:armhf (0.19.3-2) ...
 
Setting up libltdl-dev:armhf (2.4.2-1.11) ...
 
Setting up libsys-hostname-long-perl (1.4-3) ...
 
Setting up libmail-sendmail-perl (0.79.16-1) ...
 
Setting up libudev-dev:armhf (215-17+deb8u4) ...
 
Processing triggers for libc-bin (2.19-18+deb8u4) ...
 
  
 
=== Install perl modules ===
 
=== Install perl modules ===
Line 890: Line 223:
 
and insert this line in the "User privilege specification" section:
 
and insert this line in the "User privilege specification" section:
  
  www-data ALL=NOPASSWD: /usr/local/bin/2591, /usr/bin/nice, /home/hivetool/temperhum.sh, /usr/local/bin/hx711, /usr/local/bin/Seeed_DHT22
+
  www-data ALL=NOPASSWD: /home/hivetool/hive.sh, /home/hivetool/hx711pyB.sh, /home/hivetool/hx711.sh,  /home/hivetool/HX711a128.py, /home/hivetool/hx711py.sh, /usr/local/bin/2591, /usr/local/bin/2561, /usr/bin/nice, /home/hivetool/temperhum.sh, /usr/local/bin/hx711, /usr/local/bin/Seeed_DHT22
  
 
===Create SQLite database===
 
===Create SQLite database===
Line 906: Line 239:
 
  sudo ln -s /home/hivetool/hivetool_raw.db /var/www/html/
 
  sudo ln -s /home/hivetool/hivetool_raw.db /var/www/html/
  
===phpLiteAdmin===
+
===phpLiteAdmin ver 1.9.6===
 
Install SQLite database administration tools.
 
Install SQLite database administration tools.
 +
https://www.phpliteadmin.org/download/
  
 
  sudo apt-get install php5 php5-sqlite
 
  sudo apt-get install php5 php5-sqlite
Line 913: Line 247:
 
  sudo mkdir admin
 
  sudo mkdir admin
 
  cd admin
 
  cd admin
  sudo wget https://bitbucket.org/phpliteadmin/public/downloads/phpliteAdmin_v1-9-5.zip
+
  sudo cp /home/downloads/phpLiteAdmin_v1-9-6.zip .
  sudo unzip phpliteAdmin_v1-9-5.zip
+
  sudo unzip phpLiteAdmin_v1-9-6.zip
  
 
http://www.raspitux.de/en/using-phpliteadmin-with-raspberry-pi/#respond
 
http://www.raspitux.de/en/using-phpliteadmin-with-raspberry-pi/#respond
Line 945: Line 279:
 
  #sudo git clone https://github.com/rcrum003/TEMPered-v6-2015
 
  #sudo git clone https://github.com/rcrum003/TEMPered-v6-2015
 
  #cd TEMPered-v6-2015
 
  #cd TEMPered-v6-2015
 +
 +
Note: For TEMPered-v6-2015 in ccmake set
 +
HIDAPI_HEADER_DIR                /usr/local/include/hidapi
 +
HIDAPI_LIB                      /usr/local/lib/libhidapi-hidraw.so
 +
  
 
  git clone git://github.com/mushisushi/TEMPered/
 
  git clone git://github.com/mushisushi/TEMPered/
Line 964: Line 303:
 
  sudo ldconfig
 
  sudo ldconfig
  
===Install Broadcom 2835 Library===
+
===Install Broadcom 2835 Library ver 1.5===
Download and install the bcm2835 library:
+
Download and install the bcm2835 library: https://gist.github.com/annem/3183536
 +
 
 
  cd /home/downloads
 
  cd /home/downloads
  curl -o bcm2835-1.42.tar.gz http://www.airspayce.com/mikem/bcm2835/bcm2835-1.42.tar.gz
+
  wget http://67.192.60.197/mikem/bcm2835/bcm2835-1.5.tar.gz
  tar xvf bcm2835-1.42.tar.gz
+
  tar xvfz bcm2835-1.5.tar.gz
  cd bcm2835-1.42
+
  cd bcm2835-1.5
 
  ./configure
 
  ./configure
 
  make
 
  make
 
  sudo make check
 
  sudo make check
 
  sudo make install
 
  sudo make install
 
http://www.airspayce.com/mikem/bcm2835/
 
  
 
=== Install i2c support===
 
=== Install i2c support===
Line 982: Line 320:
 
#run raspi-config and turn on i2c
 
#run raspi-config and turn on i2c
  
=== Install wiringPi library===
+
=== Install wiringPi library ver 2.32===
 
#get wiringPi code from github and compile it
 
#get wiringPi code from github and compile it
 
#: cd /home/downloads
 
#: cd /home/downloads
Line 991: Line 329:
 
#: gpio -v
 
#: gpio -v
 
#: gpio readall
 
#: gpio readall
 +
 +
gpio -v
 +
gpio version: 2.32
 +
Copyright (c) 2012-2015 Gordon Henderson
  
 
http://wiringpi.com/download-and-install/
 
http://wiringpi.com/download-and-install/
Line 1,006: Line 348:
 
#: make
 
#: make
 
#: sudo cp Seeed_DHT22 /usr/local/bin
 
#: sudo cp Seeed_DHT22 /usr/local/bin
 +
 +
Python DHT22 code from Adafruit
 +
 +
sudo apt-get install python-dev
 +
cd /home/downloads
 +
git clone https://github.com/adafruit/Adafruit_Python_DHT.git
 +
cd Adafruit_Python_DHT
 +
sudo python setup.py install
 +
cd examples
 +
python AdafruitDHT.py
 +
 +
 +
===DHTxx Temperature/Humidity Sensor===
 +
This code uses the PiGPIO libraries (pigpiod).
 +
 +
#Download the DHT11/21/22/33/44 Sensor code from http://abyz.co.uk/rpi/pigpio/code/DHTXXD.zip
 +
#Unzip
 +
#Compile
 +
#Test
 +
 +
mkdir /home/downloads/DHTxx
 +
mv /home/pi/Downloads/DHTXXD.zip /home/downloads/DHTxx
 +
cd /home/downloads/DHTxx
 +
unzip DHTXXD.zip
 +
gcc -Wall -pthread -o DHTXXD test_DHTXXD.c DHTXXD.c -lpigpiod_if2
 +
./DHTXXD -g22
 +
./DHTXXD -g27
 +
sudo cp DHTXXD /usr/local/bin
 +
 +
Note that this code uses the Broadcom GPIO numbering so
 +
Ras Pi GPIO 2  <=> Broadcom GPIO 27
 +
Ras Pi GPIO 3  <=> Broadcom GPIO 22
  
 
===HX711 weight ADC===
 
===HX711 weight ADC===
 
hx711wp
 
hx711wp
  
Note: The original hx711 code has been modified to use the wiringPi library and a bug fixed.
+
Note: The original hx711 code has been modified to use the wiringPi library and to fix 2 bugs.
  
 
#Download the software from gitHub
 
#Download the software from gitHub
Line 1,020: Line 394:
 
#Copy hx711 command to /usr/local/bin:
 
#Copy hx711 command to /usr/local/bin:
 
#: sudo cp hx711wp /usr/local/bin/hx711
 
#: sudo cp hx711wp /usr/local/bin/hx711
 +
#To read the battery voltage, copy hx711wp_chanB command to /usr/local/bin:
 +
#: sudo cp hx711wp_chanB /usr/local/bin/hx711wp_chanB
  
 
===TLS2591 Lux Sensor===
 
===TLS2591 Lux Sensor===
Line 1,039: Line 415:
 
  #
 
  #
 
  # Check the server status. Kill process after 1 minute.
 
  # Check the server status. Kill process after 1 minute.
  0,5,10,15,20,25,30,35,40,45,50,55 * * * * timeout -s KILL 1m /home/hivetool/server_status.sh > /var/www/server_status.txt
+
  4,9,14,19,24,29,34,39,44,49,54,59 * * * * timeout -s KILL 1m /home/hivetool/server_status.sh > /var/www/server_status.txt
  
 
===Video===
 
===Video===
 
Install VLC media software. '''Note that for the camera to work, it must be enabled by running raspi-config.'''
 
Install VLC media software. '''Note that for the camera to work, it must be enabled by running raspi-config.'''
  apt-get install vlc
+
  sudo apt-get install vlc
  
 
To automatically start the video streaming using Real Time Streaming Protocol to port 8554, add to /etc/rc.local
 
To automatically start the video streaming using Real Time Streaming Protocol to port 8554, add to /etc/rc.local
Line 1,056: Line 432:
 
===Access Point===
 
===Access Point===
  
  apt-get install hostapd isc-dhcp-server
+
  sudo apt-get install hostapd isc-dhcp-server
  
 
https://learn.adafruit.com/setting-up-a-raspberry-pi-as-a-wifi-access-point/install-software
 
https://learn.adafruit.com/setting-up-a-raspberry-pi-as-a-wifi-access-point/install-software
Line 1,067: Line 443:
 
  sudo apt-get install gerbv
 
  sudo apt-get install gerbv
 
  sudo apt-get install zip
 
  sudo apt-get install zip
 +
  
 
===xrdp===
 
===xrdp===
  
sudo apt-get install xrdp
+
uninstall RealVNC (This is a work around as now realvnc-vnc-server comes installed and breaks xrdp.  xrdp is currently favored over realvnc as xrdp works with Microsoft Windows.)
 +
 
 +
uninstall RealVNC and install xrdp
 +
 
 +
apt-get purge realvnc-vnc-server
 +
sudo apt-get install xrdp
 +
 
 +
fix mouse pointer
 +
vi .xsessionrc
 +
xsetroot -cursor_name left_ptr&
 +
 
 +
http://raspberrypi.stackexchange.com/questions/56413/error-problem-connecting-to-raspberry-pi-3-with-xrdp
  
 
===open62541===
 
===open62541===
 +
  
 
  sudo git clone git://github.com/open62541/open62541
 
  sudo git clone git://github.com/open62541/open62541
 +
 
  # ### sudo apt-get install git build-essential gcc pkg-config cmake python python-lxml
 
  # ### sudo apt-get install git build-essential gcc pkg-config cmake python python-lxml
 
  sudo apt-get install cmake cmake-data python-lxml
 
  sudo apt-get install cmake cmake-data python-lxml
Line 1,089: Line 479:
 
  sudo make
 
  sudo make
 
   
 
   
# select additional features
+
select additional features
  sudo ccmake .. # enter g to build and exit
+
  sudo ccmake ..  
 +
 
 +
press c to configure
 +
press g to generate and exit
 
  sudo make
 
  sudo make
  
Line 1,097: Line 490:
 
  sudo apt-get install matchbox
 
  sudo apt-get install matchbox
  
 +
===Install I2S support===
 +
In /boot/config.txt uncomment dtparam=i2s=on:
 +
 +
sudo vi /boot/config.txt
 +
# Uncomment to enable I2S MEMs microphone 6-9-16 AO
 +
dtparam=i2s=on
 +
 +
sudo reboot
 +
 +
Get asoc-i2s-loader code:
 +
cd /home/downloads
 +
git clone https://github.com/skakri/asoc-i2s-loader
 +
cd asoc-i2s-loader
 +
 +
 +
In /sys/kernel/debug/asoc/platforms get the platform and device name.
 +
cat /sys/kernel/debug/asoc/platforms
 +
3f203000.i2s
 +
snd-soc-dummy
 +
 
 +
'''Note: assoc/platform will not exist until dtparam=i2s=on is uncommented and the system rebooted!'''
 +
 +
In asoc-i2s-loader.c change .platform = "20203000.i2s" to 3f203000.i2s (two places)
 +
 +
Install the kernel headers to compile and the compile:
 +
sudo apt-get install raspberrypi-kernel-header
 +
make
 +
 +
in /etc/modprobe.d/raspi-blacklist.conf
 +
blacklist snd_soc_wm8804
 +
blacklist snd_soc_pcm512x
 +
blacklist snd_soc_tas5713
 +
 +
 +
To record:
 +
arecord -D hw:0 -c2 -r 48000 -f S32_LE -t wav -v file.wav
  
 
===Install Hivecontrol===
 
===Install Hivecontrol===
Line 1,114: Line 543:
  
 
1. Remove the SD card from the Pi and on another computer, copy the image to a file:  
 
1. Remove the SD card from the Pi and on another computer, copy the image to a file:  
  dd bs=4M if=/dev/sdb of=/home/downloads/hivetool073.img
+
  dd bs=4M if=/dev/sdb of=/home/downloads/hivetool080rc2.img
 
2. Shrink the image:
 
2. Shrink the image:
 
  http://sirlagz.net/2013/03/10/script-automatic-rpi-image-downsizer/
 
  http://sirlagz.net/2013/03/10/script-automatic-rpi-image-downsizer/
 
3. Compress the image using zip:
 
3. Compress the image using zip:
  zip 2016-02-09-raspbian-hivetool.zip hivetool073.img
+
  zip hivetool080rc2.img.zip hivetool080rc2.img
 +
 
 +
 
 +
bash-4.2# dd bs=40M  if=/dev/sdb of=/home/downloads/hivetool080rc2.img
 +
  379+1 records in
 +
  379+1 records out
 +
  15931539456 bytes (16 GB) copied, 596.492 s, 26.7 MB/s
 +
 
 +
./autosizer.sh hivetool074.img
 +
e2fsck 1.42.6 (21-Sep-2012)
 +
Pass 1: Checking inodes, blocks, and sizes
 +
Inodes that were part of a corrupted orphan linked list found.  Fix<y>? yes
 +
Inode 13283 was part of the orphaned inode list.  FIXED.
 +
            ...
 +
Inode 392946 was part of the orphaned inode list.  FIXED.
 +
Pass 2: Checking directory structure
 +
Pass 3: Checking directory connectivity
 +
Pass 4: Checking reference counts
 +
Pass 5: Checking group summary information
 +
 
 +
/dev/loop0: ***** FILE SYSTEM WAS MODIFIED *****
 +
/dev/loop0: 141123/971040 files (0.2% non-contiguous), 1308188/3872384 blocks
 +
resize2fs 1.42.6 (21-Sep-2012)
 +
resize2fs 1.42.6 (21-Sep-2012)
 +
Resizing the filesystem on /dev/loop0 to 1412558 (4k) blocks.
 +
Begin pass 2 (max = 420793)
 +
Relocating blocks            XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 +
Begin pass 3 (max = 119)
 +
Scanning inode table          XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 +
Begin pass 4 (max = 14259)
 +
Updating inode references    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 +
The filesystem on /dev/loop0 is now 1412558 blocks long.
 +
 
 +
# zip  hivetool080rc2.img.zip hivetool080rc2.img
 +
  adding: hivetool080rc2.img
 +
 +
(deflated 58%)
 +
 
 +
bash-4.2# md5sum hivetool080rc2.img.zip
 +
  7cdca1e73a5d81e3c70909961c6ea4b9  hivetool080rc2.img.zip
 +
 +
bash-4.2# sha1sum hivetool074.img.zip  
 +
  ff504657257fdf13905a1ad24fd2f2eab5af1562  hivetool074.img.zip
 +
 
 +
$ md5sum hivetool074.img
 +
  2e26e8f266870cebcd51bf365d861559  hivetool074.img
 +
 +
$ sha1sum hivetool074.img
 +
  c855c8c1175866bd52ed8143490d320011323108  hivetool074.img
 +
 +
$ ls -l hivetool074*
 +
  -rw-r--r-- 1 root root 5856092672 Feb 21 20:01 hivetool074.img
 +
  -rw-r--r-- 1 root root 2474147900 Feb 21 20:07 hivetool074.img.zip

Latest revision as of 22:04, 14 December 2017

Hivetool 0.7.4 image is now available

Download it here; https://drive.google.com/file/d/0B_3xqxGS2psWWHhyMUNjbW4tSHc/view?usp=sharing

It does not include HiveControl like the HiveConTool version.

hivetool074.img      5856092672 bytes
hivetool074.img.zip  2474147900 bytes

md5sum  hivetool074.img  2e26e8f266870cebcd51bf365d861559
sha1sum hivetool074.img  c855c8c1175866bd52ed8143490d320011323108

md5sum  hivetool074.img.zip  7cdca1e73a5d81e3c70909961c6ea4b9
sha1sum hivetool074.img.zip  ff504657257fdf13905a1ad24fd2f2eab5af1562


Important Notes:

  1. May not unzip on Apple Mac using Unarchiver.
  2. Image is greater than 4 gig so it will not fit on FAT32 formatted memory device.
  3. It doesn't automatically expand to fit the memory card.

BUGS

  1. The HX711 python driver based on PIGPIO library (HX711py) doesn't work on the model A+ or B+. Use the old HX711 driver based on the wiringPI library.



0.7.4

Bug Fixes

1. Set GPU_MEM, GPU_MEM_256, GPU_MEM_512, and GPU_MEM_1024 for different Pi models in config.txt. Maybe:

GPU_MEM=64
GPU_MEM_256=64
GPU_MEM_512=128
GPU_MEM_1024=256

2. Put sanity checks, retrying, and error logging in dht22.sh to prevent bad readings from DHT22. See http://hivetool.org/d/comment/151#comment-151 for details.

3, Update the SQL database creation scripts to reflect the new schema with battery voltage.

4. Use hive_stats3wDownload.pl and NOT hive_stats4wDownload.

5. Fix hive config.pl so it will insert a NULL instead on nothing in the hive_parameters table if hive elevation is left blank.

6. Change DHT22 code to Adafruit

7. Fix error at end of hivetool.log if hive_command.pl is not executable.

Feature Request

  1. add latest HiveControl software, debug HTML conflicts, restrict both apps from uploading
  2. implement battery voltage monitoring using channel B of HX711, send it to hivetool.net and display it.
  3. add ability to upgrade & update, github installer like hivecontrol, log & display current version & rev.
  4. send host IP and MAC addresses to hivetool.net, use MAC for registration
  5. add scale calibration layman wizard (accept current zero weight, accept known weight)
  6. add ability to auto register with online hivetool.net database, minimize server blacklisting

0.7.3

Bug Fixes

  1. Done replace hx711 and dth22 code with fixed versions.
  2. Done add export LC_NUMERIC="en_US.UTF-8" to hive.sh
  3. Done don't remove python tools when removing bloatware. Keep: wolfram-engine - a scientific platform, Idle and Idle3 - python language editors


Feature Request

  1. Done add Ryans Hive Controller code, not yet available in 074
  2. Done add xrdp, open62541 packages
  3. Done add Data Acquisition Daemon (DAD) code

Dad supports battery voltage monitoring and the rain gauge.

0.7.2

  1. Done Test most recent raspbian distro Jessie (4.1 Kernel)
  2. Done Removal of bloatware from Raspbian (games, educational, etc.)
  3. Done Hivetool Support Pi & Pi2 (auto detect preferred)
  4. Automatic removal of erroneous data from sensors
  5. Done Basic navigation from webserver index.html, especially config.pl and Hivestats with download.
  6. Menu driven selection & configuration of sensors (gpio 2,3 for DHT22s preassigned by menu default)
  7. Menu driven setup of essential parameters with choices that don't crash app when saving, grey out unused.
  8. Done Sensor calibration provisions (gain, offset)
  9. Display instantaneous sensor readings from config screen with read button
  10. Preload & configure Apache Webserver and database, Hivetool, sensor drivers for proven sensors.
  11. Update local & online hivestats graphs to display lux trend pen, (use latest hivestats with enhanced autoscaling for local)
  12. Network / wifi support out of the box seems to work well now, handle configuration on router side with DHCP reservation as may be needed.
  13. Add configuration menu item for naming pi, same as hivestats name?
  14. Minimize need to enter Raspiconfig, can timezone and time all be handled in hivetool config?
  15. Done Enable i2c & serial.


How the image was created

Get latest Jessie image

Download, verify the SHA-1 checksum, unzip, burn image.

Verify the checksum:

sha1sum 2016-05-10-raspbian-jessie.zip
66a50545358e80229d77ebba89ab01f1c0fb4a02

Unzip the image and copy it to the SD card

unzip 2016-05-10-raspbian-jessie.zip
dd bs=4M if=2016-05-10-raspbian-jessie.img of=/dev/sdb

Boot

Jessie boots directly into the window system. Menu -> Preferences->Raspberry Pi Configuration

Set up Wi-Fi

1. Add your network information to /etc/wpa_supplicant/wpa_supplicant.conf. For an unencrypted open network with an ESSID of dlink:

vi /etc/wpa_supplicant/wpa_supplicant.conf
network={
ssid="dlink"
key_mgmt=NONE

auth_alg=OPEN }

2. Wi-Fi auto reconnect to AP

Go to /etc/ifplugd/action.d/ and copy the ifupdown file to ifupdown.org

cp /etc/ifplugd/action.d/ifupdown /etc/ifplugd/action.d/ifupdown.org

Then copy the ifupdown.sh script provided with wpa supplicant to /etc/ifplugd/action.d/

cp /etc/wpa_supplicant/ifupdown.sh  /etc/ifplugd/action.d/ifupdown

http://raspberrypi.stackexchange.com/questions/4120/how-to-automatically-reconnect-wifi

Update, upgrade

update your system's package list and then upgrade all your installed packages to their latest versions:

sudo apt-get update
sudo apt-get dist-upgrade

*** WARNING! THIS IS A BAD IDEA! IT MAY BREAK THE GPIO ***

rpi-update should probably only be run if you need to install the bleeding edge experimental firmware. It has a history of breaking the GPIO.

Update the GPU firmware

sudo apt-get install rpi-update
sudo rpi-update

Remove packages we don't need

sudo apt-get remove --purge penguinspuzzle scratch dillo squeak-vm squeak-plugins-scratch sonic-pi netsurf-gtk netsurf-common
sudo apt-get autoremove
sudo apt-get clean
rm -rf /home/pi/python_games
sudo rm -rf /opt/minecraft-pi

https://project.altservice.com/issues/418 NO! Don't do this if you want to use the video camera: sudo rm -rf /opt/vc



Install packages we need

sudo apt-get -y install gawk bc apache2 libusb-dev libgd-graph-perl libexpat1-dev sqlite3
sudo apt-get install dh-autoreconf libudev-dev libusb-1
pi@raspberrypi:~ $  sudo apt-get install dh-autoreconf libudev-dev libusb-1
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package libusb-1

Oops. What happened to libusb-1? Hope it is not needed ... OK, We'll go on without it ...

sudo apt-get install dh-autoreconf libudev-dev 

Install perl modules

sudo cpan GD::Text GD::Graph Date::Format XML::Simple DBI DBD::SQLite

Install HiveTool software

Create symbolic links to the hivetool log files:

sudo ln -s /home/hivetool/hivetool_raw.db /var/www/html
sudo ln -s /home/hivetool/hive.conf /var/www/html
sudo ln -s /home/hivetool/hivetool.log /var/www/html

Patch perl module GD::Graph

The Perl Module, GD::Graph needs a patch to correctly draw a graph with two y axes. Note that the target directory changes with each new perl version. This time it is 5.20.2. Copy the patched file to it's proper location:

sudo cp /home/downloads/axestype.pm /usr/local/share/perl/5.20.2/GD/Graph/

Web Server

Configure apache

  1. Link the cgi.load and include.load module to mods-enabled
    ln -s /etc/apache2/mods-available/cgi.load /etc/apache2/mods-enabled
    ln -s /etc/apache2/mods-available/include.load /etc/apache2/mods-enabled
  2. Add .pl to AddHandler cgi-script
    sudo vi /etc/apache2/mods-enabled/mime.conf
    uncomment #AddHandler cgi-script .cgi (around line 219) and add .pl so it looks like:
    AddHandler cgi-script .cgi .pl
  3. add Includes and +ExecCGI to Options:
    sudo vi /etc/apache2/apache2.conf
    In stanza <Directory /var/www/>
    change
    Options Indexes FollowSymLinks
    to
    Options Indexes FollowSymLinks Includes ExecCGI
  4. Add index.shtml to DirectoryIndex:
    sudo vi /etc/apache2/mods-enabled/dir.conf
    Change
    DirectoryIndex index.html index.cgi index.pl index.php index.xhtml index.htm
    to
    DirectoryIndex index.html index.cgi index.pl index.php index.xhtml index.htm index.shtml
  5. Set up apache to listen on port 8080 if using port forwarding:
    sudo vi /etc/apache2/ports.conf
    add Listen 8080
  6. Restart Apache
sudo apachectl restart   or      sudo/etc/rc4.d/S02apache2 restart

Set sudo user privileges for Apache

This is necessary to allow config.pl to read the sensors. Run visudo to edit the sudo config file:

sudo visudo

and insert this line in the "User privilege specification" section:

www-data ALL=NOPASSWD: /home/hivetool/hive.sh, /home/hivetool/hx711pyB.sh, /home/hivetool/hx711.sh,  /home/hivetool/HX711a128.py, /home/hivetool/hx711py.sh, /usr/local/bin/2591, /usr/local/bin/2561, /usr/bin/nice, /home/hivetool/temperhum.sh, /usr/local/bin/hx711, /usr/local/bin/Seeed_DHT22

Create SQLite database

cd /home/hivetool
sqlite3 hivetool_raw.db
sqlite> .read create_hivetool_sqlite.sql
sqlite> .quit

Make it writable or config.pl will fail to save to the database.

sudo chmod a+w /home/hivetool/hivetool_raw.db
sudo chmod a+w /home/hivetool

Create a symbolic link to /home/hivetool/hivetool_raw.db from /var/www/html so hive_stats.pl and hive_graphX.pl can access the database:

sudo ln -s /home/hivetool/hivetool_raw.db /var/www/html/

phpLiteAdmin ver 1.9.6

Install SQLite database administration tools. https://www.phpliteadmin.org/download/

sudo apt-get install php5 php5-sqlite
cd /var/www/html
sudo mkdir admin
cd admin
sudo cp /home/downloads/phpLiteAdmin_v1-9-6.zip .
sudo unzip phpLiteAdmin_v1-9-6.zip

http://www.raspitux.de/en/using-phpliteadmin-with-raspberry-pi/#respond

sudo cp phpliteadmin.config.sample.php phpliteadmin.config.php
vi phpliteadmin.config.php

change

$directory = '.';  

to

$directory = '..';

Install TEMPerHUM software

sudo apt-get update
sudo apt-get install dh-autoreconf libudev-dev libusb-1.0-0-dev cmake-curses-gui
cd /home/downloads
sudo git clone git://github.com/signal11/hidapi
cd hidapi
sudo ./bootstrap
sudo ./configure
sudo make
sudo make install
cd ..
#sudo git clone git://github.com/edorfaus/TEMPered
#cd TEMPered
#sudo git clone https://github.com/rcrum003/TEMPered-v6-2015
#cd TEMPered-v6-2015

Note: For TEMPered-v6-2015 in ccmake set

HIDAPI_HEADER_DIR                /usr/local/include/hidapi
HIDAPI_LIB                       /usr/local/lib/libhidapi-hidraw.so 


git clone git://github.com/mushisushi/TEMPered/
sudo ccmake .

Then the sub commands: "c" to configure then "g" to save and go

sudo make
sudo make install

Add /usr/local/lib/arm-linux-gnueabihf/ to /etc/ld.so.conf

sudo vi /etc/ld.so.conf

So it looks like this:

include /etc/ld.so.conf.d/*.conf
/usr/local/lib/arm-linux-gnueabihf/


Run ldconfig to pick up the new libraries

sudo ldconfig

Install Broadcom 2835 Library ver 1.5

Download and install the bcm2835 library: https://gist.github.com/annem/3183536

cd /home/downloads
wget http://67.192.60.197/mikem/bcm2835/bcm2835-1.5.tar.gz
tar xvfz bcm2835-1.5.tar.gz
cd bcm2835-1.5
./configure
make
sudo make check
sudo make install

Install i2c support

  1. Install i2c tools
    apt-get install i2c-tools
  2. run raspi-config and turn on i2c

Install wiringPi library ver 2.32

  1. get wiringPi code from github and compile it
    cd /home/downloads
    git clone git://git.drogon.net/wiringPi
    cd wiringPi
    ./build
  2. Test
    gpio -v
    gpio readall
gpio -v
gpio version: 2.32
Copyright (c) 2012-2015 Gordon Henderson

http://wiringpi.com/download-and-install/

DHT22 Temperature/Humidity Sensor

Groove Seeed - DHT22 with modified code. Note that the code has been modified to return the temperature and humidity in floating point instead of having to divide it by 10, and a few other "improvements".

  1. Install wiringPi libraries
  2. Get the DHT22 software
    cd /home/downloads
    sudo git clone https://github.com/Seeed-Studio/Grove-RaspberryPi.git
    cd Grove-RaspberryPi/Grove\ -\ Temperature\ and\ Humidity\ Sensor\ Pro
    make
    sudo cp Seeed_DHT22 /usr/local/bin

Python DHT22 code from Adafruit

sudo apt-get install python-dev
cd /home/downloads
git clone https://github.com/adafruit/Adafruit_Python_DHT.git
cd Adafruit_Python_DHT
sudo python setup.py install
cd examples
python AdafruitDHT.py


DHTxx Temperature/Humidity Sensor

This code uses the PiGPIO libraries (pigpiod).

  1. Download the DHT11/21/22/33/44 Sensor code from http://abyz.co.uk/rpi/pigpio/code/DHTXXD.zip
  2. Unzip
  3. Compile
  4. Test
mkdir /home/downloads/DHTxx
mv /home/pi/Downloads/DHTXXD.zip /home/downloads/DHTxx
cd /home/downloads/DHTxx
unzip DHTXXD.zip
gcc -Wall -pthread -o DHTXXD test_DHTXXD.c DHTXXD.c -lpigpiod_if2
./DHTXXD -g22
./DHTXXD -g27
sudo cp DHTXXD /usr/local/bin

Note that this code uses the Broadcom GPIO numbering so Ras Pi GPIO 2 <=> Broadcom GPIO 27 Ras Pi GPIO 3 <=> Broadcom GPIO 22

HX711 weight ADC

hx711wp

Note: The original hx711 code has been modified to use the wiringPi library and to fix 2 bugs.

  1. Download the software from gitHub
    cd /home/downloads
    sudo git clone https://github.com/ggurov/hx711
  2. replace hx711.c with hx711wp.c and add locking.h
  3. compile
    gcc -o hx711wp hx711wp.c -lwiringPi
  4. Copy hx711 command to /usr/local/bin:
    sudo cp hx711wp /usr/local/bin/hx711
  5. To read the battery voltage, copy hx711wp_chanB command to /usr/local/bin:
    sudo cp hx711wp_chanB /usr/local/bin/hx711wp_chanB

TLS2591 Lux Sensor

2591 Adafruit with modified code.

-rw-r--r-- 1 root root 10439 Aug  3 01:36 2591a.cpp
-rw-r--r-- 1 root root  3303 Aug  3 01:36 2591a.h
-rw-r--r-- 1 root root  1509 Aug  3 01:36 2591_pi_2.cpp
gcc 2591_pi_2.cpp 2591a.cpp -lwiringPi -o 2591 
cp 2591 /usr/local/bin

Add crontab entries

Edit crontab:

sudo crontab -e

Add to crontab:

# Check hive instruments every 5 minutes. Kill process after 3 1/2 minutes.
0,5,10,15,20,25,30,35,40,45,50,55 * * * * timeout -s KILL 3.5m /home/hivetool/hive.sh
#
# Check the server status. Kill process after 1 minute.
4,9,14,19,24,29,34,39,44,49,54,59 * * * * timeout -s KILL 1m /home/hivetool/server_status.sh > /var/www/server_status.txt

Video

Install VLC media software. Note that for the camera to work, it must be enabled by running raspi-config.

sudo apt-get install vlc

To automatically start the video streaming using Real Time Streaming Protocol to port 8554, add to /etc/rc.local

# start video stream
su pi /home/hivetool/stream_video.sh

/home/hivetool/stream_video.sh should be:

raspivid -n -o - -t 0 -w 800 -h 400 -fps 24 |cvlc -vvv stream:///dev/stdin --sout '#rtp{sdp=rtsp://:8554}' :demux=h264

This method uses raspivid to streams video from the PiCam to vlc where is can be accessed with videoLAN, a free and open souce media player for Apple, Linux, Microsoft platforms at port 8554 using RTSP://hive.ip:8554

Access Point

sudo apt-get install hostapd isc-dhcp-server

https://learn.adafruit.com/setting-up-a-raspberry-pi-as-a-wifi-access-point/install-software

gEDA Schematic/PCB layout software

sudo apt-get update
sudo apt-get install geda
sudo apt-get install pcb
sudo apt-get install gerbv
sudo apt-get install zip


xrdp

uninstall RealVNC (This is a work around as now realvnc-vnc-server comes installed and breaks xrdp. xrdp is currently favored over realvnc as xrdp works with Microsoft Windows.)

uninstall RealVNC and install xrdp

apt-get purge realvnc-vnc-server
sudo apt-get install xrdp

fix mouse pointer

vi .xsessionrc
xsetroot -cursor_name left_ptr&

http://raspberrypi.stackexchange.com/questions/56413/error-problem-connecting-to-raspberry-pi-3-with-xrdp

open62541

sudo git clone git://github.com/open62541/open62541
# ### sudo apt-get install git build-essential gcc pkg-config cmake python python-lxml
sudo apt-get install cmake cmake-data python-lxml
# enable additional features
sudo apt-get install libexpat1-dev # for XML-encodingi  ### already done
sudo apt-get install liburcu-dev # for multithreading
sudo apt-get install check # for unit tests
sudo apt-get install graphviz doxygen # for documentation generation 

sudo cd open62541
sudo mkdir build
sudo cd build
sudo cmake ..
sudo make

select additional features

sudo ccmake .. 

press c to configure press g to generate and exit

sudo make

Install touchscreen pop up keyboard support

sudo apt-get install matchbox

Install I2S support

In /boot/config.txt uncomment dtparam=i2s=on:

sudo vi /boot/config.txt
# Uncomment to enable I2S MEMs microphone 6-9-16 AO
dtparam=i2s=on

sudo reboot

Get asoc-i2s-loader code:

cd /home/downloads
git clone https://github.com/skakri/asoc-i2s-loader
cd asoc-i2s-loader


In /sys/kernel/debug/asoc/platforms get the platform and device name.

cat /sys/kernel/debug/asoc/platforms
3f203000.i2s
snd-soc-dummy
 

Note: assoc/platform will not exist until dtparam=i2s=on is uncommented and the system rebooted!

In asoc-i2s-loader.c change .platform = "20203000.i2s" to 3f203000.i2s (two places)

Install the kernel headers to compile and the compile:

sudo apt-get install raspberrypi-kernel-header
make

in /etc/modprobe.d/raspi-blacklist.conf

blacklist snd_soc_wm8804
blacklist snd_soc_pcm512x
blacklist snd_soc_tas5713


To record:

arecord -D hw:0 -c2 -r 48000 -f S32_LE -t wav -v file.wav

Install Hivecontrol

  1. Download
  2. Unzip in /home/hivetool2.
  3. Copy /home/hivetool2/www/public_html/ files to /var/www/html/hivecontrol
  4. Set up virtual host on port 81
  5. Add path to phpSQLiteadmin to database file.
hive-data.db -> /home/HiveControl-master/data/hive-data.db

This may not be right, should link to /home/hivetool2?

Install Desktop Background and Icons

Write Image

Copy the image to another computer:

1. Remove the SD card from the Pi and on another computer, copy the image to a file:

dd bs=4M if=/dev/sdb of=/home/downloads/hivetool080rc2.img

2. Shrink the image:

http://sirlagz.net/2013/03/10/script-automatic-rpi-image-downsizer/

3. Compress the image using zip:

zip hivetool080rc2.img.zip hivetool080rc2.img


bash-4.2# dd bs=40M  if=/dev/sdb of=/home/downloads/hivetool080rc2.img
 379+1 records in
 379+1 records out
 15931539456 bytes (16 GB) copied, 596.492 s, 26.7 MB/s
./autosizer.sh hivetool074.img 

e2fsck 1.42.6 (21-Sep-2012) Pass 1: Checking inodes, blocks, and sizes Inodes that were part of a corrupted orphan linked list found. Fix<y>? yes Inode 13283 was part of the orphaned inode list. FIXED.

           ...

Inode 392946 was part of the orphaned inode list. FIXED. Pass 2: Checking directory structure Pass 3: Checking directory connectivity Pass 4: Checking reference counts Pass 5: Checking group summary information

/dev/loop0: ***** FILE SYSTEM WAS MODIFIED ***** /dev/loop0: 141123/971040 files (0.2% non-contiguous), 1308188/3872384 blocks resize2fs 1.42.6 (21-Sep-2012) resize2fs 1.42.6 (21-Sep-2012) Resizing the filesystem on /dev/loop0 to 1412558 (4k) blocks. Begin pass 2 (max = 420793) Relocating blocks XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX Begin pass 3 (max = 119) Scanning inode table XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX Begin pass 4 (max = 14259) Updating inode references XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX The filesystem on /dev/loop0 is now 1412558 blocks long.

# zip  hivetool080rc2.img.zip hivetool080rc2.img 
 adding: hivetool080rc2.img

(deflated 58%)
bash-4.2# md5sum hivetool080rc2.img.zip 
 7cdca1e73a5d81e3c70909961c6ea4b9  hivetool080rc2.img.zip

bash-4.2# sha1sum hivetool074.img.zip 
 ff504657257fdf13905a1ad24fd2f2eab5af1562  hivetool074.img.zip
 
$ md5sum hivetool074.img
 2e26e8f266870cebcd51bf365d861559  hivetool074.img

$ sha1sum hivetool074.img
 c855c8c1175866bd52ed8143490d320011323108  hivetool074.img

$ ls -l hivetool074*
 -rw-r--r-- 1 root root 5856092672 Feb 21 20:01 hivetool074.img
 -rw-r--r-- 1 root root 2474147900 Feb 21 20:07 hivetool074.img.zip