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

Wayland 를 설치해보록 한다.



[Install]

$ sudo apt-get install libffi-dev

$ sudo apt install libexpat1-dev

$ sudo apt install libxml2-dev

Doxygen

$ sudo apt install doxygen xmlto graphviz



환경변수 설정

export WLD=$HOME/wayland/Ubuntu18.04/install

export LD_LIBRARY_PATH=$WLD/lib

export PKG_CONFIG_PATH=$WLD/lib/pkgconfig/:$WLD/share/pkgconfig/

export PATH=$WLD/bin:$PATH

export ACLOCAL_PATH=$WLD/share/aclocal

export ACLOCAL="aclocal -I $ACLOCAL_PATH"

mkdir -p $ACLOCAL_PATH

$ git clone git://anongit.freedesktop.org/wayland/wayland

$ cd wayland

$ make && make install

$cd ..


git clone git://anongit.freedesktop.org/wayland/wayland-protocols

cd wayland-protocols

./autogen.sh --prefix=$WLD

make check

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

Testsuite summary for wayland-protocols 1.15

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




----------------------------------문제 xcursor , cairo-xcb package not


sudo apt install xutils-dev libgl1-mesa-dev
sudo apt install libmd-dev

sudo apt-get install libinput-dev


sudo apt-get install libpixman-1-dev

configure: error: Package requirements (epoxy) were not met:

sudo apt-get install libepoxy-dev

make && make install

git clone git://anongit.freedesktop.org/wayland/weston

cd  weston

configure: error: Package requirements (wayland-server >= 1.12.0 pixman-1 >= 0.25.2 xkbcommon >= 0.3.0) were not met:


No package 'xkbcommon' found

옵션

  Native Backend drm-backend.so

setuid Install no


Cairo Renderer image

EGL yes

xcb_xkb yes

XWayland yes

dbus yes


ivi-shell yes


Build wcap utility yes

Build Fullscreen Shell yes

Enable developer documentation yes


weston-launch utility yes

systemd-login support no

systemd notify support no


DRM Compositor yes

X11 Compositor yes

Wayland Compositor yes

Headless Compositor yes

FBDEV Compositor yes

RDP Compositor no

Screen Sharing no

JUnit XML output yes


Build Clients yes

Build EGL Clients no

Build Simple Clients yes

Build Simple EGL Clients yes


Install Demo Clients no


Colord Support no

LCMS2 Support no

libjpeg Support yes

libwebp Support no

VA H.264 encoding Support no




실행 
weston




설치참고

https://wayland.freedesktop.org/ubuntu16.04.html



정적라이브러리와 동적라이브

http://sens.tistory.com/33


'Linux' 카테고리의 다른 글

git 서버설치  (0) 2018.07.20
[Linux] 오픈소스 웹 스트리밍 감시카메라  (0) 2018.07.13
[Linux]Samba 설정  (0) 2017.10.06
[libudev] 함수정리  (0) 2017.04.18
Gstreamer 파이프라인 디버깅  (0) 2017.04.14

+ Recent posts