Saturday, January 23, 2016

Setting up Raspberry Pi 2 B+ with Ubuntu Arm

After working my way through daunting tasks while setting up my Raspberry Pi 2 B+ with Ubuntu Arm. I figured they may be other people who want to work their way through these problems so here is a post that I hope helps you all.
First step is to decide which operating system you want to use. The raspberrypi.org has a host of OS downloads and you can find them here: https://www.raspberrypi.org/downloads/. 
I however did not get my program from this page and I am instead running Ubuntu 14.04.3 which was a little be more tedious to set up and unless you have a particular reason to go this route i.e (ROS/Robot Operating System support) then I would recommend doing something more simple. Again, I would stress another route. Secondly when you decide which operating system you would like you then need to have a microSD card ready to put the image file (IO) onto. Most recommend at least 8gig size but the larger the better.

You will then need to download Win32 disk imager in order to make your SD card ready to be installed once placed in the Pi. You can find this download here: http://sourceforge.net/projects/win32diskimager/. Be very careful when doing this process for if you select the wrong drive to image you could wipe whatever drive you select. I would recommend unhooking all usb drives and extra memory cards you may have hooked to the computer you are using to do the imaging. Then I would recommend opening your "mycompter" folder or whatever Mac OS equivalent you have and taking a look at the correct drive label of the SD card you are going to image. Then open up the imager and follow the directions.

After this is done you can eject the sd card from your computer and place it in your pi. Hook up your monitor, keyboard, and mouse and then power it up.
If no connection is registered on your monitor and nothing shows up, you can fix this by putting the sd card back into you computer and navigating your way to the config.txt file on the sd. I believe it can be located first page as soon as you open up the sd. You can simply uncomment the code where it says HDMI_Mode=1 and HDMI_Force_Hotplug=1 by removing the #'s. A better solution, as this may cause the desktop to not auto detect the ratio need for the monitor, would be to find out the model of your monitor or at least the correct resolution and refresh rate and follow the directions here: https://www.raspberrypi.org/documentation/configuration/config-txt.md. Over-clocking your Rasp Pi (making it run faster) can also be done by editing this file. (using nano, a command line text editor.)
In the command line, type the following:

sudo nano /boot/config.txt
enter your password.
Then when the file pops up, somewhere in the file, (preferably and empty space area) add the following.

arm_freq=1000
core_freq=500
sdram_freq=500
over_voltage=2

then press ctrl + shift + O to write (save) to the file
then press ctrl + shift + X to exit the file, then reboot by typing

sudo reboot




If you end up going the route I did and install the same Ubuntu then the directions and download for this can be found here: https://wiki.ubuntu.com/ARM/RaspberryPi. Everything is done using the command line so it can get a little uncomfortable if you are not familiar with Linux. 
It it easier to follow along with this video --->  https://www.youtube.com/watch?v=UGSQ7nzVCs4 
he does a very good job explaining everything. Follow those directions and you will be fine. When the guy says you can use any text editor you want but he then uses mg, I would recommend avoiding that editor and instead using nano which is a text editor you can access from the command line. (sudo nano "fileExtension") Warning, it will take awhile. I would recommend just doing one of the simple installations of an OS from raspberrypi.org.

Finally, for those who are having issues with the ridiculous slow moving mouse pointer. First navigate to your mouse settings and speed them all the way up. Then, all you have to do is open up the command line. You will then edit the cmdline.txt file located in your /boot folder.
follow these instructions. type:

sudo nano /boot/cmdline.txt

add this anywhere in the file:

usbhid.mousepoll=0

then press ctrl + shift + O to write (save) to the file
then press ctrl + shift + X to exit the file, then reboot by typing

sudo reboot

That should get you started. If anyone has any questions feel free to ask. I may not have all the answers but Ill try to help you through your issue.


No comments:

Post a Comment