Meego Wiki
Views

ARM/OMAP4 Panda/private-demo

From MeeGo wiki
< ARM | OMAP4 Panda
Revision as of 20:02, 11 November 2010 by Jagarcia (Talk | contribs)
Jump to: navigation, search

Contents

Introduction

PLEASE NOTE: This page is currently under construction!

IMPORTANT This "private-demo" uses components which are NOT upstreamed - intent here is purely to showcase capability of PandaBoard and MeeGo at this point of time.

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
Personal tools