(→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] | ||
| - | + | 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 [http://pandaboard.org PandaBoard] | |
= Prerequisites = | = Prerequisites = | ||
== MIC2 == | == 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: | ||
| - | = | + | [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 :) | |
| - | + | ||
| - | cd | + | 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 :) | ||
| - | + | If you are not already in pandabuild directory(the place where you downloaded the .ks.in and .sh files as mentioned above), | |
| - | + | cd pandabuild | |
| - | If you | + | |
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
./Panda-demo.sh | ./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: | ||
| + | # 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 | + | 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 | ||
| - | + | = Caveats = | |
| - | + | The following caveats exist | |
| - | + | # 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 | |
| - | + | # Wlan does not work at this point of time | |
| - | + | # Multimedia probably wont work | |
| + | # Ethernet is usb0 | ||
| + | # the mouse pointer works for fennec, but for other applications, the cursor disappears :( | ||
Contents |
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
To create the image, you need Mic2. See here for further information on setting up Mic2 utility on your system.
If you need to add proxy settings, you can place them in ${HOME}/.mic2.conf like this:
[main] proxy=http://PROXY_SERVER:PORT
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
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
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
Steps involved here are:
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:
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 ;) ).
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 :)
The following caveats exist