Yocto imx-image-* reports many errors during boot

Greetings!

I am using HummingBoard Pulse with iMX8M Plus SOM.
For my application I am trying to build Yocto distribution image and communicate with the Basler camera.

I followed the guide on this link, prebuilt image works as expected, I can communicate with the camera.

The problem comes when I try to use the Yocto image that I built myself (using bitbake imx-image-full command), there are tons of errors in the boot messages, among them is a message mx8-img-md: Can't find i2c client device for basler_camera_vvcam@36.

Below is the output emmited during boot:

U-Boot SPL 2020.04-00009-g0bbe6665e9 (Feb 02 2022 - 12:52:09 +0100)                                                          
Training for 3GByte Micron                                                                                                   
DDRINFO: start DRAM init                                                                                                     
DDRINFO: DRAM rate 3000MTS                                                                                                   
Training FAILED                                                                                                              
Re-training for 1GByte Samsung memory                                                                                        
DDRINFO: start DRAM init                                                                                                     
DDRINFO: DRAM rate 4000MTS                                                                                                   
DDRINFO:ddrphy calibration done                                                                                              
DDRINFO: ddrmix config done                                                                                                  
Normal Boot                                                                                                                  
Trying to boot from BOOTROM                                                                                                  
image offset 0x0, pagesize 0x200, ivt offset 0x0                                                                             
NOTICE:  BL31: v2.2(release):rel_imx_5.4.70_2.3.0-0-gf1d7187f2                                                               
NOTICE:  BL31: Built : 12:15:32, Feb  2 2022                                                                                 
                                                                                                                             
                                                                                                                             
U-Boot 2020.04-00009-g0bbe6665e9 (Feb 02 2022 - 12:52:09 +0100)                                                              
                                                                                                                             
CPU:   i.MX8MP[8] rev1.1 1800 MHz (running at 1200 MHz)                                                                      
CPU:   Commercial temperature grade (0C to 95C) at 39C                                                                       
Reset cause: POR                                                                                                             
Model: NXP i.MX8MPlus LPDDR4 SolidRun board                                                                                  
DRAM:  1 GiB                                                                                                                 
MMC:   FSL_SDHC: 1, FSL_SDHC: 2                                                                                              
Loading Environment from MMC... *** Warning - bad CRC, using default environment                                             
                                                                                                                             
[*]-Video Link 0probe video device failed, ret -2                                                                            
                                                                                                                             
        [0] lcd-controller@32e80000, video                                                                                   
        [1] mipi_dsi@32e60000, video_bridge                                                                                  
        [2] adv7535@39, panel                                                                                                
probe video device failed, ret -2                                                                                            
In:    serial                                                                                                                
Out:   serial                                                                                                                
Err:   serial                                                                                                                
                                                                                                                             
 BuildInfo:                                                                                                                  
  - ATF f1d7187                                                                                                              
  - U-Boot 2020.04-00009-g0bbe6665e9                                                                                         
                                                                                                                             
switch to partitions #0, OK                                                                                                  
mmc2(part 0) is current device                                                                                               
flash target is MMC:2                                                                                                        
Net:                                                                                                                         
Warning: ethernet@30bf0000 (eth1) using random MAC address - 02:fe:b3:99:32:eb                                               
eth1: ethernet@30bf0000 [PRIME]                                                                                              
Fastboot: Normal                                                                                                             
Normal Boot                                                                                                                  
Hit any key to stop autoboot:  0                                                                                             
switch to partitions #0, OK                                                                                                  
mmc1 is current device                                                                                                       
Scanning mmc 1:1...                                                                                                          
Found /extlinux/extlinux.conf                                                                                                
Retrieving file: /extlinux/extlinux.conf                                                                                     
241 bytes read in 16 ms (14.6 KiB/s)                                                                                         
1:      NXP i.MX Release Distro                                                                                              
Retrieving file: /extlinux/../Image                                                                                          
26274304 bytes read in 1135 ms (22.1 MiB/s)                                                                                  
append: root=/dev/mmcblk1p2 rootwait rw quiet console=ttymxc1,115200  rootwait rw console=ttymxc1,115200,115200              
Retrieving file: /extlinux/../imx8mp-hummingboard-pulse.dtb                                                                  
61717 bytes read in 26 ms (2.3 MiB/s)                                                                                        
## Flattened Device Tree blob at 43000000                                                                                    
   Booting using the fdt blob at 0x43000000                                                                                  
   Using Device Tree in place at 0000000043000000, end 0000000043012114                                                      
