summaryrefslogtreecommitdiffstats
path: root/docs/getting-started/troubleshooting.md
diff options
context:
space:
mode:
authorClément Bénier <clement.benier@iot.bzh>2019-03-29 16:59:51 +0100
committerClément Bénier <clement.benier@iot.bzh>2019-03-29 16:59:51 +0100
commita7b92f7bf4ecf3b380c96f457c6d5de6bc870d44 (patch)
tree2be752b4bbac311cd0f600a24f17cda9cf514a95 /docs/getting-started/troubleshooting.md
parentacf8cd46c85e52be82d3124ec7475263a7c552dc (diff)
parentbb997cda4aaaf2c41cb2a83bdabb6b9539221bbf (diff)
Merge remote-tracking branch 'origin/master-next'
Change-Id: Ifda0fa9a9940d056f72bcad0ea94821face3685d
Diffstat (limited to 'docs/getting-started/troubleshooting.md')
-rw-r--r--docs/getting-started/troubleshooting.md93
1 files changed, 51 insertions, 42 deletions
diff --git a/docs/getting-started/troubleshooting.md b/docs/getting-started/troubleshooting.md
index d3ad889..90c1fae 100644
--- a/docs/getting-started/troubleshooting.md
+++ b/docs/getting-started/troubleshooting.md
@@ -1,47 +1,56 @@
# 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"
-```
+This topic describes various areas that could cause you problems.
+
+## Including Extended Attributes
+
+The
+[Extended Attributes Set (`xattrs`)](https://linux-audit.com/using-xattrs-extended-attributes-on-linux/)
+associated with the image during its construction must be copied to
+the bootable media.
+The `xattrs` supports
+[Smack](https://en.wikipedia.org/wiki/Smack_(software)), which is a
+Simplified Mandatory Access Control kernel.
+
+**NOTE:** See
+ [https://www.kernel.org/doc/Documentation/security/Smack.txt](https://www.kernel.org/doc/Documentation/security/Smack.txt).
+ for detailed information on Smack.
+
+Many methods exist that allow you to create bootable media (e.g. `dd`, `bmaptools`,
+`tar`, and AGL-provided scripts such as `mkabl-agl.sh` and `mkefi-agl.sh`).
+It is recommended that you do not use `tar` to create bootable media.
+However, if you do, you must take these steps to copy `xattrs` to the media:
+
+1. Verify your `tar` version is 1.28 or newer:
+
+ ```bash
+ $ tar --version
+ tar (GNU tar) 1.28
+ [snip]
+ ```
+
+2. Optionally update `tar` if required.
+ Most systems come with `tar` installed.
+ If you need to install it, see the
+ "[Installing tar](https://www.howtoforge.com/tutorial/linux-tar-command/#installing-tar)"
+ section for instructions.
+
+ When you build an AGL distribution, a native up-to-date version of
+ `tar` is created.
+ Use the following command to see that version:
+
+ ```bash
+ $ tmp/sysroots/x86_64-linux/usr/bin/tar-native/tar --version
+ tar (GNU tar) 1.28
+ [snip]
+ ```
+
+3. Copy the AGL files and Extended Attributes Set to your bootable media:
+
+ ```bash
+ $ tar --extract --xz --numeric-owner --preserve-permissions --preserve-order --totals \
+ --xattrs-include='*' --directory=DESTINATION_DIRECTORY --file=agl-demo-platform.....tar.xz
+ ```
## Screen orientation for Splash and in Weston