Yocto 에서 빌드한 SDK 파악


poky-agl-glibc-x86_64-agl-demo-platform-crosssdk-aarch64-toolchain-5.90.0+snapshot.sh


설치된 SDK의 환경변수 파악

/opt/rcar_m3/environment-setup-aarch64-agl-linux


$ echo $CC

aarch64-agl-linux-gcc -march=armv8-a --sysroot=/opt/rcar_m3/sysroots/aarch64-agl-linux



export CC="aarch64-agl-linux-gcc  -march=armv8-a --sysroot=$SDKTARGETSYSROOT"

export CXX="aarch64-agl-linux-g++  -march=armv8-a --sysroot=$SDKTARGETSYSROOT"

export CPP="aarch64-agl-linux-gcc -E  -march=armv8-a --sysroot=$SDKTARGETSYSROOT"

export AS="aarch64-agl-linux-as "

export LD="aarch64-agl-linux-ld  --sysroot=$SDKTARGETSYSROOT"


sysroots/x86_64-aglsdk-linux/environment-setup.d
qt5.sh

export PATH=$OECORE_NATIVE_SYSROOT/usr/bin/qt5:$PATH
export OE_QMAKE_CFLAGS="$CFLAGS"
export OE_QMAKE_CXXFLAGS="$CXXFLAGS"
export OE_QMAKE_LDFLAGS="$LDFLAGS"
export OE_QMAKE_CC=$CC
export OE_QMAKE_CXX=$CXX
export OE_QMAKE_LINK=$CXX
export OE_QMAKE_AR=$AR
export QT_CONF_PATH=$OECORE_NATIVE_SYSROOT/usr/bin/qt5/qt.conf
export OE_QMAKE_LIBDIR_QT=`qmake -query QT_INSTALL_LIBS`
export OE_QMAKE_INCDIR_QT=`qmake -query QT_INSTALL_HEADERS`
export OE_QMAKE_MOC=$OECORE_NATIVE_SYSROOT/usr/bin/qt5/moc
export OE_QMAKE_UIC=$OECORE_NATIVE_SYSROOT/usr/bin/qt5/uic
export OE_QMAKE_RCC=$OECORE_NATIVE_SYSROOT/usr/bin/qt5/rcc
export OE_QMAKE_QDBUSCPP2XML=$OECORE_NATIVE_SYSROOT/usr/bin/qt5/qdbuscpp2xml
export OE_QMAKE_QDBUSXML2CPP=$OECORE_NATIVE_SYSROOT/usr/bin/qt5/qdbusxml2cpp
export OE_QMAKE_QT_CONFIG=`qmake -query QT_INSTALL_LIBS`/qt5/mkspecs/qconfig.pri
export OE_QMAKE_PATH_HOST_BINS=$OECORE_NATIVE_SYSROOT/usr/bin/qt5
export QMAKESPEC=`qmake -query QT_INSTALL_LIBS`/qt5/mkspecs/linux-oe-g++
qt 관련 옵션 포함되어 있다.


Yocto 에서 빌드된 Qt5.9.4 빌드옵션파악


uilding on: linux-oe-g++ (arm64, CPU features: neon)

Building for: linux-oe-g++ (arm64, CPU features: neon)

Configuration: cross_compile compile_examples enable_new_dtags largefile neon silent shared release c++11 c++14 c++1z concurrent dbus no-qml-debug reduce_exports stl

Build options:

  Mode ................................... release

  Optimize release build for size ........ no

  Building shared libraries .............. yes

  Using C++ standard ..................... C++1z

  Using ccache ........................... no

  Using gold linker ...................... no

  Using new DTAGS ........................ yes

  Using precompiled headers .............. no

  Using LTCG ............................. no

  Target compiler supports:

    NEON ................................. yes

  Build parts ............................ libs tests tools

Qt modules and options:

  Qt Concurrent .......................... yes

  Qt D-Bus ............................... yes

  Qt D-Bus directly linked to libdbus .... yes

  Qt Gui ................................. yes

  Qt Network ............................. yes

  Qt Sql ................................. yes

  Qt Testlib ............................. yes

  Qt Widgets ............................. yes

  Qt Xml ................................. yes

