为S3C6410,S5PC110等ARM平台快速构建一个MeeGo环境


MeeGo项目亦然停止,但是好的嵌入式Linux发行版舍Meego和Ubuntu以外,实难寻觅,所以我们很可能还存在Meego的移植需求,过程非常简单。依照http://wiki.meego.com/Image_Creation安装MIC2,准备如下的kickstarter文件(graphics使用软解码)

  1. # -*-mic2-options-*- -f raw --save-kernel --arch=armv7hl -*-mic2-options-*-  
  2.   
  3. #   
  4. # Do not Edit! Generated by:  
  5. # kickstarter.py  
  6. #   
  7.   
  8. lang en_US.UTF-8  
  9. keyboard us  
  10. timezone --utc America/Los_Angeles  
  11. part / --size=1750  --ondisk mmcblk0p --fstype=ext3  
  12.   
  13. # This is not used currently. It is here because the /boot partition  
  14. # needs to be the partition number 3 for the u-boot usage.  
  15. part swap --size=8 --ondisk mmcblk0p --fstype=swap  
  16.   
  17. # This partition is made so that u-boot can find the kernel  
  18. part /boot --size=32 --ondisk mmcblk0p --fstype=vfat  
  19.   
  20. rootpw meego   
  21. xconfig --startxonboot  
  22. # desktop --autologinuser=meego  --defaultdesktop=DUI --session="/usr/bin/mcompositor"  
  23. #  
  24. # mcompositor depends on EGL, so we move to twm windowmanager for the moment for primaII  
  25. desktop --autologinuser=meego  --defaultdesktop=DUI --session="/usr/bin/twm"  
  26. user --name meego  --groups audio,video --password meego   
  27.   
  28. repo --name=1.2.0.90-oss --baseurl=http://repo.meego.com/MeeGo/builds/1.2.0.90/@BUILD_ID@/repos/oss/armv7hl/packages/ --save --debuginfo --source --gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-meego  
  29. repo --name=1.2.0.90-non-oss --baseurl=http://repo.meego.com/MeeGo/builds/1.2.0.90/@BUILD_ID@/repos/non-oss/armv7hl/packages/ --save --debuginfo --source --gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-meego  
  30.   
  31. %packages  
  32.   
  33. @MeeGo Compliance  
  34. @MeeGo Core  
  35. @X for Handsets  
  36. @MeeGo Handset Desktop  
  37. @MeeGo Handset Applications  
  38. @MeeGo Base Development  
  39. @Minimal MeeGo X Window System  
  40. @Chinese Support  
  41.   
  42. # for bringup, we are now using fbdev and software mesa  
  43. mesa-dri-swrast-driver  
  44. xorg-x11-drv-fbdev  
  45.   
  46. xorg-x11-utils-xev  
  47. %end  
  48.   
  49. %post  
  50. # save a little bit of space at least...  
  51. rm -f /boot/initrd*  
  52.   
  53. rm -f /var/lib/rpm/__db*  
  54. rpm --rebuilddb  
  55.   
  56. # Remove cursor from showing during startup BMC#14991  
  57. echo "xopts=-nocursor" >> /etc/sysconfig/uxlaunch  
  58.   
  59. # open serial line console for embedded system  
  60. # our board uses ttyS1  
  61. #  
  62. # echo "s0:235:respawn:/sbin/agetty -L 115200 ttyO2 vt100" >> /etc/inittab  
  63. echo "s0:235:respawn:/sbin/agetty -L 115200 ttyS1 vt100" >> /etc/inittab  
  64.   
  65. # Set up proper target for libmeegotouch  
  66. Config_Src=`gconftool-2 --get-default-source`  
  67. gconftool-2 --direct --config-source $Config_Src \  
  68.   -s -t string /meegotouch/target/name N900  
  69.   
  70. # Normal bootchart is only 30 long so we use this to get longer bootchart during startup when needed.  
  71. cat > /sbin/bootchartd-long << EOF  
  72. #!/bin/sh  
  73. exec /sbin/bootchartd -n 4000  
  74. EOF  
  75. chmod +x /sbin/bootchartd-long  
  76.   
  77. # Use eMMC swap partition as MeeGo swap as well.  
  78. # Because of the 2nd partition is swap for the partition numbering  
  79. # we can just change the current fstab entry to match the eMMC partition.  
  80. sed -i 's/mmcblk0p2/mmcblk1p3/g' /etc/fstab  
  81.   
  82. # Without this line the rpm don't get the architecture right.  
  83. echo -n 'armv7hl-meego-linux' > /etc/rpm/platform  
  84.    
  85. # Also libzypp has problems in autodetecting the architecture so we force tha as well.  
  86. # https://bugs.meego.com/show_bug.cgi?id=11484  
  87. echo 'arch = armv7hl' >> /etc/zypp/zypp.conf  
  88.   
  89.   
  90. %end  
  91.   
  92. %post --nochroot  
  93. if [ -n "$IMG_NAME" ]; then  
  94.     echo "BUILD: $IMG_NAME" >> $INSTALL_ROOT/etc/meego-release  
  95. fi  
  96.   
  97.   
  98. %end  
  • 1
  • 2
  • 下一页

相关内容