[meta-xilinx] multiple problems with microzed-zynq7 machine

David Roman droman at ifae.es
Thu Jan 26 07:09:28 PST 2017


Removing that solves the problem, thanks. But what surprise me is that 
these problems starts with the commit that I mentioned before 
(061a16fd21bc0f419eda03aee6ee0ce11b48f27) which seems that only changes 
some kernel configuration and anything more. Doing a checkout to the 
previous commit don't have these problems.


I don't know why but seems that setting CONFIG_FIXED_PHY to something 
different from "y" fixes the problems too. Also, I found that my board 
uses Marvell 88E1510 not the 88e1512, so appending the right compatible 
string also fixes it (then I don't understand how this problem don't 
have occurred before). Anyway, the compatible string for the 
ethernet-phy (in the microzed dts) is not missing the 88e1510?


I suppose that the problem about the DMA is some configuration option 
that should be enabled/disabled I will try to see what have have changed 
and configure it properly. I attach the full log after fixing the 
Ethernet problem.


Thank you very much for your time and sorry for my ignorance.


On 25/01/17 18:48, Nathan Rossi wrote:
> On 25 January 2017 at 23:47, David Roman <droman at ifae.es> wrote:
>> Hi
>>
>> I'm having two problems when trying to use the morty branch for a
>> microzed-zynq7 machine.
>> First, the ethernet is not working and shows an error (Configuring network
>> interfaces... ifconfig: SIOCGIFFLAGS: No such device)
> Hi David,
>
> This issue might be related to the fact that the device tree in the
> meta-xilinx layer for the microzed has a compatible string listed for
> the phy node. The mainline kernel hasn't got that
> (https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/arch/arm/boot/dts/zynq-microzed.dts?id=refs/tags/v4.10-rc5#n52).
>
> Could you try removing the compatible string set. Also please provide
> the full kernel boot log if possible.
>
>> Second, DMA is not usable (requesting an slave channel from our kernel
>> module fails).
> Not sure what you are referring to here, you will need to provide more
> details. The DMA drivers in the kernel have changed over the past few
> releases (they have been upstreamed), and some of the dts bindings
> have changed too. Kernel log and error messages would be useful here
> too.
>
> Regards,
> Nathan


-- 
Avís - Aviso - Legal Notice - (LOPD) - http://legal.ifae.es
-------------- next part --------------
picocom v1.7

port is        : /dev/ttyUSB0
flowcontrol    : none
baudrate is    : 115200
parity is      : none
databits are   : 8
escape is      : C-a
local echo is  : no
noinit is      : no
noreset is     : no
nolock is      : yes
send_cmd is    : sz -vv
receive_cmd is : rz -vv
imap is        : 
omap is        : 
emap is        : crcrlf,delbs,

Terminal ready                                                                                                                                                                                                                               0 
Device: sdhci at e0100000
Manufacturer ID: 2
OEM: 544d
Name: SA04G 
Tran Speed: 50000000
Rd Block Len: 512
SD version 3.0
High Capacity: Yes
Capacity: 3.6 GiB
Bus Width: 4-bit
Erase Group Size: 512 Bytes
reading uEnv.txt
170 bytes read in 12 ms (13.7 KiB/s)
Loaded environment from uEnv.txt
Importing environment from SD ...
Copying Linux from SD to RAM...
reading uImage
3654944 bytes read in 328 ms (10.6 MiB/s)
reading microzed-zynq7.dtb
23583 bytes read in 22 ms (1 MiB/s)
reading core-image-minimal-microzed-zynq7.cpio.gz.u-boot
10102811 bytes read in 877 ms (11 MiB/s)
## Booting kernel from Legacy Image at 02080000 ...
   Image Name:   Linux-4.6.0-xilinx-v2016.3
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3654880 Bytes = 3.5 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 04000000 ...
   Image Name:   core-image-minimal-microzed-zynq
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    10102747 Bytes = 9.6 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 02000000
   Booting using the fdt blob at 0x2000000
   Loading Kernel Image ... OK
   Loading Ramdisk to 1f65d000, end 1ffff7db ... OK
   Loading Device Tree to 1f654000, end 1f65cc1e ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.6.0-xilinx-v2016.3 (droman at debian) (gcc version 6.2.0 (GCC) ) #9 SMP PREEMPT Thu Jan 26 15:40:40 CET 2017
[    0.000000] CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=18c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine model: Avnet microZed
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] percpu: Embedded 12 pages/cpu @ef7d3000 s19660 r8192 d21300 u49152
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260608
[    0.000000] Kernel command line: earlyprintk
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 1020864K/1048576K available (5266K kernel code, 232K rwdata, 1628K rodata, 1024K init, 216K bss, 27712K reserved, 0K cma-reserved, 262144K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc07bb87c   (7887 kB)
[    0.000000]       .init : 0xc0800000 - 0xc0900000   (1024 kB)
[    0.000000]       .data : 0xc0900000 - 0xc093a0c0   ( 233 kB)
[    0.000000]        .bss : 0xc093a0c0 - 0xc09703e4   ( 217 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] 	Build-time adjustment of leaf fanout to 32.
[    0.000000] 	RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=2
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] efuse mapped to f0800000
[    0.000000] slcr mapped to f0802000
[    0.000000] L2C: platform modifies aux control register: 0x02060000 -> 0x32460000
[    0.000000] L2C: DT/platform modifies aux control register: 0x02060000 -> 0x32460000
[    0.000000] L2C-310 erratum 769419 enabled
[    0.000000] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000] L2C-310 cache controller enabled, 8 ways, 512 kB
[    0.000000] L2C-310: CACHE_ID 0x410000c8, AUX_CTRL 0x46460001
[    0.000000] zynq_clock_init: clkc starts at f0802100
[    0.000000] Zynq clock init
[    0.000000] ps_clk frequency not specified, using 33 MHz.
[    0.000010] sched_clock: 64 bits at 333MHz, resolution 3ns, wraps every 4398046511103ns
[    0.000031] clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0x4ce07af025, max_idle_ns: 440795209040 ns
[    0.000057] Switching to timer-based delay loop, resolution 3ns
[    0.000153] clocksource: ttc_clocksource: mask: 0xffff max_cycles: 0xffff, max_idle_ns: 537538477 ns
[    0.000183] timer #0 at f080a000, irq=17
[    0.000535] Console: colour dummy device 80x30
[    0.001354] console [tty0] enabled
[    0.001387] Calibrating delay loop (skipped), value calculated using timer frequency.. 666.66 BogoMIPS (lpj=3333333)
[    0.001435] pid_max: default: 32768 minimum: 301
[    0.001588] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.001625] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.002316] CPU: Testing write buffer coherency: ok
[    0.002551] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002664] Setting up static identity map for 0x100000 - 0x100058
[    0.100625] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.100730] Brought up 2 CPUs
[    0.100790] SMP: Total of 2 processors activated (1333.33 BogoMIPS).
[    0.100816] CPU: All CPU(s) started in SVC mode.
[    0.101755] devtmpfs: initialized
[    0.104764] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.105227] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.105448] pinctrl core: initialized pinctrl subsystem
[    0.106772] NET: Registered protocol family 16
[    0.107614] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.140663] cpuidle: using governor menu
[    0.149706] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.149766] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.149932] zynq-ocm f800c000.ocmc: ZYNQ OCM pool: 256 KiB @ 0xf0880000
[    0.150377] zynq-pinctrl 700.pinctrl: zynq pinctrl initialized
[    0.172779] SCSI subsystem initialized
[    0.173350] usbcore: registered new interface driver usbfs
[    0.173465] usbcore: registered new interface driver hub
[    0.173567] usbcore: registered new device driver usb
[    0.173779] phy0 supply vcc not found, using dummy regulator
[    0.174160] pps_core: LinuxPPS API ver. 1 registered
[    0.174196] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti at linux.it>
[    0.174271] PTP clock support registered
[    0.174420] EDAC MC: Ver: 3.0.0
[    0.181239] FPGA manager framework
[    0.182356] clocksource: Switched to clocksource arm_global_timer
[    0.196294] NET: Registered protocol family 2
[    0.197003] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.197128] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.197296] TCP: Hash tables configured (established 8192 bind 8192)
[    0.197389] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.197458] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.197717] NET: Registered protocol family 1
[    0.198115] RPC: Registered named UNIX socket transport module.
[    0.198153] RPC: Registered udp transport module.
[    0.198177] RPC: Registered tcp transport module.
[    0.198201] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.198464] Trying to unpack rootfs image as initramfs...
[    0.795940] Freeing initrd memory: 9868K (df65d000 - e0000000)
[    0.796236] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.797860] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.797979] audit: initializing netlink subsys (disabled)
[    0.798044] audit: type=2000 audit(0.789:1): initialized
[    0.799007] workingset: timestamp_bits=28 max_order=18 bucket_order=0
[    0.799887] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.800830] bounce: pool size: 64 pages
[    0.800952] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.801006] io scheduler noop registered
[    0.801038] io scheduler deadline registered
[    0.801080] io scheduler cfq registered (default)
[    0.802699] dma-pl330 f8003000.dmac: Loaded driver for PL330 DMAC-241330
[    0.802750] dma-pl330 f8003000.dmac: 	DBUFF-128x8bytes Num_Chans-8 Num_Peri-4 Num_Events-16
[    0.803073] xilinx-vdma 40400000.dma: failed to get axi_aclk (4294967294)
[    0.803121] xilinx-vdma: probe of 40400000.dma failed with error -2
[    0.803593] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    0.805585] e0001000.serial: ttyPS0 at MMIO 0xe0001000 (irq = 143, base_baud = 3125000) is a xuartps
[    1.468932] console [ttyPS0] enabled
[    1.473141] xdevcfg f8007000.devcfg: ioremap 0xf8007000 to f0876000
[    1.483310] brd: module loaded
[    1.493222] loop: module loaded
[    1.498202] zynq-qspi e000d000.spi: couldn't determine configuration info about dual memories. defaulting to single memory
[    1.510104] m25p80 spi32766.0: found s25fl128s, expected m25p80
[    1.516051] m25p80 spi32766.0: s25fl128s (16384 Kbytes)
[    1.521261] 7 ofpart partitions found on MTD device spi32766.0
[    1.527054] Creating 7 MTD partitions on "spi32766.0":
[    1.532153] 0x000000000000-0x0000000e0000 : "boot"
[    1.548199] 0x0000000e0000-0x000000100000 : "ubootenv"
[    1.564542] 0x000000100000-0x000000200000 : "uboot"
[    1.580628] 0x000000200000-0x0000006f0000 : "kernel"
[    1.596776] 0x0000006f0000-0x000000700000 : "devicetree"
[    1.603293] 0x000000700000-0x000000b00000 : "rootfs"
[    1.619361] 0x000000b00000-0x000001000000 : "spare"
[    1.631441] libphy: Fixed MDIO Bus: probed
[    1.637368] CAN device driver interface
[    1.641636] gpiod_set_value: invalid GPIO
[    1.646675] libphy: MACB_mii_bus: probed
[    1.732459] macb e000b000.ethernet eth0: Cadence GEM rev 0x00020118 at 0xe000b000 irq 145 (00:0a:35:00:01:22)
[    1.742337] Marvell 88E1510 e000b000.etherne:00: attached PHY driver [Marvell 88E1510] (mii_bus:phy_addr=e000b000.etherne:00, irq=-1)
[    1.755456] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.762038] usbcore: registered new interface driver usb-storage
[    1.768280] e0002000.usb supply vbus not found, using dummy regulator
[    1.795027] ci_hdrc ci_hdrc.0: EHCI Host Controller
[    1.799867] ci_hdrc ci_hdrc.0: new USB bus registered, assigned bus number 1
[    1.822386] ci_hdrc ci_hdrc.0: USB 2.0 started, EHCI 1.00
[    1.828634] hub 1-0:1.0: USB hub found
[    1.832384] hub 1-0:1.0: 1 port detected
[    1.838044] mousedev: PS/2 mouse device common for all mice
[    1.843991] i2c /dev entries driver
[    1.849224] EDAC MC: ECC not enabled
[    1.853029] Xilinx Zynq CpuIdle Driver started
[    1.857724] sdhci: Secure Digital Host Controller Interface driver
[    1.863880] sdhci: Copyright(c) Pierre Ossman
[    1.868187] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.912426] mmc0: SDHCI controller on e0100000.sdhci [e0100000.sdhci] using DMA
[    1.920047] ledtrig-cpu: registered to indicate activity on CPUs
[    1.929360] usbcore: registered new interface driver usbhid
[    1.934926] usbhid: USB HID core driver
[    1.947411] NET: Registered protocol family 10
[    1.955831] sit: IPv6 over IPv4 tunneling driver
[    1.961205] NET: Registered protocol family 17
[    1.965664] can: controller area network core (rev 20120528 abi 9)
[    1.971840] NET: Registered protocol family 29
[    1.976274] can: raw protocol (rev 20120528)
[    1.980480] can: broadcast manager protocol (rev 20120528 t)
[    1.986154] can: netlink gateway (rev 20130117) max_hops=1
[    1.991787] Registering SWP/SWPB emulation handler
[    2.004447] Freeing unused kernel memory: 1024K (c0800000 - c0900000)
[    2.011179] mmc0: new high speed SDHC card at address 1234
INIT: [    2.027406] mmcblk0: mmc0:1234 SA04G 3.64 GiB 
version 2.88 booting[    2.034244]  mmcblk0: p1

Starting udev
[    2.226936] udevd[708]: starting version 3.2
[    2.231877] random: udevd urandom read with 1 bits of entropy available
[    2.249322] udevd[709]: starting eudev-3.2
Populating dev cache
Thu Jan 26 14:41:24 UTC 2017
INIT: Entering runlevel: 5


More information about the meta-xilinx mailing list