Vagrant bionic build fails

Hi all

basically I’ve been trying to build a pynq 2.5 distribution for my trenz ultrascale+ ZU7EV-1E with baseboard
I first created a basic vivado 2019.1 project in order to have a hdf file.

Then I tried multiple approaches in order to get the Pynq ported to the board:

  1. I tried on an existing ubuntu VM (18.04) with all 2019.1 tools (vivado, sdk and petalinux)
  2. I tried on another ubuntu machine (18.04) with all 2020.1 tools and the 2.6 branch of pynq
  3. I tried the vagrant way promoted on this site.

Now all of them fail, yet debugging all of them would be silly. I would expect the vagrant way on the other hand to be the easiest:

  • on a windows 10 pro machine I installed virtualbox and vagrant and did install a bionic image via vagrant.
  • in this VM I cloned the pynq repo again in the /workspace share as the /pynq is too small.
  • I ran bash scripts/setup_host.sh >> log_setup_host.txt
  • in attach a zip of my .spec file and hdf file etc, as well as an install log.txt
  1. I tried make PREBUILT=bionic.aarch64.2.5.img BOARDS=Trenz
  2. as well as bash scripts/image_from_prebuilt.sh Trenz ../boards/Trenz/petalinux_bsp/xilinx-trenz-2019.bsp aarch64 /workspace/bionic.aarch64.2.5.img

The result is the same:

mount: /workspace/PYNQ/sdbuild/build/bionic.trenz/proc: mount point does not exist

Now, an image is being created, yet with no boot files in the first partition… (Only the Rootfs, yet in the accompanying folder boot there’s (only) a BOOT.BIN and image.ub)

I attach all log files for the make and for the bash script, as well as my .spec file

Anybody any ideas why it keeps failing or what I should do?

Sincerely
Wouter Devriese
logs.zip (83.9 KB) trenz 2.zip (3.0 MB)

Anybody any idea? I’ve checked the forum but couldn’t find the same problems occurring…

Hi, please use absolute path for your make or build scripts.

Hi Rock

thanks, this builds indeed…
Now I can clearly see that both my partitions are built correctly, however when booting, I get following error:

�Xilinx Zynq MP First Stage Boot Loader
Release 2019.1 Oct 6 2020 - 12:25:28
NOTICE: ATF running on XCZU7EG/EV/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-v2018.3-720-g80d1c790
NOTICE: BL31: Built : 12:27:07, Oct 6 2020
PMUFW: v1.1
U-Boot 2019.01 (Oct 06 2020 - 12:23:42 +0000)
Board: Xilinx ZynqMP
DRAM: 4 GiB
usb dr_mode not found
EL Level: EL2
Chip ID: zu7
MMC: mmc@ff160000: 0, mmc@ff170000: 1
Loading Environment from SPI Flash… SF: Detected n25q512a with page size 512 Bytes, erase size 128 KiB, total 128 MiB
OK
In: serial@ff000000
Out: serial@ff000000
Err: serial@ff000000
Board: Xilinx ZynqMP
Hit any key to stop autoboot: 0
** Invalid partition 1 **
Device: mmc@ff160000
Manufacturer ID: 13
OEM: 14e
Name: Q2J54
Bus Speed: 52000000
Mode : MMC High Speed (52MHz)
Rd Block Len: 512
MMC version 5.0
High Capacity: Yes
Capacity: 3.6 GiB
Bus Width: 4-bit
Erase Group Size: 512 KiB
HC WP Group Size: 8 MiB
User Capacity: 3.6 GiB WRREL
Boot Capacity: 16 MiB ENH
RPMB Capacity: 512 KiB ENH
** Invalid partition 1 **

If I then try:

sdboot=echo boot Petalinux; run uenvboot ; mmcinfo && fatload mmc 1 ${netstart} ${kernel_img} && bootm

the system tries to boot but I get a kernel panic, while I don’t know why (msg says they can’t boot the filesystem…)

Device: mmc@ff160000
Manufacturer ID: 13
OEM: 14e
Name: Q2J54
Bus Speed: 52000000
Mode : MMC High Speed (52MHz)
Rd Block Len: 512
MMC version 5.0
High Capacity: Yes
Capacity: 3.6 GiB
Bus Width: 4-bit
Erase Group Size: 512 KiB
HC WP Group Size: 8 MiB
User Capacity: 3.6 GiB WRREL
Boot Capacity: 16 MiB ENH
RPMB Capacity: 512 KiB ENH
18261616 bytes read in 1216 ms (14.3 MiB/s)
Loading kernel from FIT Image at 10000000 …
Using ‘conf@1’ configuration
Trying ‘kernel@0’ kernel subimage
Description: Linux Kernel
Type: Kernel Image
Compression: uncompressed
Data Start: 0x100000d4
Data Size: 18221568 Bytes = 17.4 MiB
Architecture: AArch64
OS: Linux
Load Address: 0x00080000
Entry Point: 0x00080000
Hash algo: sha1
Hash value: 03687f7a5f03032fa42f2b08880ca330d7eeba6f
Verifying Hash Integrity … sha1+ OK
Loading fdt from FIT Image at 10000000 …
Using ‘conf@1’ configuration
Trying ‘fdt@0’ fdt subimage
Description: Flattened Device Tree blob
Type: Flat Device Tree
Compression: uncompressed
Data Start: 0x11160bcc
Data Size: 38221 Bytes = 37.3 KiB
Architecture: AArch64
Hash algo: sha1
Hash value: 08661cf33df9b73ce02b0bdf2b6db58e63c187b5
Verifying Hash Integrity … sha1+ OK
Booting using the fdt blob at 0x11160bcc
Loading Kernel Image … OK
Loading Device Tree to 0000000007ff3000, end 0000000007fff54c … OK
Starting kernel …
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[ 0.000000] Linux version 4.19.0-xilinx-v2019.1 (oe-user@oe-host) (gcc version 8.2.0 (GCC)) #1 SMP Tue Oct 6 12:04:18 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 1024 MiB at 0x000000003fc00000
[ 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/0x3e0 with crng_init=0
[ 0.000000] percpu: Embedded 23 pages/cpu @(ptrval) s53720 r8192 d32296 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: 1031940
[ 0.000000] Kernel command line: earlycon earlyprintk clk_ignore_unused root=/dev/mmcblk0p2 rw rootwait uio_pdrv_genirq.of_id=generic-uio cma=1024M
[ 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 0x3bc00000-0x3fc00000] (64MB)
[ 0.000000] Memory: 2987912K/4193280K available (10876K kernel code, 642K rwdata, 5372K rodata, 832K init, 510K bss, 156792K reserved, 1048576K 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 33.33MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x7b00c3848, max_idle_ns: 440795203375 ns
[ 0.000003] sched_clock: 56 bits at 33MHz, resolution 30ns, wraps every 2199023255545ns
[ 0.008235] Console: colour dummy device 80x25
[ 0.012377] console [tty0] enabled
[ 0.015742] bootconsole [cdns0] disabled
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[ 0.000000] Linux version 4.19.0-xilinx-v2019.1 (oe-user@oe-host) (gcc version 8.2.0 (GCC)) #1 SMP Tue Oct 6 12:04:18 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 1024 MiB at 0x000000003fc00000
[ 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/0x3e0 with crng_init=0
[ 0.000000] percpu: Embedded 23 pages/cpu @(ptrval) s53720 r8192 d32296 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: 1031940
[ 0.000000] Kernel command line: earlycon earlyprintk clk_ignore_unused root=/dev/mmcblk0p2 rw rootwait uio_pdrv_genirq.of_id=generic-uio cma=1024M
[ 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 0x3bc00000-0x3fc00000] (64MB)
[ 0.000000] Memory: 2987912K/4193280K available (10876K kernel code, 642K rwdata, 5372K rodata, 832K init, 510K bss, 156792K reserved, 1048576K 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 33.33MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x7b00c3848, max_idle_ns: 440795203375 ns
[ 0.000003] sched_clock: 56 bits at 33MHz, resolution 30ns, wraps every 2199023255545ns
[ 0.008235] Console: colour dummy device 80x25
[ 0.012377] console [tty0] enabled
[ 0.015742] bootconsole [cdns0] disabled
[ 0.019656] Calibrating delay loop (skipped), value calculated using timer frequency… 66.66 BogoMIPS (lpj=133333)
[ 0.019671] pid_max: default: 32768 minimum: 301
[ 0.019820] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.019840] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.020654] ASID allocator initialised with 32768 entries
[ 0.020714] rcu: Hierarchical SRCU implementation.
[ 0.021020] EFI services will not be available.
[ 0.021155] smp: Bringing up secondary CPUs …
[ 0.021458] Detected VIPT I-cache on CPU1
[ 0.021489] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[ 0.021827] Detected VIPT I-cache on CPU2
[ 0.021848] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[ 0.022167] Detected VIPT I-cache on CPU3
[ 0.022189] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[ 0.022239] smp: Brought up 1 node, 4 CPUs
[ 0.022277] SMP: Total of 4 processors activated.
[ 0.022286] CPU features: detected: 32-bit EL0 Support
[ 0.023819] CPU: All CPU(s) started at EL2
[ 0.023836] alternatives: patching kernel code
[ 0.024803] devtmpfs: initialized
[ 0.029336] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.029357] futex hash table entries: 1024 (order: 4, 65536 bytes)
[ 0.054082] xor: measuring software checksum speed
[ 0.091944] 8regs : 2078.000 MB/sec
[ 0.131975] 8regs_prefetch: 1795.000 MB/sec
[ 0.172008] 32regs : 2384.000 MB/sec
[ 0.212041] 32regs_prefetch: 2020.000 MB/sec
[ 0.212050] xor: using function: 32regs (2384.000 MB/sec)
[ 0.212065] pinctrl core: initialized pinctrl subsystem
[ 0.212727] NET: Registered protocol family 16
[ 0.213106] audit: initializing netlink subsys (disabled)
[ 0.213181] audit: type=2000 audit(0.204:1): state=initialized audit_enabled=0 res=1
[ 0.213615] cpuidle: using governor menu
[ 0.213837] vdso: 2 pages (1 code @ (ptrval), 1 data @ (ptrval))
[ 0.213852] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[ 0.214614] DMA: preallocated 256 KiB pool for atomic allocations
[ 0.229384] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[ 0.296207] raid6: int64x1 gen() 388 MB/s
[ 0.364268] raid6: int64x1 xor() 397 MB/s
[ 0.432257] raid6: int64x2 gen() 594 MB/s
[ 0.500322] raid6: int64x2 xor() 525 MB/s
[ 0.568406] raid6: int64x4 gen() 858 MB/s
[ 0.636402] raid6: int64x4 xor() 645 MB/s
[ 0.704442] raid6: int64x8 gen() 1015 MB/s
[ 0.772535] raid6: int64x8 xor() 665 MB/s
[ 0.840626] raid6: neonx1 gen() 643 MB/s
[ 0.908615] raid6: neonx1 xor() 770 MB/s
[ 0.976707] raid6: neonx2 gen() 988 MB/s
[ 1.044710] raid6: neonx2 xor() 1027 MB/s
[ 1.112775] raid6: neonx4 gen() 1295 MB/s
[ 1.180810] raid6: neonx4 xor() 1241 MB/s
[ 1.248874] raid6: neonx8 gen() 1355 MB/s
[ 1.316928] raid6: neonx8 xor() 1277 MB/s
[ 1.316937] raid6: using algorithm neonx8 gen() 1355 MB/s
[ 1.316946] raid6: … xor() 1277 MB/s, rmw enabled
[ 1.316954] raid6: using neon recovery algorithm
[ 1.317769] SCSI subsystem initialized
[ 1.317975] usbcore: registered new interface driver usbfs
[ 1.318023] usbcore: registered new interface driver hub
[ 1.318066] usbcore: registered new device driver usb
[ 1.318138] media: Linux media interface: v0.10
[ 1.318170] videodev: Linux video capture interface: v2.00
[ 1.318208] pps_core: LinuxPPS API ver. 1 registered
[ 1.318218] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti giometti@linux.it
[ 1.318243] PTP clock support registered
[ 1.318272] EDAC MC: Ver: 3.0.0
[ 1.318732] zynqmp-ipi-mbox mailbox@ff990400: Probed ZynqMP IPI Mailbox driver.
[ 1.318946] FPGA manager framework
[ 1.319118] Advanced Linux Sound Architecture Driver Initialized.
[ 1.319444] Bluetooth: Core ver 2.22
[ 1.319476] NET: Registered protocol family 31
[ 1.319486] Bluetooth: HCI device and connection manager initialized
[ 1.319500] Bluetooth: HCI socket layer initialized
[ 1.319510] Bluetooth: L2CAP socket layer initialized
[ 1.319538] Bluetooth: SCO socket layer initialized
[ 1.319945] clocksource: Switched to clocksource arch_sys_counter
[ 1.320048] VFS: Disk quotas dquot_6.6.0
[ 1.320100] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 1.325145] NET: Registered protocol family 2
[ 1.325557] tcp_listen_portaddr_hash hash table entries: 2048 (order: 3, 32768 bytes)
[ 1.325615] TCP established hash table entries: 32768 (order: 6, 262144 bytes)
[ 1.325854] TCP bind hash table entries: 32768 (order: 7, 524288 bytes)
[ 1.326290] TCP: Hash tables configured (established 32768 bind 32768)
[ 1.326364] UDP hash table entries: 2048 (order: 4, 65536 bytes)
[ 1.326453] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes)
[ 1.326627] NET: Registered protocol family 1
[ 1.326872] RPC: Registered named UNIX socket transport module.
[ 1.326883] RPC: Registered udp transport module.
[ 1.326891] RPC: Registered tcp transport module.
[ 1.326899] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 1.327714] hw perfevents: no interrupt-affinity property for /pmu, guessing.
[ 1.327883] hw perfevents: enabled with armv8_pmuv3 PMU driver, 7 counters available
[ 1.328901] Initialise system trusted keyrings
[ 1.328999] workingset: timestamp_bits=46 max_order=20 bucket_order=0
[ 1.329846] NFS: Registering the id_resolver key type
[ 1.329863] Key type id_resolver registered
[ 1.329872] Key type id_legacy registered
[ 1.329886] nfs4filelayout_init: NFSv4 File Layout Driver Registering…
[ 1.329909] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[ 2.566671] NET: Registered protocol family 38
[ 2.634567] Key type asymmetric registered
[ 2.634579] Asymmetric key parser ‘x509’ registered
[ 2.634621] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[ 2.634635] io scheduler noop registered
[ 2.634644] io scheduler deadline registered
[ 2.634689] io scheduler cfq registered (default)
[ 2.634699] io scheduler mq-deadline registered
[ 2.634708] io scheduler kyber registered
[ 2.666753] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[ 2.670531] cacheinfo: Unable to detect cache hierarchy for CPU 0
[ 2.675579] brd: module loaded
[ 2.679915] loop: module loaded
[ 2.680869] mtdoops: mtd device (mtddev=name/number) must be supplied
[ 2.682265] libphy: Fixed MDIO Bus: probed
[ 2.683587] tun: Universal TUN/TAP device driver, 1.6
[ 2.683729] CAN device driver interface
[ 2.685288] ehci_hcd: USB 2.0 ‘Enhanced’ Host Controller (EHCI) Driver
[ 2.685304] ehci-pci: EHCI PCI platform driver
[ 2.685633] usbcore: registered new interface driver cdc_acm
[ 2.685643] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[ 2.685680] usbcore: registered new interface driver cdc_wdm
[ 2.685726] usbcore: registered new interface driver usb-storage
[ 2.685797] usbcore: registered new interface driver usbserial_generic
[ 2.685829] usbserial: USB Serial support registered for generic
[ 2.685866] usbcore: registered new interface driver usb_serial_simple
[ 2.685895] usbserial: USB Serial support registered for carelink
[ 2.685924] usbserial: USB Serial support registered for zio
[ 2.685953] usbserial: USB Serial support registered for funsoft
[ 2.685982] usbserial: USB Serial support registered for flashloader
[ 2.686010] usbserial: USB Serial support registered for google
[ 2.686040] usbserial: USB Serial support registered for libtransistor
[ 2.686069] usbserial: USB Serial support registered for vivopay
[ 2.686099] usbserial: USB Serial support registered for moto_modem
[ 2.686130] usbserial: USB Serial support registered for motorola_tetra
[ 2.686160] usbserial: USB Serial support registered for novatel_gps
[ 2.686190] usbserial: USB Serial support registered for hp4x
[ 2.686220] usbserial: USB Serial support registered for suunto
[ 2.686247] usbserial: USB Serial support registered for siemens_mpi
[ 2.686837] rtc_zynqmp ffa60000.rtc: rtc core: registered ffa60000.rtc as rtc0
[ 2.686902] i2c /dev entries driver
[ 2.689271] Bluetooth: HCI UART driver ver 2.3
[ 2.689290] Bluetooth: HCI UART protocol H4 registered
[ 2.689299] Bluetooth: HCI UART protocol BCSP registered
[ 2.689328] Bluetooth: HCI UART protocol LL registered
[ 2.689338] Bluetooth: HCI UART protocol ATH3K registered
[ 2.689364] Bluetooth: HCI UART protocol Three-wire (H5) registered
[ 2.689415] Bluetooth: HCI UART protocol Intel registered
[ 2.689442] Bluetooth: HCI UART protocol QCA registered
[ 2.689491] usbcore: registered new interface driver bcm203x
[ 2.689533] usbcore: registered new interface driver bpa10x
[ 2.689572] usbcore: registered new interface driver bfusb
[ 2.689611] usbcore: registered new interface driver btusb
[ 2.689622] Bluetooth: Generic Bluetooth SDIO driver ver 0.1
[ 2.689680] usbcore: registered new interface driver ath3k
[ 2.689821] EDAC MC: ECC not enabled
[ 2.690024] EDAC DEVICE0: Giving out device to module zynqmp-ocm-edac controller zynqmp_ocm: DEV ff960000.memory-controller (INTERRUPT)
[ 2.690768] sdhci: Secure Digital Host Controller Interface driver
[ 2.690779] sdhci: Copyright(c) Pierre Ossman
[ 2.690787] sdhci-pltfm: SDHCI platform and OF driver helper
[ 2.691169] ledtrig-cpu: registered to indicate activity on CPUs
[ 2.691224] zynqmp_firmware_probe Platform Management API v1.1
[ 2.691236] zynqmp_firmware_probe Trustzone version v1.0
[ 2.715795] zynqmp_clk_mux_get_parent() getparent failed for clock: lpd_wdt, ret = -22
[ 2.716269] alg: No test for xilinx-zynqmp-aes (zynqmp-aes)
[ 2.716293] zynqmp_aes zynqmp_aes: AES Successfully Registered
[ 2.716293]
[ 2.716484] alg: No test for xilinx-keccak-384 (zynqmp-keccak-384)
[ 2.716674] alg: No test for xilinx-zynqmp-rsa (zynqmp-rsa)
[ 2.716903] usbcore: registered new interface driver usbhid
[ 2.716914] usbhid: USB HID core driver
[ 2.717093] xlnk xlnk: Major 243
[ 2.717206] xlnk xlnk: xlnk driver loaded
[ 2.717217] xlnk xlnk: xlnk_pdev is not null
[ 2.719368] fpga_manager fpga0: Xilinx ZynqMP FPGA Manager registered
[ 2.719783] usbcore: registered new interface driver snd-usb-audio
[ 2.720770] pktgen: Packet Generator for packet performance testing. Version: 2.75
[ 2.721196] Initializing XFRM netlink socket
[ 2.721292] NET: Registered protocol family 10
[ 2.721723] Segment Routing with IPv6
[ 2.721828] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[ 2.722206] NET: Registered protocol family 17
[ 2.722225] NET: Registered protocol family 15
[ 2.722249] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[ 2.722305] can: controller area network core (rev 20170425 abi 9)
[ 2.722358] NET: Registered protocol family 29
[ 2.722368] can: raw protocol (rev 20170425)
[ 2.722377] can: broadcast manager protocol (rev 20170425 t)
[ 2.722389] can: netlink gateway (rev 20170425) max_hops=1
[ 2.722642] Bluetooth: RFCOMM TTY layer initialized
[ 2.722656] Bluetooth: RFCOMM socket layer initialized
[ 2.722674] Bluetooth: RFCOMM ver 1.11
[ 2.722691] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 2.722700] Bluetooth: BNEP filters: protocol multicast
[ 2.722711] Bluetooth: BNEP socket layer initialized
[ 2.722720] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[ 2.722731] Bluetooth: HIDP socket layer initialized
[ 2.722849] 9pnet: Installing 9P2000 support
[ 2.722875] Key type dns_resolver registered
[ 2.723382] registered taskstats version 1
[ 2.723392] Loading compiled-in X.509 certificates
[ 2.723784] Btrfs loaded, crc32c=crc32c-generic
[ 2.730822] ff000000.serial: ttyPS0 at MMIO 0xff000000 (irq = 47, base_baud = 6249999) is a xuartps
[ 4.052489] console [ttyPS0] enabled
[ 4.056839] of-fpga-region fpga-full: FPGA Region probed
[ 5.062825] nwl-pcie fd0e0000.pcie: PHY link never came up
[ 5.068320] nwl-pcie fd0e0000.pcie: HW Initialization failed
[ 5.074028] nwl-pcie: probe of fd0e0000.pcie failed with error -110
[ 5.081122] xilinx-dpdma fd4c0000.dma: Xilinx DPDMA engine is probed
[ 5.087735] xilinx-zynqmp-dma fd500000.dma: ZynqMP DMA driver Probe success
[ 5.094872] xilinx-zynqmp-dma fd510000.dma: ZynqMP DMA driver Probe success
[ 5.102008] xilinx-zynqmp-dma fd520000.dma: ZynqMP DMA driver Probe success
[ 5.109140] xilinx-zynqmp-dma fd530000.dma: ZynqMP DMA driver Probe success
[ 5.116270] xilinx-zynqmp-dma fd540000.dma: ZynqMP DMA driver Probe success
[ 5.123409] xilinx-zynqmp-dma fd550000.dma: ZynqMP DMA driver Probe success
[ 5.130539] xilinx-zynqmp-dma fd560000.dma: ZynqMP DMA driver Probe success
[ 5.137674] xilinx-zynqmp-dma fd570000.dma: ZynqMP DMA driver Probe success
[ 5.144882] xilinx-zynqmp-dma ffa80000.dma: ZynqMP DMA driver Probe success
[ 5.152028] xilinx-zynqmp-dma ffa90000.dma: ZynqMP DMA driver Probe success
[ 5.159160] xilinx-zynqmp-dma ffaa0000.dma: ZynqMP DMA driver Probe success
[ 5.166291] xilinx-zynqmp-dma ffab0000.dma: ZynqMP DMA driver Probe success
[ 5.173428] xilinx-zynqmp-dma ffac0000.dma: ZynqMP DMA driver Probe success
[ 5.180566] xilinx-zynqmp-dma ffad0000.dma: ZynqMP DMA driver Probe success
[ 5.187698] xilinx-zynqmp-dma ffae0000.dma: ZynqMP DMA driver Probe success
[ 5.194831] xilinx-zynqmp-dma ffaf0000.dma: ZynqMP DMA driver Probe success
[ 5.203213] xilinx-psgtr fd400000.zynqmp_phy: PLL lock time out
[ 5.209136] xilinx-psgtr fd400000.zynqmp_phy: Lane:3 type:8 protocol:4 pll_locked:no
[ 5.216885] zynqmp-display fd4a0000.zynqmp-display: failed to lock pll
[ 5.223424] zynqmp-display: probe of fd4a0000.zynqmp-display failed with error -110
[ 5.231494] ahci-ceva fd0c0000.ahci: AHCI 0001.0301 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[ 5.240458] ahci-ceva fd0c0000.ahci: flags: 64bit ncq sntf pm clo only pmp fbs pio slum part ccc sds apst
[ 5.250938] scsi host0: ahci-ceva
[ 5.254558] scsi host1: ahci-ceva
[ 5.258039] ata1: SATA max UDMA/133 mmio [mem 0xfd0c0000-0xfd0c1fff] port 0x100 irq 44
[ 5.265965] ata2: SATA max UDMA/133 mmio [mem 0xfd0c0000-0xfd0c1fff] port 0x180 irq 44
[ 5.275746] m25p80 spi0.0: n25q512a (131072 Kbytes)
[ 5.280649] 3 fixed-partitions partitions found on MTD device spi0.0
[ 5.287000] Creating 3 MTD partitions on “spi0.0”:
[ 5.291792] 0x000000000000-0x000000100000 : “boot”
[ 5.297199] 0x000000100000-0x000000140000 : “bootenv”
[ 5.302713] 0x000000140000-0x000001740000 : “kernel”
[ 5.309127] macb ff0e0000.ethernet: Not enabling partial store and forward
[ 5.316021] macb ff0e0000.ethernet: invalid hw address, using random
[ 5.322918] libphy: MACB_mii_bus: probed
[ 5.400172] Marvell 88E1510 ff0e0000.ethernet-ffffffff:01: attached PHY driver [Marvell 88E1510] (mii_bus:phy_addr=ff0e0000.ethernet-ffffffff:01, irq=POLL)
[ 5.414088] macb ff0e0000.ethernet eth0: Cadence GEM rev 0x50070106 at 0xff0e0000 irq 30 (ca:29:e7:94:3a:7b)
[ 5.424272] xilinx-axipmon ffa00000.perf-monitor: Probed Xilinx APM
[ 5.430847] xilinx-axipmon fd0b0000.perf-monitor: Probed Xilinx APM
[ 5.437371] xilinx-axipmon fd490000.perf-monitor: Probed Xilinx APM
[ 5.443894] xilinx-axipmon ffa10000.perf-monitor: Probed Xilinx APM
[ 5.450429] dwc3-of-simple ff9d0000.usb0: dwc3_simple_set_phydata: Can’t find usb3-phy
[ 5.458769] dwc3 fe200000.dwc3: Failed to get clk ‘ref’: -2
[ 5.465089] cdns-i2c ff020000.i2c: 400 kHz mmio ff020000 irq 32
[ 5.471355] cdns-wdt fd4d0000.watchdog: Xilinx Watchdog Timer at (ptrval) with timeout 60s
[ 5.480571] cdns-wdt ff150000.watchdog: Xilinx Watchdog Timer at (ptrval) with timeout 10s
[ 5.489848] cpufreq: cpufreq_online: CPU0: Running at unlisted freq: 1049999 KHz
[ 5.497300] cpufreq: cpufreq_online: CPU0: Unlisted initial frequency changed to: 1199999 KHz
[ 5.536514] mmc0: SDHCI controller on ff160000.mmc [ff160000.mmc] using ADMA 64-bit
[ 5.579947] mmc1: SDHCI controller on ff170000.mmc [ff170000.mmc] using ADMA 64-bit
[ 5.586190] ata2: SATA link down (SStatus 0 SControl 330)
[ 5.593030] ata1: SATA link down (SStatus 0 SControl 330)
[ 5.601113] rtc_zynqmp ffa60000.rtc: setting system clock to 1970-01-01 00:02:33 UTC (153)
[ 5.609378] of_cfs_init
[ 5.611827] of_cfs_init: OK
[ 5.614761] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 5.634923] mmc0: new HS200 MMC card at address 0001
[ 5.640463] mmcblk0: mmc0:0001 Q2J54A 3.59 GiB
[ 5.645391] mmcblk0boot0: mmc0:0001 Q2J54A partition 1 16.0 MiB
[ 5.651700] mmcblk0boot1: mmc0:0001 Q2J54A partition 2 16.0 MiB
[ 5.657724] mmcblk0rpmb: mmc0:0001 Q2J54A partition 3 512 KiB, chardev (244:0)
[ 5.665962] mmcblk0: p2
[ 5.729761] mmc1: error -110 whilst initialising SD card
[ 5.773239] cfg80211: Loaded X.509 cert ‘sforshee: 00b28ddf47aef9cea7’
[ 5.779779] clk: Not disabling unused clocks
[ 5.784052] ALSA device list:
[ 5.787008] No soundcards found.
[ 5.790703] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[ 5.799320] cfg80211: failed to load regulatory.db
[ 5.808212] List of all partitions:
[ 5.811694] 0100 65536 ram0
[ 5.811696] (driver?)
[ 5.817818] 0101 65536 ram1
[ 5.817820] (driver?)
[ 5.823912] 0102 65536 ram2
[ 5.823914] (driver?)
[ 5.830010] 0103 65536 ram3
[ 5.830012] (driver?)
[ 5.836112] 0104 65536 ram4
[ 5.836113] (driver?)
[ 5.842207] 0105 65536 ram5
[ 5.842209] (driver?)
[ 5.848308] 0106 65536 ram6
[ 5.848309] (driver?)
[ 5.854404] 0107 65536 ram7
[ 5.854406] (driver?)
[ 5.860502] 0108 65536 ram8
[ 5.860504] (driver?)
[ 5.866600] 0109 65536 ram9
[ 5.866602] (driver?)
[ 5.872698] 010a 65536 ram10
[ 5.872700] (driver?)
[ 5.878882] 010b 65536 ram11
[ 5.878884] (driver?)
[ 5.885067] 010c 65536 ram12
[ 5.885069] (driver?)
[ 5.891251] 010d 65536 ram13
[ 5.891253] (driver?)
[ 5.897436] 010e 65536 ram14
[ 5.897438] (driver?)
[ 5.903620] 010f 65536 ram15
[ 5.903621] (driver?)
[ 5.909808] 1f00 1024 mtdblock0
[ 5.909810] (driver?)
[ 5.916341] 1f01 256 mtdblock1
[ 5.916343] (driver?)
[ 5.922872] 1f02 22528 mtdblock2
[ 5.922874] (driver?)
[ 5.929404] b300 3760128 mmcblk0
[ 5.929406] driver: mmcblk
[ 5.936201] b302 3759104 mmcblk0p2 74a8f66f-02
[ 5.936203]
[ 5.942990] No filesystem could mount root, tried:
[ 5.942992] ext3
[ 5.947865] ext4
[ 5.949782] ext2
[ 5.951695] cramfs
[ 5.953610] vfat
[ 5.955696] msdos
[ 5.957611] btrfs
[ 5.959611]
[ 5.963095] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,2)
[ 5.971528] CPU: 3 PID: 1 Comm: swapper/0 Not tainted 4.19.0-xilinx-v2019.1 #1
[ 5.978737] Hardware name: xlnx,zynqmp (DT)
[ 5.982910] Call trace:
[ 5.985355] dump_backtrace+0x0/0x148
[ 5.989006] show_stack+0x14/0x20
[ 5.992314] dump_stack+0x90/0xb4
[ 5.995619] panic+0x120/0x268
[ 5.998667] mount_block_root+0x22c/0x258
[ 6.002667] mount_root+0x11c/0x148
[ 6.006148] prepare_namespace+0x158/0x1a0
[ 6.010236] kernel_init_freeable+0x1b8/0x1d4
[ 6.014585] kernel_init+0x10/0xfc
[ 6.017978] ret_from_fork+0x10/0x18
[ 6.021547] SMP: stopping secondary CPUs
[ 6.025499] Kernel Offset: disabled
[ 6.028975] CPU features: 0x0,20802004
[ 6.032715] Memory Limit: none
[ 6.035766] —[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,2) ]—

Does this ring any bell?

  1. Should I adapt something in the device tree or build process that they automatically try to boot from the second partition?
  2. Any idea why they can’t mount the ext4 rootfs? (I can’t seem to find what error-110 means…)

Sincerely

Just want to make sure, are you burning your image using win32diskimager or tools like that?

Hi @rock I was using “dd” from within Linux.
I got further now making some adaptions, yet I’m not sure if all of them are necessary + I still got a problem with bootargs which I can fix temporarily yet not permanent (I attach a pdf in which I document the flow I took to get there, if this could help)
Pynq_flow.pdf (11.6 KB)

  1. I added in my custom board folder also device tree adaptions for using the SD card.Yet I am not sure if this would be automatically added from the hdf file otherwise, as the SD card was already read from the first partition? device tree adaptions in github fork
  2. when using dd I got kernel panics, when mounting the created Pynq image locally and then copying all files to the correct partitions on an SD card, I was able to boot, with one bootargs problem:
    I get:

xilinx@pynq:~ Xilinx Zynq MP First Stage Boot Loader
Release 2019.1 Oct 13 2020 - 12:07:25
NOTICE: ATF running on XCZU7EG/EV/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-v2018.3-720-g80d1c790
NOTICE: BL31: Built : 12:09:12, Oct 13 2020
PMUFW: v1.1
U-Boot 2019.01 (Oct 13 2020 - 12:05:26 +0000)
Board: Xilinx ZynqMP
DRAM: 4 GiB
EL Level: EL2
Chip ID: zu7
MMC: mmc@ff160000: 0, mmc@ff170000: 1
In: serial@ff000000
Out: serial@ff000000
Err: serial@ff000000
Board: Xilinx ZynqMP
Bootmode: SD_MODE1
Reset reason: EXTERNAL
U-BOOT for xilinx-trenz-2019.1
Hit any key to stop autoboot: 0
** Invalid partition 1 **
Device: mmc@ff160000
Manufacturer ID: 13
OEM: 14e
Name: Q2J54
Bus Speed: 52000000
Mode : MMC High Speed (52MHz)
Rd Block Len: 512
MMC version 5.0
High Capacity: Yes
Capacity: 3.6 GiB
Bus Width: 4-bit
Erase Group Size: 512 KiB
HC WP Group Size: 8 MiB
User Capacity: 3.6 GiB WRREL
Boot Capacity: 16 MiB ENH
RPMB Capacity: 512 KiB ENH
** Invalid partition 1 **
ZynqMP>

I was able to find out which bootargs were wrong and now I have to type each time:

setenv sdbootdev 1
setenv bootargs ‘root=/dev/mmcblk1p2 rw earlyprintk rootfstype=ext4 rootwait devtmpfs.mount=1 uio_pdrv_genirq.of_id=“generic-uio” clk_ignore_unused’
boot Petalinux; run uenvboot ; mmcinfo && fatload mmc 1 ${netstart} ${kernel_img} && bootm

  1. I’m not sure how and where to adapt this in the make flow you guys are using, any advice on that?
1 Like

Hi @rock
that indeed fixes the issue, I had added a system-user.dtsi in my custom board directory, yet for some reason this was being overwritten.
Finally I had to adapt my bootargs, yet also the platform-top.h file for the u-boot parameters.
Thanks a lot!

Hi Wouter,

Sorry to revive an old topic but I also receive a message “** Invalid partition 1 **”.

How did you find out which bootargs were wrong?

Thanks.