Support enabled for:

  Using pkg-config ....................... yes

  QML debugging .......................... no

  udev ................................... yes

  Using system zlib ...................... yes

Qt Core:

  DoubleConversion ....................... yes

    Using system DoubleConversion ........ no

  GLib ................................... no

  iconv .................................. no

  ICU .................................... yes

  Logging backends:

    journald ............................. no

    syslog ............................... no

    slog2 ................................ no

  Using system PCRE2 ..................... no

Qt Network:

  getaddrinfo() .......................... yes
  getifaddrs() ........................... yes
  IPv6 ifname ............................ yes
  libproxy ............................... no
  OpenSSL ................................ yes
    Qt directly linked to OpenSSL ........ no
  SCTP ................................... no
  Use system proxies ..................... yes
Qt Gui:
  Accessibility .......................... yes
  FreeType ............................... yes
    Using system FreeType ................ yes
  HarfBuzz ............................... no
    Using system HarfBuzz ................ no
  Fontconfig ............................. yes
  Image formats:
    GIF .................................. no
    ICO .................................. no
    JPEG ................................. yes
      Using system libjpeg ............... yes
    PNG .................................. yes
      Using system libpng ................ yes
  EGL .................................... yes
  OpenVG ................................. no
  OpenGL:
    Desktop OpenGL ....................... no
    OpenGL ES 2.0 ........................ yes
    OpenGL ES 3.0 ........................ yes
    OpenGL ES 3.1 ........................ yes
  Session Management ..................... no
Features used by QPA backends:
  evdev .................................. yes
  libinput ............................... no
  INTEGRITY HID .......................... no
  mtdev .................................. no
  tslib .................................. no
  xkbcommon-evdev ........................ no
QPA backends:
  DirectFB ............................... no
  EGLFS .................................. no
  LinuxFB ................................ no
  VNC .................................... yes
  Mir client ............................. no
Qt Widgets:
  GTK+ ................................... no
  Styles ................................. Fusion Windows
Qt PrintSupport:
  CUPS ................................... no
Qt Sql:
 DB2 (IBM) .............................. no
  InterBase .............................. no
  MySql .................................. no
  OCI (Oracle) ........................... no
  ODBC ................................... no
  PostgreSQL ............................. no
  SQLite2 ................................ no
  SQLite ................................. yes
    Using system provided SQLite ......... yes
  TDS (Sybase) ........................... no

Note: -hostbindir is not a subdirectory of -hostprefix.
Note: -hostlibdir is not a subdirectory of -hostprefix.
Note: -hostdatadir is not a subdirectory of -hostprefix.

WARNING: Feature xinput2 is insignificant in this configuration, ignoring related command line option(s).

WARNING: Feature xkb is insignificant in this configuration, ignoring related command line option(s).

WARNING: Feature xkbcommon-system is insignificant in this configuration, ignoring related command line option(s).

WARNING: The [-no]-qpa-platform-guard argument is deprecated and has no effect.

WARNING: No QPA platform plugin enabled! This will
produce a Qt that cannot run GUI applications.
The dependencies needed for xcb to build are listed in


Qt 관련된 SDK 파일 삭제


rm -rf qt5/

 rm -rf libQt5*




Qt 소스에서(qtbase) 타겟에 맞는 mkspec 파일 재생성 후 qt build 를 수행한다.


./configure -prefix /opt/qt5.11.1 -xplatform linux-rcar-g++ -sysroot /opt/rcar/sysroots/aarch64-agl-linux

Creating qmake...


export PATH=/opt/rcar_m3/sysroots/x86_64-aglsdk-linux/usr/bin/aarch64-agl-linux:$PATH



 

./configure -prefix /opt/qt5.11.1 -xplatform linux-rcar-g++ -sysroot /opt/rcar_m3/sysroots/aarch64-agl-linux




Building on: linux-g++ (x86_64, CPU features: mmx sse sse2)

Building for: linux-rcar-g++ (arm64, CPU features: neon)

