AnsweredAssumed Answered

Fmcomms1 quick start guide for zedboard issues?

Question asked by PedroMartos on Aug 23, 2013
Latest reply on Aug 26, 2013 by PedroMartos



I have a zedboard + fmcomms1 daughter board. I am trying the quick start guide for zed board AD-FMCOMMS1-EBZ ZYNQ QUICK START GUIDE ( but I am facing some troubles:


I downloaded the image, checked the MD5 sum before and after decompression and I did the process in windows and linux with no luck in any case. I also used two different 8GB cards and one 16 GB card with two different usb card readers.


During the boot the first message is a bad CRC (line 8). Maybe I can ignore it because is the first boot.


Then in the middle of the boot process (after mounting the filesystem), there are file not found errors and a deadlock message in the "osc" application (those messages don't appear in the web page example).


Finally I must wait for about 2 minutes for the prompt. I don't have video in the monitor and when I access the network oscilloscope from a browser, if I select an input, there is a message about "can't open xxx Device".



I am sending the console output from the UART. I would appreciate any help about this.


best regards,



Console output:





U-Boot 2012.10 (Mar 22 2013 - 14:07:04)



DRAM:  512 MiB

WARNING: Caches not enabled


SF: Detected S25FL256S with page size 64 KiB, total 32 MiB

SF: Warning - Only lower 16MB is accessible in 3 byte addressing mode

*** Warning - bad CRC, using default environment               <<----------------------------------- Bad CRC?



In:    serial

Out:   serial

Err:   serial

Net:   zynq_gem

Hit any key to stop autoboot:  0

Copying Linux from SD to RAM...

Device: SDHCI

Manufacturer ID: 27

OEM: 5048

Name: SD16G

Tran Speed: 50000000

Rd Block Len: 512

SD version 2.0

High Capacity: Yes

Capacity: 14.9 GiB

Bus Width: 4-bit

reading uImage



2676384 bytes read

reading devicetree.dtb



11868 bytes read

reading uramdisk.image.gz



** Unable to read "uramdisk.image.gz" from mmc 0:1 **

## Booting kernel from Legacy Image at 03000000 ...

   Image Name:   Linux-3.6.0-00542-g1b243ba

   Image Type:   ARM Linux Kernel Image (uncompressed)

   Data Size:    2676320 Bytes = 2.6 MiB

   Load Address: 00008000

   Entry Point:  00008000

   Verifying Checksum ... OK

## Flattened Device Tree blob at 02a00000

   Booting using the fdt blob at 0x02a00000

   Loading Kernel Image ... OK


   Loading Device Tree to 1fb4e000, end 1fb53e5b ... OK



Starting kernel ...



Uncompressing Linux... done, booting the kernel.

Booting Linux on physical CPU 0

Linux version 3.6.0-00542-g1b243ba (lars@lars-adi-laptop) (gcc version 4.5.1 (So

urcery G++ Lite 2010.09-62) ) #6272 SMP PREEMPT Fri Apr 19 15:03:31 CEST 2013

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 ZC702

bootconsole [earlycon0] enabled

cma: CMA: reserved 40 MiB at 1d000000

Memory policy: ECC disabled, Data cache writealloc

PERCPU: Embedded 7 pages/cpu @c0e5e000 s7872 r8192 d12608 u32768

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

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

otfstype=ext4 rootwait devtmpfs.mount=0

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: 468028k/468028k available, 56260k 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 - 0xc04d16dc   (4902 kB)

      .init : 0xc04d2000 - 0xc04f9ec0   ( 160 kB)

      .data : 0xc04fa000 - 0xc054a720   ( 322 kB)

       .bss : 0xc054a744 - 0xc0a51810   (5149 kB)

Preemptible hierarchical RCU implementation.

        RCU lockdep checking is enabled.

        Dump stacks of tasks blocking RCU-preempt GP.

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


MIO pin 11 not assigned(00001760)

xslcr mapped to e0802000

Zynq clock init

timer #0 at e0804000, irq=43

sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps every 4294967286ms

Console: colour dummy device 80x30

Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingo Molnar


... MAX_LOCK_DEPTH:          48

... MAX_LOCKDEP_KEYS:        8191

... CLASSHASH_SIZE:          4096

... MAX_LOCKDEP_ENTRIES:     16384

... MAX_LOCKDEP_CHAINS:      32768

... CHAINHASH_SIZE:          16384

memory used by lock dependency info: 3695 kB

per task-struct memory footprint: 1152 bytes

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

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

Setting up static identity map for 0x365970 - 0x3659a4

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).

devtmpfs: initialized

NET: Registered protocol family 16

DMA: preallocated 256 KiB pool for atomic coherent allocations

xgpiops e000a000.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

SCSI subsystem initialized

usbcore: registered new interface driver usbfs

usbcore: registered new interface driver hub

usbcore: registered new device driver usb

Advanced Linux Sound Architecture Driver Version 1.0.25.

Switching to clocksource xttcps_clocksource

NET: Registered protocol family 2

TCP established hash table entries: 16384 (order: 5, 131072 bytes)

TCP bind hash table entries: 16384 (order: 7, 589824 bytes)

TCP: Hash tables configured (established 16384 bind 16384)

TCP: reno registered

UDP hash table entries: 256 (order: 2, 20480 bytes)

UDP-Lite hash table entries: 256 (order: 2, 20480 bytes)

NET: Registered protocol family 1

msgmni has been set to 994

io scheduler noop registered

io scheduler deadline registered

io scheduler cfq registered (default)

xuartps e0001000.uart: failed to get alias id, errno -19

e000€console [ttyPS0] enabled, bootconsole disabled

console [ttyPS0] enabled, bootconsole disabled

xdevcfg f8007000.devcfg: ioremap f8007000 to e0814000 with size 1000

[drm] Initialized drm 1.1.0 20060810

platform 70e00000.axi_hdmi: Driver axi-hdmi requests probe deferral

brd: module loaded

loop: module loaded

libphy: XEMACPS mii bus: probed

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

ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) 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

