AnsweredAssumed Answered

AVNET ZEDBOARD AD9467-FMC

Question asked by Stanislav on Apr 4, 2014
Latest reply on Apr 9, 2014 by umaair_653

Hi

I am read http://wiki.analog.com/resources/tools-software/linux-drivers/iio-adc/axi-adc-hdl.

 

I use kernel xcomm_zynq_3_10 https://github.com/analogdevicesinc/linux/tree/xcomm_zynq_3_10.

 

In configuration kernel I don't find:

 

Linux Kernel Configuration

Device Drivers  --->

<*>     Industrial I/O support --->

--- Industrial I/O support

-*-   Enable ring buffer support within IIO

-*-     Industrial I/O lock free software ring

-*-   Enable triggered sampling support

 

*** Analog to digital converters ***

[--snip--]

 

<*>   Analog Devices AD9467 AD9643 High-Speed AXI ADC driver

 

[--snip--]

 

Then when I load kernel:

 

Booting Linux on physical CPU 0x0

Linux version 3.10.0-xilinx-gf416e32 (root@ubuntu) (gcc version 4.7.3 (Sourcery CodeBench Lite 2013.05-39) ) #5 SMP PREEMPT Fri Apr 4 12:40:24 MSK 2014

CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=18c5387d

CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache

Machine: Xilinx Zynq Platform, model: Xilinx Zynq

cma: CMA: reserved 16 MiB at 1e800000

Memory policy: ECC disabled, Data cache writealloc

On node 0 totalpages: 131072

free_area_init_node: node 0, pgdat c05c0f80, node_mem_map c05f7000

  Normal zone: 1024 pages used for memmap

  Normal zone: 0 pages reserved

  Normal zone: 131072 pages, LIFO batch:31

PERCPU: Embedded 8 pages/cpu @c09fe000 s8256 r8192 d16320 u32768

pcpu-alloc: s8256 r8192 d16320 u32768 alloc=8*4096

pcpu-alloc: [0] 0 [0] 1

Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048

Kernel command line: console=ttyPS0,115200 root=/dev/mmcblk0p2 rw rootwait

PID hash table entries: 2048 (order: 1, 8192 bytes)

Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)

Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)

Memory: 512MB = 512MB total

Memory: 497140k/497140k available, 27148k reserved, 0K highmem

Virtual kernel memory layout:

    vector  : 0xffff0000 - 0xffff1000   (   4 kB)

    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)

    vmalloc : 0xe0800000 - 0xff000000   ( 488 MB)

    lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)

    pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)

    modules : 0xbf000000 - 0xbfe00000   (  14 MB)

      .text : 0xc0008000 - 0xc055ec50   (5468 kB)

      .init : 0xc055f000 - 0xc058b040   ( 177 kB)

      .data : 0xc058c000 - 0xc05c9478   ( 246 kB)

       .bss : 0xc05c9478 - 0xc05f64b4   ( 181 kB)

Preemptible hierarchical RCU implementation.

          Dump stacks of tasks blocking RCU-preempt GP.

          RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.

NR_IRQS:16 nr_irqs:16 16

ps7-slcr mapped to e0802000

Zynq clock init

sched_clock: 16 bits at 54kHz, resolution 18432ns, wraps every 1207ms

ps7-ttc #0 at e0804000, irq=43

Console: colour dummy device 80x30

Calibrating delay loop... 1332.01 BogoMIPS (lpj=6660096)

pid_max: default: 32768 minimum: 301

Mount-cache hash table entries: 512

CPU: Testing write buffer coherency: ok

CPU0: thread -1, cpu 0, socket 0, mpidr 80000000

Setting up static identity map for 0xc03e3a98 - 0xc03e3af0

L310 cache controller enabled

l2x0: 8 ways, CACHE_ID 0x410000c8, AUX_CTRL 0x72360000, Cache size: 524288 B

CPU1: Booted secondary processor

CPU1: thread -1, cpu 1, socket 0, mpidr 80000001

Brought up 2 CPUs

SMP: Total of 2 processors activated (2664.03 BogoMIPS).

CPU: All CPU(s) started in SVC mode.

devtmpfs: initialized

NET: Registered protocol family 16

DMA: preallocated 256 KiB pool for atomic coherent allocations

xgpiops e000a000.ps7-gpio: gpio at 0xe000a000 mapped to 0xe080c000

hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.

hw-breakpoint: maximum watchpoint size is 4 bytes.

bio: create slab <bio-0> at 0

vgaarb: loaded

SCSI subsystem initialized

usbcore: registered new interface driver usbfs

usbcore: registered new interface driver hub

usbcore: registered new device driver usb

pps_core: LinuxPPS API ver. 1 registered

pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>

PTP clock support registered

EDAC MC: Ver: 3.0.0

Switching to clocksource ttc_clocksource

NET: Registered protocol family 2

TCP established hash table entries: 4096 (order: 3, 32768 bytes)

TCP bind hash table entries: 4096 (order: 3, 32768 bytes)

TCP: Hash tables configured (established 4096 bind 4096)

TCP: reno registered

UDP hash table entries: 256 (order: 1, 8192 bytes)

UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)

NET: Registered protocol family 1

RPC: Registered named UNIX socket transport module.

RPC: Registered udp transport module.

RPC: Registered tcp transport module.

RPC: Registered tcp NFSv4.1 backchannel transport module.

PCI: CLS 0 bytes, default 64

hw perfevents: enabled with ARMv7 Cortex-A9 PMU driver, 7 counters available

jffs2: version 2.2. (NAND) (SUMMARY)  \xffffffc2\xffffffa9 2001-2006 Red Hat, Inc.

msgmni has been set to 1002

io scheduler noop registered

io scheduler deadline registered

io scheduler cfq registered (default)

dma-pl330 f8003000.ps7-dma: Loaded driver for PL330 DMAC-267056

dma-pl330 f8003000.ps7-dma:           DBUFF-128x8bytes Num_Chans-8 Num_Peri-4 Num_Events-16

e0001000.serial: ttyPS0 at MMIO 0xe0001000 (irq = 82) is a xuartps

console [ttyPS0] enabled

xdevcfg f8007000.ps7-dev-cfg: ioremap f8007000 to e0862000 with size 100

brd: module loaded

loop: module loaded

xilinx_spi 42000000.spi: master is unqueued, this is deprecated

xilinx_spi 42000000.spi: at 0x42000000 mapped to 0xe0880000, irq=90

------------[ cut here ]------------

WARNING: at fs/sysfs/dir.c:530 sysfs_add_one+0x78/0x98()

sysfs: cannot create duplicate filename '/class/spi_master/spi0'

Modules linked in:

CPU: 0 PID: 1 Comm: swapper/0 Not tainted 3.10.0-xilinx-gf416e32 #5

[<c0014560>] (unwind_backtrace+0x0/0x11c) from [<c0011664>] (show_stack+0x10/0x14)

[<c0011664>] (show_stack+0x10/0x14) from [<c0020614>] (warn_slowpath_common+0x4c/0x6c)

[<c0020614>] (warn_slowpath_common+0x4c/0x6c) from [<c00206b4>] (warn_slowpath_fmt+0x2c/0x3c)

[<c00206b4>] (warn_slowpath_fmt+0x2c/0x3c) from [<c00f5444>] (sysfs_add_one+0x78/0x98)

[<c00f5444>] (sysfs_add_one+0x78/0x98) from [<c00f5fe0>] (sysfs_do_create_link_sd+0xfc/0x1d4)

[<c00f5fe0>] (sysfs_do_create_link_sd+0xfc/0x1d4) from [<c02177fc>] (device_add+0x23c/0x5bc)

[<c02177fc>] (device_add+0x23c/0x5bc) from [<c025dce8>] (spi_register_master+0x180/0x5f8)

[<c025dce8>] (spi_register_master+0x180/0x5f8) from [<c0260d58>] (xqspips_probe+0x2f8/0x4f4)

[<c0260d58>] (xqspips_probe+0x2f8/0x4f4) from [<c021b27c>] (platform_drv_probe+0x14/0x18)

[<c021b27c>] (platform_drv_probe+0x14/0x18) from [<c0219f9c>] (driver_probe_device+0x118/0x32c)

[<c0219f9c>] (driver_probe_device+0x118/0x32c) from [<c021a218>] (__driver_attach+0x68/0x8c)

