Custom Image FPGA manager cannot load overlay

I had double check the base and the overlay are the same device:

dmesg
[ 0.524805] e0001000.serial: ttyPS0 at MMIO 0xe0001000 (irq = 24, base_baud = 6249999) is a xuartps
[ 0.874788] printk: console [ttyPS0] enabled
[ 1.060439] raid6: int32x8 gen() 102 MB/s
[ 1.230519] raid6: int32x8 xor() 75 MB/s
[ 1.400605] raid6: int32x4 gen() 98 MB/s
[ 1.570203] raid6: int32x4 xor() 79 MB/s
[ 1.740492] raid6: int32x2 gen() 129 MB/s
[ 1.910430] raid6: int32x2 xor() 119 MB/s
[ 2.080463] raid6: int32x1 gen() 114 MB/s
[ 2.250339] raid6: int32x1 xor() 116 MB/s
[ 2.253322] raid6: using algorithm int32x2 gen() 129 MB/s
[ 2.257419] raid6: … xor() 119 MB/s, rmw enabled
[ 2.261004] raid6: using intx1 recovery algorithm
[ 2.265304] vgaarb: loaded
[ 2.267299] SCSI subsystem initialized
[ 2.270036] usbcore: registered new interface driver usbfs
[ 2.274317] usbcore: registered new interface driver hub
[ 2.278434] usbcore: registered new device driver usb
[ 2.282427] mc: Linux media interface: v0.10
[ 2.285434] videodev: Linux video capture interface: v2.00
[ 2.289660] pps_core: LinuxPPS API ver. 1 registered
[ 2.293339] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti giometti@linux.it
[ 2.301222] PTP clock support registered
[ 2.303871] EDAC MC: Ver: 3.0.0
[ 2.306216] FPGA manager framework
[ 2.308595] Advanced Linux Sound Architecture Driver Initialized.
[ 2.314628] clocksource: Switched to clocksource arm_global_timer
[ 2.330000] thermal_sys: Registered thermal governor ‘step_wise’
[ 2.330397] NET: Registered protocol family 2
[ 2.338974] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[ 2.346143] TCP established hash table entries: 8192 (order: 3, 32768 bytes, linear)
[ 2.352698] TCP bind hash table entries: 8192 (order: 4, 65536 bytes, linear)
[ 2.358680] TCP: Hash tables configured (established 8192 bind 8192)
[ 2.363863] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[ 2.369221] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[ 2.375267] NET: Registered protocol family 1
[ 2.378958] RPC: Registered named UNIX socket transport module.
[ 2.383607] RPC: Registered udp transport module.
[ 2.387011] RPC: Registered tcp transport module.
[ 2.390411] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 2.396102] PCI: CLS 0 bytes, default 64
[ 2.399547] hw perfevents: no interrupt-affinity property for /pmu@f8891000, guessing.
[ 2.406426] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[ 2.414655] Initialise system trusted keyrings
[ 2.417970] workingset: timestamp_bits=14 max_order=18 bucket_order=4
[ 2.423841] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 2.428861] jffs2: version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
[ 2.478136] Key type asymmetric registered
[ 2.480968] Asymmetric key parser ‘x509’ registered
[ 2.484614] bounce: pool size: 64 pages
[ 2.487339] io scheduler mq-deadline registered
[ 2.490574] io scheduler kyber registered
[ 2.493787] zynq-pinctrl 700.pinctrl: zynq pinctrl initialized
[ 2.501146] dma-pl330 f8003000.dmac: Loaded driver for PL330 DMAC-241330
[ 2.506562] dma-pl330 f8003000.dmac: DBUFF-128x8bytes Num_Chans-8 Num_Peri-4 Num_Events-16
[ 2.525575] brd: module loaded
[ 2.537342] loop: module loaded
[ 2.540916] spi_master spi0: cannot find modalias for /amba/spi@e000d000/flash@0
[ 2.547030] spi_master spi0: Failed to create SPI device for /amba/spi@e000d000/flash@0
[ 2.554728] libphy: Fixed MDIO Bus: probed
[ 2.558539] tun: Universal TUN/TAP device driver, 1.6
[ 2.562557] CAN device driver interface
[ 2.566363] libphy: MACB_mii_bus: probed
[ 3.230642] Generic PHY e000b000.ethernet-ffffffff:03: attached PHY driver [Generic PHY] (mii_bus:phy_addr=e000b000.ethernet-ffffffff:03, irq=POLL)
[ 3.242609] macb e000b000.ethernet eth0: Cadence GEM rev 0x00020118 at 0xe000b000 irq 26 (b6:3c:3d:3c:c6:2d)
[ 3.251450] e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k
[ 3.255986] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[ 3.261349] ehci_hcd: USB 2.0 ‘Enhanced’ Host Controller (EHCI) Driver
[ 3.266579] ehci-pci: EHCI PCI platform driver
[ 3.269825] usbcore: registered new interface driver cdc_acm
[ 3.274207] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[ 3.280973] usbcore: registered new interface driver cdc_wdm
[ 3.285391] usbcore: registered new interface driver usb-storage
[ 3.290199] usbcore: registered new interface driver usbserial_generic
[ 3.295482] usbserial: USB Serial support registered for generic
[ 3.300234] usbcore: registered new interface driver usb_serial_simple
[ 3.305523] usbserial: USB Serial support registered for carelink
[ 3.310346] usbserial: USB Serial support registered for zio
[ 3.314753] usbserial: USB Serial support registered for funsoft
[ 3.319509] usbserial: USB Serial support registered for flashloader
[ 3.324615] usbserial: USB Serial support registered for google
[ 3.329267] usbserial: USB Serial support registered for libtransistor
[ 3.334545] usbserial: USB Serial support registered for vivopay
[ 3.339283] usbserial: USB Serial support registered for moto_modem
[ 3.344300] usbserial: USB Serial support registered for motorola_tetra
[ 3.349649] usbserial: USB Serial support registered for novatel_gps
[ 3.354801] usbserial: USB Serial support registered for hp4x
[ 3.359284] usbserial: USB Serial support registered for suunto
[ 3.363961] usbserial: USB Serial support registered for siemens_mpi
[ 3.370446] i2c /dev entries driver
[ 3.374492] cdns-wdt f8005000.watchdog: Xilinx Watchdog Timer with timeout 10s
[ 3.380975] device-mapper: ioctl: 4.41.0-ioctl (2019-09-16) initialised: dm-devel@redhat.com
[ 3.388242] EDAC MC: ECC not enabled
[ 3.390719] Xilinx Zynq CpuIdle Driver started
[ 3.394312] sdhci: Secure Digital Host Controller Interface driver
[ 3.399199] sdhci: Copyright(c) Pierre Ossman
[ 3.402276] sdhci-pltfm: SDHCI platform and OF driver helper
[ 3.440672] mmc0: SDHCI controller on e0100000.mmc [e0100000.mmc] using ADMA
[ 3.446868] ledtrig-cpu: registered to indicate activity on CPUs
[ 3.451923] clocksource: ttc_clocksource: mask: 0xffff max_cycles: 0xffff, max_idle_ns: 537538477 ns
[ 3.459910] timer #0 at (ptrval), irq=39
[ 3.462997] usbcore: registered new interface driver usbhid
[ 3.467334] usbhid: USB HID core driver
[ 3.470068] xlnk xlnk: Major 243
[ 3.472217] xlnk xlnk: xlnk driver loaded
[ 3.474990] xlnk xlnk: xlnk_pdev is not null
[ 3.480386] fpga_manager fpga0: Xilinx Zynq FPGA Manager registered
[ 3.487152] IPVS: Registered protocols (TCP, UDP)
[ 3.490632] IPVS: Connection hash table configured (size=4096, memory=32Kbytes)
[ 3.496913] IPVS: ipvs loaded.
[ 3.498692] IPVS: [rr] scheduler registered.
[ 3.501964] Initializing XFRM netlink socket
[ 3.505145] NET: Registered protocol family 10
[ 3.509641] Segment Routing with IPv6
[ 3.512167] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[ 3.517624] NET: Registered protocol family 17
[ 3.520806] can: controller area network core (rev 20170425 abi 9)
[ 3.525807] NET: Registered protocol family 29
[ 3.528978] can: raw protocol (rev 20170425)
[ 3.531963] can: broadcast manager protocol (rev 20170425 t)
[ 3.536406] can: netlink gateway (rev 20190810) max_hops=1
[ 3.541173] Registering SWP/SWPB emulation handler
[ 3.545038] Loading compiled-in X.509 certificates
[ 3.549535] Btrfs loaded, crc32c=crc32c-generic
[ 3.552935] mmc0: new high speed SDHC card at address 0007
[ 3.563109] of-fpga-region fpga-full: FPGA Region probed
[ 3.567463] hctosys: unable to open rtc device (rtc0)
[ 3.568027] mmcblk0: mmc0:0007 SD16G 14.5 GiB
[ 3.571222] of_cfs_init
[ 3.575680] of_cfs_init: OK
[ 3.577411] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 3.588039] cfg80211: Loaded X.509 cert ‘sforshee: 00b28ddf47aef9cea7’
[ 3.593416] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[ 3.594702] clk: Not disabling unused clocks
[ 3.600786] cfg80211: failed to load regulatory.db
[ 3.603836] ALSA device list:
[ 3.607265] mmcblk0: p1 p2
[ 3.608886] No soundcards found.
[ 3.756339] random: fast init done
[ 30.537035] EXT4-fs (mmcblk0p2): recovery complete
[ 30.637390] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 30.644260] VFS: Mounted root (ext4 filesystem) on device 179:2.
[ 30.651209] devtmpfs: mounted
[ 30.656048] Freeing unused kernel memory: 1024K
[ 30.659622] Run /sbin/init as init process
[ 33.091370] systemd[1]: System time before build time, advancing clock.
[ 33.132539] systemd[1]: Failed to find module ‘autofs4’
[ 33.175723] systemd[1]: systemd 245.4-4ubuntu3 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=hybrid)
[ 33.197469] systemd[1]: Detected architecture arm.
[ 33.295917] systemd[1]: Set hostname to .
[ 33.845775] systemd[1]: /lib/systemd/system/dbus.socket:5: ListenStream= references a path below legacy directory /var/run/, updating /var/run/dbus/system_bus_socket → /run/dbus/system_bus_socket; please update the unit file accordingly.
[ 34.451228] random: systemd: uninitialized urandom read (16 bytes read)
[ 34.461859] systemd[1]: Created slice system-getty.slice.
[ 34.504853] random: systemd: uninitialized urandom read (16 bytes read)
[ 34.512149] systemd[1]: Created slice system-modprobe.slice.
[ 34.544867] random: systemd: uninitialized urandom read (16 bytes read)
[ 34.552161] systemd[1]: Created slice system-serial\x2dgetty.slice.
[ 34.587007] systemd[1]: Created slice User and Session Slice.
[ 34.625328] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[ 34.665190] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[ 34.705090] systemd[1]: Condition check resulted in Arbitrary Executable File Formats File System Automount Point being skipped.
[ 34.715702] systemd[1]: Reached target Local Encrypted Volumes.
[ 34.755135] systemd[1]: Reached target Remote File Systems.
[ 34.794885] systemd[1]: Reached target Slices.
[ 34.825847] systemd[1]: Listening on Syslog Socket.
[ 34.855258] systemd[1]: Listening on initctl Compatibility Named Pipe.
[ 34.921970] systemd[1]: Condition check resulted in Journal Audit Socket being skipped.
[ 34.929692] systemd[1]: Listening on Journal Socket (/dev/log).
[ 34.975683] systemd[1]: Listening on Journal Socket.
[ 35.005641] systemd[1]: Listening on udev Control Socket.
[ 35.045531] systemd[1]: Listening on udev Kernel Socket.
[ 35.085644] systemd[1]: Condition check resulted in Huge Pages File System being skipped.
[ 35.099443] systemd[1]: Mounting POSIX Message Queue File System…
[ 35.142147] systemd[1]: Mounting Kernel Debug File System…
[ 35.175951] systemd[1]: Condition check resulted in Kernel Trace File System being skipped.
[ 35.193393] systemd[1]: Starting Journal Service…
[ 35.233642] systemd[1]: Starting Restore / save the current clock…
[ 35.275402] systemd[1]: Condition check resulted in Create list of static device nodes for the current kernel being skipped.
[ 35.286796] systemd[1]: Condition check resulted in Load Kernel Module drm being skipped.
[ 35.306182] systemd[1]: Started Nameserver information manager.
[ 35.365616] systemd[1]: Reached target Network (Pre).
[ 35.406210] systemd[1]: Condition check resulted in Set Up Additional Binary Formats being skipped.
[ 35.432858] systemd[1]: Starting Load Kernel Modules…
[ 35.471970] systemd[1]: Starting Remount Root and Kernel File Systems…
[ 35.533126] systemd[1]: Starting udev Coldplug all Devices…
[ 35.575769] systemd[1]: Mounted POSIX Message Queue File System.
[ 35.591027] systemd[1]: Mounted Kernel Debug File System.
[ 35.609181] systemd[1]: Finished Restore / save the current clock.
[ 35.633333] systemd[1]: Finished Load Kernel Modules.
[ 35.675847] systemd[1]: Started Journal Service.
[ 36.066497] systemd-journald[120]: Received client request to flush runtime journal.
[ 36.254803] Adding 524284k swap on /var/swap. Priority:-2 extents:1 across:524284k SS
[ 37.576272] systemd-journald[120]: File /var/log/journal/236dbcc4a6dba1caa1d5d5bc61955d45/system.journal corrupted or uncleanly shut down, renaming and replacing.
[ 41.400596] random: crng init done
[ 41.400609] random: 7 urandom warning(s) missed due to ratelimiting
[ 43.807769] zocl: loading out-of-tree module taints kernel.
[ 43.812638] [drm] Probing for xlnx,zocl
[ 43.812675] zocl-drm amba:zyxclmm_drm: IRQ index 0 not found
[ 43.864513] [drm] PR Isolation addr 0x0
[ 43.865574] [drm] Initialized zocl 2018.2.1 20180313 for amba:zyxclmm_drm on minor 0
[ 48.353905] systemd-journald[120]: Failed to read journal file /var/log/journal/236dbcc4a6dba1caa1d5d5bc61955d45/user-1000.journal for rotation, trying to move it out of the way: Device or resource busy
[ 54.164885] macb e000b000.ethernet eth0: link up (1000/Full)
[ 54.164927] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 59.502571] [drm] Pid 417 opened device
[ 59.502669] [drm] Pid 417 closed device
[ 59.503428] [drm] Pid 417 opened device
[ 59.509119] [drm] Pid 417 closed device
[ 83.077750] [drm] Pid 306 opened device
[ 83.077826] [drm] Pid 306 closed device
[ 83.078490] [drm] Pid 306 opened device
[ 83.082830] [drm] Pid 306 opened device
[ 83.082916] [drm] Pid 306 closed device
[ 83.083591] [drm] Pid 306 opened device
[ 83.083639] [drm] Pid 306 closed device
[ 83.083786] [drm] Pid 306 opened device
[ 181.926583] [drm] Pid 714 opened device
[ 181.926652] [drm] Pid 714 closed device
[ 181.927292] [drm] Pid 714 opened device
[ 181.931153] [drm] Pid 714 closed device
[ 184.899587] [drm] Pid 688 opened device
[ 184.899647] [drm] Pid 688 closed device
[ 184.900195] [drm] Pid 688 opened device
[ 184.902778] [drm] Pid 688 opened device
[ 184.902853] [drm] Pid 688 closed device
[ 184.907821] [drm] Pid 688 opened device
[ 184.907880] [drm] Pid 688 closed device
[ 184.908019] [drm] Pid 688 opened device
[ 214.702974] fpga_manager fpga0: writing adder.bin to Xilinx Zynq FPGA Manager
[ 217.236314] fpga_manager fpga0: Error after writing image data to FPGA
[ 217.242186] fpga_manager fpga0: writing adder.bin to Xilinx Zynq FPGA Manager
[ 219.749376] fpga_manager fpga0: Timeout waiting for PCFG_INIT
[ 219.753858] fpga_manager fpga0: Error preparing FPGA for writing

1 Like

This is very puzzle.
When enter sudo -i
xbutil list
Shows all good
python
and run manually also show all good bit load etc.
But when using Jupyter all things now longer work normally.

1 Like

Hi there,

Can we have a bit more details on what is not working in Jupyter? Is Jupyter loading okay, but you just can’t configure the bitstream? Are you getting any errors?

All the best,
Shane

Actually both situation do happen on 1 base revision that I compiled.
Which can be trace back to the example:

I have no idea why this could happen but what I observed are:
sudo -i can enter root
So the image have no right issues that I do encounter at before revisions.
Then Jupyter can access wo any issues but overlay load are fail no matter how

So the current situation is when I change the base design to a simple AXI-RGB only.
And generate the image again
several reboot shows it can load Jupyter note book and overlays can load wo any issues.
So the question here is why the above base design could introduce such Jupyter initial issue and why bit overlay cannot be load in such case.

1 Like

What problem do you have now?

Do you still see this error message?:

“Error after writing image data to FPGA”

If you are having problems with this you can check the bitstream is OK by connecting a USB cable and downloading the bitstream from Vivado.

Cathal

Cathal the previous post do show:
This is very puzzle.
When enter sudo -i
xbutil list
Shows all good
python
and run manually also show all good bit load etc.
But when using Jupyter all things now longer work normally.

So I lost interest on discovering why the example layout of dorfell (very simple 4 clock w reset and irq) will causing such abnormal image.
What this shows that either there are bugs during image compile.
But the final result of change the base design to simple AXI-IO shows no FPGA manger and Jupyter issue.

1 Like