Configuration: cross_compile compile_examples largefile neon precompile_header shared rpath release c++11 c++14 c++1z concurrent dbus reduce_exports stl

Build options:

  Mode ................................... release

  Optimize release build for size ........ no

  Building shared libraries .............. yes

  Using C++ standard ..................... C++1z

  Using ccache ........................... no

  Using gold linker ...................... no

  Using new DTAGS ........................ no

  Using precompiled headers .............. yes

  Using LTCG ............................. no

  Target compiler supports:

    NEON ................................. yes

  Build parts ............................ libs examples

Qt modules and options:

  Qt Concurrent .......................... yes

  Qt D-Bus ............................... yes

  Qt D-Bus directly linked to libdbus .... yes

  Qt Gui ................................. yes

  Qt Network ............................. yes

  Qt Sql ................................. yes

  Qt Testlib ............................. yes

  Qt Widgets ............................. yes

  Qt Xml ................................. yes

Support enabled for:

  Using pkg-config ....................... yes

  udev ................................... yes

  Using system zlib ...................... yes

Qt Core:

  DoubleConversion ....................... yes

    Using system DoubleConversion ........ no

  GLib ................................... yes

  iconv .................................. no

  ICU .................................... yes

  Tracing backend ........................ <none>

  Logging backends:

    journald ............................. no

    syslog ............................... no

    slog2 ................................ no

  Using system PCRE2 ..................... no

Qt Network:

  getifaddrs() ........................... yes

  IPv6 ifname ............................ yes

  libproxy ............................... no

  Linux AF_NETLINK ....................... yes

  OpenSSL ................................ yes

    Qt directly linked to OpenSSL ........ no

  OpenSSL 1.1 ............................ no

  SCTP ................................... no

  Use system proxies ..................... yes

Qt Gui:

  Accessibility .......................... yes

  FreeType ............................... yes

    Using system FreeType ................ yes

  HarfBuzz ............................... yes

    Using system HarfBuzz ................ no

  Fontconfig ............................. yes

  Image formats:

    GIF .................................. yes

    ICO .................................. yes

    JPEG ................................. yes

      Using system libjpeg ............... yes

    PNG .................................. yes

      Using system libpng ................ yes

  EGL .................................... yes

  OpenVG ................................. no

  OpenGL:

    Desktop OpenGL ....................... no

    OpenGL ES 2.0 ........................ yes

    OpenGL ES 3.0 ........................ yes

    OpenGL ES 3.1 ........................ yes

    OpenGL ES 3.2 ........................ yes

  Vulkan ................................. no

  Session Management ..................... yes

Features used by QPA backends:

  evdev .................................. yes

  libinput ............................... yes

  INTEGRITY HID .......................... no

  mtdev .................................. yes

  tslib .................................. no

  xkbcommon-evdev ........................ yes

QPA backends:

  DirectFB ............................... no

  EGLFS .................................. yes

  EGLFS details:

    EGLFS OpenWFD ........................ no

    EGLFS i.Mx6 .......................... no

    EGLFS i.Mx6 Wayland .................. no

    EGLFS RCAR ........................... no

    EGLFS EGLDevice ...................... yes

    EGLFS GBM ............................ yes

    EGLFS VSP2 ........................... no

    EGLFS Mali ........................... no

    EGLFS Raspberry Pi ................... no

    EGL on X11 ........................... no

  LinuxFB ................................ yes

  VNC .................................... yes

  Mir client ............................. no

Qt Widgets:

  GTK+ ................................... no

  Styles ................................. Fusion Windows

Qt PrintSupport:

  CUPS ................................... yes

Qt Sql:

  DB2 (IBM) .............................. no

  InterBase .............................. no

  MySql .................................. no

  OCI (Oracle) ........................... no

  ODBC ................................... no

  PostgreSQL ............................. no

  SQLite2 ................................ no

  SQLite ................................. yes

    Using system provided SQLite ......... no

  TDS (Sybase) ........................... no

Qt Testlib:

  Tester for item models ................. yes



Note: Also available for Linux: linux-clang linux-icc


Note: PKG_CONFIG_LIBDIR automatically set to /opt/rcar_m3/sysroots/aarch64-agl-linux/usr/lib/pkgconfig:/opt/rcar_m3/sysroots/aarch64-agl-linux/usr/share/pkgconfig:/opt/rcar_m3/sysroots/aarch64-agl-linux/usr/lib/aarch64-agl-linux/pkgconfig


Note: PKG_CONFIG_SYSROOT_DIR automatically set to /opt/rcar_m3/sysroots/aarch64-agl-linux


Note: Dropped compiler flags '-pthread' when detecting library 'glib'.


Qt is now configured for building. Just run 'make'.

Once everything is built, you must run 'make install'.

Qt will be installed into '/opt/rcar_m3/sysroots/aarch64-agl-linux/opt/qt5.11.1'.


Prior to reconfiguration, make sure you remove any leftovers from

the previous build.





이미지를 받아올 수 있는 곳을 레지스트리 (registry) 라고 부른다.


$ repo init -u ssh://git.telechips.com/linux_ivi/manifest.git


Unable to find image 'ubuntu:14.04' locally

14.04: Pulling from library/ubuntu

28bfaceaff9b: Pull complete 

ac540055f2f8: Pull complete 

2965585ef8b8: Pull complete 

2416bb9f3ad2: Pull complete 

93b55a6a6807: Pull complete 

Digest: sha256:885bb6705b01d99544ddb98cbe4e4555d1efe1d052cef90832e72a0688ac6b37

Status: Downloaded newer image for ubuntu:14.04



이미지가 없으면 다운로드를 수행하고 종료한다.




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

1. 패키지 업데이트 및 업그레이드

$ sudo apt-get update


$ sudo apt-get upgrade

$ sudo apt-get install pkg-config


2. 컴파일 필요 패키지 설치

$ sudo apt-get install build-essential cmake




$ sudo apt-get install libavcodec-dev libavformat-dev libswscale-dev libxvidcore-dev libx264-dev libxine2-dev


$ sudo apt-get install libv4l-dev v4l-utils


$ sudo apt-get install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev 


qt 설치




 

CE , EE 두 가지 버전을 제공한다.




 개발환경 Window10 64bit 


Download Anaconda 5.1 : https://repo.anaconda.com/archive/Anaconda3-5.1.0-Windows-x86_64.exe


파이썬 설치가 필요하나 아나콘다 설치시 추가 설치가 가능하다.

아나콘다는 파이썬과 딥러닝관련 파이썬패키지들을 제공하는것으로 보여진다.

anaconda3 + Tensorflow 설치 진행 (와이파이로 진행하여 약 2시간 정도 소요되었다.)





설치완료후 시작화면에 Anaconda 설치 파일은 다음과 같다.


 Anaconda Prompt 실행 후 ptyhon 버전확인할수 있다.

  > python --version



설치패키지 pip 설치

python -m pip install --upgrade pip



conda create -n tensorflow python=3.6.4

activate tensorflow


pip install tensorflow



설치가 완료되었고 python 코드를 통한 테스트 진행


파이썬 실행  > python 



 import tensorflow as tf

hello = tf.constant('Hello, IVIS')

output = tf.Session()

print(output.run(hello))

a=tf.constant(10)

b=tf.constant(11)

print(output.run(a+b))



테스트완료

'딥러닝' 카테고리의 다른 글

[Tensorflow] API  (0) 2018.07.26




참고

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

사용환경 Ubuntu 18.04



Openjdk-8 설치

sudo apt-get install openjdk-8-jre



eclipse Download

 : http://www.eclipse.org/


tar xvf eclipse-jee-oxygen-3a-linux-gtk-x86_64.tar.gz

cd eclipse

./eclipse&

'잡다한것' 카테고리의 다른 글

[Ubuntu16.04] Korean Setting  (0) 2018.08.29
커넥터 배선  (0) 2017.10.10
Cmake 사용법 및 정리  (0) 2016.06.08
유투브 다운로드  (0) 2016.05.08
링크사이트  (0) 2016.05.04

+ Recent posts