Community
cancel
Showing results for 
Search instead for 
Did you mean: 
uNimb
Beginner
1,325 Views

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 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 http://www.yoctoproject.org/docs/2.0/ref-manual/ref-manual.html# var-WORKDIR ${WORKDIR} which is: tmp-glibc/work/corei7-64-intel-common-iotos-linux/linux-yocto//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

/message/279913# 279913 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 ..

linux-headers-3.10.17-yocto-standard-r2_1.1_i386.deb

linux-image-3.10.17-yocto-standard-r2_1.1_i386.deb

linux-libc-dev_1.1_i386.deb

but after entering this cmd "make -j 20 ARCH=i386 KBUILD_DEBARCH=i386 KDEB_PKG...

0 Kudos
4 Replies
idata
Community Manager
58 Views

Hi Umesh,

 

 

Did you make sure to follow all the instructions from the README document in the Ostro OS XT GitHub site? https://github.com/ostroproject/ostro-os-xt/blob/master/README.rst https://github.com/ostroproject/ostro-os-xt/blob/master/README.rst.

 

I've been looking for the first set of instructions that you are running but I haven't find them yet. I mean the first three lines from your first set of instructions. I would like to test it, but I would prefer to do it the same way you're doing it, so if you are you using a different guide please let us know.

 

Also, you're following the instructions to build the image without Docker, have you tried doing it with Docker? Is there any reason why you wouldn't do it that way?

 

 

Regards,

 

-Pablo
idata
Community Manager
58 Views

Hi Umesh,

 

 

Do you have updates on this case?

 

 

Regards,

 

-Pablo
uNimb
Beginner
58 Views

now i got successfully source code without using a "DOCKER"(not need to use docker for getting source code). just do one thing to get source code un-comment line no 292 & comment line no 284 from ostro-os-xt -> build -> conf -> local.conf

idata
Community Manager
58 Views

Hi Umesh,

 

 

Thank you very much for the update. I'm glad to know you were able to solve the issue.

 

 

Regards,

 

-Pablo
Reply