How to get the Linaro distribution

From IGEP - ISEE Wiki

Revision as of 11:25, 23 October 2010 by Eballetbo (talk | contribs) (System Testing and known issues)

Jump to: navigation, search

WORK IN PROGRESS, PLEASE CONTRIBUTE

How to get the Linaro distribution

Linaro™ brings together the open source community and the electronics industry to work on key projects, deliver great tools, reduce industry wide fragmentation and provide common foundations for Linux software distributions and stacks to land on.

Overview of How-To

This How-To is meant to be a starting point for people to learn install a Linaro image for OMAP3-based IGEP platforms as quickly and easily as possible.

Unless otherwise noted, this How-To works with the Ubuntu 10.10 but most of the contents are valid also for other GNU/Linux distributions. We do not issue any guarantee that this will work on other distributions.

Feedback and Contributing

Creating articles in the wiki is a collaborative process, at any point, if you see a mistake you can contribute to this article.

Please, use the discussion tab for user comments. This is useful to separate page content and the discussion thereof and also, if you don't want to give normal users the right to edit the page but still want user contributed notes.

Editing permissions are restricted to registered users. Register in the main IGEP site and you will have single sign-on.

Consult the User's Guide for information on using the wiki software.

References

Much of this How-To is extracted from different sources. If you would like to read some of the original articles or resources, please visit them and thank the authors:

Linaro releases

Linaro 10.11 (snapshot 20101022)

WORK IN PROGRESS, PLEASE CONTRIBUTE

Install needed packages, on Ubuntu

sudo apt-get install uboot-mkimage uuid-runtime realpath

Workdir

mkdir linaro
cd linaro

download latest linaro-media-create to a location in your PATH, e.g. $HOME/bin/:

bzr branch lp:linaro-image-tools
cp linaro-image-tools/linaro-media-create $HOME/bin

Use dlimage script to download the image files and verify the sha1sums.

wget http://people.canonical.com/~plars/linaro/dlimage
chmod +x dlimage

./dlimage http://snapshots.linaro.org/10.11-daily/linaro-alip/20101022/0/images/tar

cd image

Now it's time to get a hardware pack for the IGEP board. (For now the hardware packs are only available on the Hudson instance running on jameswestby.net, but soon we should have them mirrored somewhere on linaro.org)

wget http://jameswestby.net:8080/view/Hardware%20Packs/job/linaro-igep%20hwpack/lastSuccessfulBuild/artifact/hwpack_linaro-igep_20101021-23_armel.tar.gz

Next plug in your SD card and ensure you know the device node for your sd card reader. We are assuming device node of /dev/mmcblk0, run linaro-media-create

linaro-media-create --rootfs ext3 --mmc /dev/mmcblk0 --dev igep --binary linaro-m-alip-tar-20101022-0.tar.gz --hwpack hwpack_linaro-igep_20101021-23_armel.tar.gz

Finally, plug the SD card in your board and boot.

System Testing and known issues

  • Failed to boot
Hit any key to stop autoboot:  0
mmc0 is available
reading boot.ini
398 bytes read
## Executing script at 80000000
syntax error

Solution: Run manually

mmc init 0
setenv bootcmd 'fatload mmc 0:1 0x80000000 uImage; fatload mmc 0:1 0x81600000 uInitrd; bootm 0x80000000 0x81600000'
setenv bootargs 'console=tty0 console=ttyS2,115200n8   root=UUID=0c501083-2456-4728-8c16-0fbc4e9f512e rootwait ro earlyprintk fixrtc nocompcache vram=12M omapfb.debug=y omapfb.mode=dvi:1280x720MR-16@60'
run bootcmd
  • Failed to open display
[    1.522430] omapfb omapfb: no displays
[    1.526306] omapfb omapfb: failed to setup omapfb
[    1.531066] omapfb: probe of omapfb failed with error -22

Tips and tricks

--- That's all folks ---