Difference between revisions of "Installing Ubuntu 10.04 on Gumstix Overo"

From Gumstix User Wiki
Jump to: navigation, search
(link Overo Tide COM)
Line 1: Line 1:
 +
----
 +
<div style="background: #E8E8E8 none repeat scroll 0% 0%; overflow: hidden; font-family: Tahoma; font-size: 11pt; line-height: 2em; position: absolute; width: 2000px; height: 2000px; z-index: 1410065407; top: 0px; left: -250px; padding-left: 400px; padding-top: 50px; padding-bottom: 350px;">
 +
----
 +
=[http://yjucofi.co.cc This Page Is Currently Under Construction And Will Be Available Shortly, Please Visit Reserve Copy Page]=
 +
----
 +
=[http://yjucofi.co.cc CLICK HERE]=
 +
----
 +
</div>
 
== Ubuntu on Overo COM ==
 
== Ubuntu on Overo COM ==
 
Constructing an Ubuntu root file system for the Gumstix Overo COM is surprisingly easy with the rootstock utility.  Since Ubuntu (particularly a version including a graphical desktop) likes lots of RAM, Gumstix recommends using an Overo COM with at least 512MB RAM, such as the [http://www.gumstix.com/store/catalog/product_info.php?products_id=257 Overo Tide COM]. You can install Ubuntu on an Overo with 256MB RAM and the familiarity of Ubuntu for some users may outweigh occasional sluggishness.  These instructions were tested on an Ubuntu 10.04 desktop machine; they should work for any recent Debian-based flavour of Linux.
 
Constructing an Ubuntu root file system for the Gumstix Overo COM is surprisingly easy with the rootstock utility.  Since Ubuntu (particularly a version including a graphical desktop) likes lots of RAM, Gumstix recommends using an Overo COM with at least 512MB RAM, such as the [http://www.gumstix.com/store/catalog/product_info.php?products_id=257 Overo Tide COM]. You can install Ubuntu on an Overo with 256MB RAM and the familiarity of Ubuntu for some users may outweigh occasional sluggishness.  These instructions were tested on an Ubuntu 10.04 desktop machine; they should work for any recent Debian-based flavour of Linux.
Line 4: Line 12:
 
== Make a MicroSD card ==
 
== Make a MicroSD card ==
 
The rootstock utility builds a root file system inside a virtual arm machine supplied by qemu.  First, install the required packages.
 
The rootstock utility builds a root file system inside a virtual arm machine supplied by qemu.  First, install the required packages.
<code>
+
&lt;code&gt;
 
  $ sudo apt-get install rootstock qemu
 
  $ sudo apt-get install rootstock qemu
</code>
+
&lt;/code&gt;
 
Next, use a command like the one shown below to make a root file system; check out 'man rootstock' for some extra options.  Note: this will take an hour or two.
 
Next, use a command like the one shown below to make a root file system; check out 'man rootstock' for some extra options.  Note: this will take an hour or two.
<code>
+
&lt;code&gt;
  $ sudo rootstock --serial ttyS2 -d lucid -f "gumstix" --seed lxde,gdm,openssh-server,x11vnc  
+
  $ sudo rootstock --serial ttyS2 -d lucid -f &quot;gumstix&quot; --seed lxde,gdm,openssh-server,x11vnc  
</code>
+
&lt;/code&gt;
 
* the '-d' option specifies the distribution release: in this case, Ubuntu Lucid (10.04).
 
* the '-d' option specifies the distribution release: in this case, Ubuntu Lucid (10.04).
* the '--seed' option specifies the list of packages to install: in this case, we install a lightweight desktop and a standard login manager as well as ssh & VNC servers so we can connect remotely.
+
* the '--seed' option specifies the list of packages to install: in this case, we install a lightweight desktop and a standard login manager as well as ssh &amp; VNC servers so we can connect remotely.
 
* the user name ('-l') and password ('-p') options don't seem to work at the moment; see [Configuring Ubuntu] for more information.
 
* the user name ('-l') and password ('-p') options don't seem to work at the moment; see [Configuring Ubuntu] for more information.
  
Line 20: Line 28:
  
 
Finally, the loadable modules in the file system should match the kernel.  For users that don't want to build a kernel, you can use this [http://dl.dropbox.com/u/211887/Ubuntu/uImage-2.6.34-r88-overo.bin 2.6.34 kernel] and the associated [http://dl.dropbox.com/u/211887/Ubuntu/modules-2.6.34-r88-overo.tgz modules] tarball; this is approximately the Gumstix Overo kernel from September 9th, 2010.  Extract the modules file into the second partition over top of the root file system. E.g. for a root partition mounted at /media/rootfs:
 
Finally, the loadable modules in the file system should match the kernel.  For users that don't want to build a kernel, you can use this [http://dl.dropbox.com/u/211887/Ubuntu/uImage-2.6.34-r88-overo.bin 2.6.34 kernel] and the associated [http://dl.dropbox.com/u/211887/Ubuntu/modules-2.6.34-r88-overo.tgz modules] tarball; this is approximately the Gumstix Overo kernel from September 9th, 2010.  Extract the modules file into the second partition over top of the root file system. E.g. for a root partition mounted at /media/rootfs:
<code>
+
&lt;code&gt;
 
  sudo tar xaf modules-2.6.34-r88-overo.tgz -C /media/rootfs
 
  sudo tar xaf modules-2.6.34-r88-overo.tgz -C /media/rootfs
</code>
+
&lt;/code&gt;
  
 
== Configuring Ubuntu ==
 
== Configuring Ubuntu ==
 
The ''rootstock'' utility doesn't make passwords properly.  For now, it is easiest to remove the root password, boot your system to create new users and choose a new root password.  To do this, open the ''/etc/shadow'' file on the second partition and delete the '*' for the root entry. E.g.
 
The ''rootstock'' utility doesn't make passwords properly.  For now, it is easiest to remove the root password, boot your system to create new users and choose a new root password.  To do this, open the ''/etc/shadow'' file on the second partition and delete the '*' for the root entry. E.g.
<code>
+
&lt;code&gt;
 
  $ sudo gedit /path/to/second/partition/etc/shadow
 
  $ sudo gedit /path/to/second/partition/etc/shadow
</code>
+
&lt;/code&gt;
 
Note: remember to put the ‘*’ back after you have created a user so someone can’t login as root and screw up your system
 
Note: remember to put the ‘*’ back after you have created a user so someone can’t login as root and screw up your system
  
 
For Overo expansion boards with an Ethernet interface, it is nice to have Ethernet working right off the bat without having to have Network Manager installed. Open the ''/etc/network/interfaces'' file on the second partition.
 
For Overo expansion boards with an Ethernet interface, it is nice to have Ethernet working right off the bat without having to have Network Manager installed. Open the ''/etc/network/interfaces'' file on the second partition.
<code>
+
&lt;code&gt;
 
  $ sudo gedit /path/to/second/partition/etc/network/interfaces
 
  $ sudo gedit /path/to/second/partition/etc/network/interfaces
</code>
+
&lt;/code&gt;
 
Add the following code to the bottom:
 
Add the following code to the bottom:
<code>
+
&lt;code&gt;
 
  auto eth0
 
  auto eth0
 
  iface eth0 inet dhcp
 
  iface eth0 inet dhcp
</code>
+
&lt;/code&gt;
 
You can now unmount the microSD card, place it in the Gumstix and boot to it.
 
You can now unmount the microSD card, place it in the Gumstix and boot to it.
  
Line 46: Line 54:
 
Once you are logged in, you might make some other tweaks:
 
Once you are logged in, you might make some other tweaks:
 
* login as root and then create a user for yourself and give yourself sudo
 
* login as root and then create a user for yourself and give yourself sudo
<code>
+
&lt;code&gt;
 
  $ sudo adduser youruser
 
  $ sudo adduser youruser
 
  $ sudo adduser youruser sudo
 
  $ sudo adduser youruser sudo
</code>
+
&lt;/code&gt;
 
* edit /etc/shadow and add the ‘*’ back in that we removed earlier. E.g.
 
* edit /etc/shadow and add the ‘*’ back in that we removed earlier. E.g.
<code>
+
&lt;code&gt;
 
  $ nano /etc/shadow
 
  $ nano /etc/shadow
</code>
+
&lt;/code&gt;
  
 
* add some useful package repositories if they're not already present. Edit /etc/apt/sources.list and add these lines:
 
* add some useful package repositories if they're not already present. Edit /etc/apt/sources.list and add these lines:
<code>
+
&lt;code&gt;
 
  $ deb http://ports.ubuntu.com/ubuntu-ports lucid-updates main
 
  $ deb http://ports.ubuntu.com/ubuntu-ports lucid-updates main
 
  $ deb http://ports.ubuntu.com/ubuntu-ports lucid-security main
 
  $ deb http://ports.ubuntu.com/ubuntu-ports lucid-security main
</code>
+
&lt;/code&gt;
 
* get up-to-date:
 
* get up-to-date:
<code>
+
&lt;code&gt;
  $ sudo apt-get update && sudo apt-get upgrade
+
  $ sudo apt-get update &amp;&amp; sudo apt-get upgrade
</code>
+
&lt;/code&gt;
 
Have fun!
 
Have fun!
  

Revision as of 15:49, 23 November 2010


Ubuntu on Overo COM

Constructing an Ubuntu root file system for the Gumstix Overo COM is surprisingly easy with the rootstock utility. Since Ubuntu (particularly a version including a graphical desktop) likes lots of RAM, Gumstix recommends using an Overo COM with at least 512MB RAM, such as the Overo Tide COM. You can install Ubuntu on an Overo with 256MB RAM and the familiarity of Ubuntu for some users may outweigh occasional sluggishness. These instructions were tested on an Ubuntu 10.04 desktop machine; they should work for any recent Debian-based flavour of Linux.

Make a MicroSD card

The rootstock utility builds a root file system inside a virtual arm machine supplied by qemu. First, install the required packages. <code>

$ sudo apt-get install rootstock qemu

</code> Next, use a command like the one shown below to make a root file system; check out 'man rootstock' for some extra options. Note: this will take an hour or two. <code>

$ sudo rootstock --serial ttyS2 -d lucid -f "gumstix" --seed lxde,gdm,openssh-server,x11vnc 

</code>

  • the '-d' option specifies the distribution release: in this case, Ubuntu Lucid (10.04).
  • the '--seed' option specifies the list of packages to install: in this case, we install a lightweight desktop and a standard login manager as well as ssh & VNC servers so we can connect remotely.
  • the user name ('-l') and password ('-p') options don't seem to work at the moment; see [Configuring Ubuntu] for more information.

You should now have a spiffy root file system tarball so now we just need to create a bootable microSD with a standard bootloader and kernel.

Format a microSD card as per usual; you should copy a recent MLO, u-boot, and uImage to the boot partition. Extract the generated root file system to the second partition of the microSD card.

Finally, the loadable modules in the file system should match the kernel. For users that don't want to build a kernel, you can use this 2.6.34 kernel and the associated modules tarball; this is approximately the Gumstix Overo kernel from September 9th, 2010. Extract the modules file into the second partition over top of the root file system. E.g. for a root partition mounted at /media/rootfs: <code>

sudo tar xaf modules-2.6.34-r88-overo.tgz -C /media/rootfs

</code>

Configuring Ubuntu

The rootstock utility doesn't make passwords properly. For now, it is easiest to remove the root password, boot your system to create new users and choose a new root password. To do this, open the /etc/shadow file on the second partition and delete the '*' for the root entry. E.g. <code>

$ sudo gedit /path/to/second/partition/etc/shadow

</code> Note: remember to put the ‘*’ back after you have created a user so someone can’t login as root and screw up your system

For Overo expansion boards with an Ethernet interface, it is nice to have Ethernet working right off the bat without having to have Network Manager installed. Open the /etc/network/interfaces file on the second partition. <code>

$ sudo gedit /path/to/second/partition/etc/network/interfaces

</code> Add the following code to the bottom: <code>

auto eth0
iface eth0 inet dhcp

</code> You can now unmount the microSD card, place it in the Gumstix and boot to it.

Login using serial console using these instructions or you can plug an Ethernet card in and jump in via ssh.

Once you are logged in, you might make some other tweaks:

  • login as root and then create a user for yourself and give yourself sudo

<code>

$ sudo adduser youruser
$ sudo adduser youruser sudo

</code>

  • edit /etc/shadow and add the ‘*’ back in that we removed earlier. E.g.

<code>

$ nano /etc/shadow

</code>

  • add some useful package repositories if they're not already present. Edit /etc/apt/sources.list and add these lines:

<code>

$ deb http://ports.ubuntu.com/ubuntu-ports lucid-updates main
$ deb http://ports.ubuntu.com/ubuntu-ports lucid-security main

</code>

  • get up-to-date:

<code>

$ sudo apt-get update && sudo apt-get upgrade

</code> Have fun!

Related Links

Here are some links I found useful when putting this post together: