HI
I had compiled the kernel geted from"https://github.com/analogdevicesinc/linux" follow the web "https://wiki.analog.com/resources/eval/user-guides/ad-fmcomms2-ebz/software/linux/zynqmp",
Below is my step:
1: get BOOT.BIN from xilinx project xilinx-zcu102-v2018.3-final.bsp;
2: get Image from adi linux-master;(make adi_zynqmp_defconfig ; make -j16 Image )
3:get dtb from adi linux-master;(make xilinx/zynqmp-zcu102-rev10-adrv9009.dtb; rename xilinx/zynqmp-zcu102-rev10-adrv9009.dtb to system.dtb)
4:copy BOOT.BIN at sdard BOOT part;
5: start power and enter uboot;
6: tftpb 0x30000000 Image ; tftpb 0x40000000 rootfs.bin; tftpb 0x50000000 system.dtb;
7: booti 0x30000000 0x40000000 0x50000000;
below is my uart mesg
U-Boot 2018.01 (Apr 12 2019 - 07:04:17 +0000) Xilinx ZynqMP ZCU102 rev1.0 I2C: ready DRAM: 4 GiB EL Level: EL2 Chip ID: zu9eg MMC: mmc@ff170000: 0 (SD) SF: Detected n25q512a with page size 512 Bytes, erase size 128 KiB, total 128 MiB In: serial@ff000000 Out: serial@ff000000 Err: serial@ff000000 Model: ZynqMP ZCU102 Rev1.0 Board: Xilinx ZynqMP Net: ZYNQ GEM: ff0e0000, phyaddr c, interface rgmii-id Warning: ethernet@ff0e0000 MAC addresses don't match: Address in ROM is 01:02:03:04:05:06 Address in environment is 00:0a:35:00:22:01 eth0: ethernet@ff0e0000 Hit any key to stop autoboot: 0 ZynqMP> tftpb 0x30000000 Image Using ethernet@ff0e0000 device TFTP from server 192.168.1.89; our IP address is 192.168.1.99 Filename 'Image'. Load address: 0x30000000 Loading: ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ## 3 MiB/s done Bytes transferred = 14334464 (daba00 hex) ZynqMP> tftpb 0x40000000 rootfs.bin Using ethernet@ff0e0000 device TFTP from server 192.168.1.89; our IP address is 192.168.1.99 Filename 'rootfs.bin'. Load address: 0x40000000 Loading: ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ####### 3 MiB/s done Bytes transferred = 13453660 (cd495c hex) ZynqMP> tftpb 0x50000000 system.dtb Using ethernet@ff0e0000 device TFTP from server 192.168.1.89; our IP address is 192.168.1.99 Filename 'system.dtb'. Load address: 0x50000000 Loading: #### 3.2 MiB/s done Bytes transferred = 57175 (df57 hex) ZynqMP> booti 0x30000000 0x40000000 0x50000000 ## Loading ramdisk from FIT Image at 40000000 ... Using 'conf@system-top.dtb' configuration Trying 'ramdisk@1' ramdisk subimage Description: petalinux-user-image Type: RAMDisk Image Compression: gzip compressed Data Start: 0x406a0234 Data Size: 6504856 Bytes = 6.2 MiB Architecture: AArch64 OS: Linux Load Address: unavailable Entry Point: unavailable Hash algo: sha1 Hash value: fde9e03eab0d094cfdf4cff364587c72898d3f05 Verifying Hash Integrity ... sha1+ OK ## Flattened Device Tree blob at 50000000 Booting using the fdt blob at 0x50000000 Loading Ramdisk to 079cb000, end 07fff198 ... OK Loading Device Tree to 00000000079ba000, end 00000000079caf56 ... OK Starting kernel ... [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 4.14.0 (root@ubuntu) (gcc version 7.3.1 20180314 (Linaro GCC 7.3-2018.04-rc3)) #3 SMP Mon Apr 15 04:23:45 PDT 2019 [ 0.000000] Boot CPU: AArch64 Processor [410fd034] [ 0.000000] Machine model: ZynqMP ZCU102 Rev1.0 [ 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 0x000000006fc00000 [ 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] percpu: Embedded 21 pages/cpu @ffffffc87ff59000 s45080 r8192 d32744 u86016 [ 0.000000] Detected VIPT I-cache on CPU0 [ 0.000000] CPU features: enabling workaround for ARM erratum 845719 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 1033987 [ 0.000000] Kernel command line: earlycon [ 0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes) [ 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 [mem 0x6bc00000-0x6fc00000] (64MB) mapped at [ffffffc06bc00000-ffffffc06fbfffff] [ 0.000000] Memory: 3778404K/4193280K available (9532K kernel code, 622K rwdata, 3312K rodata, 512K init, 2155K bss, 152732K reserved, 262144K cma-reserved) [ 0.000000] Virtual kernel memory layout: [ 0.000000] modules : 0xffffff8000000000 - 0xffffff8008000000 ( 128 MB) [ 0.000000] vmalloc : 0xffffff8008000000 - 0xffffffbebfff0000 ( 250 GB) [ 0.000000] .text : 0xffffff8008080000 - 0xffffff80089d0000 ( 9536 KB) [ 0.000000] .rodata : 0xffffff80089d0000 - 0xffffff8008d10000 ( 3328 KB) [ 0.000000] .init : 0xffffff8008d10000 - 0xffffff8008d90000 ( 512 KB) [ 0.000000] .data : 0xffffff8008d90000 - 0xffffff8008e2ba00 ( 623 KB) [ 0.000000] .bss : 0xffffff8008e2ba00 - 0xffffff80090468b0 ( 2156 KB) [ 0.000000] fixed : 0xffffffbefe7fd000 - 0xffffffbefec00000 ( 4108 KB) [ 0.000000] PCI I/O : 0xffffffbefee00000 - 0xffffffbeffe00000 ( 16 MB) [ 0.000000] vmemmap : 0xffffffbf00000000 - 0xffffffc000000000 ( 4 GB maximum) [ 0.000000] 0xffffffbf00000000 - 0xffffffbf1dc00000 ( 476 MB actual) [ 0.000000] memory : 0xffffffc000000000 - 0xffffffc880000000 ( 34816 MB) [ 0.000000] Hierarchical RCU implementation. [ 0.000000] RCU event tracing is enabled. [ 0.000000] 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: 0x170f8de2d3, max_idle_ns: 440795206112 ns [ 0.000003] sched_clock: 56 bits at 99MHz, resolution 10ns, wraps every 4398046511101ns [ 0.008292] Console: colour dummy device 80x25 [ 0.012551] console [tty0] enabled [ 0.015928] Calibrating delay loop (skipped), value calculated using timer frequency.. 199.98 BogoMIPS (lpj=399960) [ 0.026304] pid_max: default: 32768 minimum: 301 [ 0.030985] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes) [ 0.037559] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes) [ 0.045241] ASID allocator initialised with 65536 entries [ 0.050497] Hierarchical SRCU implementation. [ 0.055112] EFI services will not be available. [ 0.059481] zynqmp_plat_init Platform Management API v1.1 [ 0.064818] zynqmp_plat_init Trustzone version v1.0 [ 0.069756] smp: Bringing up secondary CPUs ... [ 0.074400] Detected VIPT I-cache on CPU1 [ 0.074427] CPU1: Booted secondary processor [410fd034] [ 0.074698] Detected VIPT I-cache on CPU2 [ 0.074716] CPU2: Booted secondary processor [410fd034] [ 0.074974] Detected VIPT I-cache on CPU3 [ 0.074991] CPU3: Booted secondary processor [410fd034] [ 0.075033] smp: Brought up 1 node, 4 CPUs [ 0.106453] SMP: Total of 4 processors activated. [ 0.111126] CPU features: detected feature: 32-bit EL0 Support [ 0.116924] CPU: All CPU(s) started at EL2 [ 0.120996] alternatives: patching kernel code [ 0.126121] devtmpfs: initialized [ 0.134763] random: get_random_u32 called from bucket_table_alloc+0x108/0x258 with crng_init=0 [ 0.143320] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns [ 0.152885] futex hash table entries: 1024 (order: 5, 131072 bytes) [ 0.164517] xor: measuring software checksum speed [ 0.209185] 8regs : 2303.000 MB/sec [ 0.249214] 8regs_prefetch: 2052.000 MB/sec [ 0.293593] 32regs : 2831.000 MB/sec [ 0.333624] 32regs_prefetch: 2379.000 MB/sec [ 0.338054] xor: using function: 32regs (2831.000 MB/sec) [ 0.343483] pinctrl core: initialized pinctrl subsystem [ 0.348875] random: fast init done [ 0.352214] NET: Registered protocol family 16 [ 0.357008] cpuidle: using governor menu [ 0.361210] vdso: 2 pages (1 code @ ffffff80089d6000, 1 data @ ffffff8008d94000) [ 0.368416] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers. [ 0.375609] DMA: preallocated 256 KiB pool for atomic allocations [ 0.403504] zynqmp-pinctrl pinctrl: zynqmp pinctrl initialized [ 0.409923] reset_zynqmp reset-controller: Xilinx zynqmp reset driver probed [ 0.417345] ARM CCI_400_r1 PMU driver probed [ 0.427976] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages [ 0.504854] raid6: int64x1 gen() 446 MB/s [ 0.576859] raid6: int64x1 xor() 430 MB/s [ 0.648850] raid6: int64x2 gen() 669 MB/s [ 0.720934] raid6: int64x2 xor() 593 MB/s [ 0.792967] raid6: int64x4 gen() 1030 MB/s [ 0.865001] raid6: int64x4 xor() 754 MB/s [ 0.937056] raid6: int64x8 gen() 978 MB/s [ 1.009139] raid6: int64x8 xor() 746 MB/s [ 1.081155] raid6: neonx1 gen() 716 MB/s [ 1.153205] raid6: neonx1 xor() 830 MB/s [ 1.225284] raid6: neonx2 gen() 1153 MB/s [ 1.297320] raid6: neonx2 xor() 1179 MB/s [ 1.369366] raid6: neonx4 gen() 1500 MB/s [ 1.441421] raid6: neonx4 xor() 1420 MB/s [ 1.513493] raid6: neonx8 gen() 1659 MB/s [ 1.585520] raid6: neonx8 xor() 1522 MB/s [ 1.589600] raid6: using algorithm neonx8 gen() 1659 MB/s [ 1.594962] raid6: .... xor() 1522 MB/s, rmw enabled [ 1.599894] raid6: using neon recovery algorithm [ 1.605859] SCSI subsystem initialized [ 1.609599] usbcore: registered new interface driver usbfs [ 1.614925] usbcore: registered new interface driver hub [ 1.620201] usbcore: registered new device driver usb [ 1.625250] media: Linux media interface: v0.10 [ 1.629708] Linux video capture interface: v2.00 [ 1.634305] pps_core: LinuxPPS API ver. 1 registered [ 1.639204] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it> [ 1.648296] PTP clock support registered [ 1.652423] zynqmp-ipi ff9905c0.mailbox: Probed ZynqMP IPI Mailbox driver. [ 1.659202] FPGA manager framework [ 1.662572] fpga-region fpga-full: FPGA Region probed [ 1.667578] Advanced Linux Sound Architecture Driver Initialized. [ 1.673789] Bluetooth: Core ver 2.22 [ 1.677195] NET: Registered protocol family 31 [ 1.681595] Bluetooth: HCI device and connection manager initialized [ 1.687912] Bluetooth: HCI socket layer initialized [ 1.692754] Bluetooth: L2CAP socket layer initialized [ 1.697787] Bluetooth: SCO socket layer initialized [ 1.703079] clocksource: Switched to clocksource arch_sys_counter [ 1.709053] VFS: Disk quotas dquot_6.6.0 [ 1.712912] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes) [ 1.723600] NET: Registered protocol family 2 [ 1.728064] TCP established hash table entries: 32768 (order: 6, 262144 bytes) [ 1.735293] TCP bind hash table entries: 32768 (order: 7, 524288 bytes) [ 1.742124] TCP: Hash tables configured (established 32768 bind 32768) [ 1.748520] UDP hash table entries: 2048 (order: 4, 65536 bytes) [ 1.754494] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes) [ 1.760973] NET: Registered protocol family 1 [ 1.765338] RPC: Registered named UNIX socket transport module. [ 1.771079] RPC: Registered udp transport module. [ 1.775741] RPC: Registered tcp transport module. [ 1.780412] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 1.786921] Trying to unpack rootfs image as initramfs... [ 2.047661] Freeing initrd memory: 6352K [ 2.051763] hw perfevents: no interrupt-affinity property for /pmu, guessing. [ 2.058857] hw perfevents: enabled with armv8_pmuv3 PMU driver, 7 counters available [ 2.067109] audit: initializing netlink subsys (disabled) [ 2.072391] audit: type=2000 audit(2.007:1): state=initialized audit_enabled=0 res=1 [ 2.072717] workingset: timestamp_bits=62 max_order=20 bucket_order=0 [ 2.087092] NFS: Registering the id_resolver key type [ 2.091971] Key type id_resolver registered [ 2.096109] Key type id_legacy registered [ 2.100093] nfs4filelayout_init: NFSv4 File Layout Driver Registering... [ 2.106761] jffs2: version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc. [ 2.140748] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247) [ 2.147960] io scheduler noop registered [ 2.151858] io scheduler deadline registered [ 2.156099] io scheduler cfq registered (default) [ 2.160757] io scheduler mq-deadline registered [ 2.165255] io scheduler kyber registered [ 2.169830] nwl-pcie fd0e0000.pcie: Link is DOWN [ 2.174303] OF: PCI: host bridge /amba/pcie@fd0e0000 ranges: [ 2.179912] OF: PCI: MEM 0xe0000000..0xefffffff -> 0xe0000000 [ 2.185770] OF: PCI: MEM 0x600000000..0x7ffffffff -> 0x600000000 [ 2.192038] nwl-pcie fd0e0000.pcie: PCI host bridge to bus 0000:00 [ 2.198056] pci_bus 0000:00: root bus resource [bus 00-ff] [ 2.203503] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff] [ 2.210336] pci_bus 0000:00: root bus resource [mem 0x600000000-0x7ffffffff pref] [ 2.218025] pci 0000:00:00.0: PCI bridge to [bus 01-0c] [ 23.179073] INFO: rcu_sched detected stalls on CPUs/tasks: [ 23.184372] 0-...: (8 ticks this GP) idle=05a/140000000000000/0 softirq=272/273 fqs=2350 [ 23.192586] (detected by 1, t=5255 jiffies, g=-257, c=-258, q=165) [ 23.198815] Task dump for CPU 0: [ 23.202016] swapper/0 R running task 0 1 0 0x00000002 [ 23.209023] Call trace: [ 23.211453] [<ffffff8008085800>] __switch_to+0x98/0xb0 [ 23.216550] [<0000000083c00000>] 0x83c00000 [ 86.199073] INFO: rcu_sched detected stalls on CPUs/tasks: [ 86.204371] 0-...: (8 ticks this GP) idle=05a/140000000000000/0 softirq=272/273 fqs=9483 [ 86.212585] (detected by 2, t=21010 jiffies, g=-257, c=-258, q=195) [ 86.218901] Task dump for CPU 0: [ 86.222101] swapper/0 R running task 0 1 0 0x00000002 [ 86.229108] Call trace: [ 86.231534] [<ffffff8008085800>] __switch_to+0x98/0xb0 [ 86.236636] [<0000000083c00000>] 0x83c00000 [ 149.219074] INFO: rcu_sched detected stalls on CPUs/tasks: [ 149.224370] 0-...: (8 ticks this GP) idle=05a/140000000000000/0 softirq=272/273 fqs=16635 [ 149.232671] (detected by 2, t=36765 jiffies, g=-257, c=-258, q=195) [ 149.238986] Task dump for CPU 0: [ 149.242187] swapper/0 R running task 0 1 0 0x00000002 [ 149.249194] Call trace: [ 149.251620] [<ffffff8008085800>] __switch_to+0x98/0xb0 [ 149.256722] [<0000000083c00000>] 0x83c00000 [ 212.239075] INFO: rcu_sched detected stalls on CPUs/tasks: [ 212.244370] 0-...: (8 ticks this GP) idle=05a/140000000000000/0 softirq=272/273 fqs=23746 [ 212.252670] (detected by 2, t=52520 jiffies, g=-257, c=-258, q=195)
kernel hung after pci, please help me,thanks.