• Download
  $ repo init -b eel -u https://gerrit.automotivelinux.org/gerrit/AGL/AGL-repo
  $ repo sync


  • Building the AGL Demo Platform for QEMU

  $ source meta-agl/scripts/aglsetup.sh -m qemux86-64 agl-demo agl-netboot agl-appfw-smack   
  
  $ bitbake agl-demo-platform


'Yocto' 카테고리의 다른 글

[AGL] rpi3  (2) 2018.07.20
[BBB] Image 올리기  (0) 2018.06.07
[BBB] Yocto Build 환경셋팅  (0) 2018.06.04
우분투 x32 비트 사용  (0) 2018.05.29
An upgrade strategy for embedded Linux systems  (0) 2017.07.16


Yocto 소스코드 다운로드 


환경 Ubuntu 18.04


$ repo init -b eel -u https://gerrit.automotivelinux.org/gerrit/AGL/AGL-repo

$ repo sync


export AGL_TOP=$HOME/workspace_agl

mkdir -p $AGL_TOP


source meta-agl/scripts/aglsetup.sh -m raspberrypi3 agl-demo agl-netboot agl-appfw-smack

bitbake agl-demo-platform


$ source AGL_RPI3/meta-agl/scripts/aglsetup.sh -m raspberrypi3 agl-demo agl-netboot agl-appfw-smack

------------ aglsetup.sh: Starting

Generating configuration files:

   Build dir: /home/kj/RPI3/build

   Machine: raspberrypi3

   Features: agl-appfw-smack agl-demo agl-devel agl-hmi-framework agl-netboot 

   Running /home/kj/RPI3/AGL_RPI3/poky/oe-init-build-env

   Templates dir: /home/kj/RPI3/AGL_RPI3/meta-agl/templates/base

   Config: /home/kj/RPI3/build/conf/bblayers.conf

   Config: /home/kj/RPI3/build/conf/local.conf

   Setup script: /home/kj/RPI3/build/conf/setup.sh

   Executing setup script ... --- beginning of setup script

--- fragment /home/kj/RPI3/AGL_RPI3/meta-agl/templates/base/01_setup_EULAfunc.sh

--- fragment /home/kj/RPI3/AGL_RPI3/meta-agl/templates/base/99_setup_EULAconf.sh

--- end of setup script

OK

Generating setup file: /home/kj/RPI3/build/agl-init-build-env ... OK

------------ aglsetup.sh: Done


### Shell environment set up for builds. ###


You can now run 'bitbake <target>'


Common targets are:

  - meta-agl:          (core system)

    agl-image-minimal

    agl-image-minimal-qa

    

    agl-image-ivi

    agl-image-ivi-qa

    agl-image-ivi-crosssdk

    

    agl-image-weston


  - meta-agl-demo:     (demo with UI)

    agl-demo-platform  (* default demo target)

    agl-demo-platform-qa

    agl-demo-platform-crosssdk

    

    agl-demo-platform-html5







Booting AGL Demo Platform on Raspberry Pi


Output Image location in build machine for Raspberry Pi 3: tmp/deploy/images/raspberrypi3/agl-demo-platform-raspberrypi3.wic.xz


sudo umount [sdcard device]

xzcat [output image] | sudo dd of=[sdcard device] bs=4M

sync


disable Homescreen services:

           # systemctl disable HomeScreenAppFrameworkBinderAGL.service
           # systemctl disable HomeScreen.service
           # systemctl disable InputEventManager.service
           # systemctl disable WindowManager.service



Commercial Licensed Packages

# For libomxil

LICENSE_FLAGS_WHITELIST = "commercial"


IMAGE_INSTALL_append = " libomxil"



Touchscreen with Rotation


root@raspberrypi3:/etc/xdg/weston# cat weston.ini
[core]
backend=drm-backend.so
shell=desktop-shell.so

[shell]
locking=true
# Uncomment below to hide panel
#panel-location=none

[launcher]
icon=/usr/share/weston/terminal.png
path=/usr/bin/weston-terminal

[launcher]
icon=/usr/share/weston/icon_flower.png
path=/usr/bin/weston-flower

[output]
name=DSI-1
transform=270


Yocto Build Error


1. e2fsprogs_1.43.4.bb

 - 

