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

feat(fofb-init): Load overlay, start mmcctrld

* Using the dt overlay file shipped when programming the FPGA
* Start the daemon mmcctrld afterward. This will do a nice shutdown when
  MMC signals stop.
parent b6641748
Branches
Tags
No related merge requests found
...@@ -55,7 +55,7 @@ link_mapt() { ...@@ -55,7 +55,7 @@ link_mapt() {
fi fi
log "Linking map file ${LINK_TARGET}" log "Linking map file ${LINK_TARGET}"
ln -sf ${LINK_TARGET} ${PATH_MAP}/app.mapt ln -sf ${LINK_TARGET} ${PATH_MAP}/devices.mapt
} }
...@@ -103,11 +103,15 @@ link_configuration() { ...@@ -103,11 +103,15 @@ link_configuration() {
# Apply register configuration # Apply register configuration
fpga_reconfig() { fpga_reconfig() {
log "Loading FPGA image ${PATH_FPGABIN}" log "Loading FPGA image ${PATH_FPGABIN}"
fpgautil -b ${PATH_FPGABIN} |& log fpgautil -R |& log
fpgautil -b ${PATH_FPGABIN} -o ${PATH_MAP}/device-tree-overlay.dtbo |& log
log "Reset the FPGA" log "Reset the FPGA"
/etc/init.d/fw_plreset.sh |& log /etc/init.d/fw_plreset.sh |& log
log "Start mmcctrl"
start-stop-daemon -S mmcctrld |& log
# Applying configuration # Applying configuration
fofb-configurator --config ${PATH_CFG}/config_register --dmap ${PATH_MAP}/app.dmap |& log fofb-configurator --config ${PATH_CFG}/config_register --dmap ${PATH_MAP}/app.dmap |& log
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment