Updated FSFW #14

Merged
meierj merged 33 commits from mueller/master into develop 2021-01-23 17:24:35 +01:00
Showing only changes of commit 58ab8996bf - Show all commits

View File

@ -275,8 +275,11 @@ This forwards any requests to localhost:1534 to the port 1534 of the Q7S with th
Note: When now setting up a debug session in the Xilinx SDK, the host must be set to localhost instead of the IP address of the Q7S.
## Launching an application after boot
Load the root partiton from the flash memory (there are to nor-flash memories and each flash holds two xdi images).
Note: It is not possible to modify the current loaded root partition.
Note: It is not possible to modify the currently loaded root partition, e.g. creating directories. To do this,
the parition needs to be mounted.
1. Disable write protection of the desired root partition
```sh
@ -288,6 +291,8 @@ Note: It is not possible to modify the current loaded root partition.
```sh
xsc_mount_copy 0 0 # Mounts the nominal image from nor-flash 0
```
The mounted partition will be located inside the `/tmp` folder
3. Copy the executable to /bin/usr
4. Make sure the permissions to execute the application are set
```sh
@ -313,21 +318,23 @@ Note: It is not possible to modify the current loaded root partition.
```
6. Enable the service. This is normally done with systemctl enable. However, this is not possible when the service is
created for a mounted root partition. Therefore create a symlink as follows.
````
```sh
ln -s '/tmp/the-mounted-xdi-image/lib/systemd/system/example.service' '/tmp/the-mounted-xdi-image/etc/systemd/system/multi-user.target.wants/example.service'
````
```
7. The modified root partition is written back when the partion is locked again.
````
```sh
writeprotect 0 0 1
````
```
8. Now verify the application start by booting from the modified image
````
```sh
xsc_boot_copy 0 0
````
9. After booting verify if the service is running
````
```sh
systemctl status example
````
```
More detailed information about the used q7s commands can be found in the Q7S user manual.
### Bringing up CAN