Meego Wiki
Views

ARM/Meego on the Beagle

From MeeGo wiki
< ARM
Revision as of 16:49, 7 June 2010 by Dl9pf (Talk | contribs)
Jump to: navigation, search

This page is dedicated to getting MeeGo running on the Beagleboard. More info on the beagleboard can be found here

Because the processor for the beagleboard C4 is an OMAP3530 and the N900 currently sports a similar processor, it seems wise to start with the ARM page.

Turn key demo image from Linux Foundation for Genivi

The Linux Foundation developer team put together the following image for demonstration during the Linux Foundation keynote address at the GENIVI conference on May 19. It is based on MeeGo 0.9 and has the SGX drivers built-in. Also preinstalled are the XFCE-Desktop, QT demo applications and 3D SGX demos (/usr/bin/SGX). Just download and write the image to a sdcard (>4GB). This image runs on revision B5 up to C1D/C4 boards. Enjoy!

wget -nd http://ftp.linuxfoundation.org/pub/meego/MEEGO_GENIVI_BEAGLE_DEMO.img.xz
# f222c90ee1279e03f521a750d9e4bd06 MEEGO_GENIVI_BEAGLE_DEMO.img.xz
md5sum MEEGO_GENIVI_BEAGLE_DEMO.img.xz 
xz -d MEEGO_GENIVI_BEAGLE_DEMO.img.xz
dd if=<imgfile> of=/dev/sd?      #  e.g. dd if=MEEGO_BEAGLE_DEMO.img of=/dev/sdc
# root passwd: q
# u-boot parameters:
OMAP3 beagleboard.org #
bootcmd=if mmc init; then if run loadbootscript; then run bootscript; else if run loaduimage; then run mmcboot; else run nandboot; fi; fi; else run nandboot; fi
bootdelay=3
baudrate=115200
loadaddr=0x82000000
usbtty=cdc_acm
console=ttyS2,115200n8
defaultdisplay=dvi
mmcroot=/dev/mmcblk0p2 rw
mmcrootfstype=ext3 rootwait
nandroot=/dev/mtdblock4 rw
nandrootfstype=jffs2
mmcargs=setenv bootargs console=${console} mpurate=${mpurate} buddy=${buddy} vram=${vram} omapfb.mode=dvi:${dvimode} omapdss.def_disp=${defaultdisplay} root=${mmcroot} rootfstype=${mmcrootfstype}
nandargs=setenv bootargs console=${console} mpurate=${mpurate} buddy=${buddy} vram=${vram} omapfb.mode=dvi:${dvimode} omapdss.def_disp=${defaultdisplay} root=${nandroot} rootfstype=${nandrootfstype}
bootscript=echo Running bootscript from mmc ...; source ${loadaddr}
loaduimage=fatload mmc 0 ${loadaddr} uImage
mmcboot=echo Booting from mmc ...; run mmcargs; bootm ${loadaddr}
nandboot=echo Booting from nand ...; run nandargs; nand read ${loadaddr} 280000 400000; bootm ${loadaddr}
dieid#=322a00020000000004013ebf0b003010
loadbootscript=
dvimode=hd720
vram=12M omapfb.vram=0:4M,1:4M,2:4M
buddy=unknown
mpurate=600


Steps to produce your own image

What works so far:

  • Take the n900 rootfs and extract to the rootfs partition of the beagle sdcard setup. You can mount rootfs of N900 from this image on /mnt by:
    1. bunzip meego-n900-open-armv7l-1.0.0.20100525.1-sda.raw.bz2
    2. sudo mount -o loop,offset=16384 meego-n900-open-armv7l-1.0.0.20100525.1-sda.raw /mnt
  • Then sync the contents to your SDcard by:
    1. sudo rsync -aHx /mnt/* /media/your_sd_card
  • MeeGo Beagleboard kernel and modules contains precompiled uImage and kernel modules (v2.6.34) for Beagleboard. You need copy uImage to /boot partition of your SD card, and modules to /lib/modules directory on your root file system.
  • Since we are using rootfs tuned for N900, we can stop starting X by replacing id:5:initdefault: to id:3:initdefault: in /etc/inittab.
  • To fine tune above kernel follow these instructions:
    1. Copy meego-beagle-kernel.config from above archieve to your kernel compilation directory as .config
    2. make old_config
    3. Tune kernel options using: make xconfig
    4. You can now compile your kernel using: make uImage
Personal tools