probe video device failed, ret -2                                                                                            
                                                                                                                             
Starting kernel ...                                                                                                          
                                                                                                                             
[    0.168862] samsung-hdmi-phy 32fdff00.hdmiphy: failed to get phy apb clk: -517                                            
[    0.169014] imx8-pcie-phy 32f00000.pcie-phy: failed to get imx pcie phy clock                                             
[    0.176029] clk: failed to reparent gic to sys_pll2_500m: -16                                                             
[    0.183798] reg-userspace-consumer power-m2-mpcie: Failed to get supplies: -517                                           
[    0.183846] reg-userspace-consumer power-usb-port1: Failed to get supplies: -517                                          
[    0.183887] reg-userspace-consumer power-usb-port2: Failed to get supplies: -517                                          
[    0.236459] imx-lcdifv3 32e80000.lcd-controller: No pix clock get: -517                                                   
[    0.243830] imx-lcdifv3 32e90000.lcd-controller: No pix clock get: -517                                                   
[    0.250772] imx-lcdifv3 32fc6000.lcd-controller: No irq get, ret=-517                                                     
[    0.260890] imx-hdmi-pavi 32fc4000.hdmi-pai-pvi: No pvi clock get                                                         
[    0.304503] sdhci-esdhc-imx 30b40000.mmc: voltage-ranges unspecified                                                      
[    0.316699] imx-dsp-rproc 3b6e8000.dsp: Failed to get clock dsp_clk1                                                      
[    0.323084] imx-dsp-rproc 3b6e8000.dsp: failed on imx_dsp_rproc_clk_get                                                   
[    0.518313] samsung-hdmi-phy 32fdff00.hdmiphy: failed to get phy apb clk: -517                                            
[    0.544614] imx-lcdifv3 32fc6000.lcd-controller: No irq get, ret=-517                                                     
[    0.564998] sdhci-esdhc-imx 30b40000.mmc: voltage-ranges unspecified                                                      
[    0.581999] imx6q-pcie 33800000.pcie: invalid resource                                                                    
[FAILED] Failed to start Terminate Psplash Boot Screen.                                                                      
[    2.368198] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6                            
[    2.382521] imx8_media_dev: module is from the staging directory, the quality is unknown, you have been warned.           
[    2.388962] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Mar  3 2019 19:47:25 version 7.45.184 (r712131 CY) FWID 01-b363c0a0
[    2.407895] mx8-img-md: Can't find i2c client device for basler_camera_vvcam@36                                           
[    2.454270] mx8-img-md: Unregistered all entities                                                                         
[    2.498394] Bluetooth: hci0: BCM: chip id 107                                                                             
[    2.503203] Bluetooth: hci0: BCM: features 0x2f                                                                           
[    2.509075] Bluetooth: hci0: BCM4345C0                                                                                    
[    2.513121] Bluetooth: hci0: BCM4345C0 (003.001.025) build 0000                                                           
[    2.520060] Bluetooth: hci0: BCM: firmware Patch file not found, tried:                                                   
[    2.526791] Bluetooth: hci0: BCM: 'brcm/BCM4345C0.hcd'                                                                    
[    2.531998] Bluetooth: hci0: BCM: 'brcm/BCM.hcd'                                                                          
[    2.544893] input: audio-hdmi HDMI Jack as /devices/platform/sound-hdmi/sound/card0/input0                                
[    2.560691] mx8-img-md: Can't find i2c client device for basler_camera_vvcam@36                                           
[    2.568058] mx8-img-md: Unregistered all entities                                                                         
[    2.591150] mx8-img-md: Can't find i2c client device for basler_camera_vvcam@36                                           
[    2.598701] mx8-img-md: Unregistered all entities                                                                         
[    2.694978] audit: type=1006 audit(1647942535.004:2): pid=438 uid=0 old-auid=4294967295 auid=0 tty=(none) old-ses=4294967295 ses=1 res=1
[    2.757038] 8021q: adding VLAN 0 to HW filter on device eth0                                                              
[    3.102270] caam algorithms registered in /proc/crypto                                                                    
[    3.110545] caam 30900000.crypto: caam pkc algorithms registered in /proc/crypto                                          
[    3.118230] caam 30900000.crypto: registering rng-caam                                                                    
[    3.124408] audit: type=1006 audit(1647942535.432:3): pid=360 uid=0 old-auid=4294967295 auid=0 tty=tty7 old-ses=4294967295 ses=2 res=1
[    3.138489] Device caam-keygen registered                                                                                 
[    3.144149] mx8-img-md: Can't find i2c client device for basler_camera_vvcam@36                                           
[    3.151573] mx8-img-md: Unregistered all entities                                                                         
[    3.152198] random: crng init done                                                                                        
[    3.159860] random: 7 urandom warning(s) missed due to ratelimiting                                                       
[    3.176722] mx8-img-md: Can't find i2c client device for basler_camera_vvcam@36                                           
[    3.184160] mx8-img-md: Unregistered all entities                                                                         
[    3.213870] imx-dwmac 30bf0000.ethernet eth1: PHY [stmmac-0:00] driver [ADIN1300] (irq=POLL)                              
[    3.220545] mx8-img-md: Can't find i2c client device for basler_camera_vvcam@36                                           
[    3.233347] mx8-img-md: Unregistered all entities                                                                         
[    3.253802] imx-dwmac 30bf0000.ethernet eth1: No Safety Features support found                                            
[    3.262285] imx-dwmac 30bf0000.ethernet eth1: IEEE 1588-2008 Advanced Timestamp supported                                 
[    3.271502] imx-dwmac 30bf0000.ethernet eth1: registered PTP clock                                                        
[    3.278386] imx-dwmac 30bf0000.ethernet eth1: configuring for phy/rgmii-id link mode                                      
[    3.287600] 8021q: adding VLAN 0 to HW filter on device eth1                                                              
[    3.368368] NET: Registered protocol family 38                                                                            
[    3.527077] ext2 filesystem being mounted at /run/media/mmcblk2p2 supports timestamps until 2038 (0x7fffffff)             
                                                                                                                             
