Personal tools

Log in

Changes

From IGEP - ISEE Wiki

Jump to: navigation, search

How to get the Ubuntu distribution

3,650 bytes added, 10:32, 25 June 2018
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:
*==Overview of How-To==This How-To is meant to be a starting point for people to learn install an Ubuntu will target the new ARM EABIimage for OMAP3-based IGEP platforms as quickly and easily as possible==Requirements==*For nowA SD card at least 2GB ( recommended 4GB )   ==References==Much of this How-To is extracted from different sources. If you would like to read some of the original articles or resources, builds will expect a minimum of an ARMv5 instruction setplease visit them and thank the authors: * The Ubuntu website ( http://www.ubuntu.com )*Ubuntu will target on ARM with VFP (Vector Floating Pointhttp://www.ubuntu.com/products/whatisubuntu/arm )* The rootstock project ( https://launchpad.net/project-rootstock )*We will continue ARM rootfs from scratch ( https://wiki.ubuntu.com/ARM/RootfsFromScratch ) ==Ubuntu releases====Releases==['''TIP'''] If you want to work with vendors to provide hardware drivers install the ubuntu image you should install the ubuntu rootfs and use the ISEE kernel and bootloader. ['''IMPORTANT'''] ISEE is not responsable about the Ubuntu releases you should read the information about Ubuntu deprecation releases in the Ubuntu webpage. ===Ubuntu 12.04.4 LTS (for various ARM-based IGEPv2, IGEP COM MODULE ISEE devices)===IGEPv2, IGEP COM Module and IGEP COM Proton Ubuntu page is located [[IGEPv2 Ubuntu Distro|here]] ===Ubuntu 12.04.4 LTS Hard Float (for IGEPv5)===IGEPv5 Ubuntu page is located [[IGEPv5 Ubuntu Distro|here]] ===Ubuntu 14.04 Lxde (for IGEP iMX6)===IGEP iMX6 Ubuntu page is located [[IGEP iMX6 Ubuntu Distro|here]] ===Ubuntu Base Firmware (All Boards)===Ubuntu base page is located [[IGEP Firmware Ubuntu|here]]   *==Old Releases=====Ubuntu will likely have 10.10 (Maverick Meerkat)===First, download the compressed image from http://cdimage.ubuntu.com/ubuntu-netbook/ports/releases/  wget http://cdimage.ubuntu.com/ubuntu-netbook/ports/releases/maverick/release/ubuntu-netbook-10.10-preinstalled-netbook-armel+omap.img.gz Next, uncompress the image with  gunzip ubuntu-netbook-10.10-preinstalled-netbook-armel+omap.img.gz Then write the raw image to a different set blank SD card (the card size should be >2G)  sudo dd if=<uncompressed image> of kernels than Debian =/dev/mmcblk0 # change /dev/mmcblk0 with appropriate device Current boot file system (although the specific set is still under discussionx-loader + u-boot + kernel)not works, so we need to replace.First download and extract this package
== Overview of How wget https://edge.launchpad.net/ubuntu/+source/linux/2.6.35-22.33/+buildjob/1970697/+files/linux-image-2.6.35-22-omap_2.6.35-To ==22.33_armel.debThis How ar -x linux-image-2.6.35-22-omap_2.6.35-22.33_armel.deb tar jxf data.tar.bz2 sudo cp -fr boot lib usr /media/<rootfs> # change <rootfs> with appropriate SD rootfs partition then, create an uImage file with  mkimage -A arm -O linux -T kernel -C none -To is meant to be a starting point for people to learn install an Ubuntu image for OMAP30x80008000 -e 0x80008000 -n "Linux" -d boot/vmlinuz-2.6.35-22-omap uImage cp uImage /media/<bootfs> # change <bootfs> with appropriate SD boot partition next, download and copy x-loader from  wget http://downloads.isee.biz/pub/SW_Releases/binaries/x-loader/v1.4.4-3/x-load-1.4.4-3.igep0020-sdcard.bin.ift cp x-load-1.4.4-3.igep0020-based IGEP platforms as quickly sdcard.bin.ift /media/<bootfs>/MLO # change <bootfs> with appropriate SD boot partition and easily as possiblefinally, do the same with u-boot  wget http://downloads.isee.biz/pub/SW_Releases/binaries/u-boot-arm/v2010.06-3/u-boot-arm-2010.06-3.igep0020.bin cp u-boot-arm-2010.06-3.igep0020.bin /media/<bootfs>/u-boot.bin # change <bootfs> with appropriate SD boot partition The last step is copy boot.scr to boot.ini
Unless otherwise noted, this How-To works with the '''Ubuntu 8 cp /media/<bootfs>/boot.04 IGEP v2.0 SDK Virtual Machine''' but most of the contents are valid also for other GNUscr /media/<bootfs>/Linux distributions. We do not issue any guarantee that this will work on other distributionsboot.ini # change <bootfs> with appropriate SD boot partition
This How-To will start out by a '''Make a bootable MMC Umount bootfs and rootfs partitions, push your SD card on Linux'''.in your IGEP socket, power up and enjoy !
And then====System Testing and known issues====* Can't bring up eth0, we will cover the '''Getting a copy of no network - this is a known issue that has been fixed but may not have been applied yet.** https://bugs.launchpad.net/ubuntu root file system''' /+source/linux/+bug/645689 (see tips and tricks for various Ubuntu releases. These should give you a good basis overview of creating an ubuntu-based ARM root filesystem.solution)
== Requirements ==Tips and tricks=========Upgrade kernel to 2.6.35-23=====*A SD card at least 2GB ( recommended 4GB )Note: This solves the eth0 issue.
== Feedback Donwload and Contributing ==copy the 2.6.35-23 kernel
Creating articles in the wiki is a collaborative process, at any point, if you see a mistake you can contribute to this article wget http://downloads.igep.es/ubuntu/maverick/linux-image-2.6.35-23-omap_2.6.35-23.40_armel.deb sudo cp linux-image-2.6.35-23-omap_2.6.35-23.40_armel.deb /media/<rootfs> # change <rootfs> with appropriate SD rootfs partition
PleaseBoot up your Ubuntu , use the discussion tab for user comments. This is useful to separate page content open a terminal 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.install
Editing permissions are restricted to registered users sudo dpkg -i linux-image-2. [http://www6.igep35-23-omap_2.es Register in the main IGEP site] and you will have single sign6.35-on23.40_armel. deb
Consult Reboot your system, now the [http://www.mediawiki.org/wiki/Help:Contents User's Guide] for information on using the wiki softwareethernet an wifi should work.
== References =='''Note:''' Some users have encountered that after kernel update still booting the old kernel, to solve this issue do:
Much of this How mkimage -To is extracted from different sourcesA arm -O linux -T ramdisk -C none -a 0 -e 0 -n initramfs -d /media/<rootfs>/boot/initrd. If you would like to read some of the original articles or resources, please visit them and thank the authors:img-2.6.35-23-omap /media/<bootfs>/uInitrd mkimage -A arm -O linux -T kernel -C none -a 0x80008000 -e 0x80008000 -n 2.6.35-23-omap -d /media/<rootfs>/boot/vmlinuz-2.6.35-23-omap /media/<bootfs>/uImage
*The Ubuntu website =====How to get SGX Video Acceleration ( http://www.ubuntu.com under construction, not tested yet)=====*Ubuntu on ARM ( httpsrc://www.ubuntu.com/products/whatisubuntu/arm )*The rootstock project ( https://launchpad.net/project-rootstock )*ARM rootfs from scratch ( https://wiki.ubuntu.com/ARM/RootfsFromScratch )OMAP/Graphics
== Make a bootable MMC card on Linux ==First we'll install kernel headers
Thanks to Graeme Gregory and Steve Sakoman, you can now use [ wget http://wwwdownloads.sakomanigep.comes/OMAP3ubuntu/amaverick/linux-headers-2.6.35-23-omap_2.6.35-23.40_armel.deb sudo dpkg --install --scriptforce-fordepends linux-partitioningformattingheaders-a2.6.35-bootable23-sdmicrosdomap_2.6.35-card23.html a script to automate the tedious process of creating a bootable SD/microSD card40_armel.]deb
Take care if you do not have your system in English. You have to change Activate the word "Disk" in the former scriptuniverse and multiverse repositories, line #10 with the translation in then install the language of your system.following packages:
Having followed this excellent tutorial it's time to mount your SD card boot partition (/media/boot). With your preferred editor create a boot sudo apt-ini.source file like this.get install libegl1-sgx-omap3 libgles1-sgx-omap3 libgles2-sgx-omap3
# Set bootargs for ubuntu MMC boot setenv bootargs Before using it just be sure your user is also included at 'console=ttyS2,115200n8 console=tty0 omapfb.mode=dvi:1024x768MR-16@60 root=/dev/mmcblk0p2 rw rootwait video' # Read kernel from OneNAND onenand read 80200000 280000 400000 # and boot ..group. 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. sudo adduser <your user> video
$ source /usr/local/poky/eabi-glibc/arm/environment-setup $ mkimage -A arm -O linux -T script -C none -Now you can test the SGX with a 0 -e 0 -n 'Boot setup script' -d boot-ini.source boot.iniDEMO, grab and untar the SDK Demo Package
The result will be a boot wget http://neuvoo.ini file which you will copy to SD card boot partitionorg/neuvoo/distfiles/SGX-3.01.00.07-SDK.tar.gz tar xzf SGX-3.01.00.07-SDK.tar.gz
$ cp bootThen to run the demos just get into the X11 Binaries directory (e.ini g. OGLES/SDKPackage/Binaries/CommonX11/mediaDemos/bootEvilSkull) and run the demo:
== Ubuntu 10 .04 (Jaunty Jackalope) ==/OGLESEvilSkull
WORK IN PROGRESS, please contribute.=====How to cross build ubuntu maverick kernel from sources=====Create a script for setting the environment
This has been tested on Ubuntu 10.04, other distributions may require some things echo "Setting environment for armel cross-compile" export ARCH=arm export CROSS_COMPILE=arm-none-linux-gnueabi- export PATH=<path to be done differently.cross compiler>:$PATH (set the correct path to cross compiler) export DEB_BUILD_ARCH=armel export DEB_HOST_ARCH=armel
Start installing some required packagesClone the ubuntu maverick repository
$ sudo aptgit clone git://kernel.ubuntu.com/ubuntu/ubuntu-get install rootstock ubootmaverick.git cd ubuntu-mkimagemaverick
Next, create a minimal rootfs withSetup the environment and run ...
$ sudo rootstock --fqdn ubuntu --login jdoe --password letmein --imagesize 2G \source armconfig --seed wget,nano,linux-firmware,wireless-tools,usbutils --dist lucid \ --serial ttyS2 --components "main universe multiverse" \ fakeroot debian/rules clean --kernel-image http://www.rcn-ee.net/deb/lucid/v2.6.33.5-l3 fakeroot debian/linux-image-2.6.33.5rules binary-l3_1.0lucid_armel.debomap
The result resulting two .deb files will be these files:located in ../
*armel-rootfs-<date>===Ubuntu 9.tgz: Root file System, dump to ext2/3 partition of SD 04 (Jaunty Jackalope)=======Make a bootable MMC cardon Linux====*vmlinuz-2.6.<version>: Boot ImageThanks to Graeme Gregory and Steve Sakoman, you can now use mkimage to create uImage and dump to the first fat16 partition of SD card*initrd[http://www.sakoman.imgcom/OMAP3/a-script-for-partitioningformatting-a-bootable-2.6sdmicrosd-card.<version>: Boot initramfs, use mkimage to create uInitrd and dump html a script to automate the first fat16 partition tedious process of creating a bootable SD /microSD card.]
convert Take care if you do not have your system in English. You have to u-boot compatible imageschange the word "Disk" in the former script, line #10 with the translation in the language of your system.
$ mkimage -A arm -O linux -T kernel -C none -a 0x80008000 -e 0x80008000 -n "Linux" -d vmlinuz-2Having followed this excellent tutorial it's time to mount your SD card boot partition (/media/boot).6.33.4-l3 uImage $ mkimage -A arm -O linux -T ramdisk -C none -With your preferred editor create a 0 -e 0 boot-n initramfs -d initrdini.img-2.6.33source file like this.4-l3 uInitrd create a boot script
fatload mmc 0:1 0x80000000 uImage fatload mmc 0:1 0x82000000 uInitrd# Set bootargs for ubuntu MMC boot setenv bootargs vram'console=ttyS2,115200n8 console=12M tty0 omapfb.mode=dvi:1280x720MR1024x768MR-16@60root=/dev/mmcblk0p2 rw rootwait ' # Read kernel from OneNAND onenand read 80200000 280000 400000 # and boot ... bootm 0x80000000 0x8200000080200000
$ And use the mkimage -A arm -O linux -T tool to convert this file into a script image which can be executed using U-C none -a 0 -e 0 -n "Boot Script" -d boot.'s source bootcommand.ini
SD card boot partition $ cp uImage uInitrd source /usr/medialocal/bootpoky/eabi-glibc/arm/environment-setup $ cp mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n 'Boot setup script' -d boot-ini.source boot.ini /media/boot
SD card rootfs partition $ sudo tar xzpf armelIf 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&amp;view=article&amp;id=99&amp;Itemid=112&amp;dir=/var/www/vhosts/igep.es/httpdocs/downloads/01-rootfsISEE_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 <datett>.tgz source /usr/local/poky/eabi-C glibc/media/rootfsenvironment-setup-arm-none-linux-gnueabi</tt>.
The result will be a boot...ini file which you will copy to SD card boot partition
== Ubuntu 9 $ cp boot.04 (Jaunty Jackalope) ==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.
$ sudo apt-get install qemu
$ sudo apt-get install qemu-kvm-extras
$ wget http://ports.ubuntu.com/pool/main/d/debootstrap/debootstrap_1.0.12_all.deb
$ sudo dpkg -i debootstrap_1.0.12_all.deb
--seed lxde,gdm
After few This step can take a long time. For example, building ubuntu-desktop on a Celeron 1.6GHz laptop takes approximately 10 hours. When it is finished, a file named armel-rootfs-[date].tgz will be in your working directory.
Next, mount your SD card ext3 partition (/media/rootfs) and untar the rootfs
--- That's all folks ---
=See also=* [[How to get the Linaro distribution]]* [[How to get the Angstrom distribution]]* [[How to get the Android distribution]]* [[How to get the Meego distribution]]* [[How to get the Poky Linux distribution]]  [[Category:Ubuntu]][[Category:Software distributions|Ubuntu]]