apt-get update
apt-get updatecd /opt/scripts/tools/git pull./update_kernel.sh --bone-kernel --lts-4_14rebootapt-get install ti-sgx-es8-modules-`uname -r`{ Generate GFX_5.01.01.02_es8.x.tar.gz on my debian server }tar xfv GFX_5.01.01.02_es8.x.tar.gz -C /cd gfxinstall/apt-get install lsb-release insserv -y./sgx-install.shinsserv -r /etc/init.d/sgx-startup.shreboottree /lib/modules/`uname -r`/extra/ /lib/modules/4.14.93-bone17/extra ├── es8.x │ ├── bufferclass_ti.ko │ ├── omaplfb.ko │ └── pvrsrvkm.ko └── libpruio.komodprobe pvrsrvkm => New message on dmesg: pvrsrvkm: loading out-of-tree module taints kernel./usr/local/bin/pvrsrvctl --start --no-module SrvInit failed (already initialized?) (err=34)
sgx_init_test ----------------------- Start ----------------------- Try calling PVRSRVConnect with an invalid argument: OK Call PVRSRVConnect with a valid argument: FAIL - PVRSRV_ERROR_BRIDGE_CALL_FAILED
ls /sys/devices/platform/ocp/56000000.sgx/ driver driver_override modalias of_node power subsystem uevent
#uname -r4.9.78-ti-r94#apt update
#cd /opt/scripts/tools/#git pull#./update_kernel.sh --ti-channel --lts-4_14 --sgx...The following NEW packages will be installed: linux-image-4.14.108-ti-r101...The following NEW packages will be installed: libpruio-modules-4.14.108-ti-r101...The following NEW packages will be installed: ti-sgx-ti335x-modules-4.14.108-ti-r101...The following NEW packages will be installed: ti-libgbm2 ti-sgx-ti33x-ddk-um...#reboot
#uname -r
4.14.108-ti-r101
root@beaglebone ~ #ls /sys/devices/platform/ocp/56000000.sgxls: cannot access '/sys/devices/platform/ocp/56000000.sgx': No such file or directory
root@beaglebone ~ # /etc/init.d/ti-sgx-ti33x-ddk-um start[ ok ] Starting ti-sgx-ti33x-ddk-um (via systemctl): ti-sgx-ti33x-ddk-um.service.root@beaglebone ~ # dmesg |grep -i pvr[ 317.740779] pvrsrvkm: loading out-of-tree module taints kernel.root@beaglebone ~ # service ti-sgx-ti33x-ddk-um status● ti-sgx-ti33x-ddk-um.service - LSB: Start daemon at boot time Loaded: loaded (/etc/init.d/ti-sgx-ti33x-ddk-um; generated; vendor preset: enabled) Active: active (exited) since Thu 2019-03-28 14:27:45 CET; 9min ago Docs: man:systemd-sysv-generator(8) Process: 314 ExecStart=/etc/init.d/ti-sgx-ti33x-ddk-um start (code=exited, status=0/SUCCESS) Tasks: 0 (limit: 4915) CGroup: /system.slice/ti-sgx-ti33x-ddk-um.service
Mar 28 14:27:42 beaglebone systemd[1]: Starting LSB: Start daemon at boot time...Mar 28 14:27:45 beaglebone systemd[1]: Started LSB: Start daemon at boot time.
ls /sys/devices/platform/ocp/56000000.sgxdriver driver_override drm modalias of_node power subsystem uevent
dmesg |grep -i pvr[ 12.544964] pvrsrvkm: loading out-of-tree module taints kernel.[ 12.754997] [drm] Initialized pvr 1.14.3699939 20110701 for 56000000.sgx on minor 2[ 12.939720] PVR_K: UM DDK-(3699939) and KM DDK-(3699939) match. [ OK ]
root@beaglebone /opt # wget https://remi.avignon.me/bbb/kmsxx_1.0.0_armhf.deb
root@beaglebone /opt # dpkg -i kmsxx_1.0.0_armhf.deb
root@beaglebone /opt # kmscubedrmModeGetResources failed: Invalid argumentfailed to initialize DRM
root@beaglebone /opt # ls -alh /sys/class/drm/total 0drwxr-xr-x 2 root root 0 Mar 28 15:01 .drwxr-xr-x 63 root root 0 Mar 28 14:52 ..lrwxrwxrwx 1 root root 0 Mar 28 14:52 card0 -> ../../devices/platform/vgem/drm/card0lrwxrwxrwx 1 root root 0 Mar 28 14:52 card1 -> ../../devices/platform/ocp/4830e000.lcdc/drm/card1lrwxrwxrwx 1 root root 0 Mar 28 14:52 card1-HDMI-A-1 -> ../../devices/platform/ocp/4830e000.lcdc/drm/card1/card1-HDMI-A-1lrwxrwxrwx 1 root root 0 Mar 28 14:53 card2 -> ../../devices/platform/ocp/56000000.sgx/drm/card2lrwxrwxrwx 1 root root 0 Mar 28 14:53 renderD128 -> ../../devices/platform/ocp/56000000.sgx/drm/renderD128-r--r--r-- 1 root root 4.0K Mar 28 14:52 version
root@beaglebone /opt # kmscube -d /dev/dri/card1### Display [0]: CRTC = 28, Connector = 30, format = 0x36314752 Mode chosen [1024x768] : Clock => 78750, Vertical refresh => 75, Type => 64 Horizontal => 1024, 1040, 1136, 1312, 0 Vertical => 768, 769, 772, 800, 0### Primary display => ConnectorId = 30, Resolution = 1024x768loaded module : gbm_pvr.sofound valid GBM backend : gbm_pvr.sofailed to initializefailed to initialize EGL
root@beaglebone /opt # apt remove libgbm-dev libgbm1Reading package lists... DoneBuilding dependency treeReading state information... DonePackage 'libgbm-dev' is not installed, so not removedThe following packages were automatically installed and are no longer required: gconf-service gconf2 gconf2-common gksu keyboard-configuration libdbus-glib-1-2 libdrm-armada2 libetnaviv libevde libgksu2-0 libgles2 libgles2-mesa libgnome-keyring-common libgnome-keyring0 libgtop-2.0-10 libgtop2-common libinp libstartup-notification0 libutf8proc2 libwacom-bin libwacom-common libwacom2 libxcb-icccm4 libxcb-image0 libxcb-k libxkbcommon-x11-0 lxmenu-data oxygen-icon-theme pcmanfm-qt-l10n qterminal-l10n qtermwidget5-data xserver-xorg-leUse 'apt autoremove' to remove them.The following additional packages will be installed: libwayland-egl1 xserver-commonThe following packages will be REMOVED: libegl-mesa0 libegl1 libegl1-mesa libfm-qt3 libgbm1 libqt5gui5 libqt5multimedia5 libqt5multimediawidgets5 libqt5o pcmanfm-qt qt5-gtk-platformtheme qterminal xserver-xorg xserver-xorg-core xserver-xorg-input-all xserver-xorg-inp xserver-xorg-video-armada-etnaviv xserver-xorg-video-fbdev xserver-xorg-video-omapThe following NEW packages will be installed: libwayland-egl1The following packages will be upgraded: xserver-common1 upgraded, 1 newly installed, 28 to remove and 188 not upgraded.Need to get 2,067 kB of archives.After this operation, 21.2 MB disk space will be freed.Do you want to continue? [Y/n] y
root@beaglebone /opt # kmscube -d /dev/dri/card1
### Display [0]: CRTC = 28, Connector = 30, format = 0x36314752 Mode chosen [1024x768] : Clock => 78750, Vertical refresh => 75, Type => 64 Horizontal => 1024, 1040, 1136, 1312, 0 Vertical => 768, 769, 772, 800, 0### Primary display => ConnectorId = 30, Resolution = 1024x768loaded module : gbm_pvr.sofound valid GBM backend : gbm_pvr.soUsing display 0x1 with EGL version 1.4EGL Version "1.4 build 1.14@3699939 (MAIN)"EGL Vendor "Imagination Technologies"EGL Extensions "EGL_IMG_client_api_ogl EGL_KHR_image EGL_KHR_image_base EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_KHR_vg_parent_image EGL_IMG_cl_image EGL_KHR_fence_sync EGL_IMG_context_priority EGL_IMG_hibernate_process EGL_IMG_image_plane_attribs EGL_KHR_surfaceless_context EGL_KHR_wait_sync EGL_KHR_create_context EGL_WL_bind_wayland_display EGL_EXT_image_dma_buf_import"
root@beaglebone /opt/kmscube # apt autoremoveReading package lists... DoneBuilding dependency treeReading state information... DoneThe following packages will be REMOVED: gconf-service gconf2 gconf2-common gksu keyboard-configuration libdbus-glib-1-2 libdrm-armada2 libetnaviv libevdev2 libfm-data libfm-extra4 libfm-gtk-data libfm-gtk4 libfm-modules libfm-qt-l10n libfm4 libgbm1 libgconf-2-4 libgksu2-0 libgles2 libgles2-mesa libgnome-keyring-common libgnome-keyring0 libgtop-2.0-10 libgtop2-common libinput-bin libinput10 libmenu-cache-bin libmenu-cache3 libmtdev1 libpciaccess0 libqt5dbus5 libqt5network5 libstartup-notification0 libutf8proc2 libwacom-bin libwacom-common libwacom2 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-util0 libxcb-xinerama0 libxcb-xkb1 libxfont2 libxkbcommon-x11-0 lxmenu-data oxygen-icon-theme pcmanfm-qt-l10n qterminal-l10n qtermwidget5-data xserver-xorg-legacy0 upgraded, 0 newly installed, 54 to remove and 182 not upgraded.After this operation, 61.0 MB disk space will be freed.Do you want to continue? [Y/n] y
...
root@beaglebone ~ # kmscube -d /dev/dri/card1kmscube: error while loading shared libraries: libgbm.so.1: cannot open shared object file: No such file or directory
root@beaglebone ~ # ln -s /usr/lib/libgbm.so.2.0.0 /usr/lib/libgbm.so.1
root@beaglebone ~ # kmscube -d /dev/dri/card1### Display [0]: CRTC = 28, Connector = 30, format = 0x36314752 Mode chosen [1024x768] : Clock => 78750, Vertical refresh => 75, Type => 64 Horizontal => 1024, 1040, 1136, 1312, 0 Vertical => 768, 769, 772, 800, 0### Primary display => ConnectorId = 30, Resolution = 1024x768loaded module : gbm_pvr.sofound valid GBM backend : gbm_pvr.soUsing display 0x1 with EGL version 1.4EGL Version "1.4 build 1.14@3699939 (MAIN)"EGL Vendor "Imagination Technologies"EGL Extensions "EGL_IMG_client_api_ogl EGL_KHR_image EGL_KHR_image_base EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_KHR_vg_parent_image EGL_IMG_cl_image EGL_KHR_fence_sync EGL_IMG_context_priority EGL_IMG_hibernate_process EGL_IMG_image_plane_attribs EGL_KHR_surfaceless_context EGL_KHR_wait_sync EGL_KHR_create_context EGL_WL_bind_wayland_display EGL_EXT_image_dma_buf_import"^CHandling signal number = 2Cleanup of GL, GBM and DRM completed
#apt install libqt5qml5 qml-module-qtquick-controls qt5-default qtdeclarative5-dev qtquickcontrols5-examples
...
cd /usr/lib/arm-linux-gnueabihf/qt5/examples/quickcontrols/extras/dashboard
qmake
make
export QT_QPA_PLATFORM=eglfs
export QT_QPA_EGLFS_INTEGRATION=none
./dashboard
$sudo dtc -O dtb -o /lib/firmware/CAPE-LVDS-1024-00A0.dtbo -b 0 -@ CAPE-LVDS-1024-00A0.dts$sudo echo 'CAPE=CAPE-LVDS-1024' > /etc/default/capemgr$sudo reboot
U-Boot SPL 2018.01-00002-g9aa111a004 (Jan 20 2018 - 12:45:29)
Trying to boot from MMC2
U-Boot 2018.01-00002-g9aa111a004 (Jan 20 2018 - 12:45:29 -0600), Build: jenkins-github_Bootloader-Builder-32
CPU : AM335X-GP rev 2.1I2C: readyDRAM: 512 MiBNo match for driver 'omap_hsmmc'No match for driver 'omap_hsmmc'Some drivers were not foundReset Source: Power-on reset has occurred.MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1Using default environment
Board: BeagleBone Black<ethaddr> not set. Validating first E-fuse MACBeagleBone Black:BeagleBone: cape eeprom: i2c_probe: 0x54:BeagleBone: cape eeprom: i2c_probe: 0x55:BeagleBone: cape eeprom: i2c_probe: 0x56:BeagleBone: cape eeprom: i2c_probe: 0x57:Net: eth0: MII MODEcpsw, usb_etherPress SPACE to abort autoboot in 2 secondsboard_name=[A335BNLT] ...board_rev=[00C0] ...Card did not respond to voltage select!mmc_init: -95, time 13Card did not respond to voltage select!mmc_init: -95, time 13Card did not respond to voltage select!mmc_init: -95, time 12gpio: pin 56 (gpio 56) value is 0gpio: pin 55 (gpio 55) value is 0gpio: pin 54 (gpio 54) value is 0gpio: pin 53 (gpio 53) value is 1Card did not respond to voltage select!mmc_init: -95, time 12Card did not respond to voltage select!mmc_init: -95, time 12switch to partitions #0, OKmmc1(part 0) is current deviceScanning mmc 1:1...gpio: pin 56 (gpio 56) value is 0gpio: pin 55 (gpio 55) value is 0gpio: pin 54 (gpio 54) value is 0gpio: pin 53 (gpio 53) value is 1switch to partitions #0, OKmmc1(part 0) is current devicegpio: pin 54 (gpio 54) value is 1Checking for: /uEnv.txt ...Checking for: /boot.scr ...Checking for: /boot/boot.scr ...Checking for: /boot/uEnv.txt ...gpio: pin 55 (gpio 55) value is 12269 bytes read in 15 ms (147.5 KiB/s)Loaded environment from /boot/uEnv.txtdebug: [dtb=am335x-boneblack-audio.dtb] ...Using: dtb=am335x-boneblack-audio.dtb ...Checking if uname_r is set in /boot/uEnv.txt...gpio: pin 56 (gpio 56) value is 1Running uname_boot ...loading /boot/vmlinuz-4.14.108-ti-r101 ...9916928 bytes read in 645 ms (14.7 MiB/s)uboot_overlays: dtb=am335x-boneblack-audio.dtb in /boot/uEnv.txt, unable to use [uboot_base_dtb=am335x-boneblack-uboot.dtb] ...loading /boot/dtbs/4.14.108-ti-r101/am335x-boneblack-audio.dtb ...58369 bytes read in 32 ms (1.7 MiB/s)uboot_overlays: [fdt_buffer=0x60000] ...uboot_overlays: loading /lib/firmware/BB-BONE-eMMC1-01-00A0.dtbo ...1440 bytes read in 137 ms (9.8 KiB/s)uboot_overlays: uboot loading of [/lib/firmware/BB-HDMI-TDA998x-00A0.dtbo] disabled by /boot/uEnv.txt [disable_uboot_overlay_video=1]...uboot_overlays: uboot loading of [/lib/firmware/BB-ADC-00A0.dtbo] disabled by /boot/uEnv.txt [disable_uboot_overlay_adc=1]...uboot_overlays: add [enable_uboot_cape_universal=1] to /boot/uEnv.txt to enable...loading /boot/initrd.img-4.14.108-ti-r101 ...4564404 bytes read in 313 ms (13.9 MiB/s)debug: [console=ttyO0,115200n8 consoleblank=0 root=/dev/mmcblk1p1 ro rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 quiet] ...debug: [bootz 0x82000000 0x88080000:45a5b4 88000000] ...## Flattened Device Tree blob at 88000000 Booting using the fdt blob at 0x88000000 Loading Ramdisk to 8fba5000, end 8ffff5b4 ... OK reserving fdt memory region: addr=88000000 size=6f000 Loading Device Tree to 8fb33000, end 8fba4fff ... OK
Starting kernel ...
[ 0.000799] timer_probe: no matching timers found[ 0.892356] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle[ 1.132417] omap_voltage_late_init: Voltage driver support not added[ 1.139288] PM: Cannot get wkup_m3_ipc handlerootfs: recovering journalrootfs: clean, 76105/233392 files, 603170/932864 blocks[ 11.609499] Unable to handle kernel NULL pointer dereference at virtual address 0000000c[ 11.682248] pgd = dc5dc000[ 11.704331] [0000000c] *pgd=00000000[ 11.735064] Internal error: Oops: 5 [#1] PREEMPT SMP ARM[ 11.740433] Modules linked in: nf_defrag_ipv4 nf_nat_ipv4(+) nf_nat nf_conntrack iptable_mangle iptable_filter spidev pru_rproc pruss pruss_intc ip_tables x_tables[ 11.755165] CPU: 0 PID: 328 Comm: capemgr.sh Not tainted 4.14.108-ti-r101 #1[ 11.762244] Hardware name: Generic AM33XX (Flattened Device Tree)[ 11.768365] task: db57ad00 task.stack: dc3f4000[ 11.772935] PC is at __of_overlay_create+0x43c/0xb24[ 11.777923] LR is at __of_overlay_create+0x448/0xb24[ 11.782907] pc : [<c0ad53f8>] lr : [<c0ad5404>] psr: 20070113[ 11.789201] sp : dc3f5d58 ip : db45de30 fp : dc3f5dec[ 11.794446] r10: 00000000 r9 : c111e714 r8 : db415580[ 11.799693] r7 : 00000009 r6 : 00000009 r5 : db48c18d r4 : db45de20[ 11.806248] r3 : c0ad4630 r2 : 00000000 r1 : 0000002f r0 : 00000000[ 11.812805] Flags: nzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment none[ 11.819970] Control: 10c5387d Table: 9c5dc019 DAC: 00000051[ 11.825741] Process capemgr.sh (pid: 328, stack limit = 0xdc3f4218)[ 11.832034] Stack: (0xdc3f5d58 to 0xdc3f6000)[ 11.836412] 5d40: 00000000 014000c0[ 11.844630] 5d60: 00000000 c0cf1050 dc3f5d94 dc3f5d78 c016d838 db4155a0 db415584 c15c8fb0[ 11.852846] 5d80: c1504dc8 dc3f5d90 db415598 c0cfdea8 dc3f5dac 00000000 c0cfdea8 db488000[ 11.861063] 5da0: c11a619c dc3f5db0 00000028 c0ad4630 db45c010 e028fcc0 000000e0 b0742391[ 11.869280] 5dc0: c1504dc8 db45c010 00000028 db78fe18 00000000 c1504dc8 db78fe18 c114cd00[ 11.877497] 5de0: dc3f5dfc dc3f5df0 c0ad5b00 c0ad4fc8 dc3f5e74 dc3f5e00 c08a2b48 c0ad5aec[ 11.885714] 5e00: 00000039 dc3f5e10 c0385a98 c08a383c 00000000 c1504dc8 db78fe20 0000003a[ 11.893932] 5e20: dc229c10 0000003a db78fe10 db488000 db45c25b dc229c10 dc229c10 e028f22d[ 11.902150] 5e40: c0871578 b0742391 dc3f5e70 dacd8c40 c1504dc8 db78fe10 dacd82c0 dc229c10[ 11.910367] 5e60: 00000000 db45c010 dc3f5eb4 dc3f5e78 c08a3cbc c08a26d4 00000000 dc3f5fb0[ 11.918583] 5e80: 0000081f b0742391 023da5cc c08a3b6c daccc100 00000000 00000000 dc3f5f68[ 11.926802] 5ea0: dacd82c0 daccc110 dc3f5ecc dc3f5eb8 c086f960 c08a3b78 c086f938 daccc100[ 11.935019] 5ec0: dc3f5ee4 dc3f5ed0 c0384698 c086f944 0000000e daccc100 dc3f5f1c dc3f5ee8[ 11.943236] 5ee0: c0383ce4 c0384654 00000000 00000000 db7a6d88 c0383bec daccdcc0 023d85c8[ 11.951453] 5f00: dc3f5f68 00000000 023d85c8 0000000e dc3f5f34 dc3f5f20 c02fa114 c0383bf8[ 11.959670] 5f20: 0000000e daccdcc0 dc3f5f64 dc3f5f38 c02fa318 c02fa0f8 daccdcc0 c031cbbc[ 11.967888] 5f40: c1504dc8 daccdcc0 00000000 00000000 daccdcc0 023d85c8 dc3f5fa4 dc3f5f68[ 11.976104] 5f60: c02fa590 c02fa270 00000000 00000000 c031ca7c b0742391 023d624c 023d85c8[ 11.984321] 5f80: 0000000e 00000001 00000004 c0108f44 dc3f4000 00000004 00000000 dc3f5fa8[ 11.992538] 5fa0: c0108d40 c02fa540 023d85c8 0000000e 00000001 023d85c8 0000000e 00000001[ 12.000755] 5fc0: 023d85c8 0000000e 00000001 00000004 0000000e bec63740 023d8205 023d6234[ 12.008972] 5fe0: 00000000 bec63514 0049f43f b6ebaaf6 20000030 00000001 00000000 00000000[ 12.017205] [<c0ad53f8>] (__of_overlay_create) from [<c0ad5b00>] (of_overlay_create+0x20/0x24)[ 12.025873] [<c0ad5b00>] (of_overlay_create) from [<c08a2b48>] (capemgr_load_slot+0x480/0x5d0)[ 12.034530] [<c08a2b48>] (capemgr_load_slot) from [<c08a3cbc>] (slots_store+0x150/0x328)[ 12.042669] [<c08a3cbc>] (slots_store) from [<c086f960>] (dev_attr_store+0x28/0x34)[ 12.050373] [<c086f960>] (dev_attr_store) from [<c0384698>] (sysfs_kf_write+0x50/0x54)[ 12.058332] [<c0384698>] (sysfs_kf_write) from [<c0383ce4>] (kernfs_fop_write+0xf8/0x1d4)[ 12.066558] [<c0383ce4>] (kernfs_fop_write) from [<c02fa114>] (__vfs_write+0x28/0x48)[ 12.074429] [<c02fa114>] (__vfs_write) from [<c02fa318>] (vfs_write+0xb4/0x1c0)[ 12.081775] [<c02fa318>] (vfs_write) from [<c02fa590>] (SyS_write+0x5c/0xbc)[ 12.088869] [<c02fa590>] (SyS_write) from [<c0108d40>] (ret_fast_syscall+0x0/0x54)[ 12.096481] Code: e584902c e5843034 e584403c e584a028 (e590500c)[ 13.215003] using random self ethernet address[ 13.227732] using random host ethernet address[ 13.409476] using random self ethernet address[ 13.419818] using random host ethernet address[ 13.793883] Mass Storage Function, version: 2009/09/11[ 13.807368] LUN: removable file: (no medium)[ 14.166946] usb0: HOST MAC b0:d5:cc:f7:3b:8d[ 14.207023] usb0: MAC b0:d5:cc:f7:3b:8e[ 14.234180] usb1: HOST MAC b0:d5:cc:f7:3b:90[ 14.261026] usb1: MAC b0:d5:cc:f7:3b:91[ 14.435021] ---[ end trace 0dc2ea06b937bcc3 ]---[FAILED] Failed to start LSB: Start daemon at boot time.See 'systemctl status capemgr.service' for details.[ 14.567681] configfs-gadget gadget: high-speed config #1: c Stopping LSB: Start busybox udhcpd at boot time...[ OK ] Stopped LSB: Start busybox udhcpd at boot time.[ OK ] Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch.[ OK ] Found device /dev/ttyGS0.[ 19.779171] random: crng init done[ 19.782690] random: 7 urandom warning(s) missed due to ratelimiting[ TIME ] Timed out waiting for device dev-ttyS0.device.[DEPEND] Dependency failed for Serial Getty on ttyS0.[** ] (2 of 2) A start job is running for…Board Startup (2min 2s / no limit)[ 127.821749] net eth0: initializing cpsw version 1.12 (0)[ 127.904898] SMSC LAN8710/LAN8720 4a101000.mdio:00: attached PHY driver [SMSC LAN8710/LAN8720] (mii_bus:phy_addr=4a101000.mdio:00, irq=POLL)[ ***] (2 of 2) A start job is running for…Board Startup (2min 4s / no limit)[ 129.952976] cpsw 4a100000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx[ OK ] Started Raise network interfaces.[ OK ] Reached target Network. Starting The PHP 7.0 FastCGI Process Manager... Starting A high performance web server and a reverse proxy server... Starting Permit User Sessions... Starting dnsmasq - A lightweight DHCP and caching DNS server... Starting OpenBSD Secure Shell server...[ OK ] Reached target Network is Online. Starting LSB: Advanced IEEE 802.11 management daemon... Starting LSB: Shell In A Box Daemon... Starting LSB: starts custom boot from CKSquare...[ OK ] Started Permit User Sessions.[ OK ] Started LSB: Advanced IEEE 802.11 management daemon.[ OK ] Started LSB: starts custom boot from CKSquare.[ OK ] Started OpenBSD Secure Shell server.[ OK ] Started Getty on tty1.[ OK ] Started Serial Getty on ttyGS0.[ OK ] Reached target Login Prompts.[ OK ] Started dnsmasq - A lightweight DHCP and caching DNS server.[ OK ] Reached target Host and Network Name Lookups.[ OK ] Started LSB: Shell In A Box Daemon.[ OK ] Started Generic Board Startup. Starting BB WL18xx Bluetooth Service...[ OK ] Started A high performance web server and a reverse proxy server.[ OK ] Started BB WL18xx Bluetooth Service.[ OK ] Started The PHP 7.0 FastCGI Process Manager.[ OK ] Reached target Multi-User System.[ OK ] Reached target Graphical Interface. Starting Update UTMP about System Runlevel Changes...[ OK ] Started Update UTMP about System Runlevel Changes.[ 277.139344] systemd[1]: systemd-journald.service: State 'stop-sigabrt' timed out. Terminating.[ 367.392239] systemd[1]: systemd-journald.service: State 'stop-sigterm' timed out. Killing.[ 367.401233] systemd[1]: systemd-journald.service: Killing process 255 (systemd-journal) with signal SIGKILL.[ 457.647890] systemd[1]: systemd-journald.service: Processes still around after SIGKILL. Ignoring.[ 547.901246] systemd[1]: systemd-journald.service: State 'stop-final-sigterm' timed out. Killing.[ 547.910848] systemd[1]: systemd-journald.service: Killing process 255 (systemd-journal) with signal SIGKILL.
So kernel "overlays" are broken, upgrade your version of u-boot and
add this define in /boot/uEnv.txt sudo /opt/scripts/tools/developers/update_bootloader.sh enable_uboot_overlays=1 uboot_overlay_addr4=/lib/firmware/CAPE-LVDS-1024-00A0.dtbo disable_uboot_overlay_video=1 Then reboot and run: sudo /opt/scripts/tools/version.sh to see if everything is happy..
That is strange, i never had libgbm-dev installed and got kmscube to work..
When I execute 'autogen.sh', the script notice me to get libgbm-dev:
git clone git://git.ti.com/glsdk/kmscube.gitcd kmscube/
./autogen.sh
...
checking for DRM... yes
checking for GBM... no
configure: error: Package requirements (gbm) were not met:
No package 'gbm' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables GBM_CFLAGS
and GBM_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
root@beaglebone ~ # ll /usr/lib/libgb*lrwxrwxrwx 1 root root 15 Mar 26 18:40 /usr/lib/libgbm.so -> libgbm.so.2.0.0lrwxrwxrwx 1 root root 15 Mar 26 18:40 /usr/lib/libgbm.so.2 -> libgbm.so.2.0.0-rw-r--r-- 1 root root 9.5K Mar 26 18:40 /usr/lib/libgbm.so.2.0.0root@beaglebone ~ # whereis kmscubekmscube: /usr/bin/kmscuberoot@beaglebone ~ # ldd /usr/bin/kmscube linux-vdso.so.1 (0xbeff6000) libm.so.6 => /lib/arm-linux-gnueabihf/libm.so.6 (0xb6f27000) libdrm.so.2 => /usr/lib/arm-linux-gnueabihf/libdrm.so.2 (0xb6f0b000) libgbm.so.2 => /usr/lib/libgbm.so.2 (0xb6ef8000) libdl.so.2 => /lib/arm-linux-gnueabihf/libdl.so.2 (0xb6ee5000) libEGL.so.1 => /usr/lib/libEGL.so.1 (0xb6ed3000) libIMGegl.so.1 => /usr/lib/libIMGegl.so.1 (0xb6eae000) libdrm_omap.so.1 => /usr/lib/arm-linux-gnueabihf/libdrm_omap.so.1 (0xb6e9b000) libGLESv2.so.2 => /usr/lib/arm-linux-gnueabihf/libGLESv2.so.2 (0xb6e7d000) libsrv_um.so.1 => /usr/lib/libsrv_um.so.1 (0xb6e46000) libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0xb6d58000) /lib/ld-linux-armhf.so.3 (0xb6fc3000) libudev.so.1 => /lib/arm-linux-gnueabihf/libudev.so.1 (0xb6d41000) libwayland-server.so.0 => /usr/lib/arm-linux-gnueabihf/libwayland-server.so.0 (0xb6d26000) libffi.so.6 => /usr/lib/arm-linux-gnueabihf/libffi.so.6 (0xb6d10000) libdbm.so.1 => /usr/lib/libdbm.so.1 (0xb6cfe000) libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0 (0xb6cda000) libGLdispatch.so.0 => /usr/lib/arm-linux-gnueabihf/libGLdispatch.so.0 (0xb6c5c000) librt.so.1 => /lib/arm-linux-gnueabihf/librt.so.1 (0xb6c46000) libgcc_s.so.1 => /lib/arm-linux-gnueabihf/libgcc_s.so.1 (0xb6c1d000)
Unfortunately, if we use we ti-sgx-common-ddk-um package's, we will have conflicts with libegl1-mesa-dev and libgles2-mesa-dev packages and the libgbm1 package will be reinstall...
Ah crap, so the reason i split those files into a 2nd common package was to fix that possibility.. Fixed with: https://github.com/rcn-ee/repos/commit/25a4d0892b99a0526adc683f0f34b767cb6b193e
root@beaglebone ~ # dpkg -l |grep ti-sgx
ii ti-sgx-ti335x-modules-4.14.108-ti-r101 1stretch armhf ti-sgx modules
ii ti-sgx-ti33x-ddk-um 1.14.3699939-git20171201.0-0rcnee9~stretch+20190328 armhf Userspace libraries for SGXii ti-sgx-common-ddk-um 1.14.3699939-git20171201.0-0rcnee8~stretch+20190326 armhf Userspace libraries for SGX
root@beaglebone ~ # apt install libqt5qml5 qml-module-qtquick-controls qt5-default qtdeclarative5-dev qtquickcontrols5-examples
Reading package lists... DoneBuilding dependency treeReading state information... Done
The following additional packages will be installed:
libdrm-amdgpu1 libdrm-common libdrm-dev libdrm-etnaviv1 libdrm-exynos1 libdrm-freedreno1 libdrm-nouveau2 libdrm-omap1 libdrm-radeon1 libdrm-tegra0 libdrm2 libegl-mesa0 libegl1 libegl1-mesa libegl1-mesa-dev libevdev2 libgbm1 libgles2 libgles2-mesa-dev ...Errors were encountered while processing: /tmp/apt-dpkg-install-e1Iuir/076-libegl1-mesa-dev_18.1.9-1rcnee1~stretch+20190321_armhf.deb /tmp/apt-dpkg-install-e1Iuir/077-libgles2-mesa-dev_18.1.9-1rcnee1~stretch+20190321_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
# dpkg -r ti-sgx-common-ddk-um
# apt --fix-broken install
./dashboardCould not initialize egl displayAborted
export QT_LOGGING_RULES=*=trueexport QSG_INFO=1export QT_QPA_EGLFS_DEBUG=1export QT_DEBUG_PLUGINS=1