diff --git a/README.md b/README.md index 720bf5cb..39e50ee5 100644 --- a/README.md +++ b/README.md @@ -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. -```` -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' -```` + ```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. -```` -writeprotect 0 0 1 -```` + ```sh + writeprotect 0 0 1 + ``` 8. Now verify the application start by booting from the modified image -```` -xsc_boot_copy 0 0 -```` + ```sh + xsc_boot_copy 0 0 + ```` + 9. After booting verify if the service is running -```` -systemctl status example -```` + ```sh + systemctl status example + ``` More detailed information about the used q7s commands can be found in the Q7S user manual. ### Bringing up CAN