NXP i.MX Release Distro 5.10-hardknott imx8mpsolidrun ttymxc1                                                                
                                                                                                                             
imx8mpsolidrun login: [   10.720393] imx-drm display-subsystem: [drm] Cannot find any crtc or sizes

I have built the image according to the instruction on your repo: GitHub - SolidRun/meta-solidrun-arm-imx8 at hardknott-imx8mp, I did use hardknott branch for this.

Things that I have tried so far:

  • I have built image with command bitbake imx-image-full, does not work
  • I have built image with command bitbake imx-image-core, does not work
  • I have tried to flash the sdcard with various dd arguments such as bs=4K conv=fdatasync, or bs=1M, no difference
  • I have built Yocto image first directly on the server and then in the Docker container, no difference.

Generally I have been flashing the sd card with the command given in your GIthub repo:
bunzip2 -c tmp/deploy/images/imx8mpsolidrun/imx-image-full-imx8mpsolidrun.wic.bz2 | sudo dd of=/dev/sdX bs=1M

What would I like to know:

  • How does my image differ from the one that is prebuilt by Solidrun?
  • How can I debug this issue?
  • Is the problem on my side?

It looks like your image has booted properly as you have a login prompt. Those errors are all informational. The -517 errors are EPROBE_DEFER messages which just mean that not all clocks, or regulators are initialized yet so probing of the hardware by the driver is being delayed. The i2c errors are most likely because you do not have a basler camera connected to the system. You can modify the device-tree to remove the basler camera definitions if you do not plan to use them.

Hello jnettlet,

thank your for a quick answer.

To clarify my problem a bit more:

  1. Yes, the image does boot up and I can login with the root, however I do not see any video devices with ls /dev/video* nor I cant use v4l2-util with anything. Additionaly when trying to enable wlan0 interface i get below response:
root@imx8mpsolidrun:~# ifconfig wlan0 up
SIOCSIFFLAGS: Operation not possible due to RF-kill

Command rfkill list tells me that my Wireless LAN is Soft Blocked:

root@imx8mpsolidrun:~# rfkill list
0: m2_wdis: Wireless WAN
        Soft blocked: no
        Hard blocked: no
1: m2_gps: GPS
        Soft blocked: no
        Hard blocked: no
2: mpcie_wdis: Wireless WAN
        Soft blocked: no
        Hard blocked: no
3: hci0: Bluetooth
        Soft blocked: yes
        Hard blocked: no
