cancel
Showing results for 
Search instead for 
Did you mean: 
Participant
Participant
510 Views
Registered: ‎12-04-2019

XAPP1305 petalinux 2019.2 PS EMIO to SGMII unable to generate target frequency: 2500000 Hz

Hello

I am trying to recreate the projects mentioned in XAPP1305. https://www.xilinx.com/support/documentation/application_notes/xapp1305-ps-pl-based-ethernet-solution.pdf

However I am running into problems with the link. I was able to build the project successfully in Vivado 2019.2 and imported the handoff (.XSA) file into petalinux 2019.2 and build with the petalinux-build command. Then I generate the boot files. 

## BUILD ALL
petalinux-build 

## Generate Boot.bin using petalinux FSBL and save in shared folder
petalinux-package --boot --format BIN --fsbl ./images/linux/zynqmp_fsbl.elf --u-boot --fpga ./project-spec/hw-description/*.bit --kernel -o /media/sf_vbox_shared/BOOT.bin --force

Then I load the board via SD Card

Once it loads I set the IP address and run a ping test that seems to fail.

Here is how I am setting up the ip address at Linux

ip addr flush dev eth0
ip addr add 192.168.10.20/24 brd + dev eth0
ip link set eth0 up
ip route add default via 192.168.10.1
ping 192.168.10.1

 

It looks as if it is trying to autonegotiate to 10mb/s and it fails to generate the target frequency.

Again, this is the example design being rebuilt with no changes to the source files using Vivado 2019.2

 

Here is what I see on the console

root@red_board:~# [  323.025642] macb ff0b0000.ethernet eth0: link down
[  329.169679] macb ff0b0000.ethernet eth0: unable to generate target frequency: 2500000 Hz
[  329.177769] macb ff0b0000.ethernet eth0: link up (10/Half)

root@red_board:~# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:0A:35:00:22:01
          inet addr:192.168.10.20  Bcast:192.168.10.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:163 errors:163 dropped:0 overruns:0 carrier:163
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:40668 (39.7 KiB)
          Interrupt:30

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:21 errors:0 dropped:0 overruns:0 frame:0
          TX packets:21 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2256 (2.2 KiB)  TX bytes:2256 (2.2 KiB)

root@red_board:~#
 
 
0 Kudos
10 Replies
Highlighted
Participant
Participant
480 Views
Registered: ‎12-04-2019

Re: XAPP1305 petalinux 2019.2 PS EMIO to SGMII unable to generate target frequency: 2500000 Hz

Hardware setup is as follows: 

GLC-T compatable SFP module connected to SFP cage on ZCU102 rev 2.0 dev board. SFP port on dev board is connected to PC 1G port with AN enabled.  

Board serial number shows it is the newer rev 2 boards wit the new DIMM. In case that makes a difference. 

0 Kudos
Highlighted
Contributor
Contributor
420 Views
Registered: ‎10-13-2015

Re: XAPP1305 petalinux 2019.2 PS EMIO to SGMII unable to generate target frequency: 2500000 Hz

0 Kudos
Highlighted
Participant
Participant
376 Views
Registered: ‎12-04-2019

Re: XAPP1305 petalinux 2019.2 PS EMIO to SGMII unable to generate target frequency: 2500000 Hz

Hello 

I applied the patch AR 71295 First. Console output shows it was pulled in. Here is the ouptut of what I see with the patch build it:

Xilinx Zynq MP First Stage Boot Loader
Release 2019.2   Feb 20 2020  -  00:46:45
Reset Mode      :       System Reset
Platform: Silicon (4.0), Cluster ID 0x80000000
Running on A53-0 (64-bit) Processor, Device Name: XCZU9EG
FMC VADJ Configuration Successful
Board Configuration successful
Processor Initialization Done
================= In Stage 2 ============
SD1 with level shifter Boot Mode
Programming SI570 for 125MHZ ref clock
Hello IIC SI5338 and SI570 Clock Test.

IIC Switch Config Read Value 0x8
clock programming success
Progarmming SI570 with 125MHZ ref clock successfull
SD: rc= 0
File name is BOOT.BIN
Multiboot Reg : 0x0
Image Header Table Offset 0x8C0
*****Image Header Table Details********
Boot Gen Ver: 0x1020000
No of Partitions: 0x5
Partition Header Address: 0x440
Partition Present Device: 0x0
Initialization Success
======= In Stage 3, Partition No:1 =======
UnEncrypted data Length: 0x65216F
Data word offset: 0x65216F
Total Data word length: 0x65216F
Destination Load Address: 0xFFFFFFFF
Execution Address: 0x0
Data word offset: 0x10DB0
Partition Attributes: 0x26
Destination Device is PL, changing LoadAddress
Non authenticated Bitstream download to start now
DMA transfer done
PL Configuration done successfully
Partition 1 Load Success
======= In Stage 3, Partition No:2 =======
UnEncrypted data Length: 0x31DE
Data word offset: 0x31DE
Total Data word length: 0x31DE
Destination Load Address: 0xFFFEA000
Execution Address: 0xFFFEA000
Data word offset: 0x662F20
Partition Attributes: 0x117
Partition 2 Load Success
======= In Stage 3, Partition No:3 =======
UnEncrypted data Length: 0x32BF9
Data word offset: 0x32BF9
Total Data word length: 0x32BF9
Destination Load Address: 0x8000000
Execution Address: 0x8000000
Data word offset: 0x666100
Partition Attributes: 0x114
Partition 3 Load Success
======= In Stage 3, Partition No:4 =======
Skipping the Partition 0x4
                          Partition 4 Load Success
All Partitions Loaded
================= In Stage 4 ============
Protection configuration applied
  ATF running on XCZU9EG/silicon v4/RTL5.1 at 0xfffea000
NOTICE:  BL31: Secure code at 0x0
NOTICE:  BL31: Non secure code at 0x8000000
NOTICE:  BL31: v2.0(release):xilinx-v2019.1-12-g713dace9
NOTICE:  BL31: Built : 00:47:08, Feb 20 2020
PMUFW:  v1.1

When I try to set the ip address and initiate the ping it is still the same output. I also tried to turn off the AN with ethool and still no lucnk. Here is outuput. 

root@red_board:~# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:0A:35:00:22:01
          inet6 addr: fe80::20a:35ff:fe00:2201/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:1034 (1.0 KiB)
          Interrupt:30

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

root@red_board:~# ip addr flush dev eth0
root@red_board:~# ip addr add 192.168.10.20/24 brd + dev eth0
ip link set eth0 up
root@red_board:~# ip link set eth0 up
root@red_board:~# ip route add default via 192.168.10.1
root@red_board:~#
root@red_board:~#
root@red_board:~# [   39.377655] macb ff0b0000.ethernet eth0: link down
[   45.521700] macb ff0b0000.ethernet eth0: unable to generate target frequency: 2500000 Hz
[   45.529800] macb ff0b0000.ethernet eth0: link up (10/Half)

root@red_board:~#
root@red_board:~# ethtool eth0
Settings for eth0:
        Supported ports: [ TP MII ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Half 1000baseT/Full
        Supported pause frame use: No
        Supports auto-negotiation: Yes
        Supported FEC modes: Not reported
        Advertised link modes:  10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Half 1000baseT/Full
        Advertised pause frame use: No
        Advertised auto-negotiation: Yes
        Advertised FEC modes: Not reported
        Speed: 10Mb/s
        Duplex: Half
        Port: MII
        PHYAD: 9
        Transceiver: internal
        Auto-negotiation: on
        Link detected: yes
root@red_board:~# ethtool -s eth0 autoneg off
root@red_board:~# ethtool -s eth0 speed 1000
root@red_board:~# ethtool -s eth0 speed 1000[   72.149583] macb ff0b0000.ethernet eth0: unable to generate target frequency: 125000000 Hz
[   72.157856] macb ff0b0000.ethernet eth0: link up (1000/Full)
root@red_board:~#
root@red_board:~# ethtool -s eth0 duplex full
root@red_board:~#
root@red_board:~#
root@red_board:~# ping 19.168.10.10
PING 19.168.10.10 (19.168.10.10): 56 data bytes
^C
--- 19.168.10.10 ping statistics ---
2 packets transmitted, 0 packets received, 100% packet loss
root@red_board:~# ^C
root@red_board:~#

Patch AR 72806(2019.1 Linux: MACB + PL PCS PMA link issues on Zynq UltraScale+ MPSoC)does not build with petalinux 2019.2. It seems to say it is not compatable with version 2019.2. Do I need a seperate patch for this version? I think this might be needed however I cannot get it to build. See below. 

image.png

Also AR 72113 (Zynq UltraScale+ MPSoC, PS DDR - DDR4 training occasionally fails on ZCU102 and ZCU106 boards using newer DIMMs) does not build with petalinux 2019.2. Similar output. See below. 

image.png

 

So AR 72806 I am able to build but no change to the SGMII phy linking up. AR 71295 and 72113 do not build with errors as mentioned above. Can you please describe what spcific patches I need to apply for it to with with vivado and petalinux versions 2019.2? See output below for what i have set as my eth0 paramaters, as well as the unable to generate frequency prompt. 

root@red_board:~# [  550.353665] macb ff0b0000.ethernet eth0: link down
[  555.473650] macb ff0b0000.ethernet eth0: unable to generate target frequency: 2500000 Hz
[  555.481741] macb ff0b0000.ethernet eth0: link up (10/Half)

root@red_board:~#
root@red_board:~# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:0A:35:00:22:01
          inet addr:192.168.10.20  Bcast:192.168.10.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:104 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:29620 (28.9 KiB)
          Interrupt:30

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:4 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:448 (448.0 B)  TX bytes:448 (448.0 B)

root@red_board:~#
0 Kudos
Highlighted
Participant
Participant
370 Views
Registered: ‎12-04-2019

Re: XAPP1305 petalinux 2019.2 PS EMIO to SGMII unable to generate target frequency: 2500000 Hz

Here is a bootup console dump in case it has meaningful information. 

Xilinx Zynq MP First Stage Boot Loader
Release 2019.2   Feb 20 2020  -  18:25:18
Reset Mode      :       System Reset
Platform: Silicon (4.0), Cluster ID 0x80000000
Running on A53-0 (64-bit) Processor, Device Name: XCZU9EG
FMC VADJ Configuration Successful
Board Configuration successful
Processor Initialization Done
================= In Stage 2 ============
SD1 with level shifter Boot Mode
Programming SI570 for 125MHZ ref clock
Hello IIC SI5338 and SI570 Clock Test.

IIC Switch Config Read Value 0x8
clock programming success
Progarmming SI570 with 125MHZ ref clock successfull
SD: rc= 0
File name is BOOT.BIN
Multiboot Reg : 0x0
Image Header Table Offset 0x8C0
*****Image Header Table Details********
Boot Gen Ver: 0x1020000
No of Partitions: 0x5
Partition Header Address: 0x440
Partition Present Device: 0x0
Initialization Success
======= In Stage 3, Partition No:1 =======
UnEncrypted data Length: 0x65216F
Data word offset: 0x65216F
Total Data word length: 0x65216F
Destination Load Address: 0xFFFFFFFF
Execution Address: 0x0
Data word offset: 0xFDB0
Partition Attributes: 0x26
Destination Device is PL, changing LoadAddress
Non authenticated Bitstream download to start now
DMA transfer done
PL Configuration done successfully
Partition 1 Load Success
======= In Stage 3, Partition No:2 =======
UnEncrypted data Length: 0x31DE
Data word offset: 0x31DE
Total Data word length: 0x31DE
Destination Load Address: 0xFFFEA000
Execution Address: 0xFFFEA000
Data word offset: 0x661F20
Partition Attributes: 0x117
Partition 2 Load Success
======= In Stage 3, Partition No:3 =======
UnEncrypted data Length: 0x1FFD4
Data word offset: 0x1FFD4
Total Data word length: 0x1FFD4
Destination Load Address: 0x8000000
Execution Address: 0x8000000
Data word offset: 0x665100
Partition Attributes: 0x114
Partition 3 Load Success
======= In Stage 3, Partition No:4 =======
Skipping the Partition 0x4
                          Partition 4 Load Success
All Partitions Loaded
================= In Stage 4 ============
Protection configuration applied
  ATF running on XCZU9EG/silicon v4/RTL5.1 at 0xfffea000
NOTICE:  BL31: Secure code at 0x0
NOTICE:  BL31: Non secure code at 0x8000000
NOTICE:  BL31: v2.0(release):xilinx-v2019.1-12-g713dace9
NOTICE:  BL31: Built : 19:36:39, Feb 14 2020
PMUFW:  v1.1


U-Boot 2019.01 (Feb 14 2020 - 19:30:01 +0000)

Board: Xilinx ZynqMP
DRAM:  4 GiB
EL Level:       EL2
Chip ID:        zu9eg
MMC:   mmc@ff170000: 0
Loading Environment from FAT... *** Warning - bad CRC, using default environment

In:    serial@ff000000
Out:   serial@ff000000
Err:   serial@ff000000
Board: Xilinx ZynqMP
Bootmode: LVL_SHFT_SD_MODE1
Reset reason:   EXTERNAL
Net:   ZYNQ GEM: ff0b0000, phyaddr ffffffff, interface gmii
eth0: ethernet@ff0b0000
U-BOOT for example

ethernet@ff0b0000 Waiting for PHY auto negotiation to complete... done
BOOTP broadcast 1
BOOTP broadcast 2
BOOTP broadcast 3
BOOTP broadcast 4
BOOTP broadcast 5
BOOTP broadcast 6
BOOTP broadcast 7
BOOTP broadcast 8
BOOTP broadcast 9
BOOTP broadcast 10
BOOTP broadcast 11
BOOTP broadcast 12
BOOTP broadcast 13
BOOTP broadcast 14
BOOTP broadcast 15
BOOTP broadcast 16
BOOTP broadcast 17

Retry time exceeded; starting again
Hit any key to stop autoboot:  0
Device: mmc@ff170000
Manufacturer ID: 3
OEM: 5344
Name: SC32G
Bus Speed: 199999998
Mode : UHS SDR104 (208MHz)
Rd Block Len: 512
SD version 3.0
High Capacity: Yes
Capacity: 29.7 GiB
Bus Width: 4-bit
Erase Group Size: 512 Bytes
24801704 bytes read in 1654 ms (14.3 MiB/s)
## Loading kernel from FIT Image at 10000000 ...
   Using 'conf@system-top.dtb' configuration
   Trying 'kernel@1' kernel subimage
     Description:  Linux kernel
     Type:         Kernel Image
     Compression:  uncompressed
     Data Start:   0x100000f8
     Data Size:    18096640 Bytes = 17.3 MiB
     Architecture: AArch64
     OS:           Linux
     Load Address: 0x00080000
     Entry Point:  0x00080000
     Hash algo:    sha1
     Hash value:   c992c52a0699c2dbaeab5a42823d75f9a3551df2
   Verifying Hash Integrity ... sha1+ OK
## Loading ramdisk from FIT Image at 10000000 ...
   Using 'conf@system-top.dtb' configuration
   Trying 'ramdisk@1' ramdisk subimage
     Description:  petalinux-user-image
     Type:         RAMDisk Image
     Compression:  gzip compressed
     Data Start:   0x11149948
     Data Size:    6673101 Bytes = 6.4 MiB
     Architecture: AArch64
     OS:           Linux
     Load Address: unavailable
     Entry Point:  unavailable
     Hash algo:    sha1
     Hash value:   eb897ac104e9079fd0a6b8b130934c5a12257fa5
   Verifying Hash Integrity ... sha1+ OK
## Loading fdt from FIT Image at 10000000 ...
   Using 'conf@system-top.dtb' configuration
   Trying 'fdt@system-top.dtb' fdt subimage
     Description:  Flattened Device Tree blob
     Type:         Flat Device Tree
     Compression:  uncompressed
     Data Start:   0x111423fc
     Data Size:    29832 Bytes = 29.1 KiB
     Architecture: AArch64
     Hash algo:    sha1
     Hash value:   4e97d4a405014ffa79eea79ed3ae25408bda8870
   Verifying Hash Integrity ... sha1+ OK
   Booting using the fdt blob at 0x111423fc
   Loading Kernel Image ... OK
   Loading Ramdisk to 789a2000, end 78fff2cd ... OK
   Loading Device Tree to 0000000007ff5000, end 0000000007fff487 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 4.19.0-xilinx-v2019.2 (oe-user@oe-host) (gcc version 8.2.0 (GCC)) #1 SMP Fri Feb 14 18:31:36 UTC 2020
[    0.000000] Machine model: xlnx,zynqmp
[    0.000000] earlycon: cdns0 at MMIO 0x00000000ff000000 (options '115200n8')
[    0.000000] bootconsole [cdns0] enabled
[    0.000000] efi: Getting EFI parameters from FDT:
[    0.000000] efi: UEFI not found.
[    0.000000] cma: Reserved 256 MiB at 0x0000000068800000
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.1 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: MIGRATE_INFO_TYPE not supported.
[    0.000000] psci: SMC Calling Convention v1.1
[    0.000000] random: get_random_bytes called from start_kernel+0x94/0x3f8 with crng_init=0
[    0.000000] percpu: Embedded 23 pages/cpu @(____ptrval____) s53656 r8192 d32360 u94208
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: enabling workaround for ARM erratum 845719
[    0.000000] Speculative Store Bypass Disable mitigation not required
[    0.000000] CPU features: detected: Kernel page table isolation (KPTI)
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 1033987
[    0.000000] Kernel command line: earlycon console=ttyPS0,115200 clk_ignore_unused
[    0.000000] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes)
[    0.000000] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes)
[    0.000000] software IO TLB: mapped [mem 0x7beff000-0x7feff000] (64MB)
[    0.000000] Memory: 3776388K/4193280K available (10748K kernel code, 648K rwdata, 5424K rodata, 832K init, 316K bss, 154748K reserved, 262144K cma-reserved)
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     RCU event tracing is enabled.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=4.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] GIC: Adjusting CPU interface base to 0x00000000f902f000
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] arch_timer: cp15 timer(s) running at 99.99MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x171015c90f, max_idle_ns: 440795203080 ns
[    0.000003] sched_clock: 56 bits at 99MHz, resolution 10ns, wraps every 4398046511101ns
[    0.008197] Console: colour dummy device 80x25
[    0.012392] Calibrating delay loop (skipped), value calculated using timer frequency.. 199.99 BogoMIPS (lpj=399996)
[    0.022755] pid_max: default: 32768 minimum: 301
[    0.027451] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes)
[    0.034010] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes)
[    0.041846] ASID allocator initialised with 32768 entries
[    0.046509] rcu: Hierarchical SRCU implementation.
[    0.051477] EFI services will not be available.
[    0.055830] smp: Bringing up secondary CPUs ...
[    0.060499] Detected VIPT I-cache on CPU1
[    0.060528] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    0.060853] Detected VIPT I-cache on CPU2
[    0.060874] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[    0.061178] Detected VIPT I-cache on CPU3
[    0.061198] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[    0.061246] smp: Brought up 1 node, 4 CPUs
[    0.095673] SMP: Total of 4 processors activated.
[    0.100347] CPU features: detected: 32-bit EL0 Support
[    0.107019] CPU: All CPU(s) started at EL2
[    0.109526] alternatives: patching kernel code
[    0.114837] devtmpfs: initialized
[    0.120472] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.126912] futex hash table entries: 1024 (order: 4, 65536 bytes)
[    0.139023] xor: measuring software checksum speed
[    0.177118]    8regs     :  2177.000 MB/sec
[    0.217148]    8regs_prefetch:  1881.000 MB/sec
[    0.257179]    32regs    :  2498.000 MB/sec
[    0.297211]    32regs_prefetch:  2116.000 MB/sec
[    0.297253] xor: using function: 32regs (2498.000 MB/sec)
[    0.301562] pinctrl core: initialized pinctrl subsystem
[    0.307397] NET: Registered protocol family 16
[    0.311411] audit: initializing netlink subsys (disabled)
[    0.316604] audit: type=2000 audit(0.264:1): state=initialized audit_enabled=0 res=1
[    0.324243] cpuidle: using governor menu
[    0.328216] vdso: 2 pages (1 code @ (____ptrval____), 1 data @ (____ptrval____))
[    0.335466] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.342941] DMA: preallocated 256 KiB pool for atomic allocations
[    0.361452] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[    0.430966] raid6: int64x1  gen()   408 MB/s
[    0.498947] raid6: int64x1  xor()   413 MB/s
[    0.567066] raid6: int64x2  gen()   624 MB/s
[    0.635046] raid6: int64x2  xor()   549 MB/s
[    0.703124] raid6: int64x4  gen()   899 MB/s
[    0.771139] raid6: int64x4  xor()   675 MB/s
[    0.839170] raid6: int64x8  gen()  1064 MB/s
[    0.907252] raid6: int64x8  xor()   696 MB/s
[    0.975289] raid6: neonx1   gen()   673 MB/s
[    1.043347] raid6: neonx1   xor()   806 MB/s
[    1.111395] raid6: neonx2   gen()  1035 MB/s
[    1.179425] raid6: neonx2   xor()  1075 MB/s
[    1.247509] raid6: neonx4   gen()  1356 MB/s
[    1.315529] raid6: neonx4   xor()  1299 MB/s
[    1.383590] raid6: neonx8   gen()  1408 MB/s
[    1.451627] raid6: neonx8   xor()  1337 MB/s
[    1.451666] raid6: using algorithm neonx8 gen() 1408 MB/s
[    1.455623] raid6: .... xor() 1337 MB/s, rmw enabled
[    1.460553] raid6: using neon recovery algorithm
[    1.465877] SCSI subsystem initialized
[    1.469044] usbcore: registered new interface driver usbfs
[    1.474345] usbcore: registered new interface driver hub
[    1.479615] usbcore: registered new device driver usb
[    1.484669] media: Linux media interface: v0.10
[    1.489123] videodev: Linux video capture interface: v2.00
[    1.494572] pps_core: LinuxPPS API ver. 1 registered
[    1.499479] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    1.508574] PTP clock support registered
[    1.512472] EDAC MC: Ver: 3.0.0
[    1.515976] zynqmp-ipi-mbox mailbox@ff990400: Probed ZynqMP IPI Mailbox driver.
[    1.523093] FPGA manager framework
[    1.526372] Advanced Linux Sound Architecture Driver Initialized.
[    1.532558] Bluetooth: Core ver 2.22
[    1.535829] NET: Registered protocol family 31
[    1.540222] Bluetooth: HCI device and connection manager initialized
[    1.546539] Bluetooth: HCI socket layer initialized
[    1.551381] Bluetooth: L2CAP socket layer initialized
[    1.556412] Bluetooth: SCO socket layer initialized
[    1.561573] clocksource: Switched to clocksource arch_sys_counter
[    1.567399] VFS: Disk quotas dquot_6.6.0
[    1.571232] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    1.582644] NET: Registered protocol family 2
[    1.583055] tcp_listen_portaddr_hash hash table entries: 2048 (order: 3, 32768 bytes)
[    1.590196] TCP established hash table entries: 32768 (order: 6, 262144 bytes)
[    1.597530] TCP bind hash table entries: 32768 (order: 7, 524288 bytes)
[    1.604309] TCP: Hash tables configured (established 32768 bind 32768)
[    1.610437] UDP hash table entries: 2048 (order: 4, 65536 bytes)
[    1.616419] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes)
[    1.622899] NET: Registered protocol family 1
[    1.627401] RPC: Registered named UNIX socket transport module.
[    1.632955] RPC: Registered udp transport module.
[    1.637632] RPC: Registered tcp transport module.
[    1.642292] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.649052] Trying to unpack rootfs image as initramfs...
[    1.952810] Freeing initrd memory: 6516K
[    1.953268] hw perfevents: no interrupt-affinity property for /pmu, guessing.
[    1.958383] hw perfevents: enabled with armv8_pmuv3 PMU driver, 7 counters available
[    1.966750] Initialise system trusted keyrings
[    1.970500] workingset: timestamp_bits=62 max_order=20 bucket_order=0
[    1.977438] NFS: Registering the id_resolver key type
[    1.981767] Key type id_resolver registered
[    1.985876] Key type id_legacy registered
[    1.989860] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.996528] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    3.188784] NET: Registered protocol family 38
[    3.254718] Key type asymmetric registered
[    3.254757] Asymmetric key parser 'x509' registered
[    3.258076] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[    3.265383] io scheduler noop registered
[    3.269270] io scheduler deadline registered
[    3.273538] io scheduler cfq registered (default)
[    3.278181] io scheduler mq-deadline registered
[    3.282678] io scheduler kyber registered
[    3.317867] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    3.321503] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    3.329594] brd: module loaded
[    3.333676] loop: module loaded
[    3.334457] mtdoops: mtd device (mtddev=name/number) must be supplied
[    3.339102] libphy: Fixed MDIO Bus: probed
[    3.343438] tun: Universal TUN/TAP device driver, 1.6
[    3.346798] CAN device driver interface
[    3.351329] usbcore: registered new interface driver asix
[    3.355881] usbcore: registered new interface driver ax88179_178a
[    3.361922] usbcore: registered new interface driver cdc_ether
[    3.367717] usbcore: registered new interface driver net1080
[    3.373338] usbcore: registered new interface driver cdc_subset
[    3.379219] usbcore: registered new interface driver zaurus
[    3.384765] usbcore: registered new interface driver cdc_ncm
[    3.391025] usbcore: registered new interface driver uas
[    3.395668] usbcore: registered new interface driver usb-storage
[    3.402111] rtc_zynqmp ffa60000.rtc: rtc core: registered ffa60000.rtc as rtc0
[    3.408828] i2c /dev entries driver
[    3.413735] usbcore: registered new interface driver uvcvideo
[    3.417948] USB Video Class driver (1.1.1)
[    3.422554] Bluetooth: HCI UART driver ver 2.3
[    3.426432] Bluetooth: HCI UART protocol H4 registered
[    3.431530] Bluetooth: HCI UART protocol BCSP registered
[    3.436827] Bluetooth: HCI UART protocol LL registered
[    3.441909] Bluetooth: HCI UART protocol ATH3K registered
[    3.447292] Bluetooth: HCI UART protocol Three-wire (H5) registered
[    3.453539] Bluetooth: HCI UART protocol Intel registered
[    3.458882] Bluetooth: HCI UART protocol QCA registered
[    3.464085] usbcore: registered new interface driver bcm203x
[    3.469703] usbcore: registered new interface driver bpa10x
[    3.475243] usbcore: registered new interface driver bfusb
[    3.480690] usbcore: registered new interface driver btusb
[    3.486111] Bluetooth: Generic Bluetooth SDIO driver ver 0.1
[    3.491783] usbcore: registered new interface driver ath3k
[    3.497310] EDAC MC: ECC not enabled
[    3.500944] EDAC DEVICE0: Giving out device to module zynqmp-ocm-edac controller zynqmp_ocm: DEV ff960000.memory-controller (INTERRUPT)
[    3.513523] sdhci: Secure Digital Host Controller Interface driver
[    3.518982] sdhci: Copyright(c) Pierre Ossman
[    3.523305] sdhci-pltfm: SDHCI platform and OF driver helper
[    3.529205] ledtrig-cpu: registered to indicate activity on CPUs
[    3.534945] zynqmp_firmware_probe Platform Management API v1.1
[    3.540696] zynqmp_firmware_probe Trustzone version v1.0
[    3.570574] zynqmp_clk_mux_get_parent() getparent failed for clock: lpd_wdt, ret = -22
[    3.573283] alg: No test for xilinx-zynqmp-aes (zynqmp-aes)
[    3.578421] zynqmp_aes zynqmp_aes: AES Successfully Registered
[    3.578421]
[    3.585921] alg: No test for xilinx-keccak-384 (zynqmp-keccak-384)
[    3.592192] alg: No test for xilinx-zynqmp-rsa (zynqmp-rsa)
[    3.597729] usbcore: registered new interface driver usbhid
[    3.602949] usbhid: USB HID core driver
[    3.609154] fpga_manager fpga0: Xilinx ZynqMP FPGA Manager registered
[    3.613597] usbcore: registered new interface driver snd-usb-audio
[    3.620125] pktgen: Packet Generator for packet performance testing. Version: 2.75
[    3.627271] Initializing XFRM netlink socket
[    3.631141] NET: Registered protocol family 10
[    3.635843] Segment Routing with IPv6
[    3.639198] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    3.645331] NET: Registered protocol family 17
[    3.649410] NET: Registered protocol family 15
[    3.653824] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    3.666738] can: controller area network core (rev 20170425 abi 9)
[    3.672882] NET: Registered protocol family 29
[    3.677254] can: raw protocol (rev 20170425)
[    3.681490] can: broadcast manager protocol (rev 20170425 t)
[    3.687115] can: netlink gateway (rev 20170425) max_hops=1
[    3.692624] Bluetooth: RFCOMM TTY layer initialized
[    3.697415] Bluetooth: RFCOMM socket layer initialized
[    3.702532] Bluetooth: RFCOMM ver 1.11
[    3.706234] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    3.711506] Bluetooth: BNEP filters: protocol multicast
[    3.716698] Bluetooth: BNEP socket layer initialized
[    3.721626] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[    3.727510] Bluetooth: HIDP socket layer initialized
[    3.732550] 9pnet: Installing 9P2000 support
[    3.736694] Key type dns_resolver registered
[    3.741326] registered taskstats version 1
[    3.744991] Loading compiled-in X.509 certificates
[    3.750073] Btrfs loaded, crc32c=crc32c-generic
[    3.760701] ff000000.serial: ttyPS0 at MMIO 0xff000000 (irq = 39, base_baud = 6249999) is a xuartps
[    3.770590] console [ttyPS0] enabled
[    3.770590] console [ttyPS0] enabled
[    3.774190] bootconsole [cdns0] disabled
[    3.774190] bootconsole [cdns0] disabled
[    3.782239] ff010000.serial: ttyPS1 at MMIO 0xff010000 (irq = 40, base_baud = 6249999) is a xuartps
[    3.795181] of-fpga-region fpga-full: FPGA Region probed
[    3.801104] xilinx-zynqmp-dma fd500000.dma: ZynqMP DMA driver Probe success
[    3.808222] xilinx-zynqmp-dma fd510000.dma: ZynqMP DMA driver Probe success
[    3.815331] xilinx-zynqmp-dma fd520000.dma: ZynqMP DMA driver Probe success
[    3.822436] xilinx-zynqmp-dma fd530000.dma: ZynqMP DMA driver Probe success
[    3.829546] xilinx-zynqmp-dma fd540000.dma: ZynqMP DMA driver Probe success
[    3.836652] xilinx-zynqmp-dma fd550000.dma: ZynqMP DMA driver Probe success
[    3.843771] xilinx-zynqmp-dma fd560000.dma: ZynqMP DMA driver Probe success
[    3.850886] xilinx-zynqmp-dma fd570000.dma: ZynqMP DMA driver Probe success
[    3.858076] xilinx-zynqmp-dma ffa80000.dma: ZynqMP DMA driver Probe success
[    3.865189] xilinx-zynqmp-dma ffa90000.dma: ZynqMP DMA driver Probe success
[    3.872299] xilinx-zynqmp-dma ffaa0000.dma: ZynqMP DMA driver Probe success
[    3.879414] xilinx-zynqmp-dma ffab0000.dma: ZynqMP DMA driver Probe success
[    3.886525] xilinx-zynqmp-dma ffac0000.dma: ZynqMP DMA driver Probe success
[    3.893641] xilinx-zynqmp-dma ffad0000.dma: ZynqMP DMA driver Probe success
[    3.900756] xilinx-zynqmp-dma ffae0000.dma: ZynqMP DMA driver Probe success
[    3.907871] xilinx-zynqmp-dma ffaf0000.dma: ZynqMP DMA driver Probe success
[    3.915178] macb ff0b0000.ethernet: Not enabling partial store and forward
[    3.922608] libphy: MACB_mii_bus: probed
[    3.953636] zynqmp_pll_disable() clock disable failed for apll_int, ret = -13
[    4.005750] Xilinx PCS/PMA PHY ff0b0000.ethernet-ffffffff:00: attached PHY driver [Xilinx PCS/PMA PHY] (mii_bus:phy_addr=ff0b0000.ethernet-ffffffff:00, irq=POLL)
[    4.020182] macb ff0b0000.ethernet eth0: Cadence GEM rev 0x50070106 at 0xff0b0000 irq 29 (00:0a:35:00:22:01)
[    4.030466] xilinx-axipmon ffa00000.perf-monitor: Probed Xilinx APM
[    4.037017] xilinx-axipmon fd0b0000.perf-monitor: Probed Xilinx APM
[    4.043517] xilinx-axipmon fd490000.perf-monitor: Probed Xilinx APM
[    4.050016] xilinx-axipmon ffa10000.perf-monitor: Probed Xilinx APM
[    4.056724] cdns-i2c ff020000.i2c: 400 kHz mmio ff020000 irq 31
[    4.063063] cdns-i2c ff030000.i2c: 400 kHz mmio ff030000 irq 32
[    4.069369] cdns-wdt fd4d0000.watchdog: Xilinx Watchdog Timer with timeout 60s
[    4.076818] cdns-wdt ff150000.watchdog: Xilinx Watchdog Timer with timeout 10s
[    4.084340] cpufreq: cpufreq_online: CPU0: Running at unlisted freq: 1099999 KHz
[    4.091784] cpufreq: cpufreq_online: CPU0: Unlisted initial frequency changed to: 1199999 KHz
[    4.129574] mmc0: SDHCI controller on ff170000.mmc [ff170000.mmc] using ADMA 64-bit
[    4.145444] rtc_zynqmp ffa60000.rtc: setting system clock to 2020-02-20 18:22:33 UTC (1582222953)
[    4.154318] of_cfs_init
[    4.156769] of_cfs_init: OK
[    4.159662] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    4.245933] mmc0: new ultra high speed SDR104 SDHC card at address aaaa
[    4.253115] mmcblk0: mmc0:aaaa SC32G 29.7 GiB
[    4.261615]  mmcblk0: p1
[    4.316323] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    4.322853] clk: Not disabling unused clocks
[    4.327120] ALSA device list:
[    4.330082]   No soundcards found.
[    4.333782] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    4.342392] cfg80211: failed to load regulatory.db
[    4.347657] Freeing unused kernel memory: 832K
[    4.361601] Run /init as init process
INIT: version 2.88 booting
Starting udev
[    4.501541] udevd[1768]: starting version 3.2.5
[    4.506423] random: udevd: uninitialized urandom read (16 bytes read)
[    4.512914] random: udevd: uninitialized urandom read (16 bytes read)
[    4.519405] random: udevd: uninitialized urandom read (16 bytes read)
[    4.530261] udevd[1769]: starting eudev-3.2.5
[    4.951990] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
Configuring packages on first boot....
 (This may take several minutes. Please do not power off the machine.)
Running postinst /etc/rpm-postinsts/100-sysvinit-inittab...
update-rc.d: /etc/init.d/run-postinsts exists during rc.d purge (continuing)
INIT: Entering runlevel: 5
Configuring network interfaces... [    5.389808] pps pps0: new PPS source ptp0
[    5.393833] macb ff0b0000.ethernet: gem-ptp-timer ptp clock registered.
[    5.400541] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
udhcpc: started, v1.29.2
udhcpc: sending discover
udhcpc: sending discover
[    9.493768] macb ff0b0000.ethernet eth0: unable to generate target frequency: 2500000 Hz
[    9.501862] macb ff0b0000.ethernet eth0: link up (10/Half)
[    9.507355] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
udhcpc: sending discover
udhcpc: no lease, forking to background
done.
Starting haveged: haveged: listening socket at 3
haveged: haveged starting up


Starting Dropbear SSH server: Generating 2048 bit rsa key, this may take a while...
haveged: haveged: ver: 1.9.4; arch: generic; vend: ; build: (gcc 8.2.0 CTV); collect: 128K

haveged: haveged: cpu: (VC); data: 16K (D); inst: 16K (D); idx: 11/40; sz: 15528/64688

haveged: haveged: tot tests(BA8): A:1/1 B:1/1 continuous tests(B):  last entropy estimate 7.99699

haveged: haveged: fills: 0, generated: 0

[   15.430847] random: crng init done
[   15.434251] random: 7 urandom warning(s) missed due to ratelimiting
Public key portion is:
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDJwGDfI9xbB+knFZse9HeCbAXV+0Eg2VnCWe57noUFeelseQuZWCxgMUNjW3qr44+sV8VK4It2ynSxyDqkzZ0tg/tbVi3i7nwKXz0N9TOxlLamcTELnCvgRrbEBgEkS2+Ltss+FseRkaTMAHghh4wdcdmXdKFo/ipYj6wtJjYU4qgwvkCj4+J9b1VC8p5m3GxG7Y+9bS/TwKNOkFsTdJhWbnXqM+XoobZI9NQt9Q1hfwYVXS+Iw+AMt1WqRE5ZiS2prPc3979adZ0tJe4AoZhDe8XXHgRexGx1dKM4dxOMgL+BnqGpLFS3hLoq5oC8L6PLvqnpZWVfitlfEDQMiVVZ root@example
Fingerprint: sha1!! ed:5a:8e:29:5f:cc:cf:f0:6c:bf:6f:83:4e:80:74:9b:68:f2:d5:e2
dropbear.
Starting internet superserver: inetd.
Starting syslogd/klogd: done
Starting tcf-agent: OK

PetaLinux 2019.2 example /dev/ttyPS0

example login:
PetaLinux 2019.2 example /dev/ttyPS0

example login:
PetaLinux 2019.2 example /dev/ttyPS0

example login:
0 Kudos
Highlighted
Participant
Participant
311 Views
Registered: ‎12-04-2019

Re: XAPP1305 petalinux 2019.2 PS EMIO to SGMII unable to generate target frequency: 2500000 Hz

Attached are the patches (.patch) I am using and corresponding error prompts (.png)  i am getting when trying to use with petalinux 2019.2.

The only patch that worked was 0001-fsbl-si570-clk-config-on-A53.patch.

All others failed.

Any updates on the recipie to get XAPP1305 to work with vivado and petalinux 2019.2? 

0 Kudos
Highlighted
Moderator
Moderator
270 Views
Registered: ‎12-04-2016

Re: XAPP1305 petalinux 2019.2 PS EMIO to SGMII unable to generate target frequency: 2500000 Hz

Hi @mansuramin 

I have created a AR# 72806 linux kernel patch for 2019.2 with these changes, could you please give it a try after adding this patch to recipe-kernel besides updating bbappend file, and let me know how the build goes?

Also, can you also compare the device tree file differences between xapp1305 2019.1 & your case (i.e., 2019.2) as I am suspecting the clock configuration issue as per your boot log

 

 

Best Regards

Shabbir

 

0 Kudos
Highlighted
Participant
Participant
239 Views
Registered: ‎12-04-2019

Re: XAPP1305 petalinux 2019.2 PS EMIO to SGMII unable to generate target frequency: 2500000 Hz

Here are the steps I did to create a new project build using xapp design files and the patch you provided:
Using Windows 10 PRO I unzipped the xapp design files and ran the following command:

source ps_emio_eth_sgmii_top.tcl

This generated a new project in vivado 2019.2. From there I generated a bit stream and exported the .xsa file.
In my virtualbox (v6.1) I am running ubuntu (16.04.6). I have installed Petalinux 2019.2 using the users guide.
Using Petalinu 2019.2 I made a new project and imported the .xsa handoff file with the following commands

petalinux-create -t project -n project2 --template zynqMP
petalinux-config --get-hw-description=/media/sf_vbox_shared/Windows/handoff_files/

The config menu came up and I made not changes. I asked me to save on exit and I selected yes.

From there I applied the patches by following the instrunctions on the wiki. (Navigate to project-spec->meta-user->recipes-bsp.Create a folder'fsbl' → 'files' and add this patch. Also, create a file called fsbl_%.bbappendwithin"fsbl"folder and add the following to it.)

Here is my fsbl_%.bbappend file: 

# Patch for FSBL
# Note: do_configure_prepend task section is required only for 2017.1 release
# Refer https://github.com/Xilinx/meta-xilinx-tools/blob/rel-v2017.2/classes/xsctbase.bbclass#L29-L35
 
do_configure_prepend() {
    if [ -d "${S}/patches" ]; then
       rm -rf ${S}/patches
    fi
  
    if [ -d "${S}/.pc" ]; then
       rm -rf ${S}/.pc
    fi
}
 
SRC_URI_append = " \
             file://0001-fsbl-si570-clk-config-on-A53.patch \
             file://xapp1305_ps_emio_link.patch \
             "
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
  
#Add debug for FSBL(optional)
XSCTH_BUILD_DEBUG = "1"
 
#Enable appropriate FSBL debug flags
YAML_COMPILER_FLAGS_append = " -DXPS_BOARD_ZCU102"
 
# Note: This is not required if you are using Yocto
EXTERNALXSCTsrc=""
EXTERNALXSCTSRC_BUILD = ""

Will post my findings after it is done building. 

 

 

0 Kudos
Highlighted
Participant
Participant
222 Views
Registered: ‎12-04-2019

Re: XAPP1305 petalinux 2019.2 PS EMIO to SGMII unable to generate target frequency: 2500000 Hz

So turns out your patch did not build with 2019.2 See attached image. In my previous post I have a zip file containing similar failure reports from other patches that xilinx recommends. 

image.png

0 Kudos
Highlighted
Moderator
Moderator
183 Views
Registered: ‎12-04-2016

Re: XAPP1305 petalinux 2019.2 PS EMIO to SGMII unable to generate target frequency: 2500000 Hz

Hi @mansuramin 

You need to apply the patch to recipes-kernel/linux, not in recipe-bsp

Example:

$cp xapp1305_ps_emio_link.patch project-spec/meta-user/recipes-kernel/linux/linux-xlnx/

Add this in project-spec/meta-user/recipes-kernel/linux/linux-xlnx_%.bbappend

SRC_URI += "file://xapp1305_ps_emio_link.patch"

 

Best Regards

Shabbir

0 Kudos
Highlighted
Participant
Participant
158 Views
Registered: ‎12-04-2019

Re: XAPP1305 petalinux 2019.2 PS EMIO to SGMII unable to generate target frequency: 2500000 Hz

I removed the divetree updates and redid the linux patch as follows: See image attached. 

I have the patch stored                       under "project-spec/meta-user/recipes-kernel/linux/linux-xlnx/"

I have the linux-xlnx_%.bbappend      under "project-spec/meta-user/recipes-kernel/linux"

Still have error

image.png

0 Kudos