Wonseok Ko

Tuesday, March 01, 2016

How to boot kernel on SMP

Saturday, February 20, 2016

Building Genivi for vexpress-a9 qemu

See the details in http://git.yoctoproject.org/cgit/cgit.cgi/meta-ivi/tree/README.md

git clone git://git.yoctoproject.org/meta-ivi
git clone git://git.yoctoproject.org/poky
git clone  git://git.openembedded.org/meta-openembedded

cd poky; git checkout -b fido eb4a134a60e3ac26a48379675ad6346a44010339; cd -

cd meta-openembedded; git checkout -b fido 5b0305d9efa4b5692cd942586fb7aa92dba42d59; cd -

source poky/oe-init-build-env
bitbake kronos-image

I've got error:
ERROR: Command Error: exit status: 128  Output:

*** Please tell me who you are.

Run

  git config --global user.email "you@example.com"
  git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: unable to auto-detect email address (got 'wonseok@wonseok.(none)')
ERROR: Function failed: patch_do_patch
ERROR: Logfile of failure stored in: /home/wonseok/genivi/build/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/weston/1.6.0-r2/temp/log.do_patch.30616

ERROR: Task 1319 (/home/wonseok/genivi/poky/meta/recipes-graphics/wayland/weston_1.6.0.bb, do_patch) failed with exit code '1'

I entered git configuration. and then I got another errors:

ERROR: Command Error: exit status: 1  Output:
checking file configure.ac
Reversed (or previously applied) patch detected!  Assume -R? [n] 
Apply anyway? [n] 
Skipping patch.
1 out of 1 hunk ignored
ERROR: Function failed: patch_do_patch
ERROR: Logfile of failure stored in: /home/wonseok/genivi/build/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/weston/1.6.0-r2/temp/log.do_patch.18880
ERROR: Task 1319 (/home/wonseok/genivi/poky/meta/recipes-graphics/wayland/weston_1.6.0.bb, do_patch) failed with exit code '1'

Next Approach: I changed the version of meta-ivi.
See the details in https://at.projects.genivi.org/wiki/pages/viewpage.action?pageId=11568602




Building Yocto baseline on Renesas R-Car H2: X11

See the details to http://elinux.org/R-Car/Boards/Yocto.

1. Download software

mkdir $HOME/yocto/r-car-h2
cd $HOME/yocto/r-car-h2
export WORK=$PWD

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
git clone git://github.com/CogentEmbedded/meta-renesas.git
git clone git://github.com/renesas-devel/lager-config.git

2. Download proprietary software from renesas website.

mkdir $WORK/proprietary
cp ~/Downloads/R-Car_Series_Evaluation_Software_Package_*.gz $WORK/proprietary

3. setup software

cd $WORK/poky
git checkout -b tmp yocto-1.6.1

cd $WORK/meta-openembedded
git checkout -b tmp dca466c074c9a35bc0133e7e0d65cca0731e2acf

cd $WORK/meta-linaro
git checkout -b tmp 8a0601723c06fdb75e62aa0f0cf15fc9d7d90167

cd $WORK/meta-renesas
git checkout -b tmp origin/v1.10.0

cd $WORK/lager-config
git checkout -b tmp default/v1.9.0

cd $WORK/meta-renesas/meta-rcar-gen2
./copy_gfx_software_stout.sh ../../proprietary

cd $WORK/meta-renesas/meta-rcar-gen2
./copy_mm_software_lcb.sh ../../proprietary

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

cd $WORK/build
cp ../lager-config/bblayers.conf ./conf

# X11
cp ../lager-config/local-x11.conf ./conf/local.conf
bitbake core-image-x11


I've got some error messages as below:
1. gstreamer compile error


