Personal tools

Log in

Changes

From IGEP - ISEE Wiki

Jump to: navigation, search

How to get the Ubuntu distribution

628 bytes removed, 10:47, 12 October 2010
no edit summary
== How to get the Ubuntu distribution ==
The Ubuntu project is excited to be working with the ARM ecosystem to port Ubuntu for ARM-based devices. This work fits with our goals of making Ubuntu available as an open platform to as many people as possible. Some points to note:
 
*Ubuntu will target the new ARM EABI.
*For now, builds will expect a minimum of an ARMv5 instruction set.
*Ubuntu will target ARM with VFP (Vector Floating Point).
*We will continue to work with vendors to provide hardware drivers for various ARM-based devices.
*Ubuntu will likely have a different set of kernels than Debian (although the specific set is still under discussion).
== Overview of How-To ==
This How-To is meant to be a starting point for people to learn install an Ubuntu image for OMAP3-based IGEP platforms as quickly and easily as possible.
Unless otherwise noted, this How-To works with the '''Ubuntu 810.04 IGEP v2.0 SDK Virtual Machine''' 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. This How-To will start out by a '''Make a bootable MMC card on Linux'''. And then, we will cover the '''Getting a copy of a ubuntu root file system''' for various Ubuntu releases. These should give you a good basis overview of creating an ubuntu-based ARM root filesystem.
== Requirements ==
*The rootstock project ( https://launchpad.net/project-rootstock )
*ARM rootfs from scratch ( https://wiki.ubuntu.com/ARM/RootfsFromScratch )
 
== Make a bootable MMC card on Linux ==
 
Thanks to Graeme Gregory and Steve Sakoman, you can now use [http://www.sakoman.com/OMAP3/a-script-for-partitioningformatting-a-bootable-sdmicrosd-card.html a script to automate the tedious process of creating a bootable SD/microSD card.]
 
Take care if you do not have your system in English. You have to change the word "Disk" in the former script, line #10 with the translation in the language of your system.
 
Having followed this excellent tutorial it's time to mount your SD card boot partition (/media/boot). With your preferred editor create a boot-ini.source file like this.
 
# Set bootargs for ubuntu MMC boot
setenv bootargs 'console=ttyS2,115200n8 console=tty0 omapfb.mode=dvi:1024x768MR-16@60 root=/dev/mmcblk0p2 rw rootwait '
# Read kernel from OneNAND
onenand read 80200000 280000 400000
# and boot ...
bootm 80200000
 
And use the mkimage tool to convert this file into a script image which can be executed using U-Boot's source command.
 
$ source /usr/local/poky/eabi-glibc/arm/environment-setup
$ mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n 'Boot setup script' -d boot-ini.source boot.ini
 
If you are not using IGEP's virtual machine, you can download and install the Poky SDK from http://www.igep.es/index.php?option=com_content&view=article&id=99&Itemid=112&dir=/var/www/vhosts/igep.es/httpdocs/downloads/01-ISEE_Products/IGEPv2/SW_Releases/poky/purple-3.2/v3.2.1-0/sdk once logged in. This will provide the /usr/local/poky directory. If you use this option, the appropriate source command is <tt>source /usr/local/poky/eabi-glibc/environment-setup-arm-none-linux-gnueabi</tt>.
 
The result will be a boot.ini file which you will copy to SD card boot partition
 
$ cp boot.ini /media/boot
== Ubuntu releases ==
=== Ubuntu 9.04 (Jaunty Jackalope) ===
 
==== Make a bootable MMC card on Linux ====
 
Thanks to Graeme Gregory and Steve Sakoman, you can now use [http://www.sakoman.com/OMAP3/a-script-for-partitioningformatting-a-bootable-sdmicrosd-card.html a script to automate the tedious process of creating a bootable SD/microSD card.]
 
Take care if you do not have your system in English. You have to change the word "Disk" in the former script, line #10 with the translation in the language of your system.
 
Having followed this excellent tutorial it's time to mount your SD card boot partition (/media/boot). With your preferred editor create a boot-ini.source file like this.
 
# Set bootargs for ubuntu MMC boot
setenv bootargs 'console=ttyS2,115200n8 console=tty0 omapfb.mode=dvi:1024x768MR-16@60 root=/dev/mmcblk0p2 rw rootwait '
# Read kernel from OneNAND
onenand read 80200000 280000 400000
# and boot ...
bootm 80200000
 
And use the mkimage tool to convert this file into a script image which can be executed using U-Boot's source command.
 
$ source /usr/local/poky/eabi-glibc/arm/environment-setup
$ mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n 'Boot setup script' -d boot-ini.source boot.ini
 
If you are not using IGEP's virtual machine, you can download and install the Poky SDK from http://www.igep.es/index.php?option=com_content&view=article&id=99&Itemid=112&dir=/var/www/vhosts/igep.es/httpdocs/downloads/01-ISEE_Products/IGEPv2/SW_Releases/poky/purple-3.2/v3.2.1-0/sdk once logged in. This will provide the /usr/local/poky directory. If you use this option, the appropriate source command is <tt>source /usr/local/poky/eabi-glibc/environment-setup-arm-none-linux-gnueabi</tt>.
 
The result will be a boot.ini file which you will copy to SD card boot partition
 
$ cp boot.ini /media/boot
 
==== Get a copy of a ARM ubuntu root file system ====
In order to get a copy of a ARM ubuntu root file system, you will need to install qemu and a recent version of debootstrap and the qemu package. On some systems you may also need the qemu-kvm-extras package to run the ARM emulation.
0
edits