Skip to content
Snippets Groups Projects
Commit 9fa3de7f authored by joachim.schmidt's avatar joachim.schmidt
Browse files

Updated README.md

parent f33cf5e1
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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}/*"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment