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

Update configuration

* also switch configuration file to an .example to avoid overwrite
parent 7936efcc
No related branches found
No related tags found
No related merge requests found
...@@ -26,8 +26,13 @@ APP.ccn_ethernet_0.ETH.MODE_REG 3 ...@@ -26,8 +26,13 @@ APP.ccn_ethernet_0.ETH.MODE_REG 3
# IPG to 12 # IPG to 12
APP.ccn_ethernet_0.ETH.CONFIGURATION_TX_REG1 0x3003 APP.ccn_ethernet_0.ETH.CONFIGURATION_TX_REG1 0x3003
# RX enable, delete fcs, check preamble and sfd # RX enable, delete fcs, check preamble and sfd
APP.ccn_ethernet_0.ETH.CONFIGURATION_RX_REG1".format(N), np.uintc(0x33)) APP.ccn_ethernet_0.ETH.CONFIGURATION_RX_REG1 0x33
# CCN configuration # CCN configuration
APP.ccn_packeter_0.TIMEOUT 4000 APP.ccn_packeter_0.TIMEOUT 4000
# COMCORR configuration
APP.comcorr_0.RATEDIV 80
APP.comcorr_0.PERIOD 0
APP.comcorr_0.CONFIG 1
APP.OUTPUT 1
...@@ -26,8 +26,13 @@ APP.ccn_ethernet_0.ETH.MODE_REG 3 ...@@ -26,8 +26,13 @@ APP.ccn_ethernet_0.ETH.MODE_REG 3
# IPG to 12 # IPG to 12
APP.ccn_ethernet_0.ETH.CONFIGURATION_TX_REG1 0x3003 APP.ccn_ethernet_0.ETH.CONFIGURATION_TX_REG1 0x3003
# RX enable, delete fcs, check preamble and sfd # RX enable, delete fcs, check preamble and sfd
APP.ccn_ethernet_0.ETH.CONFIGURATION_RX_REG1".format(N), np.uintc(0x33)) APP.ccn_ethernet_0.ETH.CONFIGURATION_RX_REG1 0x33
# CCN configuration # CCN configuration
APP.ccn_packeter_0.TIMEOUT 4000 APP.ccn_packeter_0.TIMEOUT 4000
# COMCORR configuration
APP.comcorr_0.RATEDIV 80
APP.comcorr_0.PERIOD 0
APP.comcorr_0.CONFIG 1
APP.OUTPUT 1
...@@ -26,8 +26,13 @@ APP.ccn_ethernet_0.ETH.MODE_REG 3 ...@@ -26,8 +26,13 @@ APP.ccn_ethernet_0.ETH.MODE_REG 3
# IPG to 12 # IPG to 12
APP.ccn_ethernet_0.ETH.CONFIGURATION_TX_REG1 0x3003 APP.ccn_ethernet_0.ETH.CONFIGURATION_TX_REG1 0x3003
# RX enable, delete fcs, check preamble and sfd # RX enable, delete fcs, check preamble and sfd
APP.ccn_ethernet_0.ETH.CONFIGURATION_RX_REG1".format(N), np.uintc(0x33)) APP.ccn_ethernet_0.ETH.CONFIGURATION_RX_REG1 0x33
# CCN configuration # CCN configuration
APP.ccn_packeter_0.TIMEOUT 4000 APP.ccn_packeter_0.TIMEOUT 4000
# COMCORR configuration
APP.comcorr_0.RATEDIV 80
APP.comcorr_0.PERIOD 0
APP.comcorr_0.CONFIG 1
APP.OUTPUT 1
...@@ -26,8 +26,13 @@ APP.ccn_ethernet_0.ETH.MODE_REG 3 ...@@ -26,8 +26,13 @@ APP.ccn_ethernet_0.ETH.MODE_REG 3
# IPG to 12 # IPG to 12
APP.ccn_ethernet_0.ETH.CONFIGURATION_TX_REG1 0x3003 APP.ccn_ethernet_0.ETH.CONFIGURATION_TX_REG1 0x3003
# RX enable, delete fcs, check preamble and sfd # RX enable, delete fcs, check preamble and sfd
APP.ccn_ethernet_0.ETH.CONFIGURATION_RX_REG1".format(N), np.uintc(0x33)) APP.ccn_ethernet_0.ETH.CONFIGURATION_RX_REG1 0x33
# CCN configuration # CCN configuration
APP.ccn_packeter_0.TIMEOUT 4000 APP.ccn_packeter_0.TIMEOUT 4000
# COMCORR configuration
APP.comcorr_0.RATEDIV 80
APP.comcorr_0.PERIOD 0
APP.comcorr_0.CONFIG 1
APP.OUTPUT 1
...@@ -11,7 +11,7 @@ inherit update-rc.d ...@@ -11,7 +11,7 @@ inherit update-rc.d
SRC_URI = " file://fofb-init.sh" SRC_URI = " file://fofb-init.sh"
SRC_URI += " file://fpgaversion.sh" SRC_URI += " file://fpgaversion.sh"
SRC_URI += " file://fofb-configurator.py" SRC_URI += " file://fofb-configurator.py"
SRC_URI += " file://configuration" SRC_URI += " file://configuration.example"
SRC_URI += " file://config" SRC_URI += " file://config"
RDEPENDS_${PN}=" fpga-manager-script bash variant-mapt" RDEPENDS_${PN}=" fpga-manager-script bash variant-mapt"
...@@ -19,7 +19,7 @@ RDEPENDS_${PN}=" fpga-manager-script bash variant-mapt" ...@@ -19,7 +19,7 @@ RDEPENDS_${PN}=" fpga-manager-script bash variant-mapt"
FILES_${PN}+="/etc/init.d/fofb-init.sh" FILES_${PN}+="/etc/init.d/fofb-init.sh"
FILES_${PN}+="/usr/bin/fpgaversion" FILES_${PN}+="/usr/bin/fpgaversion"
FILES_${PN}+="/usr/bin/fofb-configurator" FILES_${PN}+="/usr/bin/fofb-configurator"
FILES_${PN}+="/opt/fofb/cfg/configuration" FILES_${PN}+="/opt/fofb/cfg/configuration.example"
FILES_${PN}+="/opt/fofb/cfg/C01_config_register /opt/fofb/cfg/C06_config_register /opt/fofb/cfg/C09_config_register /opt/fofb/cfg/C14_config_register /opt/fofb/cfg/Central_config_register" FILES_${PN}+="/opt/fofb/cfg/C01_config_register /opt/fofb/cfg/C06_config_register /opt/fofb/cfg/C09_config_register /opt/fofb/cfg/C14_config_register /opt/fofb/cfg/Central_config_register"
...@@ -35,7 +35,5 @@ do_install() { ...@@ -35,7 +35,5 @@ do_install() {
install -d ${D}/opt/fofb/cfg install -d ${D}/opt/fofb/cfg
install ${WORKDIR}/config/*_config_register -t ${D}/opt/fofb/cfg install ${WORKDIR}/config/*_config_register -t ${D}/opt/fofb/cfg
if [ ! -f ${D}/opt/fofb/cfg/configuration ]; then install ${WORKDIR}/configuration.example ${D}/opt/fofb/cfg/configuration.example
install ${WORKDIR}/configuration ${D}/opt/fofb/cfg/configuration
fi
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment