This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM3352: Qt5 GUI apps not working on LCD

Part Number: AM3352

Tool/software:

We have a LCD panel hooked with our custom AM3352 board and we are able to display console output on it(tty1). But starting any Qt-example apps is throwing an error:

# export QT_QPA_PLATFORM=eglfs
# export QT_QPA_EGLFS_INTEGRATION=none
# ./analogclock
PVR:(Error): OpenServices: PVRDRMOpenRender failed [0, ]
PVR:(Error): PVRSRVConnect: Unable to open connection. [0, ]
PVR:(Error): Couldn't connect to services [0, ]
Could not initialize egl display
Aborted
# lsmod
Module                  Size  Used by    Tainted: G
pvrsrvkm              376832  0
ti_am335x_adc          16384  0
pwm_tiecap             16384  1
ti_am335x_tscadc       16384  1 ti_am335x_adc
omap_wdt               16384  0
# dmesg | grep pvr
[   12.284141] pvrsrvkm: loading out-of-tree module taints kernel.
# dmesg |grep lcd
[    0.555585] OF: graph: no port node found in /ocp/interconnect@48000000/segment@300000/target-module@e000/lcdc@0
[    0.555890] OF: graph: no port node found in /ocp/interconnect@48000000/segment@300000/target-module@e000/lcdc@0
[    0.566456] tilcdc 4830e000.lcdc: no encoders/connectors found
[    2.655006] OF: graph: no port node found in /ocp/interconnect@48000000/segment@300000/target-module@e000/lcdc@0
[    2.672889] OF: graph: no port node found in /ocp/interconnect@48000000/segment@300000/target-module@e000/lcdc@0
[    2.684808] [drm] Initialized tilcdc 1.0.0 20121205 for 4830e000.lcdc on minor 0
[    2.734084] tilcdc 4830e000.lcdc: [drm] fb0: tilcdcdrmfb frame buffer device
#

We are using a buildroot system with busybox qt5 rootfs.

  • Booting from nand ...
    
    NAND read: device 0 offset 0x80000, size 0x40000
     262144 bytes read: OK
    
    NAND read: device 0 offset 0x200000, size 0x800000
     8388608 bytes read: OK
    Kernel image @ 0x82000000 [ 0x000000 - 0x781200 ]
    ## Flattened Device Tree blob at 88000000
       Booting using the fdt blob at 0x88000000
    Working FDT set to 88000000
       Loading Device Tree to 8ffec000, end 8ffff7d9 ... OK
    Working FDT set to 8ffec000
    
    Starting kernel ...
    
    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Linux version 6.1.46 (build@b85b5454043e) (arm-buildroot-linux-gnueabihf-gcc.br_real (Buildroot -g8cf5b92-dirty) 11.3.0, GNU ld (GNU Binutils) 2.37) #1 PREEMPT Tue Aug 13 07:36:24 UTC 2024
    [    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
    [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    [    0.000000] OF: fdt: Machine model: TI AM335x Treb FP
    [    0.000000] Memory policy: Data cache writeback
    [    0.000000] efi: UEFI not found.
    [    0.000000] cma: Reserved 64 MiB at 0x9b800000
    [    0.000000] Zone ranges:
    [    0.000000]   Normal   [mem 0x0000000080000000-0x000000009fdfffff]
    [    0.000000]   HighMem  empty
    [    0.000000] Movable zone start for each node
    [    0.000000] Early memory node ranges
    [    0.000000]   node   0: [mem 0x0000000080000000-0x000000009fdfffff]
    [    0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x000000009fdfffff]
    [    0.000000] CPU: All CPU(s) started in SVC mode.
    [    0.000000] AM335X ES2.1 (neon)
    [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 129540
    [    0.000000] Kernel command line: console=ttyS0,115200n8 g_ether.dev_addr=12:34:56:78:9a:bc g_ether.host_addr=12:34:56:78:9a:bd root=ubi0:rootfs ro ubi.mtd=NAND.file-system,2048 rootfstype=ubifs rootwait
    [    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
    [    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
    [    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
    [    0.000000] Memory: 432580K/522240K available (12288K kernel code, 1483K rwdata, 3348K rodata, 1024K init, 285K bss, 24124K reserved, 65536K cma-reserved, 0K highmem)
    [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    [    0.000000] trace event string verifier disabled
    [    0.000000] rcu: Preemptible hierarchical RCU implementation.
    [    0.000000] rcu:     RCU event tracing is enabled.
    [    0.000000]  Trampoline variant of Tasks RCU enabled.
    [    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
    [    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
    [    0.000000] IRQ: Found an INTC at 0x(ptrval) (revision 5.0) with 128 interrupts
    [    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
    [    0.000000] TI gptimer clocksource: always-on /ocp/interconnect@44c00000/segment@200000/target-module@31000
    [    0.000002] sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 85899345900ns
    [    0.000023] clocksource: dmtimer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
    [    0.000428] TI gptimer clockevent: 25000000 Hz at /ocp/interconnect@48000000/segment@0/target-module@40000
    [    0.002088] Console: colour dummy device 80x30
    [    0.002152] Calibrating delay loop... 996.14 BogoMIPS (lpj=4980736)
    [    0.090520] CPU: Testing write buffer coherency: ok
    [    0.090592] CPU0: Spectre v2: using BPIALL workaround
    [    0.090599] pid_max: default: 32768 minimum: 301
    [    0.090778] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
    [    0.090795] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
    [    0.092386] cblist_init_generic: Setting adjustable number of callback queues.
    [    0.092403] cblist_init_generic: Setting shift to 0 and lim to 1.
    [    0.092564] Setting up static identity map for 0x80100000 - 0x80100060
    [    0.092723] rcu: Hierarchical SRCU implementation.
    [    0.092730] rcu:     Max phase no-delay instances is 1000.
    [    0.094265] EFI services will not be available.
    [    0.094836] devtmpfs: initialized
    [    0.107270] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [    0.107525] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [    0.107550] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
    [    0.112768] pinctrl core: initialized pinctrl subsystem
    [    0.113801] DMI not present or invalid.
    [    0.114465] NET: Registered PF_NETLINK/PF_ROUTE protocol family
    [    0.116749] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [    0.117900] thermal_sys: Registered thermal governor 'step_wise'
    [    0.118015] cpuidle: using governor menu
    [    0.131277] No ATAGs?
    [    0.131297] hw-breakpoint: debug architecture 0x4 unsupported.
    [    0.133152] Serial: AMBA PL011 UART driver
    [    0.162489] SCSI subsystem initialized
    [    0.163128] usbcore: registered new interface driver usbfs
    [    0.163179] usbcore: registered new interface driver hub
    [    0.163229] usbcore: registered new device driver usb
    [    0.163705] pps_core: LinuxPPS API ver. 1 registered
    [    0.163714] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.163743] PTP clock support registered
    [    0.163893] EDAC MC: Ver: 3.0.0
    [    0.166261] clocksource: Switched to clocksource dmtimer
    [    0.175968] NET: Registered PF_INET protocol family
    [    0.176362] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
    [    0.186843] tcp_listen_portaddr_hash hash table entries: 1024 (order: 0, 4096 bytes, linear)
    [    0.186884] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
    [    0.186900] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
    [    0.186940] TCP bind hash table entries: 4096 (order: 3, 32768 bytes, linear)
    [    0.186995] TCP: Hash tables configured (established 4096 bind 4096)
    [    0.187107] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
    [    0.187127] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
    [    0.187277] NET: Registered PF_UNIX/PF_LOCAL protocol family
    [    0.187796] RPC: Registered named UNIX socket transport module.
    [    0.187810] RPC: Registered udp transport module.
    [    0.187814] RPC: Registered tcp transport module.
    [    0.187818] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.187831] PCI: CLS 0 bytes, default 64
    [    0.188977] Initialise system trusted keyrings
    [    0.189418] workingset: timestamp_bits=30 max_order=17 bucket_order=0
    [    0.194708] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [    0.195899] NFS: Registering the id_resolver key type
    [    0.195977] Key type id_resolver registered
    [    0.195984] Key type id_legacy registered
    [    0.196099] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
    [    0.196110] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
    [    0.196152] ntfs: driver 2.1.32 [Flags: R/O].
    [    0.206808] Key type asymmetric registered
    [    0.206828] Asymmetric key parser 'x509' registered
    [    0.207002] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
    [    0.207013] io scheduler mq-deadline registered
    [    0.207021] io scheduler kyber registered
    [    0.294812] Serial: 8250/16550 driver, 5 ports, IRQ sharing enabled
    [    0.297420] STMicroelectronics ASC driver initialized
    [    0.320335] brd: module loaded
    [    0.331451] loop: module loaded
    [    0.346650] CAN device driver interface
    [    0.347029] e1000e: Intel(R) PRO/1000 Network Driver
    [    0.347036] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
    [    0.347119] igb: Intel(R) Gigabit Ethernet Network Driver
    [    0.347125] igb: Copyright (c) 2007-2014 Intel Corporation.
    [    0.347930] pegasus: Pegasus/Pegasus II USB Ethernet driver
    [    0.347985] usbcore: registered new interface driver pegasus
    [    0.348029] usbcore: registered new interface driver asix
    [    0.348071] usbcore: registered new interface driver ax88179_178a
    [    0.348105] usbcore: registered new interface driver cdc_ether
    [    0.348149] usbcore: registered new interface driver smsc75xx
    [    0.348192] usbcore: registered new interface driver smsc95xx
    [    0.348226] usbcore: registered new interface driver net1080
    [    0.348258] usbcore: registered new interface driver cdc_subset
    [    0.348303] usbcore: registered new interface driver zaurus
    [    0.348382] usbcore: registered new interface driver cdc_ncm
    [    0.349196] usbcore: registered new interface driver usb-storage
    [    0.349573] UDC core: g_ether: couldn't find an available UDC
    [    0.350305] i2c_dev: i2c /dev entries driver
    [    0.353128] cpuidle: enable-method property 'ti,am3352' found operations
    [    0.353874] sdhci: Secure Digital Host Controller Interface driver
    [    0.353887] sdhci: Copyright(c) Pierre Ossman
    [    0.354044] Synopsys Designware Multimedia Card Interface Driver
    [    0.354219] sdhci-pltfm: SDHCI platform and OF driver helper
    [    0.354683] ledtrig-cpu: registered to indicate activity on CPUs
    [    0.355106] usbcore: registered new interface driver usbhid
    [    0.355117] usbhid: USB HID core driver
    [    0.367624] NET: Registered PF_INET6 protocol family
    [    0.369099] Segment Routing with IPv6
    [    0.369159] In-situ OAM (IOAM) with IPv6
    [    0.369247] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
    [    0.369989] NET: Registered PF_PACKET protocol family
    [    0.370001] can: controller area network core
    [    0.370070] NET: Registered PF_CAN protocol family
    [    0.370079] can: raw protocol
    [    0.370088] can: broadcast manager protocol
    [    0.370101] can: netlink gateway - max_hops=1
    [    0.370544] Key type dns_resolver registered
    [    0.370709] ThumbEE CPU extension supported.
    [    0.370727] Registering SWP/SWPB emulation handler
    [    0.371144] omap_voltage_late_init: Voltage driver support not added
    [    0.372155] Loading compiled-in X.509 certificates
    [    0.441193] pinctrl-single 44e10800.pinmux: 142 pins, size 568
    [    0.445728] ti-sysc: probe of 44e31000.target-module failed with error -16
    [    0.466580] 48022000.serial: ttyS1 at MMIO 0x48022000 (irq = 18, base_baud = 3000000) is a 8250
    [    0.480428] omap_i2c 4802a000.i2c: bus 1 rev0.11 at 100 kHz
    [    0.483526] ti-sysc: probe of 48040000.target-module failed with error -16
    [    0.506055] gpio gpiochip0: (gpio-0-31): not an immutable chip, please consider fixing it!
    [    0.506654] OMAP GPIO hardware version 0.1
    [    0.529286] gpio gpiochip1: (gpio-32-63): not an immutable chip, please consider fixing it!
    [    0.538656] gpio gpiochip2: (gpio-64-95): not an immutable chip, please consider fixing it!
    [    0.559321] OF: graph: no port node found in /ocp/interconnect@48000000/segment@300000/target-module@e000/lcdc@0
    [    0.559638] OF: graph: no port node found in /ocp/interconnect@48000000/segment@300000/target-module@e000/lcdc@0
    [    0.560066] tilcdc 4830e000.lcdc: no encoders/connectors found
    [    0.579046] omap_rng 48310000.rng: Random Number Generator ver. 20
    [    0.586834] random: crng init done
    [    0.589538] debugfs: Directory '49000000.dma' with parent 'dmaengine' already present!
    [    0.589569] edma 49000000.dma: TI EDMA DMA engine driver
    [    0.598646] am335x-phy-driver 47401300.usb-phy: supply vcc not found, using dummy regulator
    [    0.598925] am335x-phy-driver 47401300.usb-phy: dummy supplies not allowed for exclusive requests
    [    0.619660] musb-dsps 47401400.usb: error -ENXIO: IRQ vbus not found
    [    0.621456] am335x-phy-driver 47401b00.usb-phy: supply vcc not found, using dummy regulator
    [    0.621701] am335x-phy-driver 47401b00.usb-phy: dummy supplies not allowed for exclusive requests
    [    0.645177] omap-gpmc 50000000.gpmc: GPMC revision 6.0
    [    0.645210] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000
    [    0.676309] omap_reset_deassert: timedout waiting for gfx:0
    [    0.676384] ti-sysc: probe of 5600fe00.target-module failed with error -110
    [    0.679092] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
    [    0.684244] l3-aon-clkctrl:0000:0: failed to disable
    [    0.688632] gpio gpiochip4: (gpio-96-127): not an immutable chip, please consider fixing it!
    [    0.697946] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 37, base_baud = 3000000) is a 8250
    [    2.625027] printk: console [ttyS0] enabled
    [    2.630812] edt_ft5x06 1-0038: supply vcc not found, using dummy regulator
    [    2.638372] OF: graph: no port node found in /ocp/interconnect@48000000/segment@300000/target-module@e000/lcdc@0
    [    2.649010] edt_ft5x06 1-0038: supply iovcc not found, using dummy regulator
    [    2.656529] OF: graph: no port node found in /ocp/interconnect@48000000/segment@300000/target-module@e000/lcdc@0
    [    2.668441] [drm] Initialized tilcdc 1.0.0 20121205 for 4830e000.lcdc on minor 0
    [    2.702196] Console: switching to colour frame buffer device 60x16
    [    2.717779] tilcdc 4830e000.lcdc: [drm] fb0: tilcdcdrmfb frame buffer device
    [    2.730437] using random self ethernet address
    [    2.734938] using random host ethernet address
    [    2.739482] using host ethernet address: 12:34:56:78:9a:bd
    [    2.739492] using self ethernet address: 12:34:56:78:9a:bc
    [    2.745842] usb0: HOST MAC 12:34:56:78:9a:bd
    [    2.755735] usb0: MAC 12:34:56:78:9a:bc
    [    2.759851] using random self ethernet address
    [    2.764322] using random host ethernet address
    [    2.768909] g_ether gadget.0: Ethernet Gadget, version: Memorial Day 2008
    [    2.775748] g_ether gadget.0: g_ether ready
    [    2.783933] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
    [    2.789445] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 1
    [    2.797795] hub 1-0:1.0: USB hub found
    [    2.801642] hub 1-0:1.0: 1 port detected
    [    2.827674] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xaa
    [    2.834121] nand: Micron MT29F2G08ABBGAH4
    [    2.838498] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 128
    [    2.846418] nand: using OMAP_ECC_BCH8_CODE_HW ECC scheme
    [    2.851975] 10 fixed-partitions partitions found on MTD device omap2-nand.0
    [    2.859036] Creating 10 MTD partitions on "omap2-nand.0":
    [    2.864494] 0x000000000000-0x000000020000 : "NAND.SPL"
    [    2.871408] 0x000000020000-0x000000040000 : "NAND.SPL.backup1"
    [    2.878742] 0x000000040000-0x000000060000 : "NAND.SPL.backup2"
    [    2.885960] 0x000000060000-0x000000080000 : "NAND.SPL.backup3"
    [    2.893429] 0x000000080000-0x0000000c0000 : "NAND.u-boot-spl-os"
    [    2.901011] 0x0000000c0000-0x0000001c0000 : "NAND.u-boot"
    [    2.908400] 0x0000001c0000-0x0000001e0000 : "NAND.u-boot-env"
    [    2.915522] 0x0000001e0000-0x000000200000 : "NAND.u-boot-env.backup1"
    [    2.923533] 0x000000200000-0x000000a00000 : "NAND.kernel"
    [    2.934870] 0x000000a00000-0x000010000000 : "NAND.file-system"
    [    3.026647] input: generic ft5x06 (79) as /devices/platform/ocp/48000000.interconnect/48000000.interconnect:segment@0/4802a000.target-module/4802a000.i2c/i2c-1/1-0038/input/input0
    [    3.102286] rotary-encoder rotary: gray
    [    3.107151] input: rotary as /devices/platform/rotary/input/input1
    [    3.117457] ubi0: attaching mtd9
    [    4.215723] ubi0: scanning is finished
    [    4.245313] ubi0: volume 0 ("rootfs") re-sized from 979 to 1924 LEBs
    [    4.252642] ubi0: attached mtd9 (name "NAND.file-system", size 246 MiB)
    [    4.259545] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
    [    4.266555] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 512
    [    4.273290] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
    [    4.280306] ubi0: good PEBs: 1968, bad PEBs: 0, corrupted PEBs: 0
    [    4.286466] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
    [    4.293729] ubi0: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 232265709
    [    4.302836] ubi0: available PEBs: 0, total reserved PEBs: 1968, PEBs reserved for bad PEB handling: 40
    [    4.312223] ubi0: background thread "ubi_bgt0d" started, PID 60
    [    4.319318] input: gpio_keys as /devices/platform/gpio_keys/input/input2
    [   10.999742] ubi0 warning: ubi_eba_read_leb: CRC error: calculated 0xc813baf9, must be 0x1e69397c
    [   11.010180] ubi0 warning: ubi_open_volume.part.0: volume 0 on UBI device 0 is corrupted
    [   11.021840] UBIFS warning (ubi0:0 pid 1): ubifs_mount: UBI volume is corrupted - read-only mode
    [   11.032535] UBIFS (ubi0:0): static UBI volume - read-only mode
    [   11.042805] UBIFS (ubi0:0): Mounting in unauthenticated mode
    [   11.156232] UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "rootfs", R/O mode
    [   11.164660] UBIFS (ubi0:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
    [   11.176293] UBIFS (ubi0:0): FS size: 242905088 bytes (231 MiB, 1913 LEBs), max 5600 LEBs, journal size 9023488 bytes (8 MiB, 72 LEBs)
    [   11.189800] UBIFS (ubi0:0): reserved for root: 0 bytes (0 KiB)
    [   11.197046] UBIFS (ubi0:0): media format: w4/r0 (latest is w5/r0), UUID 01C1B181-3627-4898-970C-097D4589FE31, small LPT model
    [   11.216440] VFS: Mounted root (ubifs filesystem) readonly on device 0:16.
    [   11.231722] devtmpfs: mounted
    [   11.236206] Freeing unused kernel image (initmem) memory: 1024K
    [   11.245807] Run /sbin/init as init process
    [   11.621084] UBIFS (ubi0:0): cannot re-mount R/W - UBI volume is R/O
    mount: mounting ubi0:rootfs on / failed: Read-only file system
    Starting syslogd: OK
    Starting klogd: OK
    Running sysctl: OK
    Populating /dev using udev: [   12.100474] udevd[90]: starting version 3.2.11
    [   12.184393] udevd[91]: starting eudev-3.2.11
    [   13.169202] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [   13.666133] pwm-backlight backlight: supply power not found, using dummy regulator
    [   13.816114] mtdblock: MTD device 'NAND.SPL' is NAND, please consider using UBI block devices instead.
    [   13.833211] mtdblock: MTD device 'NAND.SPL.backup1' is NAND, please consider using UBI block devices instead.
    [   13.849161] mtdblock: MTD device 'NAND.SPL.backup2' is NAND, please consider using UBI block devices instead.
    [   13.877903] mtdblock: MTD device 'NAND.SPL.backup3' is NAND, please consider using UBI block devices instead.
    [   13.890107] mtdblock: MTD device 'NAND.u-boot-spl-os' is NAND, please consider using UBI block devices instead.
    [   13.977896] mtdblock: MTD device 'NAND.u-boot' is NAND, please consider using UBI block devices instead.
    [   13.989022] mtdblock: MTD device 'NAND.u-boot-env' is NAND, please consider using UBI block devices instead.
    [   14.000815] mtdblock: MTD device 'NAND.u-boot-env.backup1' is NAND, please consider using UBI block devices instead.
    [   14.012716] mtdblock: MTD device 'NAND.kernel' is NAND, please consider using UBI block devices instead.
    [   14.024522] mtdblock: MTD device 'NAND.file-system' is NAND, please consider using UBI block devices instead.
    done
    Saving random seed: SKIP (read-only file system detected)
    Starting network: OK
    Loading pvrsrvkm module: [   15.367138] pvrsrvkm: loading out-of-tree module taints kernel.
    Starting PowerVR services: FAIL
    Starting FP app: OK
    
    Welcome to Buildroot
    ...
    # export QT_QPA_EGLFS_INTEGRATION=none
    #
    # export QT_LOGGING_RULES=*=true
    #
    # export QSG_INFO=1
    #
    # export QT_QPA_EGLFS_DEBUG=1
    #
    # export QT_DEBUG_PLUGINS=1
    # export QT_QPA_EGLFS_KMS_CONFIG=/etc/qt5/eglfs_kms_cfg.json
    # ./analogclock
    QFactoryLoader::QFactoryLoader() checking directory path "/usr/lib/qt/plugins/platforms" ...
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt/plugins/platforms/libqeglfs.so"
    Found metadata in lib /usr/lib/qt/plugins/platforms/libqeglfs.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "eglfs"
            ]
        },
        "archreq": 0,
        "className": "QEglFSIntegrationPlugin",
        "debug": false,
        "version": 331520
    }
    
    
    Got keys from plugin meta data ("eglfs")
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt/plugins/platforms/libqminimal.so"
    Found metadata in lib /usr/lib/qt/plugins/platforms/libqminimal.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "minimal"
            ]
        },
        "archreq": 0,
        "className": "QMinimalIntegrationPlugin",
        "debug": false,
        "version": 331520
    }
    
    
    Got keys from plugin meta data ("minimal")
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt/plugins/platforms/libqminimalegl.so"
    Found metadata in lib /usr/lib/qt/plugins/platforms/libqminimalegl.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "minimalegl"
            ]
        },
        "archreq": 0,
        "className": "QMinimalEglIntegrationPlugin",
        "debug": false,
        "version": 331520
    }
    
    
    Got keys from plugin meta data ("minimalegl")
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt/plugins/platforms/libqoffscreen.so"
    Found metadata in lib /usr/lib/qt/plugins/platforms/libqoffscreen.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "offscreen"
            ]
        },
        "archreq": 0,
        "className": "QOffscreenIntegrationPlugin",
        "debug": false,
        "version": 331520
    }
    
    
    Got keys from plugin meta data ("offscreen")
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt/plugins/platforms/libqvnc.so"
    Found metadata in lib /usr/lib/qt/plugins/platforms/libqvnc.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "vnc"
            ]
        },
        "archreq": 0,
        "className": "QVncIntegrationPlugin",
        "debug": false,
        "version": 331520
    }
    
    
    Got keys from plugin meta data ("vnc")
    QFactoryLoader::QFactoryLoader() checking directory path "/usr/lib/qt/examples/gui/analogclock/platforms" ...
    loaded library "/usr/lib/qt/plugins/platforms/libqeglfs.so"
    QFactoryLoader::QFactoryLoader() checking directory path "/usr/lib/qt/plugins/egldeviceintegrations" ...
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt/plugins/egldeviceintegrations/libqeglfs-emu-integration.so"
    Found metadata in lib /usr/lib/qt/plugins/egldeviceintegrations/libqeglfs-emu-integration.so, metadata=
    {
        "IID": "org.qt-project.qt.qpa.egl.QEglFSDeviceIntegrationFactoryInterface.5.5",
        "MetaData": {
            "Keys": [
                "eglfs_emu"
            ]
        },
        "archreq": 0,
        "className": "QEglFSEmulatorIntegrationPlugin",
        "debug": false,
        "version": 331520
    }
    
    
    Got keys from plugin meta data ("eglfs_emu")
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt/plugins/egldeviceintegrations/libqeglfs-kms-integration.so"
    Found metadata in lib /usr/lib/qt/plugins/egldeviceintegrations/libqeglfs-kms-integration.so, metadata=
    {
        "IID": "org.qt-project.qt.qpa.egl.QEglFSDeviceIntegrationFactoryInterface.5.5",
        "MetaData": {
            "Keys": [
                "eglfs_kms"
            ]
        },
        "archreq": 0,
        "className": "QEglFSKmsGbmIntegrationPlugin",
        "debug": false,
        "version": 331520
    }
    
    
    Got keys from plugin meta data ("eglfs_kms")
    QFactoryLoader::QFactoryLoader() checking directory path "/usr/lib/qt/examples/gui/analogclock/egldeviceintegrations" ...
    qt.qpa.egldeviceintegration: EGL device integration plugin keys: ("eglfs_emu", "eglfs_kms")
    qt.qpa.egldeviceintegration: Using base device integration
    PVR:(Error): OpenServices: PVRDRMOpenRender failed [0, ]
    PVR:(Error): PVRSRVConnect: Unable to open connection. [0, ]
    PVR:(Error): Couldn't connect to services [0, ]
    Could not initialize egl display
    Aborted
    

    PFA the full logs

  • Hi,

    Are you able to run gles2test1? Just checking if it's GPU loading issue or Qt issue.

    Regards,
    Krunal

  • Hi Krunal,

    # gles2test1
    --------------------- started ---------------------
    PVR:(Error): OpenServices: PVRDRMOpenRender failed [0, ]
    PVR:(Error): PVRSRVConnect: Unable to open connection. [0, ]
    PVR:(Error): Couldn't connect to services [0, ]
    'eglInitialize' returned egl error 'EGL_BAD_ALLOC' (0x3003)
    # eglinfo
    PVR:(Error): OpenServices: PVRDRMOpenRender failed [0, ]
    PVR:(Error): PVRSRVConnect: Unable to open connection. [0, ]
    PVR:(Error): Couldn't connect to services [0, ]
    Unable to initialise egl
        egl error 'EGL_BAD_ALLOC' (0x3003)
    


    And just FYI the same rootfs is working on BeagleBoneBlack with Loading pvrsrvkm module um-km synced...

  • Hi,

    Unfortunately, we are not familiar with buildroot setup and it seems like Linux/Yocto setup works but not the buildroot.

    Regards,
    Krunal

  • Hi Krunal Bhargav, 
    It is just a build system and in its backend we are still using TI's source code like:
    for kernel we are using this:
    https://git.ti.com/cgit/ti-linux-kernel/ti-linux-kernel/snapshot/ti-linux-kernel-6.1.46.tar.gz
    for uboot we are using this:
    https://git.ti.com/cgit/ti-u-boot/ti-u-boot/snapshot/ti-u-boot-2023.04.tar.gz
    and the sgx-km:
    TI_SGX_KM_VERSION = ti-img-sgx/1.17.4948957/k6.1
    TI_SGX_KM_SITE = http://git.ti.com/git/graphics/omap5-sgx-ddk-linux.git
    TI will atleast support these right?

    looks to me like we are missing something to get the EGL_BAD_ALLOC error, can you please help with supported versions of sgx km and um for kernel version 6.1.46.

    THE SAME BUILDROOT IMAGE IS WORKING ON BEAGELBONEBLACK, but is failing with this PVR Error on our board.