diff --git a/recipes-app/fofb-init/files/config/C01_config_register b/recipes-app/fofb-init/files/config/C01_config_register index 3f3ef9fed9b92a228e7879ef622a250e0272acac..6560afa3ce2924f16a6087d1893ad3bb85695462 100644 --- a/recipes-app/fofb-init/files/config/C01_config_register +++ b/recipes-app/fofb-init/files/config/C01_config_register @@ -26,8 +26,13 @@ APP.ccn_ethernet_0.ETH.MODE_REG 3 # IPG to 12 APP.ccn_ethernet_0.ETH.CONFIGURATION_TX_REG1 0x3003 # 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 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 diff --git a/recipes-app/fofb-init/files/config/C06_config_register b/recipes-app/fofb-init/files/config/C06_config_register index 3c06c86682b0d137b584987b97f9158544abe5a1..c6025fc1c809db3847752937c8a0d1e33623cdf4 100644 --- a/recipes-app/fofb-init/files/config/C06_config_register +++ b/recipes-app/fofb-init/files/config/C06_config_register @@ -26,8 +26,13 @@ APP.ccn_ethernet_0.ETH.MODE_REG 3 # IPG to 12 APP.ccn_ethernet_0.ETH.CONFIGURATION_TX_REG1 0x3003 # 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 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 diff --git a/recipes-app/fofb-init/files/config/C09_config_register b/recipes-app/fofb-init/files/config/C09_config_register index 2d6e94016de46ebed0d2280817ddb804826828be..c648e14f26f2ad073eb32891173de34fb4b50b8b 100644 --- a/recipes-app/fofb-init/files/config/C09_config_register +++ b/recipes-app/fofb-init/files/config/C09_config_register @@ -26,8 +26,13 @@ APP.ccn_ethernet_0.ETH.MODE_REG 3 # IPG to 12 APP.ccn_ethernet_0.ETH.CONFIGURATION_TX_REG1 0x3003 # 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 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 diff --git a/recipes-app/fofb-init/files/config/C14_config_register b/recipes-app/fofb-init/files/config/C14_config_register index 51bcc5edb3c8479e75edbf0be54ccd3600f3e811..79f78e6de2da33ffde2219b3f11d416fd445cb7e 100644 --- a/recipes-app/fofb-init/files/config/C14_config_register +++ b/recipes-app/fofb-init/files/config/C14_config_register @@ -26,8 +26,13 @@ APP.ccn_ethernet_0.ETH.MODE_REG 3 # IPG to 12 APP.ccn_ethernet_0.ETH.CONFIGURATION_TX_REG1 0x3003 # 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 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 diff --git a/recipes-app/fofb-init/fofb-init_1.2.bb b/recipes-app/fofb-init/fofb-init_1.2.bb index 37dae2796cd25d8055c7bd3938b95cdc4f1b75d1..4ecd0c8e4dff22bfca1fbf79e4afe517cbc52903 100644 --- a/recipes-app/fofb-init/fofb-init_1.2.bb +++ b/recipes-app/fofb-init/fofb-init_1.2.bb @@ -11,7 +11,7 @@ inherit update-rc.d SRC_URI = " file://fofb-init.sh" SRC_URI += " file://fpgaversion.sh" SRC_URI += " file://fofb-configurator.py" -SRC_URI += " file://configuration" +SRC_URI += " file://configuration.example" SRC_URI += " file://config" 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}+="/usr/bin/fpgaversion" 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" @@ -35,7 +35,5 @@ do_install() { install -d ${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 ${D}/opt/fofb/cfg/configuration - fi + install ${WORKDIR}/configuration.example ${D}/opt/fofb/cfg/configuration.example }