歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux編程 >> Linux編程 >> 為S3C6410,S5PC110等ARM平台快速構建一個MeeGo環境

為S3C6410,S5PC110等ARM平台快速構建一個MeeGo環境

日期:2017/3/1 10:20:33   编辑:Linux編程

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