Running MeeGo on Beagleboard

From Wikidb

Jump to: navigation, search

Running Meego on Beagleboard

This is a simple guide that shows how to start with beagleboard. It was based on: http://code.google.com/p/beagleboard/wiki/BootingBeagleBoard, http://elinux.org/BeagleBoardBeginners and http://wiki.meego.com/ARM/Meego_on_Beagleboard_from_scratch.

Testing the board.

First of all you will need to test the board. Plug the Mini-USB cable and if everything's all right you should see one LED light up and, after a short while, two more LEDs coming up too.

Connecting and configuring the serial

Connect the 10-pin header of the flat cable adapter that comes with the board: it's next to the power input. The side that has the 1 and 2 pines must be the same side of the red line of the flat cable.

To setup minicom to use it with the beagle board you must run "minicom -s" as super user. You'll get a screen as follows:

           +-----[configuration]------+                                        
           | Filenames and paths      |                                        
           | File transfer protocols  |                                        
           | Serial port setup        |                                        
           | Modem and dialing        |                                        
           | Screen and keyboard      |                                        
           | Save setup as dfl        |                                        
           | Save setup as..          |                                        
           | Exit                     |                                        
           | Exit from Minicom        |                                        
           +--------------------------+

Select Serial port setup and you see the following screen:

  +-----------------------------------------------------------------------+   
   | A -    Serial Device      : /dev/ttyS0                                |   
   | B - Lockfile Location     : /var/lock                                 |   
   | C -   Callin Program      :                                           |   
   | D -  Callout Program      :                                           |   
   | E -    Bps/Par/Bits       : 9600 8N1                                  |   
   | F - Hardware Flow Control : Yes                                       |   
   | G - Software Flow Control : No                                        |   
   |                                                                       |   
   |    Change which setting?                                              |   
   +-----------------------------------------------------------------------+   
           | Screen and keyboard      |                                        
           | Save setup as dfl        |                                        
           | Save setup as..          |                                        
           | Exit                     |                                        
           | Exit from Minicom        |                                        
           +--------------------------+ 

Your configuration must look like:

   +-----------------------------------------------------------------------+   
   | A -    Serial Device      : /dev/ttyS0                                |   
   | B - Lockfile Location     : /var/lock                                 |   
   | C -   Callin Program      :                                           |   
   | D -  Callout Program      :                                           |   
   | E -    Bps/Par/Bits       : 115200 8N1                                |   
   | F - Hardware Flow Control : No                                        |   
   | G - Software Flow Control : No                                        |   
   |                                                                       |   
   |    Change which setting?                                              |   
   +-----------------------------------------------------------------------+   
           | Screen and keyboard      |                                        
           | Save setup as dfl        |                                        
           | Save setup as..          |                                        
           | Exit                     |                                        
           | Exit from Minicom        |                                        
           +--------------------------+

Press Enter to leave this screen, select Save setup as dfl and finally select Exit from Minicom.

To test if the minicom is configured right, run the command "sudo minicom" with the Mini-USB cable connected and you must see an output that looks like:

Welcome to minicom 2.2                                  
                                                        
OPTIONS:                                                
Compiled on Sep  8 2008, 17:03:34.                      
Port /dev/ttyS0                                         
                                                        
              Press CTRL-A Z for help on special keys   
                                                        
                                                        
                                                       
Texas Instruments X-Loader 1.41                         
Starting OS Bootloader...                               
                                                        
U-Boot 1.3.3 (Jul 10 2008 - 16:33:09)                   
                                                        
OMAP3530-GP rev 2, CPU-OPP2 L3-165MHz                   
OMAP3 Beagle Board + LPDDR/NAND                         
DRAM:  128 MB                                           
NAND:  256 MiB                                          
In:    serial                                           
Out:   serial                                           
Err:   serial                                           
Audio Tone on Speakers  ... complete                    
OMAP3 beagleboard.org #
                                

Note: If you can't see an output like this, you can try change the serial device port, it can be /dev/ttyS0, /dev/ttyS1, /dev/ttyS2 or /dev/ttyS3 depending on witch port you are using.

Setup Meego on the beagleboard

Download and unpack the file http://wiki.meego.com/images/Meego_beagle.tgz

Note: If you want to run the Custom image, just replace the ks file into the unpacked folder with the ks file from the Custom repository.

Add to your sources.list:

deb http://mirrors.xmission.com/ubuntu/ maverick main universe

Install the required files using the command:

sudo apt-get install gcc-4.5-arm-linux-gnueabi rpm2cpio uboot-mkimage qemu-kvm-extras-static

The default kernel version of the script is 2.6.35.3-13.3, but it is changing. To fix a problem when downloading the kernel files, change KVER=2.6.35.3-13.3 to KVER=2.6.35.3-13.5 or any other that is in te repository: [1] named as kernel-{$VERSION}.src.rpm

Then you need to cd to the directory that has the Meego Scripts and run:

./build_kernel.sh

We need to use a tool called mic (Meego image creator) to assemble the rootfs. Download and build the latest version from git:

git clone git://gitorious.org/meego-developer-tools/image-creator.git

cd image-creator
make clean
make
sudo make install

sudo ./tools/mic-check-alldeps

Create the rootfs image using the following command:

sudo ./build_image.sh

To set up your memory card with the generated system, you must run:

./setup_sdcard.sh --mmc /dev/sdd

After that you must be able to run the Meego from beagleboard.

If you need to change something from the rootfs you can only run the following commands instead of running the setup_sdcard script

mkdir ./image
sudo mount -o loop ./daily/handset/images/meego-handset-armv7l-beagle/meego-handset-armv7l-beagle-daily.img ./image
sudo rsync -aHx --progress --delete ./image/* /media/ROOT

Note: This will not work with the Beagletouch.

Personal tools
Namespaces
Variants
Actions
Navigation
Streams
Communication
Toolbox