Initializing USB Mass Storage driver...

usbcore: registered new interface driver usb-storage

USB Mass Storage support registered.

mousedev: PS/2 mouse device common for all mice

i2c /dev entries driver

at24 1-0050: 256 byte 24c02 EEPROM, writable, 1 bytes/write

at24 1-0054: 256 byte 24c02 EEPROM, writable, 1 bytes/write

sdhci: Secure Digital Host Controller Interface driver

sdhci: Copyright(c) Pierre Ossman

sdhci-pltfm: SDHCI platform and OF driver helper

mmc0: Invalid maximum block size, assuming 512 bytes

mmc0: SDHCI controller on e0100000.sdhci [e0100000.sdhci] using ADMA

usbcore: registered new interface driver usbhid

usbhid: USB HID core driver

mmc0: new high speed SDHC card at address 0007

mmcblk0: mmc0:0007 SD16G 14.9 GiB

cf_axi_adc Device Tree Probing 'cf-ad9643-core-lpc'



platform Driver cf_axi_adc requests probe deferral

mmcblk0: p1 p2

spi spi32766.1: Driver ad9467 requests probe deferral

ad9548 spi32766.2: Rev. 0xC6 probed

ad9523 spi32766.3: probed ad9523-lpc

cf_axi_dds Device Tree Probing 'cf-ad9122-core-lpc'



platform Driver cf_axi_dds requests probe deferral

adv7511 0-0039: Failed to add route AIFIN->TMDS

adv7511-hdmi-snd adv7511_hdmi_snd.4:  adv7511 <-> 75c00000.axi-spdif-tx mapping


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)

ALSA device list:

  #0: HDMI monitor

No connectors reported connected with modes

[drm] Cannot find any crtc or sizes - going 1024x768

Console: switching to colour frame buffer device 128x48

fb0:  frame buffer device

drm: registered panic notifier

[drm] Initialized axi_hdmi_drm 1.0.0 20120930 on minor 0

cf_axi_adc Device Tree Probing 'cf-ad9643-core-lpc'



platform Driver cf_axi_adc requests probe deferral

cf_axi_dds Device Tree Probing 'cf-ad9122-core-lpc'



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

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

Freeing init memory: 156K

ào|oo DCI 1ahead main process (754) terminated with status 5

cf_axi_dds Analog Devices CF_AXI_DDS_DDS MASTER (0x

10063) at 0x74200000 mapped to 0xe08e0000, probed DDS AD9122

cf_axi_adc Device Tree Probing 'cf-ad9643-core-lpc'



ooo|oo---------------------------  DCO 0x82 CLK 245760000 Hz

cf_axi_adc ADI AIM (0x10063) at 0x79020000 mapped t

o 0xe0900000, DMA-0 probed ADC AD9643 as MASTER



