Skip to content
Snippets Groups Projects
Commit 659719b1 authored by BRONES Romain's avatar BRONES Romain
Browse files

feat:Add fpga version reader

parent 0bbdd78d
Branches
No related tags found
No related merge requests found
#!/bin/bash #!/bin/bash
PATH_MAPT=/opt/fofb-opcua-server/app.mapt PATH_MAPT=/opt/fofb/map/app.mapt
function read_reg () { function read_reg () {
# ARGS: regname # ARGS: regname
...@@ -35,7 +35,7 @@ function get_appname () { ...@@ -35,7 +35,7 @@ function get_appname () {
echo cellnode echo cellnode
return return
fi fi
if [[ $appcode -eq 0x507E1722 ]]; then if [[ $appcode -eq 0x507E1722 ]]; then
echo centralnode echo centralnode
......
...@@ -10,6 +10,7 @@ inherit update-rc.d ...@@ -10,6 +10,7 @@ inherit update-rc.d
SRC_URI = " file://fofb-init.sh" SRC_URI = " file://fofb-init.sh"
SRC_URI += " file://configuration SRC_URI += " file://configuration
SRC_URI += " file://fpgaversion.sh"
RDEPENDS_${PN}=" fpga-manager-script bash" RDEPENDS_${PN}=" fpga-manager-script bash"
...@@ -22,4 +23,8 @@ do_install() { ...@@ -22,4 +23,8 @@ do_install() {
# Write default configuration # Write default configuration
install -d ${D}/opt/fofb/cfg/ install -d ${D}/opt/fofb/cfg/
install -m 0666 ${WORKDIR}/configuration ${D}/opt/fofb/cfg/configuration install -m 0666 ${WORKDIR}/configuration ${D}/opt/fofb/cfg/configuration
# Add FPGA version reader
install -d ${D}/usr/bin/
install -m 0755 ${WORKDIR}/fpgaversion.sh ${D}/usr/bin/fpgaversion
} }
File mode changed from 100755 to 100644
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment