환경 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
sudo umount [sdcard device]
xzcat [output image] | sudo dd of=[sdcard device] bs=4M
sync
disable Homescreen services:
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 |