chmod: cannot access `/sys/bus/iio/devices/iio:device*/trigger/*': No such file        <<-------------- File not found errors?

or directory

chmod: cannot access `/sys/bus/iio/devices/trigger*/*': No such file or director


chmod: cannot access `/sys/bus/platform/devices/*.axi-jesd204b-rx4/*': No such f

ile or directory




[ INFO: possible circular locking dependency detected ]                                         <<---------- Deadlock issue?

3.6.0-00542-g1b243ba #6272 Not tainted


osc/2099 is trying to acquire lock:

(prepare_lock){+.+.+.}, at: [<c0288e48>] clk_get_rate+0x18/0x38



but task is already holding lock:

(&dev->mlock){+.+...}, at: [<c02967e8>] cf_axi_dds_read_raw+0x38/0x224



which lock already depends on the new lock.





the existing dependency chain (in reverse order) is:



-> #1 (&dev->mlock){+.+...}:

       [<c005c8b0>] lock_acquire+0x60/0x74

       [<c0362eb8>] mutex_lock_nested+0x44/0x3a0

       [<c02955c0>] ad9523_read_raw+0x28/0x10c

       [<c0295d10>] ad9523_clk_recalc_rate+0x30/0x40

       [<c0289768>] __clk_init+0x294/0x3a8

       [<c0289978>] _clk_register+0xfc/0x14c

       [<c0289a7c>] clk_register+0x4c/0x74

       [<c0295d9c>] ad9523_clk_register+0x7c/0x94

       [<c035c89c>] ad9523_probe+0xb34/0xd28

       [<c020470c>] spi_drv_probe+0x4c/0x5c

       [<c01c9aac>] driver_probe_device+0xb4/0x1ec

       [<c01c9c4c>] __driver_attach+0x68/0x8c

       [<c01c84b0>] bus_for_each_dev+0x48/0x74

       [<c01c9220>] bus_add_driver+0x98/0x218

       [<c01ca0c8>] driver_register+0x9c/0x12c

       [<c0008624>] do_one_initcall+0x94/0x168

       [<c04d28e0>] kernel_init+0xf8/0x1c4

       [<c000e4c0>] kernel_thread_exit+0x0/0x8



-> #0 (prepare_lock){+.+.+.}:

       [<c005bc74>] __lock_acquire+0x1244/0x19c0

       [<c005c8b0>] lock_acquire+0x60/0x74

       [<c0362eb8>] mutex_lock_nested+0x44/0x3a0

       [<c0288e48>] clk_get_rate+0x18/0x38

       [<c02969a0>] cf_axi_dds_read_raw+0x1f0/0x224

       [<c028c070>] iio_read_channel_info+0x30/0x218

       [<c01c696c>] dev_attr_show+0x20/0x44

       [<c00fed64>] sysfs_read_file+0xb0/0x124

       [<c00aded8>] vfs_read+0xac/0x134

       [<c00adf9c>] sys_read+0x3c/0x68

       [<c000d9c0>] ret_fast_syscall+0x0/0x3c



other info that might help us debug this:



Possible unsafe locking scenario:



       CPU0                    CPU1

       ----                    ----







*** DEADLOCK ***



3 locks held by osc/2099:

#0:  (&buffer->mutex){+.+.+.}, at: [<c00fecdc>] sysfs_read_file+0x28/0x124

#1:  (s_active#29){.+.+.+}, at: [<c00fed38>] sysfs_read_file+0x84/0x124

#2:  (&dev->mlock){+.+...}, at: [<c02967e8>] cf_axi_dds_read_raw+0x38/0x224



stack backtrace:

[<c001355c>] (unwind_backtrace+0x0/0xe0) from [<c0059414>] (print_circular_bug+0


[<c0059414>] (print_circular_bug+0x274/0x2c0) from [<c005bc74>] (__lock_acquire+


[<c005bc74>] (__lock_acquire+0x1244/0x19c0) from [<c005c8b0>] (lock_acquire+0x60


[<c005c8b0>] (lock_acquire+0x60/0x74) from [<c0362eb8>] (mutex_lock_nested+0x44/


[<c0362eb8>] (mutex_lock_nested+0x44/0x3a0) from [<c0288e48>] (clk_get_rate+0x18


[<c0288e48>] (clk_get_rate+0x18/0x38) from [<c02969a0>] (cf_axi_dds_read_raw+0x1


[<c02969a0>] (cf_axi_dds_read_raw+0x1f0/0x224) from [<c028c070>] (iio_read_chann


[<c028c070>] (iio_read_channel_info+0x30/0x218) from [<c01c696c>] (dev_attr_show


[<c01c696c>] (dev_attr_show+0x20/0x44) from [<c00fed64>] (sysfs_read_file+0xb0/0


[<c00fed64>] (sysfs_read_file+0xb0/0x124) from [<c00aded8>] (vfs_read+0xac/0x134


[<c00aded8>] (vfs_read+0xac/0x134) from [<c00adf9c>] (sys_read+0x3c/0x68)

[<c00adf9c>] (sys_read+0x3c/0x68) from [<c000d9c0>] (ret_fast_syscall+0x0/0x3c)



Login timed out after 60 seconds.

init: auto-serial-console main process ended, respawning



Last login: Thu Jan  1 00:00:11 UTC 1970 on tty1

init: openvt main process ended, respawning

Welcome to Linaro 12.10 (GNU/Linux 3.6.0-00542-g1b243ba armv7l)



* Documentation:



271 packages can be updated.

125 updates are security updates.



271 packages can be updated.

125 updates are security updates.

271 packages can be updated.

125 updates are security updates.





root@linaro-ubuntu-desktop:~#                  <------ Finally I get a login in the console, but no video in the dvi output