Starting with ZeroPhone

From ZeroPhone
Jump to: navigation, search

This page describes first steps to do once you get your ZeroPhone.

Get the required accessories

Currently, ZeroPhone doesn't ship with a prepared MicroSD card included, so you'll need a MicroSD card that's 2GB or larger. You'll also have to source two 18650 batteries yourself (due to the fact it's difficult and/or expensive to ship them. Thankfully, they're easy to get from electronic cigarette shops, as well as from electronics accessories stores. You will also need a 5V/2A charger with a MicroUSB connector.

Prepare the batteries

Currently, ZeroPhone uses 2x 18650 batteries in parallel. Before batteries are first put in the holder together (parallelling them), they need to be charged to the same voltage. The easiest way to ensure that is charging both batteries separately, until they are both fully charged. First, remove any USB devices, the microSD and SIM cards out of ZeroPhone if you have them inserted. Put one battery in the holder, connect the holder to the ZeroPhone and connect a charger (a 5V 2A one) to the MicroUSB port on the side of ZeroPhone. You should see the red light on the charger board shine. In a couple of hours, the battery should be fully charged, the red light will turn off and light of other color will turn on (green, blue or some other color - depends on your charger board). Then, unplug the charged battery and repeat same steps for the one that wasn't yet charged. Once second battery is charged, insert them both in the holder with the same polarity - with positive terminal upwards, towards the GSM modem.

Prepare the SD card

Currently, I have the latest ZeroPhone SD card image available on DropBox.

arsenijs@arsenijs:~$ sha1sum 
arsenijs@arsenijs:~$ sha1sum ZeroPhone_Gamma_170811_v1.0.img
04f504dabcc1e1f81233b0a22c04ce9404615e08  ZeroPhone_Gamma_170811_v1.0.img
  1. Download the SD card image
  2. Unzip the image
  3. For Linux, upload the image onto SD card using dd:
    1. dd if=ZeroPhone_Gamma_170811_v1.0.img of=/dev/XXXX bs=32M, where /dev/XXXX is disk path for the SD card connected to computer, such as /dev/mmcblk1 or /dev/sde
  4. For Windows, use Win32DiskImager
  5. Insert the SD card into your computer and make sure right device tree entries are selected. Otherwise, WiFi might not work.

Boot the ZeroPhone up

  1. Insert batteries into battery holder and connect the holder to the ZeroPhone
  2. Connect the ZeroPhone to charger using the microUSB port on the side of ZeroPhone
  3. Wait until ZeroPhone boots and UI appears on the display. The RGB LED should light up in green for half a second before the UI appears on the display, if neither happens, check that the SD card has a valid image.

Connect the ZeroPhone to a WiFi network

  1. Go to Networking=>Wireless and press Status to see whether you're connected to any network already
  2. Go back and press Scan to scan for wireless networks around. It's advised to wait for about 5 seconds.
  3. Press Networks to see the available networks, select the network that you need to connect to
  4. Press Connect in the network menu that appears when you click on the network. You will have to enter a password if the network is password-protected - you can enter it using the numpad keys.
  5. Once you're connected, go back and select Status. The "St" column should switch to COMPLETED, and you should get an IP address.

SSH into your ZeroPhone

  1. Use your SSH client of choice
  2. Username is pi, password is Letsbuildaphone
  3. Please, change the password immediately. It's your responsibility to do so until there's an app that'll automatically set the password.
  4. Regenerate your SSH keys (TODO: instructions)

Expand the filesystem

  1. Run sudo raspi-config and select the Expand Filesystem option
  2. After it's done, reboot when it asks you to

Update ZeroPhone software

Assuming that you're connected to the Internet:

  • Update the system
sudo apt-get update && sudo apt-get dist-upgrade
  • Update the UI
cd /home/pi/ZPUI && ./