Difference between revisions of "Ubuntu 8.04 IGEP v2.0 SDK Virtual Machine"
From IGEP - ISEE Wiki
(→Virtual Machine Enhancements) |
|||
Line 1: | Line 1: | ||
− | == Ubuntu 8.04 IGEP v2.0 SDK Virtual Machine == | + | == Ubuntu 8.04 IGEP v2.0 SDK Virtual Machine == |
− | |||
− | |||
− | === Requirements === | + | === Overview of How-To === |
− | *Ubuntu 8.04 IGEP v2.0 SDK Virtual Machine | + | |
+ | This How-To is meant to be a starting point for people who use the Ubuntu 8.04 IGEP v2.0 SDK Virtual Machine and wants to learn how to add some enhancements to the VM. | ||
+ | |||
+ | === Requirements === | ||
+ | |||
+ | *Ubuntu 8.04 IGEP v2.0 SDK Virtual Machine | ||
*IGEP v2 board with factory defaults. | *IGEP v2 board with factory defaults. | ||
− | === Feedback and Contributing === | + | === Feedback and Contributing === |
− | |||
− | + | At any point, if you see a mistake you can contribute to this How-To. | |
− | + | === Virtual Machine Enhancements === | |
− | *[http://git.igep.es/?p=pub/scm/poky.git;a=commit;h=949b440e52d637ef52eadb50c87e615eebd64ed4 Poky v3.2.1-0 (Fri, 19 Mar 2010)] | + | '''Software updates''' |
− | **SDK | + | |
− | ***[http://downloads.igep.es/poky/purple-3.2/v3.2.1-0/sdk/poky-eabi-glibc-i586-arm-toolchain-sdk-3.2.1.tar.bz2 poky-eabi-glibc-i586-arm-toolchain-sdk-3.2.1.tar.bz2] | + | *[http://git.igep.es/?p=pub/scm/poky.git;a=commit;h=949b440e52d637ef52eadb50c87e615eebd64ed4 Poky v3.2.1-0 (Fri, 19 Mar 2010)] |
− | **Kernel | + | **SDK |
− | ***[http://downloads.igep.es/poky/purple-3.2/v3.2.1-0/kernel/uImage-2.6.28-r4-igep0020-20100331100327.bin uImage-2.6.28-r4-igep0020-20100331100327.bin] | + | ***[http://downloads.igep.es/poky/purple-3.2/v3.2.1-0/sdk/poky-eabi-glibc-i586-arm-toolchain-sdk-3.2.1.tar.bz2 poky-eabi-glibc-i586-arm-toolchain-sdk-3.2.1.tar.bz2] |
− | ***[http://downloads.igep.es/poky/purple-3.2/v3.2.1-0/kernel/modules-2.6.28.10-r4-igep0020.tgz modules-2.6.28.10-r4-igep0020.tgz] | + | **Kernel |
− | **Rootfs | + | ***[http://downloads.igep.es/poky/purple-3.2/v3.2.1-0/kernel/uImage-2.6.28-r4-igep0020-20100331100327.bin uImage-2.6.28-r4-igep0020-20100331100327.bin] |
− | ***poky-image-minimal-mtdutils | + | ***[http://downloads.igep.es/poky/purple-3.2/v3.2.1-0/kernel/modules-2.6.28.10-r4-igep0020.tgz modules-2.6.28.10-r4-igep0020.tgz] |
− | ****[http://downloads.igep.es/poky/purple-3.2/v3.2.1-0/images/poky-image-minimal-mtdutils-igep0020-20100331100327.rootfs.cpio poky-image-minimal-mtdutils-igep0020-20100331100327.rootfs.cpio] | + | **Rootfs |
− | ****[http://downloads.igep.es/poky/purple-3.2/v3.2.1-0/images/poky-image-minimal-mtdutils-igep0020-20100331100327.rootfs.jffs2 poky-image-minimal-mtdutils-igep0020-20100331100327.rootfs.jffs2] | + | ***poky-image-minimal-mtdutils |
− | ****[http://downloads.igep.es/poky/purple-3.2/v3.2.1-0/images/poky-image-minimal-mtdutils-igep0020-20100331100327.rootfs.ext3 poky-image-minimal-mtdutils-igep0020-20100331100327.rootfs.ext3] | + | ****[http://downloads.igep.es/poky/purple-3.2/v3.2.1-0/images/poky-image-minimal-mtdutils-igep0020-20100331100327.rootfs.cpio poky-image-minimal-mtdutils-igep0020-20100331100327.rootfs.cpio] |
− | ***poky-image-sato : | + | ****[http://downloads.igep.es/poky/purple-3.2/v3.2.1-0/images/poky-image-minimal-mtdutils-igep0020-20100331100327.rootfs.jffs2 poky-image-minimal-mtdutils-igep0020-20100331100327.rootfs.jffs2] |
− | ****[http://downloads.igep.es/poky/purple-3.2/v3.2.1-0/images/poky-image-sato-igep0020-20100331110002.rootfs.cpio poky-image-sato-igep0020-20100331110002.rootfs.cpio] | + | ****[http://downloads.igep.es/poky/purple-3.2/v3.2.1-0/images/poky-image-minimal-mtdutils-igep0020-20100331100327.rootfs.ext3 poky-image-minimal-mtdutils-igep0020-20100331100327.rootfs.ext3] |
− | ****[http://downloads.igep.es/poky/purple-3.2/v3.2.1-0/images/poky-image-sato-igep0020-20100331110002.rootfs.jffs2 poky-image-sato-igep0020-20100331110002.rootfs.jffs2] | + | ***poky-image-sato : |
− | ****[http://downloads.igep.es/poky/purple-3.2/v3.2.1-0/images/poky-image-sato-igep0020-20100331110002.rootfs.ext3 poky-image-sato-igep0020-20100331110002.rootfs.ext3] | + | ****[http://downloads.igep.es/poky/purple-3.2/v3.2.1-0/images/poky-image-sato-igep0020-20100331110002.rootfs.cpio poky-image-sato-igep0020-20100331110002.rootfs.cpio] |
− | ***poky-image-sato-sdk : | + | ****[http://downloads.igep.es/poky/purple-3.2/v3.2.1-0/images/poky-image-sato-igep0020-20100331110002.rootfs.jffs2 poky-image-sato-igep0020-20100331110002.rootfs.jffs2] |
− | ****[http://downloads.igep.es/poky/purple-3.2/v3.2.1-0/images/poky-image-sdk-igep0020-20100331124241.rootfs.cpio poky-image-sdk-igep0020-20100331124241.rootfs.cpio] | + | ****[http://downloads.igep.es/poky/purple-3.2/v3.2.1-0/images/poky-image-sato-igep0020-20100331110002.rootfs.ext3 poky-image-sato-igep0020-20100331110002.rootfs.ext3] |
− | ****[http://downloads.igep.es/poky/purple-3.2/v3.2.1-0/images/poky-image-sdk-igep0020-20100331124241.rootfs.ext3 poky-image-sdk-igep0020-20100331124241.rootfs.ext3] | + | ***poky-image-sato-sdk : |
− | ***poky-image-demo : | + | ****[http://downloads.igep.es/poky/purple-3.2/v3.2.1-0/images/poky-image-sdk-igep0020-20100331124241.rootfs.cpio poky-image-sdk-igep0020-20100331124241.rootfs.cpio] |
− | ****[http://downloads.igep.es/poky/purple-3.2/v3.2.1-0/images/poky-image-demo-igep0020-20100331141303.rootfs.cpio poky-image-demo-igep0020-20100331141303.rootfs.cpio] | + | ****[http://downloads.igep.es/poky/purple-3.2/v3.2.1-0/images/poky-image-sdk-igep0020-20100331124241.rootfs.ext3 poky-image-sdk-igep0020-20100331124241.rootfs.ext3] |
− | ****[http://downloads.igep.es/poky/purple-3.2/v3.2.1-0/images/poky-image-demo-igep0020-20100331141303.rootfs.jffs2 poky-image-demo-igep0020-20100331141303.rootfs.jffs2] | + | ***poky-image-demo : |
+ | ****[http://downloads.igep.es/poky/purple-3.2/v3.2.1-0/images/poky-image-demo-igep0020-20100331141303.rootfs.cpio poky-image-demo-igep0020-20100331141303.rootfs.cpio] | ||
+ | ****[http://downloads.igep.es/poky/purple-3.2/v3.2.1-0/images/poky-image-demo-igep0020-20100331141303.rootfs.jffs2 poky-image-demo-igep0020-20100331141303.rootfs.jffs2] | ||
****[http://downloads.igep.es/poky/purple-3.2/v3.2.1-0/images/poky-image-demo-igep0020-20100331141303.rootfs.ext3 poky-image-demo-igep0020-20100331141303.rootfs.ext3] | ****[http://downloads.igep.es/poky/purple-3.2/v3.2.1-0/images/poky-image-demo-igep0020-20100331141303.rootfs.ext3 poky-image-demo-igep0020-20100331141303.rootfs.ext3] | ||
− | ==== Upgrade the Poky's SDK ==== | + | ==== Upgrade the Poky's SDK ==== |
− | Backup current SDK | + | Backup current SDK |
− | <pre> | + | <pre>$ mv /usr/local/poky/eabi-glibc /usr/local/poky/eabi-glibc.20090721 |
− | $ mv /usr/local/poky/eabi-glibc /usr/local/poky/eabi-glibc.20090721 | + | </pre> |
− | </pre> | + | and replace with the new SDK |
− | and replace with the new SDK | + | <pre>$ mkdir tmpdir |
− | <pre> | ||
− | $ mkdir tmpdir | ||
$ cd tmpdir | $ cd tmpdir | ||
$ wget http://downloads.igep.es/poky/purple-3.2/v3.2.1-0/sdk/poky-eabi-glibc-i586-arm-toolchain-sdk-3.2.1.tar.bz2 | $ wget http://downloads.igep.es/poky/purple-3.2/v3.2.1-0/sdk/poky-eabi-glibc-i586-arm-toolchain-sdk-3.2.1.tar.bz2 | ||
$ tar jxf poky-eabi-glibc-i586-arm-toolchain-sdk-3.2.1.tar.bz2 | $ tar jxf poky-eabi-glibc-i586-arm-toolchain-sdk-3.2.1.tar.bz2 | ||
$ mv usr/local/poky/eabi-glibc /usr/local/poky | $ mv usr/local/poky/eabi-glibc /usr/local/poky | ||
− | </pre> | + | </pre> |
− | + | Note that with the change in the poky SDK all the lines | |
− | Note that with the change in the poky SDK all the lines | + | <pre>$ source /usr/local/poky/eabi-glibc/arm/environment-setup |
− | <pre> | + | </pre> |
− | $ source /usr/local/poky/eabi-glibc/arm/environment-setup | ||
− | </pre> | ||
should become | should become | ||
− | <pre> | + | <pre>$ source /usr/local/poky/eabi-glibc/environment-setup-arm-none-linux-gnueabi |
− | $ source /usr/local/poky/eabi-glibc/environment-setup-arm-none-linux-gnueabi | + | </pre> |
− | </pre> | + | ==== Rootfs demos using an NFS-TFTP environment for IGEP v2 ==== |
− | + | The simplest way to create a new NFS-TFTP environment for IGEP v2 is to use an already working filesystem and pre-built kernel image. Pre-built images are also available. | |
− | The simplest way to create a new NFS-TFTP environment for IGEP v2 is to use an already working filesystem and pre-built kernel image. Pre-built images are also available. | ||
− | ==== poky-image-minimal-mtdutils - A small image, just enough to allow a device to boot ==== | + | ===== poky-image-minimal-mtdutils - A small image, just enough to allow a device to boot ===== |
− | |||
− | <pre> | + | Download and install the root filesystem image (poky-image-minimal-mtdutils-igep0020.cpio) as root on the NFS server, |
− | $ sudo mkdir -p /srv/nfs/poky/poky-image-minimal-mtdutils/igep0020 | + | <pre>$ sudo mkdir -p /srv/nfs/poky/poky-image-minimal-mtdutils/igep0020 |
$ cd /srv/nfs/poky/poky-image-minimal-mtdutils/igep0020 | $ cd /srv/nfs/poky/poky-image-minimal-mtdutils/igep0020 | ||
$ sudo wget http://downloads.igep.es/poky/purple-3.2/v3.2.1-0/images/poky-image-minimal-mtdutils-igep0020.rootfs.cpio | $ sudo wget http://downloads.igep.es/poky/purple-3.2/v3.2.1-0/images/poky-image-minimal-mtdutils-igep0020.rootfs.cpio | ||
− | $ sudo cpio -idm | + | $ sudo cpio -idm < poky-image-minimal-mtdutils-igep0020.rootfs.cpio |
− | </pre> | + | </pre> |
− | Download and copy a pre-built kernel image to poky-image-minimal project | + | Download and copy a pre-built kernel image to poky-image-minimal project |
− | + | <pre>$ sudo wget http://downloads.igep.es/poky/purple-3.2/v3.2.1-0/kernel/uImage-2.6.28-r4-igep0020-20100331100327.bin | |
− | <pre> | ||
− | $ sudo wget http://downloads.igep.es/poky/purple-3.2/v3.2.1-0/kernel/uImage-2.6.28-r4-igep0020-20100331100327.bin | ||
$ sudo mkdir -p /srv/tftp/poky/poky-image-minimal-mtdutils/igep0020 | $ sudo mkdir -p /srv/tftp/poky/poky-image-minimal-mtdutils/igep0020 | ||
$ sudo mv uImage-2.6.28-r4-igep0020-20100331100327.bin /srv/tftp/poky/poky-image-minimal-mtdutils/igep0020/ | $ sudo mv uImage-2.6.28-r4-igep0020-20100331100327.bin /srv/tftp/poky/poky-image-minimal-mtdutils/igep0020/ | ||
$ sudo ln -s uImage-2.6.28-r4-igep0020-20100331100327.bin /srv/tftp/poky/poky-image-minimal-mtdutils/igep0020/uImage | $ sudo ln -s uImage-2.6.28-r4-igep0020-20100331100327.bin /srv/tftp/poky/poky-image-minimal-mtdutils/igep0020/uImage | ||
− | </pre> | + | </pre> |
− | Export the directory tree with an entry in /etc/exports file editing with your preferred editor, like | + | Export the directory tree with an entry in /etc/exports file editing with your preferred editor, like |
− | + | <pre>/srv/nfs/poky/poky-image-minimal-mtdutils/igep0020 *(rw,no_root_squash,no_subtree_check,sync) | |
− | <pre> | + | </pre> |
− | /srv/nfs/poky/poky-image-minimal-mtdutils/igep0020 *(rw,no_root_squash,no_subtree_check,sync) | + | and restart the NFS server |
− | </pre> | + | <pre>$ sudo /etc/init.d/nfs-kernel-server restart |
− | and restart the NFS server | + | </pre> |
− | + | Now, you can power up your board, stop at u-boot, set the project variable point to poky-image-minimal-mtdutils and boot via NFS | |
− | <pre> | + | <pre># setenv machine igep0020 |
− | $ sudo /etc/init.d/nfs-kernel-server restart | ||
− | </pre> | ||
− | Now, you can power up your board, stop at u-boot, set the project variable point to poky-image-minimal-mtdutils and boot via NFS | ||
− | |||
− | <pre> | ||
− | # setenv machine igep0020 | ||
# setenv project poky-image-minimal-mtdutils | # setenv project poky-image-minimal-mtdutils | ||
# run nfs-boot | # run nfs-boot | ||
− | </pre> | + | </pre> |
− | + | ===== poky-image-sato - X11 image with Sato theme and Pimlico applications. ===== | |
− | ==== poky-image-sato - X11 image with Sato theme and Pimlico applications. ==== | ||
− | |||
− | <pre> | + | Download and install the root filesystem image (poky-image-sato-igep0020.cpio) as root on the NFS server, |
− | $ sudo mkdir -p /srv/nfs/poky/poky-image-sato/igep0020 | + | <pre>$ sudo mkdir -p /srv/nfs/poky/poky-image-sato/igep0020 |
$ cd /srv/nfs/poky/poky-image-sato/igep0020 | $ cd /srv/nfs/poky/poky-image-sato/igep0020 | ||
$ sudo wget http://downloads.igep.es/poky/purple-3.2/v3.2.1-0/images/poky-image-sato-igep0020.rootfs.cpio | $ sudo wget http://downloads.igep.es/poky/purple-3.2/v3.2.1-0/images/poky-image-sato-igep0020.rootfs.cpio | ||
− | $ sudo cpio -idm | + | $ sudo cpio -idm < poky-image-sato-igep0020.rootfs.cpio |
− | </pre> | + | </pre> |
− | Download and copy a pre-built kernel image to poky-image-minimal project | + | Download and copy a pre-built kernel image to poky-image-minimal project |
− | + | <pre>$ sudo wget http://downloads.igep.es/poky/purple-3.2/v3.2.1-0/kernel/uImage-2.6.28-r4-igep0020-20100331100327.bin | |
− | <pre> | ||
− | $ sudo wget http://downloads.igep.es/poky/purple-3.2/v3.2.1-0/kernel/uImage-2.6.28-r4-igep0020-20100331100327.bin | ||
$ sudo mkdir -p /srv/tftp/poky/poky-image-sato/igep0020 | $ sudo mkdir -p /srv/tftp/poky/poky-image-sato/igep0020 | ||
$ sudo mv uImage-2.6.28-r4-igep0020-20100331100327.bin /srv/tftp/poky/poky-image-sato/igep0020/ | $ sudo mv uImage-2.6.28-r4-igep0020-20100331100327.bin /srv/tftp/poky/poky-image-sato/igep0020/ | ||
$ sudo ln -s uImage-2.6.28-r4-igep0020-20100331100327.bin /srv/tftp/poky/poky-image-sato/igep0020/uImage | $ sudo ln -s uImage-2.6.28-r4-igep0020-20100331100327.bin /srv/tftp/poky/poky-image-sato/igep0020/uImage | ||
− | </pre> | + | </pre> |
− | Export the directory tree with an entry in /etc/exports file editing with your preferred editor, like | + | Export the directory tree with an entry in /etc/exports file editing with your preferred editor, like |
− | + | <pre>/srv/nfs/poky/poky-image-sato/igep0020 *(rw,no_root_squash,no_subtree_check,sync) | |
− | <pre> | + | </pre> |
− | /srv/nfs/poky/poky-image-sato/igep0020 *(rw,no_root_squash,no_subtree_check,sync) | + | and restart the NFS server |
− | </pre> | + | <pre>$ sudo /etc/init.d/nfs-kernel-server restart |
− | and restart the NFS server | + | </pre> |
− | |||
− | <pre> | ||
− | $ sudo /etc/init.d/nfs-kernel-server restart | ||
− | </pre> | ||
Now, you can power up your board, stop at u-boot, set the project variable point to poky-image-sato and boot via NFS | Now, you can power up your board, stop at u-boot, set the project variable point to poky-image-sato and boot via NFS |
Revision as of 12:21, 27 October 2010
Contents
Ubuntu 8.04 IGEP v2.0 SDK Virtual Machine
Overview of How-To
This How-To is meant to be a starting point for people who use the Ubuntu 8.04 IGEP v2.0 SDK Virtual Machine and wants to learn how to add some enhancements to the VM.
Requirements
- Ubuntu 8.04 IGEP v2.0 SDK Virtual Machine
- IGEP v2 board with factory defaults.
Feedback and Contributing
At any point, if you see a mistake you can contribute to this How-To.
Virtual Machine Enhancements
Software updates
- Poky v3.2.1-0 (Fri, 19 Mar 2010)
- SDK
- Kernel
- Rootfs
- poky-image-minimal-mtdutils
- poky-image-sato :
- poky-image-sato-sdk :
- poky-image-demo :
Upgrade the Poky's SDK
Backup current SDK
$ mv /usr/local/poky/eabi-glibc /usr/local/poky/eabi-glibc.20090721
and replace with the new SDK
$ mkdir tmpdir $ cd tmpdir $ wget http://downloads.igep.es/poky/purple-3.2/v3.2.1-0/sdk/poky-eabi-glibc-i586-arm-toolchain-sdk-3.2.1.tar.bz2 $ tar jxf poky-eabi-glibc-i586-arm-toolchain-sdk-3.2.1.tar.bz2 $ mv usr/local/poky/eabi-glibc /usr/local/poky
Note that with the change in the poky SDK all the lines
$ source /usr/local/poky/eabi-glibc/arm/environment-setup
should become
$ source /usr/local/poky/eabi-glibc/environment-setup-arm-none-linux-gnueabi
Rootfs demos using an NFS-TFTP environment for IGEP v2
The simplest way to create a new NFS-TFTP environment for IGEP v2 is to use an already working filesystem and pre-built kernel image. Pre-built images are also available.
poky-image-minimal-mtdutils - A small image, just enough to allow a device to boot
Download and install the root filesystem image (poky-image-minimal-mtdutils-igep0020.cpio) as root on the NFS server,
$ sudo mkdir -p /srv/nfs/poky/poky-image-minimal-mtdutils/igep0020 $ cd /srv/nfs/poky/poky-image-minimal-mtdutils/igep0020 $ sudo wget http://downloads.igep.es/poky/purple-3.2/v3.2.1-0/images/poky-image-minimal-mtdutils-igep0020.rootfs.cpio $ sudo cpio -idm < poky-image-minimal-mtdutils-igep0020.rootfs.cpio
Download and copy a pre-built kernel image to poky-image-minimal project
$ sudo wget http://downloads.igep.es/poky/purple-3.2/v3.2.1-0/kernel/uImage-2.6.28-r4-igep0020-20100331100327.bin $ sudo mkdir -p /srv/tftp/poky/poky-image-minimal-mtdutils/igep0020 $ sudo mv uImage-2.6.28-r4-igep0020-20100331100327.bin /srv/tftp/poky/poky-image-minimal-mtdutils/igep0020/ $ sudo ln -s uImage-2.6.28-r4-igep0020-20100331100327.bin /srv/tftp/poky/poky-image-minimal-mtdutils/igep0020/uImage
Export the directory tree with an entry in /etc/exports file editing with your preferred editor, like
/srv/nfs/poky/poky-image-minimal-mtdutils/igep0020 *(rw,no_root_squash,no_subtree_check,sync)
and restart the NFS server
$ sudo /etc/init.d/nfs-kernel-server restart
Now, you can power up your board, stop at u-boot, set the project variable point to poky-image-minimal-mtdutils and boot via NFS
# setenv machine igep0020 # setenv project poky-image-minimal-mtdutils # run nfs-boot
poky-image-sato - X11 image with Sato theme and Pimlico applications.
Download and install the root filesystem image (poky-image-sato-igep0020.cpio) as root on the NFS server,
$ sudo mkdir -p /srv/nfs/poky/poky-image-sato/igep0020 $ cd /srv/nfs/poky/poky-image-sato/igep0020 $ sudo wget http://downloads.igep.es/poky/purple-3.2/v3.2.1-0/images/poky-image-sato-igep0020.rootfs.cpio $ sudo cpio -idm < poky-image-sato-igep0020.rootfs.cpio
Download and copy a pre-built kernel image to poky-image-minimal project
$ sudo wget http://downloads.igep.es/poky/purple-3.2/v3.2.1-0/kernel/uImage-2.6.28-r4-igep0020-20100331100327.bin $ sudo mkdir -p /srv/tftp/poky/poky-image-sato/igep0020 $ sudo mv uImage-2.6.28-r4-igep0020-20100331100327.bin /srv/tftp/poky/poky-image-sato/igep0020/ $ sudo ln -s uImage-2.6.28-r4-igep0020-20100331100327.bin /srv/tftp/poky/poky-image-sato/igep0020/uImage
Export the directory tree with an entry in /etc/exports file editing with your preferred editor, like
/srv/nfs/poky/poky-image-sato/igep0020 *(rw,no_root_squash,no_subtree_check,sync)
and restart the NFS server
$ sudo /etc/init.d/nfs-kernel-server restart
Now, you can power up your board, stop at u-boot, set the project variable point to poky-image-sato and boot via NFS