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 3: Line 3:
 
Please tell me how to solve it.<br />
 
Please tell me how to solve it.<br />
 
<br />
 
<br />
 
 
The operation is as follows.<br />
 
The operation is as follows.<br />
 
<br />
 
<br />
 
 
First, I downloaded and unpacked zip files.<br />
 
First, I downloaded and unpacked zip files.<br />
 
R-Car_Gen3_Series_Evaluation_Software_Package_of_Linux_Drivers-20160906.zip<br />
 
R-Car_Gen3_Series_Evaluation_Software_Package_of_Linux_Drivers-20160906.zip<br />
 
R-Car_Gen3_Series_Evaluation_Software_Package_for_Linux-20160906.zip<br />
 
R-Car_Gen3_Series_Evaluation_Software_Package_for_Linux-20160906.zip<br />
 
<br />
 
<br />
 
 
Then I unzipped these.<br />
 
Then I unzipped these.<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 />
 
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 />
 
<br />
 
<br />
 
 
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 />
 
 
I built a BSP.<br />
 
I built a BSP.<br />
 
<br />
 
<br />
 
 
 
1.<br />
 
1.<br />
<br />
 
 
$ mkdir build<br />
 
$ mkdir build<br />
 
$ cd build<br />
 
$ cd build<br />
 
$ export WORK=`pwd`<br />
 
$ export WORK=`pwd`<br />
 
<br />
 
<br />
 
 
2.<br />
 
2.<br />
<br />
 
 
cd $WORK<br />
 
cd $WORK<br />
 
$ git clone git://git.yoctoproject.org/poky<br />
 
$ git clone git://git.yoctoproject.org/poky<br />
Line 39: Line 29:
 
$ 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 />
 
 
$ cd $WORK/poky<br />
 
$ cd $WORK/poky<br />
 
$ git checkout -b tmp 40376446904ae3529be41737fed9a0b650ed167d<br />
 
$ git checkout -b tmp 40376446904ae3529be41737fed9a0b650ed167d<br />
Line 49: Line 37:
 
$ git checkout -b tmp 9b1fd178309544dff1f7453e796a9437125bc0d9<br />
 
$ git checkout -b tmp 9b1fd178309544dff1f7453e796a9437125bc0d9<br />
 
<br />
 
<br />
 
 
4.<br />
 
4.<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 />
 
 
$ 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 />
Line 63: Line 47:
 
$ unset PATCH_DIR<br />
 
$ unset PATCH_DIR<br />
 
<br />
 
<br />
 
 
6.<br />
 
6.<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 />
 
<br />
 
<br />
 
 
7.<br />
 
7.<br />
<br />
 
 
$ export PKGS_DIR=$WORK/proprietary<br />
 
$ export PKGS_DIR=$WORK/proprietary<br />
 
$ cd $WORK/meta-renesas<br />
 
$ cd $WORK/meta-renesas<br />
Line 78: Line 58:
 
$ unset PKGS_DIR<br />
 
$ unset PKGS_DIR<br />
 
<br />
 
<br />
 
 
8.<br />
 
8.<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 />
 
 
$ 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 />
 
 
10.<br />
 
10.<br />
<br />
 
 
I am not care.<br />
 
I am not care.<br />
 
<br />
 
<br />
 
 
11. <br />
 
11. <br />
<br />
 
 
enabled<br />
 
enabled<br />
 
MACHINE_FEATURES_append = " m3ulcb-view"<br />
 
MACHINE_FEATURES_append = " m3ulcb-view"<br />
 
<br />
 
<br />
 
 
12.<br />
 
12.<br />
<br />
 
 
enabled<br />
 
enabled<br />
 
DISTRO_FEATURES_append = " use_eva_pkg"<br />
 
DISTRO_FEATURES_append = " use_eva_pkg"<br />
 
<br />
 
<br />
 
 
 
13.<br />
 
13.<br />
 +
$ bitbake core-image-weston<br />
 
<br />
 
<br />
$ bitbake core-image-weston<br />
 
 
<br />
 
<br />
 
 
At this time, the following error message was output.<br />
 
At this time, the following error message was output.<br />
 
<br />
 
<br />
 
+
  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:
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:<br />
+
    python-pycairo-native
  python-pycairo-native<br />
+
    python-pycurl-native
  python-pycurl-native<br />
+
    python-pyrex-native
  python-pyrex-native<br />
+
  ERROR: Required build target 'core-image-weston' has no buildable providers.
ERROR: Required build target 'core-image-weston' has no buildable providers.<br />
+
  Missing or unbuildable dependency chain was: ['core-image-weston', 'optee-os', 'python-pycrypto-native']
Missing or unbuildable dependency chain was: ['core-image-weston', 'optee-os', 'python-pycrypto-native']<br />
 
 
<br />
 
<br />

Latest revision as of 02:20, 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']