From 9fa3de7f03ca928cb29479a92b9ef768c26d9817 Mon Sep 17 00:00:00 2001 From: "joachim.schmidt" <joachim.schmidt@hesge.ch> Date: Tue, 23 Feb 2021 07:59:12 +0100 Subject: [PATCH] Updated README.md --- README.md | 11 +++++++---- .../recipes-apps/sja1105-init/sja1105-init.bb | 12 +++++++++--- 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 7d45bbb..9ec4cd8 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,8 @@ In my case **\<XILINX\_INSTALL\_FOLDER\>** corresponds to /tools/Xilinx/. ### Clone of the GIT Scalp Firmware repository (HDL) ``` -$ git https://gitedu.hesge.ch/soma/scalp_firmware.git +cd <SCALP_PROJECT_FOLDER> +$ git clone https://gitedu.hesge.ch/soma/scalp_firmware.git $ cd scalp_firmware $ git checkout SCALP-SAFE-v0.01 ``` @@ -78,6 +79,7 @@ and File -> Export -> Export Hardware -> include bitstream ### Clone of the GIT Scalp PetaLinux repository ``` +$ cd <SCALP_PROJECT_FOLDER> $ git clone https://gitedu.hesge.ch/soma/scalp_petalinux.git $ cd scalp_petalinux $ git checkout SCALP-SAFE-v0.2 @@ -93,17 +95,18 @@ $ petalinux-create --type project -s <path-to-bsp> --name <PROJECT NAME> $ cd <PROJECT NAME> ``` -In my case **\<path-to-bsp\>** corresponds to /home/jo/Documents/Projets/Hepia/scalp_project/scalp_petalinux/bsp/SCALP-SAFE-FIRMWARE-BSP-V0.01.BSP.bsp +In my case **\<path-to-bsp\>** corresponds to /home/jo/Documents/Projets/Hepia/scalp_project/scalp_petalinux/bsp/SCALP-SAFE-FIRMWARE-BSP-V0.2.bsp ### Importing hardware configuration **The hardware description of the project must have been exported from Vivado beforehand.** ``` -$ petalinux-config --get-hw-description=<path-to-hw> --silentconfig +$ export SCALP_FIRMWARE_PATH="\<PATH_TO_SCALP_FIRMWARE_PROJECT\>" +$ petalinux-config --get-hw-description=$(find ${SCALP_FIRMWARE_PATH=} -name scalp_safe_firmware.xsa) --silentconfig ``` -In my case **\<path-to-hw\>** corresponds to /home/jo/Documents/Projets/Hepia/scalp_project/scalp_firmware/designs/vivado/scalp_safe_firmware/2020.2/lin64/scalp_safe_firmware/scalp_safe_firmware.xsa +In my case **\<PATH_TO_SCALP_FIRMWARE_PROJECT\>** corresponds to /home/jo/Documents/Projets/Hepia/scalp_project/scalp_firmware/ #### Directory tree diff --git a/scalp_safe_petalinux/project-spec/meta-user/recipes-apps/sja1105-init/sja1105-init.bb b/scalp_safe_petalinux/project-spec/meta-user/recipes-apps/sja1105-init/sja1105-init.bb index 95bd83c..fc5d6b0 100644 --- a/scalp_safe_petalinux/project-spec/meta-user/recipes-apps/sja1105-init/sja1105-init.bb +++ b/scalp_safe_petalinux/project-spec/meta-user/recipes-apps/sja1105-init/sja1105-init.bb @@ -18,13 +18,19 @@ inherit update-rc.d INITSCRIPT_NAME = "sja1105-init" -INITSCRIPT_PARAMS = "start 99 S ." +INITSCRIPT_PARAMS = "start 02 S ." do_install() { install -d ${D}${sysconfdir}/init.d install -m 0755 ${S}/sja1105-init ${D}${sysconfdir}/init.d/sja1105-init - install -d ${D}${sysconfdir}/rcS.d - install -m 0755 ${S}/sja1105-init ${D}${sysconfdir}/rcS.d/S99sja1105-init + install -d ${D}${sysconfdir}/rc2.d + install -m 0755 ${S}/sja1105-init ${D}${sysconfdir}/rc2.d/S02sja1105-init + install -d ${D}${sysconfdir}/rc3.d + install -m 0755 ${S}/sja1105-init ${D}${sysconfdir}/rc3.d/S02sja1105-init + install -d ${D}${sysconfdir}/rc4.d + install -m 0755 ${S}/sja1105-init ${D}${sysconfdir}/rc4.d/S02sja1105-init + install -d ${D}${sysconfdir}/rc5.d + install -m 0755 ${S}/sja1105-init ${D}${sysconfdir}/rc5.d/S02sja1105-init } FILES_${PN} += "${sysconfdir}/*" -- GitLab