Meego Wiki
Views

ARM/OMAP4 Panda/private-demo

From MeeGo wiki
(Difference between revisions)
Jump to: navigation, search
(Format SD)
Line 5: Line 5:
The following page describes how to create a bootable Meego image for the OMAP4 based Pandaboard.  More information on this board can be found at [http://pandaboard.org/ pandaboard.org]
The following page describes how to create a bootable Meego image for the OMAP4 based Pandaboard.  More information on this board can be found at [http://pandaboard.org/ pandaboard.org]
-
Currently, running Meego on the Panda requires that the u-boot and Linux kernel are built by handWe are working to get these packages into the OBS, and will keep this page updated.
+
Additionally, the image creation steps are also manual, owing to the very particular CHS requirements of the OMAP4 boards (255 heads/63 sectors)This is due to the limitation of the latest libgparted libraries which are used by mic2 currently. To resolve this mic2 will need support of external utility such as sfdisk.
-
Additionally, the image creation steps are also manual, owing to the very particular CHS requirements of the OMAP4 boards (255 heads/63 sectors).  This issue is being discussed within the #meego-arm community.
+
In this wiki, we shall explain building a rootfs from scratch and explain how to use it on [http://pandaboard.org PandaBoard]
= Prerequisites =
= Prerequisites =
== MIC2 ==
== MIC2 ==
-
Reference http://wiki.meego.com/Image_Creation to set up MIC2
+
To create the image, you need Mic2. See [http://wiki.meego.com/Image_Creation here] for further information on setting up Mic2 utility on your system.
 +
=== Proxy Settings ===
 +
If you need to add proxy settings, you can place them in ${HOME}/.mic2.conf like this:
-
== Environment Variables ==
+
[main]
 +
proxy=http://PROXY_SERVER:PORT
-
export PANDASOURCE=${HOME}/panda.source
+
== Get Kickstart and wrapper files ==
-
export PANDAFS=${HOME}/meego-panda-rootfs
+
-
mkdir -p ${PANDASOURCE}
+
-
= Get Files =
+
* [[File:Panda-demo.ks.in]] - This provides the basic installation package information
 +
* [[File:Panda-demo.sh]] - quick wrapper for kickstart file using mic-image-creator (generates a file called panda.ks with updated package version info, and executes mic-image-creator as sudo: '''Remember to have sudo privileges''')
-
* [[File:Panda-demo.ks.in]]
+
For this demonstration, we will do the build in a directory called pandabuild - replace this name as per your choice :)
-
* [[File:Panda-demo.sh]]
+
-
  cd ${PANDASOURCE}
+
mkdir pandabuild
 +
  cd pandabuild
  wget -c http://wiki.meego.com/images/Panda-demo.ks.in
  wget -c http://wiki.meego.com/images/Panda-demo.ks.in
  wget -c http://wiki.meego.com/images/Panda-demo.sh
  wget -c http://wiki.meego.com/images/Panda-demo.sh
 +
chmod +x Panda-demo.sh
= Build =
= Build =
 +
== MeeGo rootfs and getting the boot images ==
 +
It is pretty simple :)
-
== MeeGo rootfs ==
+
If you are not already in pandabuild directory(the place where you downloaded the .ks.in and .sh files as mentioned above),
-
=== Proxy Settings ===
+
cd pandabuild
-
If you need to add proxy settings, you can place them in ${HOME}/.mic2.conf like this:
+
-
[main]
 
-
proxy=http://PROXY_SERVER:PORT
 
-
 
-
=== Build the rootfs ===
 
-
cd ${PANDASOURCE}
 
-
chmod +x Panda-demo.sh
 
  ./Panda-demo.sh
  ./Panda-demo.sh
-
= Make Bootable SD Card =
+
'''WARNING: this takes a whilllleeee'''... depending on your PC speed and network connection - it downloads the rpms and does the following
 +
* Generates a file called panda.ks
 +
* fires up mic-image-creator to download the rpms and create the rootfs with all necessary packages
 +
* output looks something as follows:
 +
pandabuild
 +
  ├── output
 +
  │   └── meego-panda-rootfs -> this is where the output filesystem is located /boot contains the boot images (u-boot, MLO, boot.scr, uImage etc..)
 +
  └── rpms <- all your rpms are put here
 +
 
 +
= Creating the MeeGo PandaBoard SDCard =
 +
Steps involved here are:
 +
# format the SDcard to make it bootable (yep we have a simple script to do it as well ;) ).
 +
# Copy the files to the SD Card.
== Format SD ==
== Format SD ==
Reference http://www.omappedia.org/wiki/SD_Configuration to format SD card.
Reference http://www.omappedia.org/wiki/SD_Configuration to format SD card.
-
Script: [[File:omap3-mkcard.sh ]]. you could use this with the above instructions to format a card for making it ready for copy
+
Script: [[File:omap3-mkcard.sh ]]. you could use this with the above instructions to format a card for making it ready for copy. This script creates two partitions:
 +
# boot - which is a bootable vfat partition
 +
# rootfs - which is where the meego filesystem will finally reside - this is ext3 currently (yep, we need to move to brtfs sometime soon).
-
Insert formated bootable SD card, /media/boot & /media/rootfs should be mounted automatically, assuming you are logged in graphically.
+
Insert formated bootable SD card, /media/boot & /media/rootfs should be mounted automatically, assuming you are logged in a GUI.
 +
 
 +
/media/boot and /media/rootfs is the location of the partitions (boot being the boot partition and rootfs being the rootfs - ofcourse ;) ).  
== Install binaries to SD ==
== Install binaries to SD ==
 +
If you are not already in pandabuild directory(the place where you downloaded the .ks.in and .sh files as mentioned above),
 +
cd pandabuild
 +
 +
First copy the boot files to the boot partition
 +
sudo cp -rfp output/meego-panda-rootfs/boot/* /media/boot
 +
Next copy the rest of the filesystem to the sd rootfs partition
 +
sudo cp -rfp output/meego-panda-rootfs/* /media/rootfs
 +
 +
and thats it - it is done :)
 +
 +
= Booting setup =
 +
* Plug in MMC card in PandaBoard
 +
* plug in a USB mouse and keyboard in USB host port
 +
* plug in a HDMI/DVI display on to the '''HDMI''' port of PandaBoard(not DVI port)
 +
* optional - connect serial cable to PC. (login is root, password: meego as configured in the ks file)
 +
* connect power supply
-
cp ${PANDAFS}/boot/MLO /media/boot
+
= Caveats =
-
cp ${PANDAFS}/boot/u-boot.bin /media/boot
+
The following caveats exist
-
cp ${PANDAFS}/boot/boot.scr /media/boot
+
# The Panda-demo.ks.in contains the display size and width - X=1280 and Y=1024 and does not use EDID to configure that dynamically - this probably needs a more elegant fix
-
cp ${PANDAFS}/boot/uImage /media/boot
+
# Wlan does not work at this point of time
-
sudo cp -rfp ${PANDAFS}/* /media/rootfs
+
# Multimedia probably wont work
 +
# Ethernet is usb0
 +
# the mouse pointer works for fennec, but for other applications, the cursor disappears :(

Revision as of 00:52, 10 November 2010

Contents

Introduction

PLEASE NOTE: This page is currently under construction!

The following page describes how to create a bootable Meego image for the OMAP4 based Pandaboard. More information on this board can be found at pandaboard.org

Additionally, the image creation steps are also manual, owing to the very particular CHS requirements of the OMAP4 boards (255 heads/63 sectors). This is due to the limitation of the latest libgparted libraries which are used by mic2 currently. To resolve this mic2 will need support of external utility such as sfdisk.

In this wiki, we shall explain building a rootfs from scratch and explain how to use it on PandaBoard

Prerequisites

MIC2

To create the image, you need Mic2. See here for further information on setting up Mic2 utility on your system.

Proxy Settings

If you need to add proxy settings, you can place them in ${HOME}/.mic2.conf like this:

[main]
proxy=http://PROXY_SERVER:PORT

Get Kickstart and wrapper files

  • File:Panda-demo.ks.in - This provides the basic installation package information
  • File:Panda-demo.sh - quick wrapper for kickstart file using mic-image-creator (generates a file called panda.ks with updated package version info, and executes mic-image-creator as sudo: Remember to have sudo privileges)

For this demonstration, we will do the build in a directory called pandabuild - replace this name as per your choice :)

mkdir pandabuild
cd pandabuild
wget -c http://wiki.meego.com/images/Panda-demo.ks.in
wget -c http://wiki.meego.com/images/Panda-demo.sh
chmod +x Panda-demo.sh

Build

MeeGo rootfs and getting the boot images

It is pretty simple :)

If you are not already in pandabuild directory(the place where you downloaded the .ks.in and .sh files as mentioned above),

cd pandabuild
./Panda-demo.sh

WARNING: this takes a whilllleeee... depending on your PC speed and network connection - it downloads the rpms and does the following

  • Generates a file called panda.ks
  • fires up mic-image-creator to download the rpms and create the rootfs with all necessary packages
  • output looks something as follows:
pandabuild
 ├── output
 │   └── meego-panda-rootfs -> this is where the output filesystem is located /boot contains the boot images (u-boot, MLO, boot.scr, uImage etc..)
 └── rpms <- all your rpms are put here

Creating the MeeGo PandaBoard SDCard

Steps involved here are:

  1. format the SDcard to make it bootable (yep we have a simple script to do it as well ;) ).
  2. Copy the files to the SD Card.

Format SD

Reference http://www.omappedia.org/wiki/SD_Configuration to format SD card.

Script: File:Omap3-mkcard.sh. you could use this with the above instructions to format a card for making it ready for copy. This script creates two partitions:

  1. boot - which is a bootable vfat partition
  2. rootfs - which is where the meego filesystem will finally reside - this is ext3 currently (yep, we need to move to brtfs sometime soon).

Insert formated bootable SD card, /media/boot & /media/rootfs should be mounted automatically, assuming you are logged in a GUI.

/media/boot and /media/rootfs is the location of the partitions (boot being the boot partition and rootfs being the rootfs - ofcourse ;) ).

Install binaries to SD

If you are not already in pandabuild directory(the place where you downloaded the .ks.in and .sh files as mentioned above),

cd pandabuild

First copy the boot files to the boot partition

sudo cp -rfp output/meego-panda-rootfs/boot/* /media/boot

Next copy the rest of the filesystem to the sd rootfs partition

sudo cp -rfp output/meego-panda-rootfs/* /media/rootfs

and thats it - it is done :)

Booting setup

  • Plug in MMC card in PandaBoard
  • plug in a USB mouse and keyboard in USB host port
  • plug in a HDMI/DVI display on to the HDMI port of PandaBoard(not DVI port)
  • optional - connect serial cable to PC. (login is root, password: meego as configured in the ks file)
  • connect power supply

Caveats

The following caveats exist

  1. The Panda-demo.ks.in contains the display size and width - X=1280 and Y=1024 and does not use EDID to configure that dynamically - this probably needs a more elegant fix
  2. Wlan does not work at this point of time
  3. Multimedia probably wont work
  4. Ethernet is usb0
  5. the mouse pointer works for fennec, but for other applications, the cursor disappears :(
Personal tools