4: phy0: Wireless LAN
        Soft blocked: yes
        Hard blocked: no
  1. I do have Basler camera connected, see the below image for the reference. To reiterate myself: Prebuilt image from HummingBoard Pulse & i.MX8M Plus - Basler Camera Quick Start Guide works.


    I do plan to use Basler camera in my application.

  2. I have tried to figure out if there are some differences between images. I found out that I can get some information about device tree that is used with the following command:

find /proc/device-tree/ -type f -exec head {} + > some_file.txt

I ran this command on prebuilt image and image built by me and compared the outputs with diff.
There are many differences between the outputs, which explains why the boot messages differ.

How was prebuilt image built, should instructions in repo meta-solidrun-arm-imx8 of hardknott branch create this image ?

And you have pulled down the latest hardknott branch of our meta-layer? It was updated last week with all the changes included in our prebuilt image.

And you have pulled down the latest hardknott branch of our meta-layer? It was updated last week with all the changes included in our prebuilt image.

Correct.

Im posting below two scritpts that I use to prepare Yocto build system.
I only need to run yocto-prep.sh and then bitbake <some_image> to start building.
These scripts were taken from imx aurora repostitory and modified for Solidrun.

yocto_prep.sh

#!/bin/bash
# This script will run into container

# source the common variables
cd imx-5.10.72-2.2.0
. env.sh

mkdir -p ${YOCTO_DIR}
cd ${YOCTO_DIR}

# Init

repo init \
        -u ${REMOTE} \
        -b ${BRANCH} \
        -m ${MANIFEST}

repo sync -j32

# Add here custom solidrun layer as per their website
git clone https://github.com/SolidRun/meta-solidrun-arm-imx8.git -b ${SOLIDRUN_BRANCH}
mv meta-solidrun-arm-imx8 sources

# Create build enviroment
EULA=1 MACHINE="${MACHINE}" DISTRO="${DISTRO}" source imx-setup-release.sh -b build_${DISTRO}
echo 'BBLAYERS += "${BSPDIR}/sources/meta-solidrun-arm-imx8"' >>conf/bblayers.conf

sed -i 's|DL_DIR ?= "${BSPDIR}/downloads/"|DL_DIR ?= "/mnt/yocto_data/yocto_downloads"|' conf/local.conf

echo 'SSTATE_DIR ?= "/mnt/yocto_data/sstate_cache"' >> conf/local.conf

# Build
#bitbake ${IMAGES}

env.sh

#!/bin/bash
# Here are some default settings.
# Make sure DOCKER_WORKDIR is created and owned by current user.

# Docker

DOCKER_IMAGE_TAG="solidrun-yocto"
DOCKER_WORKDIR="/home/skobec/Work/9_ssd_build"

# Yocto

IMX_RELEASE="imx-5.10.72-2.2.0"

YOCTO_DIR="${DOCKER_WORKDIR}/${IMX_RELEASE}-build"

MACHINE="imx8mpsolidrun"
DISTRO="fsl-imx-xwayland"
#IMAGES="imx-image-core"
#IMAGES="core-image-minimal"
IMAGES="core-image-full-commandline"

REMOTE="https://source.codeaurora.org/external/imx/imx-manifest"
BRANCH="imx-linux-hardknott"
MANIFEST=${IMX_RELEASE}".xml"

SOLIDRUN_BRANCH="hardknott-imx8mp"

Can you please post the full output of dmesg to a pastebin and link it here? I also see the issue with wifi the public repo is missing a patch that I will push.

Yes sure, it is here: imx-dmesg-dump - Pastebin.com

I have pushed 2 new fixes, which will take care of the spidev warning and the wifi/bt issues. You will still need to use rfkill unblock all to enable them the first time. After that systemd should remember if you have them on or off.

As for the basler camera issue. Can you also send me the output of i2cdetect -y 2?

I will try the new patches.

root@imx8mpsolidrun:~# i2cdetect -y 2
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:                         -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- UU -- UU -- -- UU UU UU -- 3f
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- UU -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- UU -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
root@imx8mpsolidrun:~#

Output does not change if I disconnect the device.

Below are outputs from some v4l2 commands that are in the Camera guide:

root@imx8mpsolidrun:~# v4l2-ctl --device /dev/video0 --all
[   16.609522] viv_post_event: unsubscribed event id =14 type=0x08002000
Driver Info:
        Driver name      : viv_v4l2_device
        Card type        : VIV
        Bus info         : platform:viv0
        Driver version   : 5.10.72
        Capabilities     : 0x84200001
                Video Capture
                Streaming
                Extended Pix Format
                Device Capabilities
        Device Caps      : 0x04200001
                Video Capture
                Streaming
                Extended Pix Format
