I compiled the rpad driver from viewtopic.php?f=7&t=317 by linking it towards the linux-xlnx-xilinx-v2015.4.01 version.
Here's the adapted makefile.
Code: Select all
obj-m += rpad.o
rpad-y := rp_pl.o rp_pl_hw.o rp_hk.o rp_scope.o rp_asg.o
all:
$(Q)$(MAKE) ARCH=arm CROSS_COMPILE=arm-xilinx-linux-gnueabi- -C ../../../linux-xlnx-xilinx-v2015.4.01 M=$(PWD)/src modules
clean:
$(Q)$(MAKE) ARCH=arm -C ../../../linux-xlnx-xilinx-v2015.4.01 M=$(PWD)/OS/driver/rpad/src clean
The rpad.ko binary compiles fine, but when I give it a insmod - that's what I get back:
Code: Select all
insmod: ERROR: could not insert module /tmp/rpad.ko: No such device or address
somewhat misleading here. Could also be an issue with the wrong ld-linux.so.3 loader or broken
dynamic linkage something like that.. [edit]
I tried inserting rpad.ko with two different versions of the RedPitaya OS:
- manually built version of the latest RedPitaya master branch. [ based onna linux-xlnx-xilinx-v2015.4.01 kernel]
- latest version of the red_pitaya_OS-stable.img.zip from website. [from 21 Dec 2015]
insmod isn't very verbose about what went wrong as You can see..
Am I missing something ?
Best regards
pita