Difference between revisions of "Thread:Talk:R-Car/Boards/Yocto-Gen3/IBuild Linux for the R-Car-M3 Starter Kit Pro"

From eLinux.org
Jump to: navigation, search
m
m
Line 18: Line 18:
  
 
Next, I installed the package.<br />
 
Next, I installed the package.<br />
sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib build-essential chrpath socat libsdl1.2-dev xterm python-crypto<br />
+
$ sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib build-essential chrpath socat libsdl1.2-dev xterm python-crypto<br />
 
<br />
 
<br />
  
Line 25: Line 25:
 
1.<br />
 
1.<br />
 
<br />
 
<br />
mkdir build<br />
+
$ mkdir build<br />
cd build<br />
+
$ cd build<br />
export WORK=`pwd`<br />
+
$ export WORK=`pwd`<br />
 
<br />
 
<br />
  
Line 33: Line 33:
 
<br />
 
<br />
 
cd $WORK<br />
 
cd $WORK<br />
git clone git://git.yoctoproject.org/poky<br />
+
$ git clone git://git.yoctoproject.org/poky<br />
git clone git://git.openembedded.org/meta-openembedded<br />
+
$ git clone git://git.openembedded.org/meta-openembedded<br />
git clone git://git.linaro.org/openembedded/meta-linaro.git<br />
+
$ git clone git://git.linaro.org/openembedded/meta-linaro.git<br />
 
<br />
 
<br />
  
 
3.<br />
 
3.<br />
 
<br />
 
<br />
cd $WORK/poky<br />
+
$ cd $WORK/poky<br />
git checkout -b tmp 40376446904ae3529be41737fed9a0b650ed167d<br />
+
$ git checkout -b tmp 40376446904ae3529be41737fed9a0b650ed167d<br />
cd $WORK/meta-openembedded<br />
+
$ cd $WORK/meta-openembedded<br />
git checkout -b tmp 8ab04afbffb4bc5184cfe0655049de6f44269990<br />
+
$ git checkout -b tmp 8ab04afbffb4bc5184cfe0655049de6f44269990<br />
cd $WORK/meta-linaro<br />
+
$ cd $WORK/meta-linaro<br />
git checkout -b tmp 9b1fd178309544dff1f7453e796a9437125bc0d9<br />
+
$ git checkout -b tmp 9b1fd178309544dff1f7453e796a9437125bc0d9<br />
 
<br />
 
<br />
  
 
4.<br />
 
4.<br />
 
<br />
 
<br />
cd $WORK<br />
+
$ cd $WORK<br />
git clone git://github.com/CogentEmbedded/meta-rcar.git meta-renesas -b v2.12.0<br />
+
$ git clone git://github.com/CogentEmbedded/meta-rcar.git meta-renesas -b v2.12.0<br />
 
<br />
 
<br />
  
 
5.<br />
 
5.<br />
 
<br />
 
<br />
cd $WORK/meta-renesas<br />
+
$ cd $WORK/meta-renesas<br />
export PATCH_DIR=meta-rcar-gen3/docs/sample/patch/patch-for-linaro-gcc<br />
+
$ export PATCH_DIR=meta-rcar-gen3/docs/sample/patch/patch-for-linaro-gcc<br />
patch -p1 < ${PATCH_DIR}/0001-rcar-gen3-add-readme-for-building-with-Linaro-Gcc.patch<br />
+
$ patch -p1 < ${PATCH_DIR}/0001-rcar-gen3-add-readme-for-building-with-Linaro-Gcc.patch<br />
unset PATCH_DIR<br />
+
$ unset PATCH_DIR<br />
 
<br />
 
<br />
  
 
6.<br />
 
6.<br />
 
<br />
 
<br />
ls -1 $WORK/proprietary<br />
+
$ ls -1 $WORK/proprietary<br />
 
R-Car_Gen3_Series_Evaluation_Software_Package_for_Linux-20160906.tar.gz<br />
 
R-Car_Gen3_Series_Evaluation_Software_Package_for_Linux-20160906.tar.gz<br />
 
R-Car_Gen3_Series_Evaluation_Software_Package_of_Linux_Drivers-20160906.tar.gz<br />
 
R-Car_Gen3_Series_Evaluation_Software_Package_of_Linux_Drivers-20160906.tar.gz<br />
Line 71: Line 71:
 
7.<br />
 
7.<br />
 
<br />
 
<br />
export PKGS_DIR=$WORK/proprietary<br />
+
$ export PKGS_DIR=$WORK/proprietary<br />
cd $WORK/meta-renesas<br />
+
$ cd $WORK/meta-renesas<br />
sh meta-rcar-gen3/docs/sample/copyscript/copy_evaproprietary_softwares.sh -f $PKGS_DIR<br />
+
$ sh meta-rcar-gen3/docs/sample/copyscript/copy_evaproprietary_softwares.sh -f $PKGS_DIR<br />
unset PKGS_DIR<br />
+
$ unset PKGS_DIR<br />
 
<br />
 
<br />
  
 
8.<br />
 
8.<br />
 
<br />
 
<br />
cd $WORK<br />
+
$ cd $WORK<br />
source poky/oe-init-build-env<br />
+
$ source poky/oe-init-build-env<br />
 
<br />
 
<br />
  
 
9.<br />
 
9.<br />
 
<br />
 
<br />
cp $WORK/meta-renesas/meta-rcar-gen3/docs/sample/conf/m3ulcb/linaro-gcc/mmp/*.conf ./conf/<br />
+
$ cp $WORK/meta-renesas/meta-rcar-gen3/docs/sample/conf/m3ulcb/linaro-gcc/mmp/*.conf ./conf/<br />
cd $WORK/build<br />
+
$ cd $WORK/build<br />
cp conf/local-wayland.conf conf/local.conf<br />
+
$ cp conf/local-wayland.conf conf/local.conf<br />
 
<br />
 
<br />
  
Line 110: Line 110:
 
13.<br />
 
13.<br />
 
<br />
 
<br />
bitbake core-image-weston<br />
+
$ bitbake core-image-weston<br />
 
<br />
 
<br />
  

Revision as of 02:15, 15 December 2016

I tried building Linux for the R-Car-M3 Starter Kit Pro according to the guide, It can not be built due to an error in bitbake.
Please tell me how to solve it.

The operation is as follows.

First, I downloaded and unpacked zip files.
R-Car_Gen3_Series_Evaluation_Software_Package_of_Linux_Drivers-20160906.zip
R-Car_Gen3_Series_Evaluation_Software_Package_for_Linux-20160906.zip

Then I unzipped these.
R-Car_Gen3_Series_Evaluation_Software_Package_of_Linux_Drivers-20160906.tar.gz
R-Car_Gen3_Series_Evaluation_Software_Package_for_Linux-20160906.tar.gz

Next, I installed the package.
$ sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib build-essential chrpath socat libsdl1.2-dev xterm python-crypto

I built a BSP.

1.

$ mkdir build
$ cd build
$ export WORK=`pwd`

2.

cd $WORK
$ git clone git://git.yoctoproject.org/poky
$ git clone git://git.openembedded.org/meta-openembedded
$ git clone git://git.linaro.org/openembedded/meta-linaro.git

3.

$ cd $WORK/poky
$ git checkout -b tmp 40376446904ae3529be41737fed9a0b650ed167d
$ cd $WORK/meta-openembedded
$ git checkout -b tmp 8ab04afbffb4bc5184cfe0655049de6f44269990
$ cd $WORK/meta-linaro
$ git checkout -b tmp 9b1fd178309544dff1f7453e796a9437125bc0d9

4.

$ cd $WORK
$ git clone git://github.com/CogentEmbedded/meta-rcar.git meta-renesas -b v2.12.0

5.

$ cd $WORK/meta-renesas
$ export PATCH_DIR=meta-rcar-gen3/docs/sample/patch/patch-for-linaro-gcc
$ patch -p1 < ${PATCH_DIR}/0001-rcar-gen3-add-readme-for-building-with-Linaro-Gcc.patch
$ unset PATCH_DIR

6.

$ ls -1 $WORK/proprietary
R-Car_Gen3_Series_Evaluation_Software_Package_for_Linux-20160906.tar.gz
R-Car_Gen3_Series_Evaluation_Software_Package_of_Linux_Drivers-20160906.tar.gz

7.

$ export PKGS_DIR=$WORK/proprietary
$ cd $WORK/meta-renesas
$ sh meta-rcar-gen3/docs/sample/copyscript/copy_evaproprietary_softwares.sh -f $PKGS_DIR
$ unset PKGS_DIR

8.

$ cd $WORK
$ source poky/oe-init-build-env

9.

$ cp $WORK/meta-renesas/meta-rcar-gen3/docs/sample/conf/m3ulcb/linaro-gcc/mmp/*.conf ./conf/
$ cd $WORK/build
$ cp conf/local-wayland.conf conf/local.conf

10.

I am not care.

11.

enabled
MACHINE_FEATURES_append = " m3ulcb-view"

12.

enabled
DISTRO_FEATURES_append = " use_eva_pkg"


13.

$ bitbake core-image-weston

At this time, the following error message was output.

ERROR: Nothing PROVIDES 'python-pycrypto-native' (but /media/rcar/Test_M3_Starterkitpro_yocto2.12.0/work/build/build/../meta-renesas/meta-rcar-gen3/recipes-bsp/optee/optee-os_git.bb DEPENDS on or otherwise requires it). Close matches:

 python-pycairo-native
python-pycurl-native
python-pyrex-native

ERROR: Required build target 'core-image-weston' has no buildable providers.
Missing or unbuildable dependency chain was: ['core-image-weston', 'optee-os', 'python-pycrypto-native']