|  static errcode_t copy_file_range(ext2_filsys fs, int fd, ext2_file_t e2_file,

|                   ^

| In file included from ../../git/debugfs/../misc/create_inode.c:19:0:

| /usr/include/unistd.h:1110:9: note: previous declaration of ‘copy_file_range’ was here

|  ssize_t copy_file_range (int __infd, __off64_t *__pinoff,

|          ^



/home/kj/RPI3/build/tmp/work/x86_64-linux/e2fsprogs-native/1.43.4-r0/git/misc

copy_file_range 주석처리함


처리되지 않아 웹검색을 통해 http://recipes.yoctoproject.org/rrs/recipedetail/181/

open-embedded 소스를 비교해 보기로 하였다.



$ git clone git://git.openembedded.org/openembedded-core


해당 레시피 복사 후 해결


2. qemu error

| /usr/include/x86_64-linux-gnu/bits/mman-shared.h:46:5: note: previous declaration of ‘memfd_create’ was here

 - memfd_create 펑션 주석처리하여 해결


참고

AGL 설치사이트 : https://wiki.automotivelinux.org/agl-distro/agl-raspberrypi


'Yocto' 카테고리의 다른 글

[AGL] 셋업qemu  (0) 2018.08.03
[BBB] Image 올리기  (0) 2018.06.07
[BBB] Yocto Build 환경셋팅  (0) 2018.06.04
우분투 x32 비트 사용  (0) 2018.05.29
An upgrade strategy for embedded Linux systems  (0) 2017.07.16


git clone -b rocko git://github.com/jumpnow/meta-bbb


cd meta-bbb/
git checkout rocko


'Yocto' 카테고리의 다른 글

[AGL] 셋업qemu  (0) 2018.08.03
[AGL] rpi3  (2) 2018.07.20
[BBB] Yocto Build 환경셋팅  (0) 2018.06.04
우분투 x32 비트 사용  (0) 2018.05.29
An upgrade strategy for embedded Linux systems  (0) 2017.07.16



repo init -b dab -u https://gerrit.automotivelinux.org/gerrit/AGL/AGL-repo




source meta-agl/scripts/aglsetup.sh -h

 

Available machines:

   [meta-agl]

       beaglebone

       cyclone5

       dra7xx-evm

       dragonboard-410c

       h3ulcb

       imx6qsabreauto

       imx6qsabrelite

       intel-corei7-64

       joule

       m3ulcb

       m3ulcb-nogfx

       nitrogen6x

       porter

       porter-nogfx

       qemux86

     * qemux86-64

       raspberrypi2

       raspberrypi3

       raspberrypi3-64

       wandboard




source meta-agl/scripts/aglsetup.sh -m beaglebone agl-demo agl-netboot agl-appfw-smack


------------ aglsetup.sh: Starting

Generating configuration files:

   Build dir: /home/kj/BBB/Yocto/build

   Machine: beaglebone

   Features: agl-appfw-smack agl-demo agl-devel agl-netboot 

   Running /home/kj/BBB/Yocto/poky/oe-init-build-env

   Templates dir: /home/kj/BBB/Yocto/meta-agl/templates/base

   Config: /home/kj/BBB/Yocto/build/conf/bblayers.conf

   Config: /home/kj/BBB/Yocto/build/conf/local.conf

   Setup script: /home/kj/BBB/Yocto/build/conf/setup.sh

   Executing setup script ... --- beginning of setup script

--- fragment /home/kj/BBB/Yocto/meta-agl/templates/base/01_setup_EULAfunc.sh

--- fragment /home/kj/BBB/Yocto/meta-agl/templates/base/99_setup_EULAconf.sh

--- end of setup script

OK

Generating setup file: /home/kj/BBB/Yocto/build/agl-init-build-env ... OK

------------ aglsetup.sh: Done


### Shell environment set up for builds. ###


You can now run 'bitbake <target>'


Common targets are:

  - meta-agl:          (core system)

    agl-image-minimal

    agl-image-minimal-qa

    

    agl-image-ivi

    agl-image-ivi-qa

    agl-image-ivi-crosssdk

    

    agl-image-weston


  - meta-agl-demo:     (demo with UI)

    agl-demo-platform  (* default demo target)

    agl-demo-platform-qa

    agl-demo-platform-crosssdk

    

    agl-demo-platform-html5



bitbake agl-demo-platform


Error !

qemu  multi define 처리



sudo apt-get install libjson-c-dev

| ../json-c-0.12/json_tokener.c:304:12: error: this statement may fall through [-Werror=implicit-fallthrough=]

|          if (tok->flags & JSON_TOKENER_STRICT) {

|             ^

| ../json-c-0.12/json_tokener.c:309:7: note: here

|        case '"':

|        ^~~~

| cc1: all warnings being treated as errors

| Makefile:577: recipe for target 'linkhash.lo' failed

| make[2]: *** [linkhash.lo] Error 1

| make[2]: *** Waiting for unfinished jobs....

| cc1: all warnings being treated as errors

| cc1: all warnings being treated as errors

| Makefile:577: recipe for target 'json_tokener.lo' failed

| make[2]: *** [json_tokener.lo] Error 1

| Makefile:577: recipe for target 'json_object.lo' failed

| make[2]: *** [json_object.lo] Error 1

| make[2]: Leaving directory '/home/kj/BBB/Yocto/build/tmp/work/x86_64-linux/json-c-native/0.12-r0/build'

| Makefile:637: recipe for target 'all-recursive' failed

| make[1]: *** [all-recursive] Error 1

| make[1]: Leaving directory '/home/kj/BBB/Yocto/build/tmp/work/x86_64-linux/json-c-native/0.12-r0/build'

| Makefile:437: recipe for target 'all' failed

| make: *** [all] Error 2

| ERROR: Function failed: do_compile (log file is located at /home/kj/BBB/Yocto/build/tmp/work/x86_64-linux/json-c-native/0.12-r0/temp/log.do_compile.2774)


0001-Link-against-libm-when-needed.patch 제거


'Yocto' 카테고리의 다른 글

[AGL] rpi3  (2) 2018.07.20
[BBB] Image 올리기  (0) 2018.06.07
우분투 x32 비트 사용  (0) 2018.05.29
An upgrade strategy for embedded Linux systems  (0) 2017.07.16
rpi2 Yocto 준비  (0) 2016.06.23

sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 zlib1g:i386

'Yocto' 카테고리의 다른 글

[BBB] Image 올리기  (0) 2018.06.07
[BBB] Yocto Build 환경셋팅  (0) 2018.06.04
An upgrade strategy for embedded Linux systems  (0) 2017.07.16
rpi2 Yocto 준비  (0) 2016.06.23
링크사이트  (0) 2016.01.12




참고

FrancaUserGuide-0.12.0.1.pdf


설치 가이드 : https://github.com/franca/franca/wiki/Franca-Quick-Install-Guide



add p

Eclipse Xtend - http://download.itemis.com/updates/releases



Franca UI Add-ons : KIELER open-source framework

http://rtsys.informatik.uni-kiel.de/~kieler/updatesite/release_pragmatics_2017-02-04

추가후 KIELER Lightweight Diagrams - Developer Resources & Examples 선택



For D-Bus Introspection support:  dbus-emf-model homepage


http://kbirken.github.io/dbus-emf-model/releases/

 add D-Bus Model Feature : 0.8.1.201606031239





  • For OMG IDL support: Install the idl4emf package via Help > Install new software... using the following update site link: http://franca.github.io/franca/update_site/thirdparty (this won't work in the browser). Deactivate option Group items by category if the item idl4emf is not visible.
  • For Google Protobuf support: Install the Protobuf Buffer Editor package via Help > Install new software... using the following update site link: http://franca.github.io/franca/update_site/thirdparty (this won't work in the browser). Deactivate option Group items by category if the item Protobuf Buffer Editor is not visible.

DSL 검색후 Eclipse DSL Tools 를 설치한다.


add 

Xtend 추가 : http://download.itemis.com/updates/releases

 Xtend IDE 2.10.0.v201605250459

KIELER 추가 :  http://rtsys.informatik.uni-kiel.de/~kieler/updatesite/release_pragmatics_2017-02-04


dbus-emf-model : http://kbirken.github.io/dbus-emf-model/releases/

 D-Bus model Feature 추가 

idl4emf package : http://franca.github.io/franca/update_site/thirdparty


설치항목

Franca : http://franca.github.io/franca/update_site/releases

Franca Runtime , Franca UI

옵션 설치 : Franca Providers Deployment 

                 Franca User Interface Add-ons

 D-Bus support UI

OMG IDL support UI


2번째 설치기 전체설치를 해 보았다.


추가설치 


    Franca D-Bus support UI 0.13.0.201804131325

    Franca OMG IDL support UI 0.13.0.201804131325

    Franca Providers Deployment 0.13.0.201804131325

    Franca Runtime 0.13.0.201804131325

    Franca UI 0.13.0.201804131325

    Franca User Interface Add-ons 0.13.0.201804131325










'Yocto > GENIVI' 카테고리의 다른 글

[Yocto] meta-ivi 분석  (0) 2018.05.23
CommonAPI 설치  (0) 2018.05.23

현재 최신 meta-ivi 를 파악하고자한다. 

CommonAPI 필요부분


소스코드 링크는 다음과 같다. : https://github.com/GENIVI/meta-ivi



meta-ivi Download

  • 다운로드 및 해당 브랜치로 변경

$ git clone https://github.com/GENIVI/meta-ivi.git

$ cd meta-ivi

$ git log

commit 8efbab9130de3fedd62ef5ac6ad6fe138df610d9 (HEAD -> master, origin/master, origin/HEAD)

Author: Oscar Andreasson <oscar.andreasson@pelagicore.com>

Date:   Fri May 4 11:04:32 2018 +0200


    qemu_2: Remove dependency on libusb

    

    This is a really old dependency append it's causing issues in builds

    relying on the meta-ivi layer. Removing it as it doesn't seem necessary.

    

    Signed-off-by: Oscar Andreasson <oscar.andreasson@pelagicore.com>




14.x 버전 대이다.

  • meta-ivi/meta-ivi/recipes-extended 

     - 해당경로에는 다음과 같은 놈들이 존재한다.

common-api  dlt-daemon  node-health-monitor  node-startup-controller  node-state-manager  persistence-administrator  persistence-client-library  persistence-common-object


여기서 나는 common-api 가 필요하므로 해당 폴더를 파악한다.

 capicxx-core-native_3.1.12.bb

 capicxx-dbus-native_3.1.12.bb

 capicxx-someip-native_3.1.12.bb

 common-api-c++_3.1.12.bb

 common-api-c++-dbus_3.1.12.bb

 common-api-c++-someip_3.1.12.bb


dbus 관련 패치가 존재한다.

 해당파일 : ./recipes-core-ivi/dbus/dbus_%.bbappend


FILESEXTRAPATHS_append := ":${THISDIR}/${PN}"


# add support for GENIVI CommonAPI D-Bus runtime

# - https://genivi-oss.atlassian.net/wiki/display/COMMONAPICPP/CommonAPI-cpp

SRC_URI_append = " \

    file://capi-dbus-add-send-with-reply-set-notify.patch \

    file://capi-dbus-add-support-for-custom-marshalling.patch \

    file://0001-dbus-fix-possible-uninitialized-variable.patch \

    "

SRC_URI_append_qemux86 = " file://build_fix-ubunt1604-qemux86.patch"


dbus 관련하여 어떠한 패치들이 존재하는지 검토해본다.

현재 존재하는 패치는 다음과 같다. 

0001-dbus-fix-possible-uninitialized-variable.patch  

 capi-dbus-add-support-for-custom-marshalling.patch          

 capi-dbus-send-with-reply-and-block-delete-reply-on-error.patch

 build_fix-ubunt1604-qemux86.patch                    

 capi-dbus-block-acquire-io-path-on-send.patch

 capi-dbus-add-send-with-reply-set-notify.patch     

 capi-dbus-correct-dbus-connection-block-pending-call.patch



capi-dbus 패치관련하여 파헤쳐 볼것이다.


 capi-dbus-add-support-for-custom-marshalling.patch   

+add dbus/dbus-message.c

dbus_bool_t

dbus_message_set_signature (DBusMessage *message,

                            const char  *signature)

{

  _dbus_return_val_if_fail (message != NULL, FALSE);

  _dbus_return_val_if_fail (!message->locked, FALSE);

  _dbus_return_val_if_fail (signature == NULL ||

                            _dbus_check_is_valid_signature (signature), FALSE);

  /* can't delete the signature if you have a message body */

  _dbus_return_val_if_fail (_dbus_string_get_length (&message->body) == 0 ||

                            signature != NULL, FALSE);


  return set_or_delete_string_field (message,

                                     DBUS_HEADER_FIELD_SIGNATURE,

                                     DBUS_TYPE_SIGNATURE,

                                     signature);

}




+dbus/dbus-string.h


 #define _dbus_string_get_allocated(s) (((DBusString*)(s))->dummy3 - _DBUS_STRING_ALLOCATION_PADDING)

#ifndef _dbus_string_get_allocated

int           _dbus_string_get_allocated         (const DBusString  *str);

#endif /* !_dbus_string_get_allocated */




'Yocto > GENIVI' 카테고리의 다른 글

[eclipse]Franca IDL 설치  (0) 2018.05.23
CommonAPI 설치  (0) 2018.05.23



우분투 18.04 에 CommonAPI 를 설치하려고 한다.


Franca IDL 툴을 이용하여 생성한 인터페이스 소스를, CommonAPI 를 통해 연결할수 있다. 


CommonAPI 는 dbus 라이브러리와 연관되어 있으며  , 기능을 적용하기 위해서 dbus 라이브러리에 관련 패치들이 추가되어야 한다.



먼저 사용하는 Ubuntu  버전의 dbus 버전 정보를 확인한다.


dpkg -l |grep dbus


 ii  at-spi2-core                               2.28.0-1                            amd64        Assistive Technology Service Provider Interface (dbus core)

ii  dbus                                       1.12.2-1ubuntu1                     amd64        simple interprocess messaging system (daemon and utilities)

ii  dbus-user-session                          1.12.2-1ubuntu1                     amd64        simple interprocess messaging system (systemd --user integration)

ii  dbus-x11                                   1.12.2-1ubuntu1                     amd64        simple interprocess messaging system (X11 deps)

ii  gir1.2-dbusmenu-glib-0.4:amd64             16.04.1+18.04.20171206-0ubuntu1     amd64        typelib file for libdbusmenu-glib4

ii  libdbus-1-3:amd64                          1.12.2-1ubuntu1                     amd64        simple interprocess messaging system (library)

ii  libdbus-1-dev:amd64                        1.12.2-1ubuntu1                     amd64        simple interprocess messaging system (development headers)

ii  libdbus-glib-1-2:amd64                     0.110-2                             amd64        deprecated library for D-Bus IPC

ii  libdbusmenu-glib4:amd64                    16.04.1+18.04.20171206-0ubuntu1     amd64        library for passing menus over DBus

ii  libdbusmenu-gtk3-4:amd64                   16.04.1+18.04.20171206-0ubuntu1     amd64        library for passing menus over DBus - GTK+ version

ii  libdbusmenu-gtk4:amd64                     16.04.1+18.04.20171206-0ubuntu1     amd64        library for passing menus over DBus - GTK+ version

ii  libnet-dbus-perl                           1.1.0-4build2                       amd64        Perl extension for the DBus bindings

ii  libqt5dbus5:amd64                          5.9.5+dfsg-0ubuntu1                 amd64        Qt 5 D-Bus module

ii  python3-dbus                               1.2.6-1                             amd64        simple interprocess messaging system (Python 3 interface)



대충  1.12.2-1ubuntu1을 사용하는 것으로 추측된다.



구글 검색 : 1.12.2-1ubuntu1 dbus

다음 우분투 서버의 패키지 정보가 보여진다.

 https://launchpad.net/ubuntu/+source/dbus/1.12.2-1ubuntu1


dbus_1.12.2.orig.tar.gz2.0 MiB272bb5091770b047c8188b926d5e6038fa4fe6745488b2add96b23e2d9a83d88
dbus_1.12.2-1ubuntu1.debian.tar.xz61.0 KiB7c968a77cc7f8512229f190b51a619cf7b5901db0cf43fcae6c367eff1ede78c


위 두파일을 다운로드한다.


Common API 호출 방식 



CommonAPI C++ Overview



Common API 구조

CommonAPI C++ Overview



Download Source 


  • capicxx-core-runtime

$ git clone https://github.com/GENIVI/capicxx-core-runtime.git

$ cd capicxx-core-runtime/

$ git checkout 3.1.12.4


  • capicxx-dbus-runtime (dbus-patch 파일이 존재한다. src/dbus-patches)

$ git clone https://github.com/GENIVI/capicxx-dbus-runtime.git

$ cd capicxx-dbus-runtime

$ git checkout 3.1.12.4



설치순서 dbus Ubuntu Source Download -> capicxx-dbus-runtime 패치 적용 (dbus) -> dbus 라이브러리 설치이후 관련 라이브러리들을 설치한다.

 dbus 설치 -> dlt-daemon 설치-> capicxx-core-runtime -> capicxx-dbus-runtime 설치순으로 진행


특정 폴더에 dbus_1.12.2.orig.tar.gz , dbus_1.12.2-1ubuntu1.debian.tar.xz 압축을 해제한다.

1. ubuntu 용 패치를 적용한다.


$ cd  debian/patches/ubuntu

$ cp * ../../../dbus-1.12.2/

$ patch -p1 < aa-get-connection-apparmor-security-context.patch

patching file bus/apparmor.c

patching file bus/apparmor.h

patching file bus/driver.c

patching file dbus/dbus-protocol.h


$ patch -p1 < dont-stop-dbus.patch
patching file bus/dbus.service.in
$ rm aa-get-connection-apparmor-security-context.patch dont-stop-dbus.patch


2. capicxx-dbus-runtime 폴더에 존재하는 패치를 적용한다.


capi-dbus-1-pc.patch

capi-dbus-add-send-with-reply-set-notify.patch

capi-dbus-add-support-for-custom-marshalling.patch

capi-dbus-block-acquire-io-path-on-send.patch

capi-dbus-correct-dbus-connection-block-pending-call.patch

capi-dbus-send-with-reply-and-block-delete-reply-on-error.patch


$ cd  capicxx-dbus-runtime/src/dbus-patches

$ cp * /home/kj/GENIVI/CommonAPI/dbus/dbus-1.12.2

$ patch -p1 < capi-dbus-1-pc.patch
patching file dbus-1.pc.in
Hunk #1 succeeded at 19 (offset 1 line).

$ patch -p1 < capi-dbus-add-send-with-reply-set-notify.patch
patching file dbus/dbus-connection.c
Hunk #1 succeeded at 3500 (offset 18 lines).
patching file dbus/dbus-connection.h
Hunk #1 succeeded at 230 (offset 1 line).

$ patch -p1 < capi-dbus-add-support-for-custom-marshalling.patch
patching file dbus/dbus-message.c
Hunk #1 succeeded at 3746 (offset 301 lines).
Hunk #2 succeeded at 5050 (offset 377 lines).
patching file dbus/dbus-message.h
Hunk #1 succeeded at 170 (offset 32 lines).
Hunk #2 succeeded at 302 with fuzz 1 (offset 37 lines).
patching file dbus/dbus-string.c
Hunk #1 succeeded at 744 (offset 14 lines).
patching file dbus/dbus-string.h

$ patch -p1 < capi-dbus-block-acquire-io-path-on-send.patch
patching file dbus/dbus-connection.c

$ patch -p1 < capi-dbus-correct-dbus-connection-block-pending-call.patch
patching file dbus/dbus-connection.c
Hunk #1 succeeded at 2526 (offset 1 line).

$ patch -p1 < capi-dbus-send-with-reply-and-block-delete-reply-on-error.patch
patching file dbus/dbus-connection.c
Hunk #1 succeeded at 3736 (offset 27 lines).
Hunk #2 succeeded at 6527 (offset 84 lines).


3. dbus Library Build


 sudo  mkdir -p /opt/GENIVI

 sudo chmod 777 /opt/GENIVI/

cd /home/kj/GENIVI/CommonAPI/dbus/dbus-1.12.2

$ ./configure --prefix=/opt/GENIVI/


No package 'expat' found

$ sudo apt-get install expat
$ sudo apt-get install libexpat1-dev
다시설치
$ ./configure --prefix=/opt/GENIVI/
$ make -C dbus -j8
$ make -C dbus install
$ make install-pkgconfigDATA
$ export PKG_CONFIG_PATH="/opt/GENIVI/lib/pkgconfig:$PKG_CONFIG_PATH"


configure 결과

  D-Bus 1.12.2

                  ==============


prefix:                   /opt/GENIVI

exec_prefix:              ${prefix}

        libdir:                   /opt/GENIVI/lib

        libexecdir:               /opt/GENIVI/libexec

        bindir:                   /opt/GENIVI/bin

        sysconfdir:               /opt/GENIVI/etc

        localstatedir:            /opt/GENIVI/var

        runstatedir:              /opt/GENIVI/var/run

datadir:                  /opt/GENIVI/share

source code location:   .

compiler:   gcc

cflags:           -fno-strict-aliasing -fno-common -Wall -Wextra -Wundef -Wnested-externs -Wwrite-strings -Wpointer-arith -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wno-unused-parameter -Wno-missing-field-initializers -Wdeclaration-after-statement -Wformat=2 -Wold-style-definition -Wcast-align -Wformat-nonliteral -Wformat-security -Wsign-compare -Wstrict-aliasing -Wshadow -Winline -Wpacked -Wmissing-format-attribute -Wmissing-noreturn -Winit-self -Wmissing-include-dirs -Wunused-but-set-variable -Warray-bounds -Wimplicit-function-declaration -Wreturn-type -Wswitch-enum -Wswitch-default -Wchar-subscripts -Wfloat-equal -Wpointer-sign -Wno-deprecated-declarations -Wno-unused-label -Wno-error=unused-parameter -Wno-error=missing-field-initializers -Wno-error=deprecated-declarations -Wno-error=unused-label 

cppflags:   

cxxflags:   -fno-strict-aliasing -Wall -Wextra -Wundef -Wwrite-strings -Wpointer-arith -Wmissing-declarations -Wredundant-decls -Wno-unused-parameter -Wno-missing-field-initializers -Wformat=2 -Wcast-align -Wformat-nonliteral -Wformat-security -Wsign-compare -Wstrict-aliasing -Wshadow -Winline -Wpacked -Wmissing-format-attribute -Wmissing-noreturn -Winit-self -Wmissing-include-dirs -Wunused-but-set-variable -Warray-bounds -Wreturn-type -Wno-overloaded-virtual -Wswitch-enum -Wswitch-default -Wchar-subscripts -Wfloat-equal -Wno-deprecated-declarations -Wno-unused-label -Wno-error=unused-parameter -Wno-error=missing-field-initializers -Wno-error=overloaded-virtual -Wno-error=deprecated-declarations -Wno-error=unused-label 

ldflags:   -Wl,--no-as-needed 

64-bit int:   long

32-bit int:   int

16-bit int:   short

        Doxygen:                  no

        xmlto:                    no

        ducktype:                 no

        yelp-build:               no


        Rebuilding generated files: yes

        gcc coverage profiling:   no

        Building embedded tests:  no

        Building modular tests:   auto

            - with GLib:          yes

        Installing tests:         no

        Building verbose mode:    no

        Building assertions:      no

        Building checks:          yes

        Building bus stats API:   yes

        Building SELinux support: no

        Building AppArmor support: no

        Building inotify support: yes

        Building kqueue support:  no

        Building systemd support: no

        Building X11 code:        yes

        Building Doxygen docs:    no

        Building Ducktype docs:   no

        Building XML docs:        no

        Building launchd support: no

        System bus socket:        /opt/GENIVI/var/run/dbus/system_bus_socket

        System bus address:       unix:path=/opt/GENIVI/var/run/dbus/system_bus_socket

        System bus PID file:      /opt/GENIVI/var/run/dbus/pid

        Session bus listens on:   unix:tmpdir=/tmp

        Session clients connect to: autolaunch:

        pam_console auth dir:     (none)

        Console owner file:       no

        Console owner file path:  

System bus user:          messagebus

Session bus services dir: /opt/GENIVI/share/dbus-1/services

        'make check' socket dir:  /tmp


dlt-daemon 설치

 git clone https://github.com/GENIVI/dlt-daemon.git

 cd dlt-daemon

 git log

commit da6eefe5cac244421c5af413c54e420717e11c9e (HEAD -> master, origin/master, origin/HEAD)

Author: ManikandanChockalingam <manikandan.chockalingam@in.bosch.com>

Date:   Fri May 18 11:17:31 2018 +0530


    IPC: Unix socket added (#43)

    

    * IPC: Unix socket added

mkdir build
cd build/
cmake -DCMAKE_INSTALL_PREFIX=/opt/GENIVI ..
make -j8
make install


오류시 

/usr/bin/x86_64-linux-gnu-ld: cannot find -ldbus-1

$ sudo apt-get install libdbus-1-dev




capicxx-core-runtime 설치


$ cd common-api-runtime

$ mkdir build

$ cd build

$ cmake -D CMAKE_INSTALL_PREFIX=/opt/GENIVI ..

sudo cp -apr dlt/ /usr/include/  <-- dlt include 패스를 잡지못하여 root 경로에 임의로 복사하였음.

$ make

$ make install



capicxx-dbus-runtime 설치


cd  capicxx-dbus-runtime

mkdir build

cd build

sudo apt-get install cmake

$ cmake -D USE_INSTALLED_COMMONAPI=ON -D CMAKE_INSTALL_PREFIX=/opt/GENIVI ..

$ make -j8

$ make install


설치완료 /opt/GENIVI/lib/pkgconfig 해당폴더에 dlt 관련 라이브러리 설정정보가 있다.

automotive-dlt.pc  CommonAPI-DBus.pc  CommonAPI.pc  dbus-1.pc




참고사이트

CommonAPI C++ :  https://genivi.github.io/capicxx-core-tools/


'Yocto > GENIVI' 카테고리의 다른 글

[eclipse]Franca IDL 설치  (0) 2018.05.23
[Yocto] meta-ivi 분석  (0) 2018.05.23


Building Genivi 13 (Orion) for the Renesas R-Car SoCs



R-Car M3  Salvator-XS 



elinux Salvator-XS



소개

 R-Car H3 ES2.0 and M3-W Salvator-XS (Salvator-X 2nd version) board (RTP0RC7795SIPB0012S resp. RTP0RC7796SIPB0012S)


소유 보드 : RTP0RC7796SIPB0012S - (with R-Car M3-W)


Booting Linux 

 * Kernel config: defconfig
 * Kernel image: arch/arm64/boot/Image
 * DTB: arch/arm64/boot/dts/renesas/r8a7795-salvator-xs.dtb (for R-Car H3) 

   * DTB: arch/arm64/boot/dts/renesas/r8a7796-salvator-xs.dtb (for R-Car M3-W) 



R-Car M3-W ? 

 Board : Salvator-XS

 SoC   : M3

 DTB   : Image-r8a7796-salvator-xs.dtb




여기 시도 예정

AGL Kickstart on Renesas R-Car Starter Kit Gen3 V2.23 (h3ulcb, m3ulcb)

http://docs.automotivelinux.org/docs/getting_started/en/dev/reference/machines/R-Car-Starter-Kit-gen3.html


agl GEN3 : http://docs.automotivelinux.org/docs/hardware/en/dev/reference/renesas-gen3/gen3.html



'Yocto > gdp' 카테고리의 다른 글

R-Car M3  (0) 2017.12.03


설치 링크


기본설치  

sudo apt-get install gawk wget git diffstat unzip texinfo gcc-multilib build-essential chrpath socat libsdl1.2-dev xterm


다운로드

$ git clone https://github.com/GENIVI/genivi-dev-platform.git
$ cd genivi-dev-platform



다운로드 패키지 : https://www.renesas.com/en-us/solutions/automotive/rcar-demoboard-2.html


Follow the generic preparation instructions above.  Once you reach the init step do the following.

At the moment, the following extra package also needs to be on your build machine:

    $ sudo apt-get install ImageMagick
 
  • Initialise build environment
    $ cd genivi-dev-platform
    $ source ./init.sh r-car-m3-starter-kit
  • Configure the build for M3 Salvator-X
    Until Salvator-X support is added to the GDP board template mechanism it is straight forward to reconfigure a M3 Starter Kit build (the target you passed as a parameter in the previous step) to build for M3 Salvator-X instead by editing the Yocto local.conf.

    To do that simply edit gdp-src-build/conf/local.conf to set the following MACHINE variable:
    MACHINE = "salvator-x"
  • Obtain and Install Renesas Graphics Drivers

    Download the Click-through licensed Linux Drivers and Gfx/MMP packages for YBSP v2.23 and Wayland 1.13 / Weston 2.0 from here and unzip them into a folder.

    $ cd <folder containing the two zip files>
    $ unzip -o R-Car_Gen3_Series_Evaluation_Software_Package_for_Linux-*.zip
    $ unzip -o R-Car_Gen3_Series_Evaluation_Software_Package_of_Linux_Drivers-*.zip

    To install them into the correct place in the Yocto BSP a copy script is used.

    $ cd ../meta-renesas

    If you have the click-through packages (no NDA):

    $ sh meta-rcar-gen3/docs/sample/copyscript/copy_evaproprietary_softwares.sh <path to the folder containing the packages>

    If you have the Evaluation packages (with NDA):

    $ sh meta-rcar-gen3/docs/sample/copyscript/copy_proprietary_softwares.sh <path to the folder containing the packages>


'Yocto > gdp' 카테고리의 다른 글

[001] Setting Salvator-XS  (0) 2018.02.09

+ Recent posts