3 Replies Latest reply on Oct 29, 2014 3:08 PM by mhahn

    Build clanton yocto image on OpenSuse 13.1 and enable apache2/modphp




      I want to share my expirience with building OS for Intel Galileo and enabling web server with php.


      Here is the guide:


      Download Board_Support_Package_Sources_for_Intel_Quark_v0.7.5 (from Intel® Download Center)

      - untar meta-clanton

      - ./setup.sh

      - source poky/oe-init-build-env yocto_build


      ////////////// Chenge x264_git.bb //////////////


      vi meta-clanton_v1.0.1/meta-oe/meta-oe/recipes-multimedia/x264/x264_git.bb


      #SRCREV = "1cffe9f406cc54f4759fc9eeb85598fb8cae66c7"

      SRCREV = "bfed708c5358a2b4ef65923fb0683cefa9184e6f"


      ////////////// Change opencv_2.4.3.bb //////////


      Source code can be found here: http://www.filewatcher.com/_/?q=OpenCV-2.4.3%2Ctar.bz2


      vi meta-clanton_v1.0.1/meta-oe/meta-oe/recipes-support/opencv/opencv_2.4.3.bb


      SRC_URI = "ftp://ftp.igh.cnrs.fr/pub/os/linux/0linux/archives_sources/opencv/OpenCV-2.4.3.tar.bz2 \

                 file://opencv-fix-pkgconfig-generation.patch \



      #SRC_URI = "${SOURCEFORGE_MIRROR}/opencvlibrary/opencv-unix/${PV_VER}/OpenCV-${PV}.tar.bz2 \

      #           file://opencv-fix-pkgconfig-generation.patch \



      /////////////// Enable apache2 and modphp ////////////////


      vi meta-clanton_v1.0.1/meta-clanton-distro/recipes-core/images/image-full.bb


      and add


      IMAGE_INSTALL += "apache2 modphp"


      ////////////// Change modphp5.inc //////////


      vi meta-clanton_v1.0.1/meta-oe/meta-webserver/recipes-php/modphp/modphp5.inc


      SRC_URI = "http://pkgs.fedoraproject.org/repo/pkgs/php/php-5.4.14.tar.bz2/cfdc044be2c582991a1fe0967898fa38/php-${PV}.tar.bz2 \




      - bitbake image-full-galileo  (The build will fail)



      ///////////// Change dmidecode Makefile ///////////


      vi meta-clanton_v1.0.1/yocto_build/tmp/work/i586-poky-linux-uclibc/dmidecode/2.10-r2/dmidecode-2.10/Makefile


      RM              := rm -f


      # BSD make provides $MACHINE, but GNU make doesn't

      MACHINE ?= $(shell uname -m 2>/dev/null)


      # These programs are only useful on x86

      PROGRAMS-i386 := biosdecode ownership vpddecode

      PROGRAMS-i486 := $(PROGRAMS-i386)

      PROGRAMS-i586 := $(PROGRAMS-i386)

      PROGRAMS-i686 := $(PROGRAMS-i386)

      PROGRAMS-x86_64 := biosdecode ownership vpddecode

      PROGRAMS-amd64 := $(PROGRAMS-x86_64)


      PROGRAMS := dmidecode $(PROGRAMS-$(MACHINE))


      all : $(PROGRAMS)


      - bitbake image-full-galileo

      - Copy all files from ./tmp/deploy/images/ on SD card


      You can format the SD card with this tool on windows: SD Formatter 4.0 for Windows Download - SD Association

      Here is a copy.sh script (if your SD card is not mounted in /mnt/ change the path):




      # Put in meta-clanton_v1.0.1/yocto_build/tmp/deploy/images


      rm /mnt/* -rf


      cp image-full-galileo-clanton.ext3 /mnt/image-full-galileo-clanton.ext3

      cp core-image-minimal-initramfs-clanton.cpio.gz /mnt/core-image-minimal-initramfs-clanton.cpio.gz

      cp bzImage /mnt/bzImage

      cp grub.efi /mnt/

      cp boot/ /mnt/ -r





      - Boot the image (it boots and works fine) and all file changes are preserved after reboot.