SimpleBot Initial Software Configuration

The Simple Bot software is installed on the Raspberry Pi. If you are attending the workshop you will be provided with a pre-installed SD card to use. This page will help you with any additional configuration that is required and allow you to create your own SD image if you need to later.

= Changing the default configuration =

1. Insert the Micro SD card into a laptop or workstation using the provided adaptor 2. When the image is mounted open the file `machine.local` in a text editor 3. Edit the file as explained by the comments in the file. 4. Save the file and unmount the SD card and then remove it 5. Insert the card into the Raspberry Pi and power up

By default the Miniconf image will use a hostname based on the unique serial number of the ARM CPU.

= Creating your own SD image =

You can create a suitable development kit as follows:

1. Install a Raspberry Pi Raspian Image on your SD by following these instructions. 2. Boot your raspberry Pi and login as user `pi` with password `raspberry` 3. Make sure your keyboard is correctly configured and you have internet access 4. Run the following command script initialsetup -c "bash <(wget -O - https://tinyurl.com/RasPiIoT-1)" This will create a log in the file initialsetup. At the end of the process the Pi will reboot 5. Login again 6. Run the following command script packagesetup -c "bash <(wget -O - https://tinyurl.com/RasPiIoT-2)" This will create a log in the file packagesetup. At the end of the process the Pi will reboot. NB When asked you should 'N' to ROS install unless you know that you really need it.

There are more details at https://github.com/alecthegeek/CCHS_Raspian_for_IoT

= General references =

Compiling the driver for the RT7601 WiFi chipset
This worked: sudo su cd /usr/src git clone --depth 1 https://github.com/raspberrypi/linux.git #downloads about 132MB ln -s /usr/src/linux /lib/modules/`uname -r`/build cd /lib/modules/`uname -r`/build make mrproper gzip -dc /proc/config.gz > .config make modules_prepare wget https://github.com/raspberrypi/firmware/raw/master/extra/Module.symvers exit cd ~ mkdir wireless-drivers cd wireless-drivers wget https://dl.dropboxusercontent.com/u/11876059/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913.tar.gz tar zxf DPO_MT7601U_LinuxSTA_3.0.0.4_20130913.tar.gz cd DPO_MT7601U_LinuxSTA_3.0.0.4_20130913 make sudo make install
 * 1) Prepare kernel source
 * 1) Fetch driver source
 * 1) Make and install driver

To configure it as a wireless client, edit /etc/network/interfaces and add this to the end:

auto ra0 allow-hotplug ra0 iface ra0 inet dhcp wpa-ssid "YOUR SSID" wpa-psk "YOUR PASSWORD"

Finally, reboot and it'll come up with the wireless interface enabled:

sudo reboot

Other notes from various attempts:

http://elinux.org/RPi_USB_Wi-Fi_Adapters

http://www.maketecheasier.com/set-up-raspberry-pi-as-wireless-access-point/

http://va3paw.com/2014/03/16/hsmm-mesh-on-raspberry-pi/

This "fixnet" script may be useful to re-establish the network connection if it drops out after a day or so: http://www.raspberrypi.org/forums/viewtopic.php?f=28&t=40474#p330868

Download driver source from http://www.mediatek.com/en/downloads/mt7610u-usb/

cd ~/mt7610u_wifi_sta_v3002_dpo_20130916 make make install

cd ~/wireless-drivers/DPO_RT5572_LinuxSTA_2.6.1.3_20121022 sudo make sudo make install

git clone https://github.com/jamesfoley/raspberry-pi-MT7601