... | @@ -23,20 +23,17 @@ Change dir into the freshly cloned repository, and just type 'make': |
... | @@ -23,20 +23,17 @@ Change dir into the freshly cloned repository, and just type 'make': |
|
|
|
|
|
$ make
|
|
$ make
|
|
|
|
|
|
This will build the FMC ADC drivers, libraries and test
|
|
This will build the FMC ADC drivers, libraries and test programs. In the
|
|
programs. In the process, the build will automagically resolve the
|
|
process, the build will automagically resolve the dependent submodules
|
|
dependent submodules (fmc-bus, spec-sw, zio) and build them
|
|
(fmc-bus, spec-sw, zio) and build them recursively. After some minutes,
|
|
recursively.
|
|
depending on your hardware configuration, the build should have
|
|
After some minutes, depending on your hardware configuration, the
|
|
terminated successfully.
|
|
build
|
|
|
|
should have terminated successfully.
|
|
|
|
|
|
|
|
### The following step requires super user powers
|
|
### The following step requires super user powers
|
|
|
|
|
|
$ sudo make modules_install
|
|
$ sudo make modules_install
|
|
|
|
|
|
After success, you should see in the
|
|
After success, you should see in the /lib/modules/<kernel-version>/extra
|
|
/lib/modules/<kernel-version>/extra
|
|
|
|
directory of the target machine some new stuff like shown below:
|
|
directory of the target machine some new stuff like shown below:
|
|
|
|
|
|
pcbe13089:fmc-adc-100m14b4cha-sw$ ls -l
|
|
pcbe13089:fmc-adc-100m14b4cha-sw$ ls -l
|
... | @@ -55,34 +52,30 @@ directory of the target machine some new stuff like shown below: |
... | @@ -55,34 +52,30 @@ directory of the target machine some new stuff like shown below: |
|
-rw-r--r-- 1 root root 2450536 Aug 3 09:44 wr-nic.ko
|
|
-rw-r--r-- 1 root root 2450536 Aug 3 09:44 wr-nic.ko
|
|
-rw-r--r-- 1 root root 1882592 Aug 3 09:44 zio.ko
|
|
-rw-r--r-- 1 root root 1882592 Aug 3 09:44 zio.ko
|
|
|
|
|
|
The last step will enable us to load modules by simply using a
|
|
The last step will enable us to load modules by simply using a modprobe
|
|
modprobe
|
|
|
|
command:
|
|
command:
|
|
|
|
|
|
$ sudo depmod -a
|
|
$ sudo depmod -a
|
|
|
|
|
|
### Prepare firmware
|
|
### Prepare firmware
|
|
|
|
|
|
We are about to load the Linux device drivers for your FMC ADC. There
|
|
We are about to load the Linux device drivers for your FMC ADC. There is
|
|
is
|
|
|
|
one more pre-requisite before doing so. Appropriate firmware binaries
|
|
one more pre-requisite before doing so. Appropriate firmware binaries
|
|
must be made accessible to initialise your hardware. Download the
|
|
must be made accessible to initialise your hardware. Download the files
|
|
files
|
|
|
|
from the URLs below in the prescribed
|
|
from the URLs below in the prescribed
|
|
places:
|
|
places:
|
|
|
|
|
|
/lib/firmware/fmc/spec-fmc-adc-100m14b.bin https://www.ohwr.org/project/fmc-adc-100m14b4cha-sw/uploads/72545736ae289aba2df7c8b47432956c/spec-fmc-adc-v4.1.bin
|
|
/lib/firmware/fmc/spec-fmc-adc-100m14b.bin https://www.ohwr.org/project/fmc-adc-100m14b4cha-sw/uploads/72545736ae289aba2df7c8b47432956c/spec-fmc-adc-v4.1.bin
|
|
/lib/firmware/fmc/spec-init.bin https://www.ohwr.org/project/spec-sw/uploads/636e7eaa2e1c3a884e2f9f694fdfd1b9/spec-init.bin-2015-09-18
|
|
/lib/firmware/fmc/spec-init.bin https://www.ohwr.org/project/spec-sw/uploads/636e7eaa2e1c3a884e2f9f694fdfd1b9/spec-init.bin-2015-09-18
|
|
|
|
|
|
Load the kernel modules:
|
|
### Load the kernel modules
|
|
|
|
|
|
Again, super user status is required for this.
|
|
Again, super user status is required for this.
|
|
|
|
|
|
$ sudo modprobe spec
|
|
$ sudo modprobe spec
|
|
$ sudo modprobe fmc-adc-100m14b
|
|
$ sudo modprobe fmc-adc-100m14b
|
|
|
|
|
|
These are the required modules to drive an FMC ADC (or more) carried
|
|
These are the required modules to drive an FMC ADC (or more) carried by
|
|
by
|
|
|
|
SPEC boards.
|
|
SPEC boards.
|
|
|
|
|
|
If this step is successful, your kernel module list should display at
|
|
If this step is successful, your kernel module list should display at
|
... | @@ -98,8 +91,7 @@ least the following: |
... | @@ -98,8 +91,7 @@ least the following: |
|
[...other modules...]
|
|
[...other modules...]
|
|
|
|
|
|
If you got to this point, congratulations\! Your kernel device drivers
|
|
If you got to this point, congratulations\! Your kernel device drivers
|
|
are ready to go, and the installed boards should be recognized by
|
|
are ready to go, and the installed boards should be recognized by them.
|
|
them.
|
|
|
|
Look into the directory /dev/zio to see your device nodes in full glory:
|
|
Look into the directory /dev/zio to see your device nodes in full glory:
|
|
|
|
|
|
cfc-774-caos3:~$ ls -l /dev/zio/adc-100m14b-0400-0-i-*
|
|
cfc-774-caos3:~$ ls -l /dev/zio/adc-100m14b-0400-0-i-*
|
... | | ... | |