| grammar.tab.c: In function 'priv_gst_parse_yyparse':
| grammar.tab.c:1821:7: error: too few arguments to function 'priv_gst_parse_yylex'
|    if (yychar == YYEMPTY)
|        ^
| /home/wonseok/yocto/r-car-h2/build/tmp/work/cortexa15hf-vfp-neon-poky-linux-gnueabi/gstreamer/0.10.36-r2/gstreamer-0.10.36/gst/parse/grammar.y:39:5: note: declared here
|  int priv_gst_parse_yylex (void * yylval_param , yyscan_t yyscanner);
|      ^
| make[4]: *** [libgstparse_la-grammar.tab.lo] Error 1
| make[4]: Leaving directory `/home/wonseok/yocto/r-car-h2/build/tmp/work/cortexa15hf-vfp-neon-poky-linux-gnueabi/gstreamer/0.10.36-r2/build/gst/parse'
| make[3]: *** [all-recursive] Error 1
| make[3]: Leaving directory `/home/wonseok/yocto/r-car-h2/build/tmp/work/cortexa15hf-vfp-neon-poky-linux-gnueabi/gstreamer/0.10.36-r2/build/gst'
| make[2]: *** [all] Error 2
| make[2]: Leaving directory `/home/wonseok/yocto/r-car-h2/build/tmp/work/cortexa15hf-vfp-neon-poky-linux-gnueabi/gstreamer/0.10.36-r2/build/gst'
| make[1]: *** [all-recursive] Error 1
| make[1]: Leaving directory `/home/wonseok/yocto/r-car-h2/build/tmp/work/cortexa15hf-vfp-neon-poky-linux-gnueabi/gstreamer/0.10.36-r2/build'
| make: *** [all] Error 2
| ERROR: oe_runmake failed
| WARNING: /home/wonseok/yocto/r-car-h2/build/tmp/work/cortexa15hf-vfp-neon-poky-linux-gnueabi/gstreamer/0.10.36-r2/temp/run.do_compile.8313:1 exit 1 from
|   exit 1
| ERROR: Function failed: do_compile (log file is located at /home/wonseok/yocto/r-car-h2/build/tmp/work/cortexa15hf-vfp-neon-poky-linux-gnueabi/gstreamer/0.10.36-r2/temp/log.do_compile.8313)
ERROR: Task 3392 (/home/wonseok/yocto/r-car-h2/build/../poky/meta/recipes-multimedia/gstreamer/gstreamer_0.10.36.bb, do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 4119 tasks of which 22 didn't need to be rerun and 1 failed.
Waiting for 0 running tasks to finish:

Summary: 1 task failed:
  /home/wonseok/yocto/r-car-h2/build/../poky/meta/recipes-multimedia/gstreamer/gstreamer_0.10.36.bb, do_compile
Summary: There were 16 WARNING messages shown.

Summary: There was 1 ERROR message shown, returning a non-zero exit code.

Uncommented as below in grammer.tab.c

//int priv_gst_parse_yylex (void * yylval_param , yyscan_t yyscanner);                   

Saturday, January 10, 2015

How to build ARM cross compiler using crosstool-ng

Crosstool-ng git commit version: 2ba44bb7619ad28238d29386da89989fedaff9a8
Environment: ubuntu precise x86_64


1. Download crosstool-ng
  git clone git://crosstool-ng.org/crosstool-ng

2. build crosstool-ng: see the $(CTNG_ROOT)/README
  #> ./bootstrap
  #> ./configure
  #> make 
  #> sudo make install         

3. build cross compiler with config included crosstool-ng
  #> ct-ng list-samples  ; you can see as followings or simliar after the command

   Status  Sample name
[L..]   alphaev56-unknown-linux-gnu
[L..]   alphaev67-unknown-linux-gnu
[L..]   arm-bare_newlib_cortex_m3_nommu-eabi
[L..]   arm-cortex_a15-linux-gnueabi
[L.X]   arm-cortexa5-linux-uclibcgnueabihf
[L..]   arm-cortex_a8-linux-gnueabi
[L.X]   arm-cortexa9_neon-linux-gnueabihf
[L..]   armeb-unknown-eabi
[L..]   armeb-unknown-linux-gnueabi
[L..]   armeb-unknown-linux-uclibcgnueabi
[L..]   arm-unknown-eabi
[L..]   arm-unknown-linux-gnueabi
[L..]   arm-unknown-linux-uclibcgnueabi
[L.X]   arm-unknown-linux-uclibcgnueabihf
[L..]   armv6-rpi-linux-gnueabi
[L..]   avr32-unknown-none
[L..]   bfin-unknown-linux-uclibc
[L..]   i586-geode-linux-uclibc
[L..]   i586-mingw32msvc,i686-none-linux-gnu
[L..]   i686-nptl-linux-gnu
[L..]   i686-unknown-mingw32
[L..]   m68k-unknown-elf
[L..]   m68k-unknown-uclinux-uclibc
[L.X]   mips64el-n32-linux-uclibc
[L.X]   mips64el-n64-linux-uclibc
[L..]   mips-ar2315-linux-gnu
[L..]   mipsel-sde-elf
[L..]   mipsel-unknown-linux-gnu
[L..]   mips-malta-linux-gnu
[L..]   mips-unknown-elf
[L..]   mips-unknown-linux-uclibc
[L..]   powerpc-405-linux-gnu
[L..]   powerpc64-unknown-linux-gnu
[L..]   powerpc-860-linux-gnu
[L..]   powerpc-e300c3-linux-gnu
[L..]   powerpc-e500v2-linux-gnuspe
[L..]   powerpc-unknown-linux-gnu
[LB.]   powerpc-unknown-linux-uclibc
[L..]   powerpc-unknown_nofpu-linux-gnu
[L.X]   s390-ibm-linux-gnu
[L..]   s390x-ibm-linux-gnu
[L..]   sh4-unknown-linux-gnu
[L..]   sparc-unknown-linux-gnu
[L..]   x86_64-unknown-linux-gnu
[L..]   x86_64-unknown-linux-uclibc
[L..]   x86_64-unknown-mingw32
 L (Local)       : sample was found in current directory
 G (Global)      : sample was installed with crosstool-NG
 X (EXPERIMENTAL): sample may use EXPERIMENTAL features
 B (BROKEN)      : sample is currently broken

  #> ct-ng arm-cortex_a15-linux-gnueabi
  #> ct-ng build ; see the message as followings

[INFO ]  Performing some trivial sanity checks
[INFO ]  Build started 20150109.220541
[INFO ]  Building environment variables
[WARN ]  Directory '/home/wonseok/src' does not exist.
[WARN ]  Will not save downloaded tarballs to local storage.
[EXTRA]  Preparing working directories
[EXTRA]  Installing user-supplied crosstool-NG configuration
[EXTRA]  =================================================================
[EXTRA]  Dumping internal crosstool-NG configuration
[EXTRA]    Building a toolchain for:
[EXTRA]      build  = x86_64-unknown-linux-gnu
[EXTRA]      host   = x86_64-unknown-linux-gnu
[EXTRA]      target = arm-cortex_a15-linux-gnueabihf
[EXTRA]  Dumping internal crosstool-NG configuration: done in 0.07s (at 00:06)

  #> ls ~/x-tools/arm-cortex_a15-linux-gnueabihf/bin 


You can see your cross-compiler files in ~/x-tools/arm-cortex_a15-linux-gnueabihf.