Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Simple VME FMC Carrier SVEC
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
14
Issues
14
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Simple VME FMC Carrier SVEC
Commits
f3495a41
Commit
f3495a41
authored
Aug 14, 2023
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drv: add udev rule to program FPGA at boot
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
62d25bcd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
90-svec-flasher.rules
software/config/udev/rules.d/90-svec-flasher.rules
+19
-0
No files found.
software/config/udev/rules.d/90-svec-flasher.rules
0 → 100644
View file @
f3495a41
# SPDX-FileCopyrightText: 2023 CERN (home.cern)
#
# SPDX-License-Identifier: LGPL-2.1-or-later
ACTION=="add", SUBSYSTEMS=="pci", SUBSYSTEM=="vme", DRIVERS=="vme_bridge", ENV{DEVTYPE}=="slot", GOTO="svec-fmc-carrier-start"
GOTO="svec-fmc-carrier-end"
LABEL="svec-fmc-carrier-start"
# Skip flashing if the card is not a SVEC
IMPORT{program}="/usr/local/bin/fechw udev module --slot VME.$number --type FMC-SVEC-A24"
ENV{MODULE_SLOT}=="", GOTO="svec-fmc-carrier-end"
IMPORT{program}="/usr/local/bin/fechw udev fpu --slot VME.$number --type FPGA --role Application"
ENV{MODULE_SLOT}!="", ENV{FPU_SLOT}!="", ENV{FPU_FW_NAME}!="", RUN+="/usr/local/bin/svec-flasher -f $env{FPU_SLOT} /lib/firmware/cern/$env{FPU_FW_NAME}"
ENV{MODULE_SLOT}!="", ENV{FPU_SLOT}!="", ENV{FPU_FW_NAME}!="", RUN+="/usr/local/bin/vme-scan --slot $number"
LABEL="svec-fmc-carrier-end"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment