Version 57 (modified by 9 years ago) (diff) | ,
---|
Baseline Minibot Raspbian Image Build Instructions
- Plan A: note that some of the below install steps may already be in the stock image, so don't worry about it if they're already installed)
- Download stock Raspian Jessie Light image
- Follow these directions for installing it to a uSD card
- Plan B:
- Download and install PiBakery which includes Jessie Light
- Install PuTTY and use it to connect to the Pi:
Hostname: raspberrypi.local Username: pi Password: raspberry
- Update to latest software (this will take a while):
sudo apt-get update sudo apt-get upgrade
- Install Oracle Java JDK. Do not use stock OpenJDK, its slower.
sudo apt-get install oracle-java8-jdk
- Then test, by running
java -version
. It should say java 8, not openjdk.
- Then test, by running
- Install Pi4J
mkdir -p ~/dev;cd ~/dev curl -s get.pi4j.com | sudo bash
- Test installation by checking version:
pi4j -v
- Install Oracle Device I/O (DIO) library
- sudo apt-get install mercurial
- hg clone http://hg.openjdk.java.net/dio/dev jdkdio
- cd jdkdio
- export JAVA_HOME=/usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt
- export PI_TOOLS=/usr
- make
- Install Nano text editor
sudo apt-get install nano
- Install Avahi (mDNS/zeroconf)
sudo apt-get install avahi-daemon
- Update Raspian Configuration
sudo raspi-config
- Activate the Pi Zero's built-in I2C Interface:
- Use the down arrow to select 'Advanced Options'
- Arrow down and select 'I2C'
- Select 'Yes' to enable the I2C Interface
- Acknowledge the notification confirming the I2C Interface has been enabled
- Activate the Pi Zero's built-in I2C Interface:
- Setup WiFi for a Pi Zero
- Reboot one last time, and log back in. Capture OS image for reuse by
- ???
Per Minibot config instructions (with baseline image above installed)
- Update Raspian Configuration
sudo raspi-config
- Customize host name. Reference hostname list for assigned names. Be sure not to duplicate!
- Select 'expand to use entire sd card'. This will reboot the pi.
Other Miscellaneous Things
- http://www.savagehomeautomation.com/projects/pi4j-now-supports-non-privileged-access-no-more-rootsudo.html
- restore size of a uSD card
- How to run a program at startup on the Pi Zero
- http://www.savagehomeautomation.com/projects/pi4j-connecting-java-to-the-raspberry-pi.html
- video tutorial
- Doesn't wiringpi get installed as part of Pi4j install??? If not:
- Install git:
sudo apt-get install git
- Install wiringPi:
mkdir ~/dev;cd ~/dev git clone git://git.drogon.net/wiringPi cd wiringPi ./build
- Install wiringPi
- Then, test by running "gpio -v" and "gpio readall"
- Install git: