The Linux on the pc104
These instructions only apply to YARP > 2.3.23 and iCub > 1.1.13 software versions
See The Linux on the pc104 oldrepo for older instructions
The pc104 located inside the iCub head runs a full Debian distribution. This version of Linux has been customized for the specific application and to boot from an USB key. As the iCub (project) grows up, many updates have been performed to this Linux usb-key image to follow the hardware as well as the Debian distribution changes. Stable versions are frozen into image files and uploaded to the iCub webserver, for detailed instruction on where to get the image and how to flash it, see following section.
At any time to determine the version of the image is running on your iCub, the following files in the root of the filesystem can be inspected:
- VERSION: contains the version of the image
- ChangeLog: list changes to the image
Important: the images come with a dummy password for icub and root users, we recommend you keep the pc104 disconnected form the external network or modify the password.
The image file name is composed by three parts: a major number related to the Debian distribution, a minor number which tells the internal update version and the build release is a short string related to the network configuration, for example the file image1.6-oc.img, the major number is 1, minor is 6 and build is oc.
At the moment we are supporting two versions:
1.x This is an Etch'n'half based distribution. 2.x This is a Lenny based distribution (this version is now obsolete, we recommend you use 3.x instead). 3.x This is a Squeeze based distribution. 4.x This is a Wheezy based distribution. (this version contains an updated version of libportaudio)
Important: starting from 1.7 and 3.0 we no longer use the Debian-Live system, instead the images are now "persistent". This means that all space left inside usb-key can be used, files can be modified and changes will survive across reboots. The 3.x squeeze distribution also contains a kernel with Real-Time patch (rt.wiki.kernel.org), by default it is not enabled.
The build release refers to the network configuration the final distribution will boot-up with. We release the following three types of configuration:
- oc: "open call" standard installation (static ip 10.0.0.2, it mounts software from 10.0.0.1).
- iit: custom IIT standard installation (static ip 10.0.0.20, it mounts software from 10.0.0.11), to be used inside IIT labs.
- dhcp: dhcp-enabled network configuration. If you want to connect the robot on your own network you should be able to use this image. The pc104 will use dhcp. If you configure your dhcp server appropriately you should be able to make this work (click here to see how: live-with-dhcp).
NEW We wish to make the user experience with the iCub easier so with this release of the pc104 image two main changes has been done in this direction:
- The image comes in only 2 versions, static and dhcp. The static version is the same as the old 'oc' one.
- Starting from the 4.0 version, the pc104 will mount the very same folder as the server/laptop does, but use a different build folder to have separeted binary code.
The folder is the one called /exports/code in the server, so you'll see
This way by updating the repository, both the server and the pc104 will benefit of the new code. (They still need to be compiled one by one)
The /exports/code-pc104 is no longer used.
Which version do I need?
This question is quite common whenever the number of versions and revisions start to become... more than one.
The Debian image to use depends on the iCub version:
- iCub up to version 1.1 must use a Etch and a Half distribution (image version 1.x). Persistent filesystem allows deep system configuration; if you are happy with current configuration you can skip this update, while if you really need to change system configuration now you can by appling this update.
- iCub from version 1.2 on can use either a Lenny (2.x) or a Squeeze (3.x) distribution. We kindly recommend you to keep Debian system updated to the last version, so please use the last 3.x version available!! (at the time of writing it means the 3.0 @ May 2011)
Build version should be 'iit' for robots inside iit labs and 'oc' for all the others. For persistent filesystem this configuration can be changed without re-burning a new image, you can just edit the configuration files of the network as you would normally do with Linux system.
Burn the Debian image
Instructions for burning images version < 5.0 are now grouped here.
Important: these instructions apply to the recent persistent images of the Linux (starting from 1.7 and 3.0); instructions for previous images are reported elsewhere.
There are some scripts that customize the Linux when the pc104 boots up; those scripts are inside /etc/rciCub.d folder.
- Set RobotName variable
edit the file:
replace the line:
with the name of your robot e.g. iCubGenova01
- Setup password-less login (PC104 & laptop):
See page ICub laptop installation for details.
Important: When upgrading the usb key to a different version, remember to clean the CMakeCache before compiling!! This is because some path are likely to be changed in the meanwhile.
The persistent version of the Debian distribution is now writable so any customization can be done. Please be aware of what you do, because any changes in configuration file can lead to malfunction.