4 Replies Latest reply on Feb 17, 2017 1:43 PM by Intel Corporation

    how to cross-compile my driver code on ubuntu 16.04 for intel joule board?


      i had cloned from git ostro-xt-os..i follow these steps


      Ubuntu 16.04


      sudo apt-get update

      sudo apt-get upgrade

      sudo apt-get install texinfo gawk chrpath

      export WORKSPACE=$HOME/work/ostro-os-xt

      mkdir -p $WORKSPACE

      cd $WORKSPACE

      git clone --recursive https://github.com/ostroproject/ostro-os-xt .

      source ostro-init-build-env

      vi conf/local.conf //uncomment line 292

      bitbake ostro-xt-image-noswupd


      after that it shows that your source code is available @

      The source code is located in the Yocto ${WORKDIR} which is: tmp-glibc/work/corei7-64-intel-common-iotos-linux/linux-yocto/<kernel-version>/linux-corei7-64-intel-common-standard-build/source


      but it did not shows source folder.(nothing is there in linux-corei7-64-intel-common-standard-build folder)


      i follow

      Creating Kernel Headers package in Yocto env?

      these steps for kernel headers !

      bitbake linux-yocto -c devshell

      make -j 20 ARCH=i386 KBUILD_DEBARCH=i386 KDEB_PKGVERSION=1.1 deb-pkg

      (Copy in any missing perl modules and keep repeating the make until there are no more, there's about 3...)

      Get to the dpkg-genconfig error, and add in a sed script to change amd64 to i386 before dpkg-gencontrol executes. This is in the scripts/packages/builddeb script.

      Run the make again for the final time, and you should end up with 3 .deb packages in ..





      but after entering this cmd       "make -j 20 ARCH=i386 KBUILD_DEBARCH=i386 KDEB_PKGVERSION=1.1 deb-pkg"

      it shows


      make -j 20 ARCH=i386 KBUILD_DEBARCH=i386 KDEB_PKGVERSION=1.1 deb-pkg

      make: *** No rule to make target 'deb-pkg'.  Stop.


      what i did wrong?


      and what to do for simple "hello_world" diver code cross_compilation for intel joule board.