Media Driver Info:
        Driver name      : vvcam-video
        Model            : viv_media
        Serial           :
        Bus info         :
        Media version    : 5.10.72
        Hardware revision: 0x00000000 (0)
        Driver version   : 5.10.72
Interface Info:
        ID               : 0x03000003
        Type             : V4L Video
Entity Info:
        ID               : 0x00000001 (1)
        Name             : viv_v4l20
        Function         : V4L2 I/O
        Pad 0x01000002   : 0: Sink, Must Connect
          Link 0x02000011: from remote pad 0x1000010 of entity 'vvcam-isp.0': Data, Enabled
Priority: 2
Video input : 0 (camera: ok)
Format Video Capture:
        Width/Height      : 0/0
        Pixel Format      : ''
        Field             : None
        Bytes per Line    : 0
        Size Image        : 0
        Colorspace        : Rec. 709
        Transfer Function : Default (maps to Rec. 709)
        YCbCr/HSV Encoding: Default (maps to Rec. 709)
        Quantization      : Default (maps to Full Range)
        Flags             :
[   34.033543] viv_post_event: unsubscribed event id =14 type=0x08002000
[   34.197541] viv_post_event: unsubscribed event id =14 type=0x08002000
Crop Capability Video Capture:
        Bounds      : Left 0, Top 0, Width 0, Height 0
        Default     : Left 0, Top 0, Width 0, Height 0
        Pixel Aspect: 1/1
[   34.361545] viv_post_event: unsubscribed event id =14 type=0x08002000
Selection Video Capture: crop, Left 0, Top 0, Width 0, Height 0, Flags:
[   34.529547] viv_post_event: unsubscribed event id =14 type=0x08002000
Selection Video Capture: crop_default, Left 0, Top 0, Width 0, Height 0, Flags:
[   34.693544] viv_post_event: unsubscribed event id =14 type=0x08002000
Selection Video Capture: crop_bounds, Left 0, Top 0, Width 0, Height 0, Flags:
[   34.857555] viv_post_event: unsubscribed event id =14 type=0x08002000
Selection Video Capture: compose, Left 0, Top 0, Width 0, Height 0, Flags:
[   35.021538] viv_post_event: unsubscribed event id =14 type=0x08002000
Selection Video Capture: compose_default, Left 0, Top 0, Width 3840, Height 2160, Flags:
[   35.185539] viv_post_event: unsubscribed event id =14 type=0x08002000
Selection Video Capture: compose_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags:
[   35.349540] viv_post_event: unsubscribed event id =14 type=0x08002000
[   35.513539] viv_post_event: unsubscribed event id =14 type=0x08002000
Streaming Parameters Video Capture:
        Capabilities     : timeperframe
        Frames per second: invalid (0/1)
        Read buffers     : 0

User Controls

                   viv_ext_ctrl 0x0098f901 (str)    : min=0 max=65535 step=1 value='' flags=has-payload
