readme update

This commit is contained in:
Robin Müller 2020-12-30 10:22:52 +01:00
parent 43e986de90
commit 58ab8996bf

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. 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 ## 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). 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 1. Disable write protection of the desired root partition
```sh ```sh
@ -288,6 +291,8 @@ Note: It is not possible to modify the current loaded root partition.
```sh ```sh
xsc_mount_copy 0 0 # Mounts the nominal image from nor-flash 0 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 3. Copy the executable to /bin/usr
4. Make sure the permissions to execute the application are set 4. Make sure the permissions to execute the application are set
```sh ```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 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. 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' 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. 7. The modified root partition is written back when the partion is locked again.
```` ```sh
writeprotect 0 0 1 writeprotect 0 0 1
```` ```
8. Now verify the application start by booting from the modified image 8. Now verify the application start by booting from the modified image
```` ```sh
xsc_boot_copy 0 0 xsc_boot_copy 0 0
```` ````
9. After booting verify if the service is running 9. After booting verify if the service is running
```` ```sh
systemctl status example systemctl status example
```` ```
More detailed information about the used q7s commands can be found in the Q7S user manual. More detailed information about the used q7s commands can be found in the Q7S user manual.
### Bringing up CAN ### Bringing up CAN