AGL 3.0.3 on RaspberryPi3 ビルド手順
LinuxBSPのビルド手順〜起動〜接続までのメモ。
- 環境
- ビルド手順
- 起動手順
- 接続手順
- サンプルアプリ起動
- ps ax | grep websed connection abort
- afb-client-demo localhost:12345/api?token=2B04FBFC
- afb-client-demo ws://localhost:11111/api?token=init
- 参考リンク
環境
今回は以下の環境で実施した。
- LinuxBSP : AGL Chinook 3.0.3
- 評価ボード : RaspberryPi3
- ホスト : Ubuntu16.04 LTS
ビルド手順
(工事中)
前提条件
sudo umount [sdcard device] sudo dd if=agl-demo-platform-raspberrypi3.rpi-sdimg of=/dev/sdc bs=4M sync
起動手順
(工事中)
接続手順
(工事中)
サンプルアプリ起動
Disabling Homescreen in AGL 3.0.x CC release
Problem: new installed applications are not available on Homescreen and even if started manually through afm-util, the application starts but no surface appears.
Answer: this is due to IVI-Shell integration with Qt and Homescreen.
To disable IVI-Shell and revert to the "plain old" weston desktop, you can follow the 4 steps below:
- Modify /etc/xdg/weston/weston.ini and comment the line mentioning IVI-shell. For example on Porter board:
[core] backend=drm-backend.so #shell=ivi-shell.so ...
- modify /usr/lib/systemd/user/afm-user-daemon.service and comment the line specifying QT Wayland backend:
... #Environment=QT_WAYLAND_SHELL_INTEGRATION=ivi-shell ...
- disable Homescreen services:
# systemctl --user disable HomeScreenAppFrameworkBinderAGL.service # systemctl --user disable HomeScreen.service # systemctl --user disable InputEventManager.service # systemctl --user disable WindowManager.service rm /usr/lib/systemd/user/HomeScreen.service rm /usr/lib/systemd/user/HomeScreenAppFrameworkBinderAGL.service rm /usr/lib/systemd/user/InputEventManager.service rm /usr/lib/systemd/user/WindowManager.service sync reboot
- Reboot your target and you should then be able to start apps on the standard weston screen using afm-util
# ps -efZ | grep annex User::App::webapps-annex root 3281 543 0 12:49 ? 00:00:00 /usr/bin/afb-daemon --mode=remote --readyfd=8 --alias=/icons /var/lib/afm/icn System root 8343 778 0 13:00 ttyS0 00:00:00 grep annex # ls -Zl /home/root/app-data/ total 8 drwxr-xr-x 2 root root _ 4096 Oct 9 12:14 radio drwxr-xr-x. 2 root root User::App::webapps-annex 4096 Oct 9 12:49 webapps-annex # ls /var/lib/afm/applications/webapps-annex/0.0/ -Zl total 64 -rw-r--r--. 1 afm afm User::Home 11324 Oct 9 12:49 LICENSE -rw-r--r--. 1 afm afm User::Home 1599 Oct 9 12:49 README.txt drwxr-xr-x. 4 afm afm User::Home 4096 Oct 9 12:49 _locales drwxr-xr-x. 2 afm afm User::Home 4096 Oct 9 12:49 audio -rw-r--r--. 1 afm afm User::Home 366 Oct 9 12:49 config.xml drwxr-xr-x. 2 afm afm User::Home 4096 Oct 9 12:49 css -rw-r--r-- 1 afm afm _ 12580 Oct 9 12:49 icon_128.png drwxr-xr-x. 2 afm afm User::Home 4096 Oct 9 12:49 images -rw-r--r--. 1 afm afm User::Home 3703 Oct 9 12:49 index.html drwxr-xr-x. 2 afm afm User::Home 4096 Oct 9 12:49 js drwxr-xr-x. 4 afm afm User::Home 4096 Oct 9 12:49 lib # ls -l /proc/543/cwd/ drwxr-xr-x. 4 root root 4096 Oct 9 12:49 app-data
-> /home/root/app-data/webapps-annex が このbinderプロセスのカレントディレクトリ
http://192.168.179.8:1234/opa?runmode=remote
ps ax | grep websed connection abort
1507 ? SN 0:00 /usr/bin/afb-daemon --mode=remote --readyfd=8 --alias=/icons /var/lib/afm/icons --port=12345 --rootdir=/var/lib/afm/applications/webapps-annex/0.0 --token=2B04FBFC
afb-client-demo localhost:12345/api?token=2B04FBFC
api verb {data}