blob: 9d36a2b9089f5b9a328f9b91d7f8a90cd6127e94 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
|
# Troubleshooting
## Extended attributes MUST be copied
**IMPORTANT, The extended attribute set during image construction MUST be copied to the SD card.**
When using tar to create the SDcard, it is a common error to not copy the extended attributes. Find below instruction for using tar.
Verify that **tar** version is 1.28 or newer:
```bash
tar --version
tar (GNU tar) 1.28
[snip]
```
If it is not the case, a native up-to-date version of tar is also generated while building AGL distribution:
```bash
tmp/sysroots/x86_64-linux/usr/bin/tar-native/tar --version
tar (GNU tar) 1.28
[snip]
```
To copy Automotive Grade Linux (AGL) files AND EXTENDED ATRIBUTES onto the SDcard using tar the command is:
```bash
tar --extract --xz --numeric-owner --preserve-permissions --preserve-order --totals \
--xattrs-include='*' --directory=DESTINATION_DIRECTORY --file=agl-demo-platform.....tar.xz
```
## meta-rust
Due to a known bug in the upstream of meta-rust the Yocto/OE recipe for rust-cross may fail while building RVI SOTA Client or another application written in the Rust programming language.
Until the complete resolution of the issue the workaround is to disable all use of the CXX11 ABI by applying the following lines to **conf/local.conf**:
```bash
LD_CXXFLAGS_append = " -D_GLIBCXX_USE_CXX11_ABI=0"
TARGET_CXXFLAGS_append = " -D_GLIBCXX_USE_CXX11_ABI=0"
CXXFLAGS_append = " -D_GLIBCXX_USE_CXX11_ABI=0"
BUILD_CXXFLAGS_remove_pn-gcc-runtime = "-D_GLIBCXX_USE_CXX11_ABI=0"
TARGET_CXXFLAGS_remove_pn-gcc-runtime = "-D_GLIBCXX_USE_CXX11_ABI=0" CXXFLAGS_remove_pn-gcc-runtime = "-D_GLIBCXX_USE_CXX11_ABI=0"
```
## Screen orientation for Splash and in Weston
Depending of your scren mounting the default orientation of the UI an/or splash screen might be incorrect.
To change the orientation of the splash screen patch
```bash
File: /etc/systemd/system/sysinit.target.wants/psplash-start.service
Line: ExecStart=/usr/bin/psplash -n -a 90
```
To change the orientation of the UI in Weston patch
```bash
File: /etc/xdg/weston/weston.ini
Line: transform=90
```
## Disabling Homescreen in AGL 4.0.x DD 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:
```bash
[core]
backend=drm-backend.so
#shell=ivi-shell.so
...
```
* modify */etc/afm/unit.env.d/qt-for-ivi-shell* and comment the line specifying QT Wayland backend:
```bash
...
#Environment=QT_WAYLAND_SHELL_INTEGRATION=ivi-shell
...
```
(If you use vi, remove backup files by `rm /etc/afm/unit.env.d/*~`)
* disable Homescreen services:
```bash
# systemctl --user mask HomeScreen.service
```
* Reboot your target and you should then be able to start apps on the standard weston screen using afm-util
## Adding media files to play with MediaPlayer
AGL include the default MediaPlayer sample app which can be used to play music. The lightmediascanner.service by default will search for media under /media folder. So if you plugin any USB stick containing music, they would be recognized and showed in the playlist of the MediaPlayer app menu.
In case you want to store music in another place, modify the /usr/lib/systemd/user/lightmediascanner.service file and change the --directory parameter to the path of the folder.
If you don’t want to touch the ligthmediascanner service, you can also add a folder named “Music” uder /home/root and put your music files there.
The current supported format is OGG. Please convert your files to ogg to play with MediaPlayer.
AGL include the default MediaPlayer sample app which can be used to play music. The lightmediascanner.service by default will search for media under /media folder. So if you plugin any USB stick containing music, they would be recognized and showed in the playlist of the MediaPlayer app menu.
|