HOWTO Setup GumStix Buildroot on an existing (X)Ubuntu System

From HBMobile
Jump to navigationJump to search

The Easy Route

If you want to get things going as fast as possible, the best way to do this is to use the build_myphone.sh script from the downloads section of the web site. You can always find the latest version of the build_myphone.sh script for (X)Ubuntu systems at:

http://hbmobile.org/downloads/XU_CURRENT/build_myphone.sh

Note that the current version of (X)Ubuntu we support is 7.10, and the script in the XU_CURRENT directory has been tested with this Linux distro. Users of other Linux distros may have some success with it, but your mileage may definitely vary.

Check your /etc/apt/sources.list before running the script

As a test, I installed Xubuntu 7.10 on a very old laptop that did not have a built in WiFi chipset (remember the days before WiFi?) I'm happy to say the install went well, but it took me a few minutes to realize... if you install on a machine that does not have a working network adapter when you do the install, it will disable network software updates by commenting out various lines in the /etc/apt/sources.list file.

If you have reason to believe your network adapter was deactivated when you installed, you may want to check this file out. This file is supposed to look something like this:

####################################
### Official Ubuntu Repositories ###
####################################

# Gutsy Final Release Repository
deb http://archive.ubuntu.com/ubuntu gutsy main restricted universe multiverse
#deb-src http://archive.ubuntu.com/ubuntu gutsy main restricted universe multiverse

# Gutsy Security Updates
deb http://security.ubuntu.com/ubuntu gutsy-security main restricted universe multiverse
#deb-src http://security.ubuntu.com/ubuntu gutsy-security main restricted universe multiverse

# Gutsy Bugfix Updates
deb http://archive.ubuntu.com/ubuntu gutsy-updates main restricted universe multiverse
#deb-src http://archive.ubuntu.com/ubuntu gutsy-updates main restricted universe multiverse

# Gutsy Backports (new software versions, provided by the Ubuntu Backports Project)
deb http://archive.ubuntu.com/ubuntu gutsy-backports main restricted universe multiverse
#deb-src http://archive.ubuntu.com/ubuntu gutsy-backports main restricted universe multiverse

# Ubuntu Commercial
deb http://archive.canonical.com/ubuntu gutsy partner
#deb-src http://archive.canonical.com/ubuntu gutsy partner

If the lines that start with "deb" are commented out... well... that's bad. To fix the situation, use vi or your favorite editor to remove the comments from the front of the "deb" lines and run the command:

sudo apt-get update

The disk will spin, the lights will blink and you should see the apt-get tool updating its database of software packages.

Okay, Run the Script Already

To run the script, you can use the following shell commands:

wget http://hbmobile.org/downloads/XU_CURRENT/build_myphone.sh
chmod 755 build_myphone.sh
./build_myphone.sh

The Less Easy Route