[<c021a218>] (__driver_attach+0x68/0x8c) from [<c02184cc>] (bus_for_each_dev+0x50/0x88)

[<c02184cc>] (bus_for_each_dev+0x50/0x88) from [<c02195b0>] (bus_add_driver+0xec/0x244)

[<c02195b0>] (bus_add_driver+0xec/0x244) from [<c021a70c>] (driver_register+0x9c/0x12c)

[<c021a70c>] (driver_register+0x9c/0x12c) from [<c000863c>] (do_one_initcall+0xcc/0x180)

[<c000863c>] (do_one_initcall+0xcc/0x180) from [<c055f908>] (kernel_init_freeable+0xfc/0x1c4)

[<c055f908>] (kernel_init_freeable+0xfc/0x1c4) from [<c03d8854>] (kernel_init+0x8/0xe4)

[<c03d8854>] (kernel_init+0x8/0xe4) from [<c000e698>] (ret_from_fork+0x14/0x3c)

---[ end trace c5f8f2d28c10b577 ]---

xqspips e000d000.ps7-qspi: spi_register_master failed

xqspips: probe of e000d000.ps7-qspi failed with error -17

e1000e: Intel(R) PRO/1000 Network Driver - 2.3.2-k

e1000e: Copyright(c) 1999 - 2013 Intel Corporation.

libphy: XEMACPS mii bus: probed

xemacps e000b000.ps7-ethernet: pdev->id -1, baseaddr 0xe000b000, irq 54

ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver

ehci-pci: EHCI PCI platform driver

ULPI transceiver vendor/product ID 0x0451/0x1507

Found TI TUSB1210 ULPI transceiver.

ULPI integrity check: passed.

xusbps-ehci xusbps-ehci.0: Xilinx PS USB EHCI Host Controller

xusbps-ehci xusbps-ehci.0: new USB bus registered, assigned bus number 1

xusbps-ehci xusbps-ehci.0: irq 53, io mem 0x00000000

xusbps-ehci xusbps-ehci.0: USB 2.0 started, EHCI 1.00

hub 1-0:1.0: USB hub found

hub 1-0:1.0: 1 port detected

usbcore: registered new interface driver usb-storage

mousedev: PS/2 mouse device common for all mice

i2c /dev entries driver

xi2cps e0004000.ps7-i2c: 400 kHz mmio e0004000 irq 57

xadcps f8007100.ps7-xadc: enabled:          yes          reference:          external

zynq-edac f8006000.ps7-ddrc: ecc not enabled

sdhci: Secure Digital Host Controller Interface driver

sdhci: Copyright(c) Pierre Ossman

sdhci-pltfm: SDHCI platform and OF driver helper

mmc0: SDHCI controller on e0100000.ps7-sdio [e0100000.ps7-sdio] using ADMA

usbcore: registered new interface driver usbhid

usbhid: USB HID core driver

cf_axi_adc 79000000.axi-adc-1c: Device Tree Probing 'axi-adc-1c'

cf_axi_adc 79000000.axi-adc-1c: could not find spi node

TCP: cubic registered

NET: Registered protocol family 17

VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4

Registering SWP/SWPB emulation handler

drivers/rtc/hctosys.c: unable to open rtc device (rtc0)

Waiting for root device /dev/mmcblk0p2...

mmc0: new high speed SDHC card at address 0007

mmcblk0: mmc0:0007 SD04G 3.70 GiB

mmcblk0: p1 p2

EXT3-fs (mmcblk0p2): error: couldn't mount because of unsupported optional features (240)

EXT2-fs (mmcblk0p2): error: couldn't mount because of unsupported optional features (240)

EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)

VFS: Mounted root (ext4 filesystem) on device 179:2.

devtmpfs: mounted

Freeing unused kernel memory: 176K (c055f000 - c058b000)

udevd[622]: starting version 175

EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)

FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.

NET: Registered protocol family 10

xemacps e000b000.ps7-ethernet: Set clk to 124999998 Hz

xemacps e000b000.ps7-ethernet: link up (1000/FULL)

 

Catalog /sys/bus/iio/devices/  is empty!!!

 

The main questions is:

 

1. What kernel version correctly for my platform(ZYNQ-7000 EPP 7Z020 ZedBoard) ?

 

2. How can I correctly edit devicetree.dts

Outcomes