UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
744 Views
Registered: ‎11-13-2018

AD9371 DRIVERS FOR PETALINUX

I want ad9371 drivers for petalinux . I have downloaded the drivers from https://github.com/analogdevicesinc/linux . While configuring the petalinux using petalinux-config -c kernel i am not able to configure ad9371 drivers as the they are not showing in the drivers list in Drivers support -> Industrial I/O support -> Analog to digital converters.

i want Analog Devices AD9371 RF Transceiver driver driver can you please help ?

0 Kudos
3 Replies
Explorer
Explorer
718 Views
Registered: ‎10-21-2015

Re: AD9371 DRIVERS FOR PETALINUX

Hi

<project>/project-spec/meta-user/recipes-modules/adv9371-drv/adv9371-drv.bb

SUMMARY = "Recipe for  build an external ad9371 Linux kernel module"
SECTION = "PETALINUX/modules"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"

inherit module

SRC_URI = "file://Makefile \
           file://ad9371.h \
           file://ad9371.c \
           file://ad9371_conv.c \
           file://mykonos/ \
          "

S = "${WORKDIR}"


# The inherit of module.bbclass will automatically name module packages with
# "kernel-module-" prefix as required by the oe-core build environment.

<project>/project-spec/meta-user/recipes-modules/adv9371-drv/files/Makefile

ad9371_drv-y := ad9371.o ad9371_conv.o mykonos/common.o  mykonos/mykonos.o  mykonos/mykonos_gpio.o  mykonos/mykonos_user.o
obj-m += ad9371_drv.o

SRC := $(shell pwd)

all:
    $(MAKE) -C $(KERNEL_SRC) M=$(SRC)

modules_install:
    $(MAKE) -C $(KERNEL_SRC) M=$(SRC) modules_install

clean:
    rm -f *.o *~ core .depend .*.cmd *.ko *.mod.c
    rm -f Module.markers Module.symvers modules.order
    rm -rf .tmp_versions Modules.symvers

 <project>/project-spec/meta-user/recipes-core/images/petalinux-user-image.bbappend

IMAGE_INSTALL_append = " kernel-module-ad9371-drv"
Highlighted
669 Views
Registered: ‎11-13-2018

Re: AD9371 DRIVERS FOR PETALINUX

 

hii

project-spec/meta-user/recipes-modules/adv9371-drv/

 

Initially I could not find recipes-modules in meta-user directory so that I have used this command to create recipes-modules "petalinux-create -t modules -n simpmod --enable" i reffered to this link https://forums.xilinx.com/t5/Embedded-Linux/Petalinux-2017-3-on-Ubuntu-16-04-can-t-Compile-Kernel-Modules/td-p/852868 but i dint find any of the adv9371-drv directory ??

0 Kudos
Explorer
Explorer
637 Views
Registered: ‎10-21-2015

Re: AD9371 DRIVERS FOR PETALINUX

Hi

Create necessary directories and files using mkdir & vi command

0 Kudos