[   35.677538] viv_post_event: unsubscribed event id =14 type=0x08002000
error 22 getting ctrl sensor.resw
[   35.841556] viv_gen_g_ctrl: unsubscribed event id =11 type=0x08002000
error 22 getting ctrl sensor.resh
[   36.005540] viv_gen_g_ctrl: unsubscribed event id =11 type=0x08002000
root@imx8mpsolidrun:~# gst-launch-1.0 -v v4l2src device=/dev/video0 ! "video/x-raw,format=YUY2,width=1920,height=1080" ! queue ! imxvideoconvert_g2d ! waylandsink
[   36.169538] viv_post_event: unsubscribed event id =14 type=0x08002000
[  119.729850] enter isp_mi_stop
[  119.765906] enter isp_mi_stop
[  119.921860] enter isp_mi_stop
[  119.953885] enter isp_mi_stop
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[  120.201548] viv_post_event: unsubscribed event id =14 type=0x08002000
[  120.361540] viv_post_event: unsubscribed event id =14 type=0x08002000
[  120.525542] viv_post_event: unsubscribed event id =14 type=0x08002000
[  120.689543] viv_post_event: unsubscribed event id =14 type=0x08002000
/GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = video/x-raw, format=(string)YUY2, width=(int)1920, height=(int)1080, framerate=(fraction)120/1, pixel-aspect-ratio=(fraction)9
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-raw, format=(string)YUY2, width=(int)1920, height=(int)1080, framerate=(fraction)120/1, pixel-aspect-ratio=(fra9
/GstPipeline:pipeline0/GstQueue:queue0.GstPad:sink: caps = video/x-raw, format=(string)YUY2, width=(int)1920, height=(int)1080, framerate=(fraction)120/1, pixel-aspect-ratio=(fraction)1/19
/GstPipeline:pipeline0/GstQueue:queue0.GstPad:sink: caps = video/x-raw, format=(string)YUY2, width=(int)1920, height=(int)1080, framerate=(fraction)120/1, pixel-aspect-ratio=(fraction)1/19
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = video/x-raw, format=(string)YUY2, width=(int)1920, height=(int)1080, framerate=(fraction)120/1, pixel-aspect-ratio=(fr9
/GstPipeline:pipeline0/imxvideoconvert_g2d:imxvideoconvert_g2d0.GstPad:src: caps = video/x-raw, width=(int)1920, height=(int)1080, framerate=(fraction)120/1, pixel-aspect-ratio=(fraction)x
/GstPipeline:pipeline0/GstWaylandSink:waylandsink0.GstPad:sink: caps = video/x-raw, width=(int)1920, height=(int)1080, framerate=(fraction)120/1, pixel-aspect-ratio=(fraction)1/1, interlax
/GstPipeline:pipeline0/imxvideoconvert_g2d:imxvideoconvert_g2d0.GstPad:sink: caps = video/x-raw, format=(string)YUY2, width=(int)1920, height=(int)1080, framerate=(fraction)120/1, pixel-a9
[  120.853543] viv_post_event: unsubscribed event id =14 type=0x08002000
[  121.061546] viv_post_event: unsubscribed event id =7 type=0x08002000
[  121.225542] viv_post_event: unsubscribed event id =6 type=0x08002000
[  121.389543] viv_post_event: unsubscribed event id =10 type=0x08002000
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Failed to allocate required memory.
Additional debug info:
../git/sys/v4l2/gstv4l2src.c(659): gst_v4l2src_decide_allocation (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
Buffer pool activation failed
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data stream error.
Additional debug info:
../git/libs/gst/base/gstbasesrc.c(3127): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming stopped, reason not-negotiated (-4)
Execution ended after 0:00:01.529961375
Setting pipeline to NULL ...
[  121.565543] viv_post_event: unsubscribed event id =1 type=0x08002000
Freeing pipeline ...

Hello jnettlet,

I have managed to test the latest two commits that you made two days ago.

I have built imx-image-full image and flashed it to the sdcard.

I can confirm now that Wifi works ok by issuing below commands:

# first I unblocked all wireless devices like you said
rfkill unblock all
# Enabled wlan0 interface
ifconfig wlan0 up

And connected to the correct wifi with connmanctl, this page was helpful.

Do you have any progress on the Basler camera communication?

The Basler camera code should not need to be changed. Is your HDMI display working, and can you playback other videos properly?

HDMI display works, Wayland session appears and I can connect a mouse and keyboard and do things with them. I can click the NXP logo on the top left to bring up their “Demo Experience” application, however pressing button “Launch Demo” does nothing, nothing visible happens on the monitor or in the shell.

If I run the below command in Wayland shell to configure the camera and start the playback I get the same response as above.

gst-launch-1.0 -v v4l2src device=/dev/video0 ! "video/x-raw,format=YUY2,width=1920,height=1080" ! queue ! imxvideoconvert_g2d ! waylandsink

Can you re-insert your CSI camera connector cables at both ends. I have found the Basler connectors can be a bit temperamental if they aren’t 100% aligned in the slots.

I did this several times, however that did not make any difference.

I just want to mention again that the prebuilt image provided in the guide HummingBoard Pulse & i.MX8M Plus - Basler Camera Quick Start Guide works as it should on the same configuration of development board and Basler’s camera.

I have run the above gst-launch command in the shell and the camera feed appeared as mentioned in the guide. This can be seen on the image below:

In my mind the issue is not hardware configuration but the difference between my image and the prebuilt one.

By any chance could you upload your image someplace that I could test it?

Sure, I will find a way to do that.

Here is the link the image: Sign in to your account

thanks. I am downloading it and will take a look this afternoon

Hello jnettlet, did you manage to look at the image?

Yes, I will be pushing patches later today to fix it. It was a device-tree merge issue.