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.

AM625: Regarding OV5640 Camera support

Part Number: AM625

Hi TI Team,

We are using custom board based on am625 EVM. In that We are using wkup_i2c0 for csi camera interface.  Here I have also attached device tree changes to support ov5640 camera. 

But with this changes, I am not getting /dev/video0 interface. Only /dev/media0 interface is created and also getting error [    1.300458] ov5640: probe of 1-003c failed with error -22

root@xxx:~# v4l2-ctl --list-devices
TI-CSI2RX (platform:30102000.ticsi2rx):
/dev/media0

Cannot open device /dev/video0, exiting.

Please suggest if We missed anything. I am unable to find wkup_i2c0 example from linux ti academy. Is there any other procedure required to setup/enable camera interface associated with wkup_i2c0 for am625 processor.


&mcu_pmx0 {
        wkup_i2c0_pins_default: wkup-i2c0-pins-default {
                pinctrl-single,pins = <
                        AM62X_IOPAD(0x04c, PIN_OUTPUT, 0) /* (B9) WKUP_I2C0_SCL.WKUP_I2C0_SCL */
                        AM62X_IOPAD(0x050, PIN_INPUT_PULLUP, 0) /* (A9) WKUP_I2C0_SDA.WKUP_I2C0_SDA */
                >;
        };
};




&wkup_i2c0 {
    status = "okay";


    clk_ov5640_fixed: ov5640-xclk {
        compatible = "fixed-clock";
        #clock-cells = <0>;
        clock-frequency = <12000000>;
    };

    ov5640: camera@3c {
        compatible = "ovti,ov5640";
        reg = <0x3c>;
        clocks = <&clk_ov5640_fixed>;
        clock-names = "xclk";
        
        pinctrl-names = "default";
        pinctrl-0 = <&wkup_i2c0_pins_default>;

        DOVDD-supply = <&vcc_1v8>; /* 1.8v */
        AVDD-supply = <&reg_3v0_audio>;  /* 2.8v */
        DVDD-supply = <&vcc_1v8>;  /* 1.5v */

        reset-gpios = <&main_gpio0_pins_default 31 GPIO_ACTIVE_LOW>,
                <&main_gpio0_pins_default 32 GPIO_ACTIVE_LOW>;

        powerdown-gpios = <&main_gpio0_pins_default 22 GPIO_ACTIVE_LOW>,
                <&main_gpio1_pins_default 30 GPIO_ACTIVE_LOW>;

        ports {
            #address-cells = <1>;
            #size-cells = <0>;

            port@0 {
                reg = <0>;
                csi2_cam0: endpoint {
                    remote-endpoint = <&csi2rx0_in_sensor>;
                    bus-width = <8>;
                    hsync-active = <0>;
                    vsync-active = <1>;
                    pclk-sample = <0>;
                    data-lanes = <1 2 3 4>;
                };
            };
        };
    };
};


&csi0_port0 {
        status = "okay";

        csi2rx0_in_sensor: endpoint {
                remote-endpoint = <&csi2_cam0>;
                bus-type = <4>; /* CSI2 DPHY. */
                clock-lanes = <0>;
                data-lanes = <1 2 3 4>;
        };
};
     

Thanks,

Maulik

  • Hello Maulik,

    What does "i2cdetect -l" show after you boot your custom board to Linux?

    Regards,

    Jianzhong

  • Hi Jianzhong,

    below is the output of "i2cdetect -l" when I boot my custom board to linux.

    root@xxx:~# i2cdetect -l
    i2c-3 i2c OMAP I2C adapter I2C adapter
    i2c-1 i2c OMAP I2C adapter I2C adapter
    i2c-4 i2c OMAP I2C adapter I2C adapter
    i2c-2 i2c OMAP I2C adapter I2C adapter
    i2c-0 i2c OMAP I2C adapter I2C adapter

    Thanks,

    Maulik

  • Which i2c bus is used by CSI? Can you do "i2cdetect -y -r <i2c bus number>"? For example, if i2c-3 is used, run "i2cdetect -y -r 3".

    Regards,

    Jianzhon

  • Hi Jianzhong,

    Below is the output.

    root@xxx:~# i2cdetect -y -r 1
    0 1 2 3 4 5 6 7 8 9 a b c d e f
    00: [ 621.759499] omap_i2c 2b200000.i2c: timeout waiting for bus ready
    -- [ 622.771494] omap_i2c 2b200000.i2c: timeout waiting for bus ready
    -- [ 623.783492] omap_i2c 2b200000.i2c: timeout waiting for bus ready
    -- [ 624.795489] omap_i2c 2b200000.i2c: timeout waiting for bus ready
    -- [ 625.807496] omap_i2c 2b200000.i2c: timeout waiting for bus ready
    -- ^C[ 626.819492] omap_i2c 2b200000.i2c: timeout waiting for bus ready

    Thanks,

    Maulik

  • Maulik,

    This tells me that your i2c bus 1 is not functioning properly. The command should return something like this:

         0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
    00:          -- -- -- -- -- -- -- -- -- -- -- -- --
    10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
    20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
    30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
    40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
    50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
    60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
    70: -- -- -- -- -- -- -- --

    Regards,

    Jianzhong

  • Hi Jianzhong,

    Thanks for pointing out. I have resolved bus issue and able to get /dev/videoX nodes. Now I am encountering the DPHY errors when I try to capture.

    root@xxx:~# i2cdetect -y 1
    Warning: Can't use SMBus Quick Write command, will skip some addresses
    0 1 2 3 4 5 6 7 8 9 a b c d e f
    00:
    10:
    20:
    30: -- -- -- -- -- -- -- --
    40:
    50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
    60:
    70:

    root@xxx:~# ls -ltr /dev/video*
    crw-rw---- 1 root video 81, 3 Feb 6 14:09 /dev/video3
    crw-rw---- 1 root video 81, 2 Feb 6 14:09 /dev/video2
    crw-rw---- 1 root video 81, 1 Feb 6 14:09 /dev/video1
    crw-rw---- 1 root video 81, 0 Feb 6 14:09 /dev/video0


    root@xxx:~# ls -ltr /sys/bus/i2c/devices/1-003c/
    -rw-r--r-- 1 root root 4096 Feb 6 14:09 uevent
    lrwxrwxrwx 1 root root 0 Feb 6 14:09 subsystem -> ../../../../../../../bus/i2c
    -r--r--r-- 1 root root 4096 Feb 6 14:09 name
    drwxr-xr-x 3 root root 0 Feb 6 14:09 video4linux
    lrwxrwxrwx 1 root root 0 Feb 6 14:16 supplier:regulator:regulator.0 -> ../../../../../../virtual/devlink/regulator:regulator.0--i2c:1-003c
    drwxr-xr-x 2 root root 0 Feb 6 14:16 power
    lrwxrwxrwx 1 root root 0 Feb 6 14:16 of_node -> ../../../../../../../firmware/devicetree/base/bus@f0000/bus@b00000/i2c@2b200000/ov5640@3c
    -r--r--r-- 1 root root 4096 Feb 6 14:16 modalias
    lrwxrwxrwx 1 root root 0 Feb 6 14:16 driver -> ../../../../../../../bus/i2c/drivers/ov5640

    root@xxx:~# v4l2-ctl --device /dev/video0 --stream-mmap --stream-to=frame.raw --stream-count=1
    [ 1084.854969] cdns-mipi-dphy 30110000.phy: DPHY wait for lane ready timeout
    [ 1084.861779] cdns-csi2rx 30101000.csi-bridge: Failed to configure external DPHY: -110
    VIDIOC_STREAMON returned -1 (Connection timed out)

    root@xxx~# lsmod
    Module Size Used by
    videobuf2_dma_sg 24576 0
    v4l2_mem2mem 40960 0
    phy_omap_usb2 16384 0
    phy_omap_control 16384 1 phy_omap_usb2
    wlcore_sdio 20480 0
    wl18xx 122880 0
    wlcore 225280 1 wl18xx
    mac80211 561152 2 wl18xx,wlcore
    cfg80211 364544 3 wl18xx,wlcore,mac80211
    bluetooth 421888 2
    libarc4 16384 1 mac80211
    ecdh_generic 16384 1 bluetooth
    ecc 32768 1 ecdh_generic
    rfkill 24576 4 bluetooth,cfg80211
    rpmsg_char 20480 0
    cdns_csi2rx 24576 1
    irq_pruss_intc 16384 0
    pru_rproc 24576 0
    crct10dif_ce 20480 1
    pvrsrvkm 1490944 0
    ti_k3_r5_remoteproc 28672 0
    virtio_rpmsg_bus 24576 0
    rti_wdt 20480 0
    ti_k3_m4_remoteproc 20480 0
    sa2ul 40960 0
    j721e_csi2rx 24576 0
    videobuf2_dma_contig 24576 1 j721e_csi2rx
    sha512_generic 16384 1 sa2ul
    pruss 20480 1 pru_rproc
    authenc 16384 1 sa2ul
    cdns_dphy 16384 0
    sch_fq_codel 20480 3
    cryptodev 57344 0
    ipv6 462848 44

    I have also attached device tree changes done for camera support. I want to capture images and video. Can you please support what are the missing change to resolve capture issue ?

    / {
    
    	clk_ov5640_fixed: ov5640-xclk {
    		 compatible = "fixed-clock";
    		 #clock-cells = <0>;
    		 clock-frequency = <12000000>;
    	};
    };
    
    &mcu_pmx0 {
            wkup_i2c0_pins_default: wkup-i2c0-pins-default {
                    pinctrl-single,pins = <
                            AM62X_IOPAD(0x04c, PIN_INPUT_PULLUP, 0) /* (B9) WKUP_I2C0_SCL.WKUP_I2C0_SCL */
                            AM62X_IOPAD(0x050, PIN_INPUT_PULLUP, 0) /* (A9) WKUP_I2C0_SDA.WKUP_I2C0_SDA */
                    >;
            };
    };
    
    
    
    
    &wkup_i2c0 {
            status = "okay";
            clock-frequency = <10000>;
            pinctrl-names = "default";
            pinctrl-0 = <&wkup_i2c0_pins_default>;
    
    
            ov5640: ov5640@3c {
                    compatible = "ovti,ov5640";
                    reg = <0x3c>;
                    clocks = <&clk_ov5640_fixed>;
                    clock-names = "xclk";
    
                    ports {
                            #address-cells = <1>;
                            #size-cells = <0>;
    
                            port@0 {
                                    reg = <0>;
    
                                    csi2_cam0: endpoint {
                                            remote-endpoint = <&csi2rx0_in_sensor>;
                                            clock-lanes = <0>;
                                            data-lanes = <1 2 3 4>;
                                    };
                            };
                    };
            };
    };
    
    
    &csi0_port0 {
            status = "okay";
    
            csi2rx0_in_sensor: endpoint {
                    remote-endpoint = <&csi2_cam0>;
                    bus-type = <4>;
                    clock-lanes = <0>;
                    data-lanes = <1 2 3 4>;
            };
    };
    
    
    
    
    
    
    

    Thanks,

    Maulik

  • Hi Maulik,

    Can you provide a complete dmesg, as well as the output of "media-ctl -p"?

    Thank you.

    Jianzhong

  • Hi Jianzhong, 

    I have attached the dmesg full log and "media-ctl -p" output for your reference.

    Thanks,

    Maulik Manvar

    Attached Files:

    [    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
    [    0.000000] Linux version 5.10.140+ (oe-user@oe-host) (aarch64-none-linux-gnu-gcc (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10)) 9.2.1 20191025, GNU ld (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10)) 2.33.1.20191209) #1 SMP PREEMPT Fri Mar 17 05:33:47 UTC 2023
    [    0.000000] Machine model: Smarc based msc sm2s-am6254 board
    [    0.000000] earlycon: ns16550a0 at MMIO32 0x0000000002800000 (options '')
    [    0.000000] printk: bootconsole [ns16550a0] enabled
    [    0.000000] efi: UEFI not found.
    [    0.000000] Reserved memory: created DMA memory pool at 0x000000009c800000, size 3 MiB
    [    0.000000] OF: reserved mem: initialized node ipc-memories@9c800000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x000000009cb00000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node m4f-dma-memory@9cb00000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x000000009cc00000, size 13 MiB
    [    0.000000] OF: reserved mem: initialized node m4f-memory@9cc00000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x000000009d900000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-dma-memory@9d900000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x000000009da00000, size 13 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-memory@9da00000, compatible id shared-dma-pool
    [    0.000000] Zone ranges:
    [    0.000000]   DMA      [mem 0x0000000080000000-0x00000000ffffffff]
    [    0.000000]   DMA32    empty
    [    0.000000]   Normal   empty
    [    0.000000] Movable zone start for each node
    [    0.000000] Early memory node ranges
    [    0.000000]   node   0: [mem 0x0000000080000000-0x000000009c7fffff]
    [    0.000000]   node   0: [mem 0x000000009c800000-0x000000009e6fffff]
    [    0.000000]   node   0: [mem 0x000000009e700000-0x000000009e77ffff]
    [    0.000000]   node   0: [mem 0x000000009e780000-0x000000009fffffff]
    [    0.000000]   node   0: [mem 0x00000000a0000000-0x00000000ffffffff]
    [    0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x00000000ffffffff]
    [    0.000000] On node 0 totalpages: 524288
    [    0.000000]   DMA zone: 8192 pages used for memmap
    [    0.000000]   DMA zone: 0 pages reserved
    [    0.000000]   DMA zone: 524288 pages, LIFO batch:63
    [    0.000000] cma: Reserved 512 MiB at 0x00000000dd000000
    [    0.000000] psci: probing for conduit method from DT.
    [    0.000000] psci: PSCIv1.1 detected in firmware.
    [    0.000000] psci: Using standard PSCI v0.2 function IDs
    [    0.000000] psci: Trusted OS migration not required
    [    0.000000] psci: SMC Calling Convention v1.2
    [    0.000000] percpu: Embedded 22 pages/cpu s50008 r8192 d31912 u90112
    [    0.000000] pcpu-alloc: s50008 r8192 d31912 u90112 alloc=22*4096
    [    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
    [    0.000000] Detected VIPT I-cache on CPU0
    [    0.000000] CPU features: detected: ARM erratum 845719
    [    0.000000] CPU features: detected: GIC system register CPU interface
    [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 516096
    [    0.000000] Kernel command line: console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000 root=PARTUUID=fd7df5ef-02 rw rootfstype=ext4 rootwait
    [    0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
    [    0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
    [    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
    [    0.000000] Memory: 1453996K/2097152K available (11968K kernel code, 1236K rwdata, 5040K rodata, 2176K init, 436K bss, 118868K reserved, 524288K cma-reserved)
    [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
    [    0.000000] rcu: Preemptible hierarchical RCU implementation.
    [    0.000000] rcu: 	RCU event tracing is enabled.
    [    0.000000] rcu: 	RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=4.
    [    0.000000] 	Trampoline variant of Tasks RCU enabled.
    [    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
    [    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
    [    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
    [    0.000000] GICv3: GIC: Using split EOI/Deactivate mode
    [    0.000000] GICv3: 256 SPIs implemented
    [    0.000000] GICv3: 0 Extended SPIs implemented
    [    0.000000] GICv3: Distributor has no Range Selector support
    [    0.000000] GICv3: 16 PPIs implemented
    [    0.000000] GICv3: CPU0: found redistributor 0 region 0:0x0000000001880000
    [    0.000000] ITS [mem 0x01820000-0x0182ffff]
    [    0.000000] GIC: enabling workaround for ITS: Socionext Synquacer pre-ITS
    [    0.000000] ITS@0x0000000001820000: Devices Table too large, reduce ids 20->19
    [    0.000000] ITS@0x0000000001820000: allocated 524288 Devices @80800000 (flat, esz 8, psz 64K, shr 0)
    [    0.000000] ITS: using cache flushing for cmd queue
    [    0.000000] GICv3: using LPI property table @0x0000000080030000
    [    0.000000] GIC: using cache flushing for LPI property table
    [    0.000000] GICv3: CPU0: using allocated LPI pending table @0x0000000080040000
    [    0.000000] arch_timer: cp15 timer(s) running at 200.00MHz (phys).
    [    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x2e2049d3e8, max_idle_ns: 440795210634 ns
    [    0.000004] sched_clock: 56 bits at 200MHz, resolution 5ns, wraps every 4398046511102ns
    [    0.008526] Console: colour dummy device 80x25
    [    0.013116] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=800000)
    [    0.023799] pid_max: default: 32768 minimum: 301
    [    0.028604] LSM: Security Framework initializing
    [    0.033390] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
    [    0.040970] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
    [    0.050728] rcu: Hierarchical SRCU implementation.
    [    0.055920] Platform MSI: msi-controller@1820000 domain created
    [    0.062234] PCI/MSI: /bus@f0000/interrupt-controller@1800000/msi-controller@1820000 domain created
    [    0.071485] EFI services will not be available.
    [    0.076403] smp: Bringing up secondary CPUs ...
    [    0.081689] Detected VIPT I-cache on CPU1
    [    0.081726] GICv3: CPU1: found redistributor 1 region 0:0x00000000018a0000
    [    0.081741] GICv3: CPU1: using allocated LPI pending table @0x0000000080050000
    [    0.081804] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
    [    0.082472] Detected VIPT I-cache on CPU2
    [    0.082497] GICv3: CPU2: found redistributor 2 region 0:0x00000000018c0000
    [    0.082510] GICv3: CPU2: using allocated LPI pending table @0x0000000080060000
    [    0.082547] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
    [    0.083154] Detected VIPT I-cache on CPU3
    [    0.083175] GICv3: CPU3: found redistributor 3 region 0:0x00000000018e0000
    [    0.083186] GICv3: CPU3: using allocated LPI pending table @0x0000000080070000
    [    0.083219] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
    [    0.083288] smp: Brought up 1 node, 4 CPUs
    [    0.163024] SMP: Total of 4 processors activated.
    [    0.167837] CPU features: detected: 32-bit EL0 Support
    [    0.173110] CPU features: detected: CRC32 instructions
    [    0.186426] CPU: All CPU(s) started at EL2
    [    0.190645] alternatives: patching kernel code
    [    0.196372] devtmpfs: initialized
    [    0.206468] KASLR disabled due to lack of seed
    [    0.211224] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
    [    0.221201] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
    [    0.242661] pinctrl core: initialized pinctrl subsystem
    [    0.248675] DMI not present or invalid.
    [    0.253284] NET: Registered protocol family 16
    [    0.259528] DMA: preallocated 256 KiB GFP_KERNEL pool for atomic allocations
    [    0.266870] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
    [    0.274938] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
    [    0.283652] thermal_sys: Registered thermal governor 'step_wise'
    [    0.283657] thermal_sys: Registered thermal governor 'power_allocator'
    [    0.290405] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
    [    0.304126] ASID allocator initialised with 65536 entries
    [    0.336696] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
    [    0.343582] HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages
    [    0.350435] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
    [    0.357286] HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages
    [    0.365185] cryptd: max_cpu_qlen set to 1000
    [    0.372728] k3-chipinfo 43000014.chipid: Family:AM62X rev:SR1.0 JTAGID[0x0bb7e02f] Detected
    [    0.381770] vcc_5v0: supplied by vmain_pd
    [    0.386292] vcc_3v3_sys: supplied by vmain_pd
    [    0.391121] vdd_mmc1: supplied by vcc_3v3_sys
    [    0.395872] vcc_1v8: supplied by vcc_3v3_sys
    [    0.400521] vcc_5v0: supplied by vmain_pd
    [    0.404702] debugfs: Directory 'vcc_5v0' with parent 'regulator' already present!
    [    0.412513] vcc_3v0: supplied by vcc_3v3_sys
    [    0.417902] iommu: Default domain type: Translated 
    [    0.423236] SCSI subsystem initialized
    [    0.427263] usbcore: registered new interface driver usbfs
    [    0.432901] usbcore: registered new interface driver hub
    [    0.438357] usbcore: registered new device driver usb
    [    0.444030] mc: Linux media interface: v0.10
    [    0.448419] videodev: Linux video capture interface: v2.00
    [    0.454090] pps_core: LinuxPPS API ver. 1 registered
    [    0.459165] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.468513] PTP clock support registered
    [    0.472554] EDAC MC: Ver: 3.0.0
    [    0.476412] omap-mailbox 29000000.mailbox: omap mailbox rev 0x66fc9100
    [    0.483541] FPGA manager framework
    [    0.487110] Advanced Linux Sound Architecture Driver Initialized.
    [    0.494286] clocksource: Switched to clocksource arch_sys_counter
    [    0.500748] VFS: Disk quotas dquot_6.6.0
    [    0.504824] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
    [    0.517195] NET: Registered protocol family 2
    [    0.521939] IP idents hash table entries: 32768 (order: 6, 262144 bytes, linear)
    [    0.530677] tcp_listen_portaddr_hash hash table entries: 1024 (order: 2, 16384 bytes, linear)
    [    0.539456] TCP established hash table entries: 16384 (order: 5, 131072 bytes, linear)
    [    0.547665] TCP bind hash table entries: 16384 (order: 6, 262144 bytes, linear)
    [    0.555394] TCP: Hash tables configured (established 16384 bind 16384)
    [    0.562301] UDP hash table entries: 1024 (order: 3, 32768 bytes, linear)
    [    0.569194] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes, linear)
    [    0.576673] NET: Registered protocol family 1
    [    0.581617] RPC: Registered named UNIX socket transport module.
    [    0.587695] RPC: Registered udp transport module.
    [    0.592535] RPC: Registered tcp transport module.
    [    0.597349] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.603944] PCI: CLS 0 bytes, default 64
    [    0.608812] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available
    [    0.620930] Initialise system trusted keyrings
    [    0.625715] workingset: timestamp_bits=46 max_order=19 bucket_order=0
    [    0.636030] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [    0.642587] NFS: Registering the id_resolver key type
    [    0.647810] Key type id_resolver registered
    [    0.652087] Key type id_legacy registered
    [    0.656247] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
    [    0.663103] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
    [    0.670864] 9p: Installing v9fs 9p2000 file system support
    [    0.711579] Key type asymmetric registered
    [    0.715777] Asymmetric key parser 'x509' registered
    [    0.720805] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 243)
    [    0.728371] io scheduler mq-deadline registered
    [    0.733003] io scheduler kyber registered
    [    0.739476] pinctrl-single 4084000.pinctrl: 34 pins, size 136
    [    0.745824] pinctrl-single f4000.pinctrl: 171 pins, size 684
    [    0.759530] Serial: 8250/16550 driver, 10 ports, IRQ sharing enabled
    [    0.779677] brd: module loaded
    [    0.789882] loop: module loaded
    [    0.794142] megasas: 07.714.04.00-rc1
    [    0.801719] tun: Universal TUN/TAP device driver, 1.6
    [    0.807125] vcan: Virtual CAN interface driver
    [    0.811683] CAN device driver interface
    [    0.815665] usbcore: registered new interface driver usb_8dev
    [    0.821570] usbcore: registered new interface driver peak_usb
    [    0.827820] igbvf: Intel(R) Gigabit Virtual Function Network Driver
    [    0.834230] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
    [    0.840313] sky2: driver version 1.30
    [    0.844996] VFIO - User Level meta-driver version: 0.3
    [    0.851515] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    [    0.858208] ehci-pci: EHCI PCI platform driver
    [    0.862799] ehci-platform: EHCI generic platform driver
    [    0.868284] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
    [    0.874633] ohci-pci: OHCI PCI platform driver
    [    0.879205] ohci-platform: OHCI generic platform driver
    [    0.885016] usbcore: registered new interface driver usbtmc
    [    0.890911] usbcore: registered new interface driver uas
    [    0.896389] usbcore: registered new interface driver usb-storage
    [    0.902639] userial_init: registered 8 ttyGS* devices
    [    0.902663] udc-core: couldn't find an available UDC - added [g_mass_storage] to list of pending drivers
    [    0.912362] udc-core: couldn't find an available UDC - added [MIDI Gadget] to list of pending drivers
    [    0.922617] i2c /dev entries driver
    [    0.928724] sdhci: Secure Digital Host Controller Interface driver
    [    0.935102] sdhci: Copyright(c) Pierre Ossman
    [    0.939880] sdhci-pltfm: SDHCI platform and OF driver helper
    [    0.946918] ledtrig-cpu: registered to indicate activity on CPUs
    [    0.953506] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping ....
    [    0.960253] usbcore: registered new interface driver usbhid
    [    0.965954] usbhid: USB HID core driver
    [    0.971008] optee: probing for conduit method.
    [    0.975611] optee: revision 3.18 (8e155bae)
    [    0.975900] optee: dynamic shared memory is enabled
    [    0.985397] optee: initialized driver
    [    0.992302] NET: Registered protocol family 17
    [    0.996906] can: controller area network core
    [    1.001433] NET: Registered protocol family 29
    [    1.005979] can: raw protocol
    [    1.009013] can: broadcast manager protocol
    [    1.013423] 9pnet: Installing 9P2000 support
    [    1.017871] Key type dns_resolver registered
    [    1.022489] Loading compiled-in X.509 certificates
    [    1.041024] ti-sci 44043000.system-controller: ti,ctx-memory-region is required for suspend but not provided.
    [    1.051216] ti-sci 44043000.system-controller: ti_sci_init_suspend failed, mem suspend will be non-functional.
    [    1.061459] ti-sci 44043000.system-controller: ABI: 3.1 (firmware rev 0x0008 '8.4.7--v08.04.07 (Jolly Jellyfi')
    [    1.107863] davinci-mcasp 2b00000.mcasp: IRQ common not found
    [    1.115478] davinci-mcasp 2b10000.mcasp: IRQ common not found
    [    1.125796] at24 0-0050: supply vcc not found, using dummy regulator
    [    1.154474] at24 0-0050: 8192 byte 24c64 EEPROM, writable, 32 bytes/write
    [    1.161733] at24 0-0057: supply vcc not found, using dummy regulator
    [    1.168613] at24 0-0057: 8192 byte 24c64 EEPROM, writable, 32 bytes/write
    [    1.176544] omap_i2c 4900000.i2c: bus 0 rev0.12 at 400 kHz
    [    1.183872] ov5640 1-003c: supply DOVDD not found, using dummy regulator
    [    1.190904] ov5640 1-003c: supply AVDD not found, using dummy regulator
    [    1.197748] ov5640 1-003c: supply DVDD not found, using dummy regulator
    [    1.236388] omap_i2c 2b200000.i2c: bus 1 rev0.12 at 10 kHz
    [    1.243467] at24 2-0057: supply vcc not found, using dummy regulator
    [    1.270458] at24 2-0057: 8192 byte 24c64 EEPROM, writable, 32 bytes/write
    [    1.277462] omap_i2c 20000000.i2c: bus 2 rev0.12 at 400 kHz
    [    1.284677] omap_i2c 20010000.i2c: bus 3 rev0.12 at 100 kHz
    [    1.292091] tps65219 4-0030: Failed to request IRQ 0 for tps65219_irq: -22
    [    1.299231] tps65219: probe of 4-0030 failed with error -22
    [    1.326341] tmp103 4-0075: error writing config register
    [    1.331824] tmp103: probe of 4-0075 failed with error -121
    [    1.337517] omap_i2c 20020000.i2c: bus 4 rev0.12 at 400 kHz
    [    1.343721] ti-sci-intr 4210000.interrupt-controller: Interrupt Router 5 domain created
    [    1.352077] ti-sci-intr bus@f0000:interrupt-controller@a00000: Interrupt Router 3 domain created
    [    1.361331] ti-sci-inta 48000000.interrupt-controller: Interrupt Aggregator domain 28 created
    [    1.370411] ti-bcdma 485c0100.dma-controller: Number of rings: 82
    [    1.378563] ti-bcdma 485c0100.dma-controller: Channels: 48 (bchan: 18, tchan: 12, rchan: 18)
    [    1.389727] ti-pktdma 485c0000.dma-controller: Number of rings: 150
    [    1.399887] ti-pktdma 485c0000.dma-controller: Channels: 35 (tchan: 20, rchan: 15)
    [    1.410261] printk: console [ttyS2] disabled
    [    1.414709] 2800000.serial: ttyS2 at MMIO 0x2800000 (irq = 21, base_baud = 3000000) is a 8250
    [    1.423477] printk: console [ttyS2] enabled
    [    1.431922] printk: bootconsole [ns16550a0] disabled
    [    1.443292] 2820000.serial: ttyS4 at MMIO 0x2820000 (irq = 22, base_baud = 3000000) is a 8250
    [    1.452998] 2830000.serial: ttyS5 at MMIO 0x2830000 (irq = 23, base_baud = 3000000) is a 8250
    [    1.462681] 2840000.serial: ttyS6 at MMIO 0x2840000 (irq = 24, base_baud = 3000000) is a 8250
    [    1.472347] 2850000.serial: ttyS7 at MMIO 0x2850000 (irq = 25, base_baud = 3000000) is a 8250
    [    1.483451] spi-nor spi0.0: unrecognized JEDEC id bytes: ff ef bf 22 00 00
    [    1.490353] spi-nor: probe of spi0.0 failed with error -2
    [    1.501882] davinci_mdio 8000f00.mdio: Configuring MDIO in manual mode
    [    1.546292] davinci_mdio 8000f00.mdio: davinci mdio revision 9.7, bus freq 1000000
    [    1.556029] davinci_mdio 8000f00.mdio: phy[0]: device 8000f00.mdio:00, driver TI DP83867
    [    1.564134] davinci_mdio 8000f00.mdio: phy[1]: device 8000f00.mdio:01, driver TI DP83867
    [    1.572315] am65-cpsw-nuss 8000000.ethernet: initializing am65 cpsw nuss version 0x6BA01103, cpsw version 0x6BA81103 Ports: 3 quirks:00000002
    [    1.585242] am65-cpsw-nuss 8000000.ethernet: Use random MAC address
    [    1.591510] am65-cpsw-nuss 8000000.ethernet: initialized cpsw ale version 1.5
    [    1.598634] am65-cpsw-nuss 8000000.ethernet: ALE Table size 512
    [    1.605295] am65-cpsw-nuss 8000000.ethernet: CPTS ver 0x4e8a010c, freq:500000000, add_val:1 pps:0
    [    1.617708] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
    [    1.623245] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
    [    1.631046] xhci-hcd xhci-hcd.0.auto: hcc params 0x0258fe6d hci version 0x110 quirks 0x0000000000010010
    [    1.640486] xhci-hcd xhci-hcd.0.auto: irq 255, io mem 0x31000000
    [    1.646766] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.10
    [    1.655028] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    1.662241] usb usb1: Product: xHCI Host Controller
    [    1.667113] usb usb1: Manufacturer: Linux 5.10.140+ xhci-hcd
    [    1.672770] usb usb1: SerialNumber: xhci-hcd.0.auto
    [    1.678127] hub 1-0:1.0: USB hub found
    [    1.681907] hub 1-0:1.0: 1 port detected
    [    1.686053] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
    [    1.691549] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
    [    1.699206] xhci-hcd xhci-hcd.0.auto: Host supports USB 3.0 SuperSpeed
    [    1.705769] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
    [    1.713936] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.10
    [    1.722190] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    1.729402] usb usb2: Product: xHCI Host Controller
    [    1.734276] usb usb2: Manufacturer: Linux 5.10.140+ xhci-hcd
    [    1.739926] usb usb2: SerialNumber: xhci-hcd.0.auto
    [    1.745169] hub 2-0:1.0: USB hub found
    [    1.748937] hub 2-0:1.0: config failed, hub doesn't have any ports! (err -19)
    [    1.758201] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
    [    1.763737] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 3
    [    1.771529] xhci-hcd xhci-hcd.1.auto: hcc params 0x0258fe6d hci version 0x110 quirks 0x0000000000010010
    [    1.780967] xhci-hcd xhci-hcd.1.auto: irq 256, io mem 0x31100000
    [    1.787245] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.10
    [    1.795528] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    1.802741] usb usb3: Product: xHCI Host Controller
    [    1.807611] usb usb3: Manufacturer: Linux 5.10.140+ xhci-hcd
    [    1.813261] usb usb3: SerialNumber: xhci-hcd.1.auto
    [    1.818571] hub 3-0:1.0: USB hub found
    [    1.822340] hub 3-0:1.0: 1 port detected
    [    1.826492] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
    [    1.831981] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 4
    [    1.839636] xhci-hcd xhci-hcd.1.auto: Host supports USB 3.0 SuperSpeed
    [    1.846205] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
    [    1.854374] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.10
    [    1.862629] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    1.869840] usb usb4: Product: xHCI Host Controller
    [    1.874710] usb usb4: Manufacturer: Linux 5.10.140+ xhci-hcd
    [    1.880362] usb usb4: SerialNumber: xhci-hcd.1.auto
    [    1.885600] hub 4-0:1.0: USB hub found
    [    1.889367] hub 4-0:1.0: config failed, hub doesn't have any ports! (err -19)
    [    1.898799] rtc-ti-k3 2b1f0000.rtc: registered as rtc0
    [    1.903986] rtc-ti-k3 2b1f0000.rtc: setting system clock to 1970-01-01T00:00:09 UTC (9)
    [    2.017076] mmc0: CQHCI version 5.10
    [    2.021173] davinci-mcasp 2b00000.mcasp: IRQ common not found
    [    2.031380] davinci-mcasp 2b10000.mcasp: IRQ common not found
    [    2.045257] pinctrl-single f4000.pinctrl: pin PIN115 already requested by 2800000.serial; cannot claim for 601000.gpio
    [    2.055983] pinctrl-single f4000.pinctrl: pin-115 (601000.gpio) status -22
    [    2.062218] mmc0: SDHCI controller on fa10000.mmc [fa10000.mmc] using ADMA 64-bit
    [    2.062848] pinctrl-single f4000.pinctrl: could not request pin 115 (PIN115) from group main-gpio1-pins-default  on device pinctrl-single
    [    2.062855] davinci_gpio 601000.gpio: Error applying setting, reverse things back
    [    2.062878] davinci_gpio: probe of 601000.gpio failed with error -22
    [    2.086307] usb 3-1: new high-speed USB device number 2 using xhci-hcd
    [    2.107756] mmc1: CQHCI version 5.10
    [    2.109548] debugfs: Directory 'pd:182' with parent 'pm_genpd' already present!
    [    2.125408] ALSA device list:
    [    2.128401]   #0: sm2s-am62x
    [    2.146749] mmc0: Command Queue Engine enabled
    [    2.146877] mmc1: SDHCI controller on fa00000.mmc [fa00000.mmc] using ADMA 64-bit
    [    2.151227] mmc0: new HS200 MMC card at address 0001
    [    2.159555] Waiting for root device PARTUUID=fd7df5ef-02...
    [    2.164561] mmcblk0: mmc0:0001 IB2916 14.6 GiB 
    [    2.174001] mmcblk0boot0: mmc0:0001 IB2916 partition 1 4.00 MiB
    [    2.180130] mmcblk0boot1: mmc0:0001 IB2916 partition 2 4.00 MiB
    [    2.186341] mmcblk0rpmb: mmc0:0001 IB2916 partition 3 4.00 MiB, chardev (236:0)
    [    2.244840] mmc1: new ultra high speed SDR104 SDHC card at address aaaa
    [    2.250548] usb 3-1: New USB device found, idVendor=1a40, idProduct=0101, bcdDevice= 1.00
    [    2.252220] mmcblk1: mmc1:aaaa SD32G 29.7 GiB 
    [    2.259633] usb 3-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
    [    2.265672]  mmcblk1: p1 p2
    [    2.271189] usb 3-1: Product: USB 2.0 Hub [MTT]
    [    2.326431] hub 3-1:1.0: USB hub found
    [    2.330236] hub 3-1:1.0: 4 ports detected
    [    2.437478] EXT4-fs (mmcblk1p2): recovery complete
    [    2.443154] EXT4-fs (mmcblk1p2): mounted filesystem with ordered data mode. Opts: (null)
    [    2.451310] VFS: Mounted root (ext4 filesystem) on device 179:98.
    [    2.458042] devtmpfs: mounted
    [    2.462546] Freeing unused kernel memory: 2176K
    [    2.467142] Run /sbin/init as init process
    [    2.471231]   with arguments:
    [    2.471234]     /sbin/init
    [    2.471237]   with environment:
    [    2.471240]     HOME=/
    [    2.471243]     TERM=linux
    [    2.591454] systemd[1]: System time before build time, advancing clock.
    [    2.633205] NET: Registered protocol family 10
    [    2.638861] Segment Routing with IPv6
    [    2.657182] systemd[1]: systemd 244.5+ 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)
    [    2.679293] systemd[1]: Detected architecture arm64.
    [    2.719073] systemd[1]: Set hostname to <sm2s-am6254>.
    [    2.938640] systemd[1]: /lib/systemd/system/startwlansta.service:7: Unknown key name 'After' in section 'Service', ignoring.
    [    2.951040] systemd[1]: /lib/systemd/system/startwlanap.service:7: Unknown key name 'After' in section 'Service', ignoring.
    [    3.060094] random: systemd: uninitialized urandom read (16 bytes read)
    [    3.067067] systemd[1]: system-getty.slice: unit configures an IP firewall, but the local system does not support BPF/cgroup firewalling.
    [    3.079414] systemd[1]: (This warning is only shown for the first unit using IP firewalling.)
    [    3.090566] systemd[1]: Created slice system-getty.slice.
    [    3.110470] random: systemd: uninitialized urandom read (16 bytes read)
    [    3.118321] systemd[1]: Created slice system-serial\x2dgetty.slice.
    [    3.142449] random: systemd: uninitialized urandom read (16 bytes read)
    [    3.150027] systemd[1]: Created slice User and Session Slice.
    [    3.170777] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
    [    3.194600] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
    [    3.218606] systemd[1]: Reached target Host and Network Name Lookups.
    [    3.242418] systemd[1]: Reached target Paths.
    [    3.258397] systemd[1]: Reached target Remote File Systems.
    [    3.278397] systemd[1]: Reached target Slices.
    [    3.294412] systemd[1]: Reached target Swap.
    [    3.315075] systemd[1]: Listening on RPCbind Server Activation Socket.
    [    3.338537] systemd[1]: Reached target RPC Port Mapper.
    [    3.363080] systemd[1]: Listening on Process Core Dump Socket.
    [    3.386775] systemd[1]: Listening on initctl Compatibility Named Pipe.
    [    3.418221] systemd[1]: Condition check resulted in Journal Audit Socket being skipped.
    [    3.427085] systemd[1]: Listening on Journal Socket (/dev/log).
    [    3.451045] systemd[1]: Listening on Journal Socket.
    [    3.467178] systemd[1]: Listening on Network Service Netlink Socket.
    [    3.490983] systemd[1]: Listening on udev Control Socket.
    [    3.510779] systemd[1]: Listening on udev Kernel Socket.
    [    3.534840] systemd[1]: Mounting Huge Pages File System...
    [    3.554637] systemd[1]: Mounting POSIX Message Queue File System...
    [    3.582772] systemd[1]: Mounting Kernel Debug File System...
    [    3.611172] systemd[1]: Mounting Temporary Directory (/tmp)...
    [    3.630989] systemd[1]: Starting Create list of static device nodes for the current kernel...
    [    3.658652] systemd[1]: Starting Start psplash boot splash screen...
    [    3.687165] systemd[1]: Starting RPC Bind...
    [    3.702776] systemd[1]: Condition check resulted in File System Check on Root Device being skipped.
    [    3.717475] systemd[1]: Starting Journal Service...
    [    3.749083] systemd[1]: Starting Load Kernel Modules...
    [    3.764714] cryptodev: loading out-of-tree module taints kernel.
    [    3.772703] cryptodev: driver 1.10 loaded.
    [    3.775286] systemd[1]: Starting Remount Root and Kernel File Systems...
    [    3.793885] EXT4-fs (mmcblk1p2): re-mounted. Opts: (null)
    [    3.804596] systemd[1]: Starting udev Coldplug all Devices...
    [    3.829333] systemd[1]: Started RPC Bind.
    [    3.847164] systemd[1]: Started Journal Service.
    [    4.065149] random: systemd-journal: uninitialized urandom read (16 bytes read)
    [    4.088598] random: systemd: uninitialized urandom read (16 bytes read)
    [    4.100787] random: systemd-journal: uninitialized urandom read (16 bytes read)
    [    4.113256] systemd-journald[191]: Received client request to flush runtime journal.
    [    4.858748] k3-m4-rproc 5000000.m4fss: assigned reserved memory node m4f-dma-memory@9cb00000
    [    4.881939] k3-m4-rproc 5000000.m4fss: configured M4 for remoteproc mode
    [    4.922494] k3-m4-rproc 5000000.m4fss: local reset is deasserted for device
    [    4.966695] remoteproc remoteproc0: 5000000.m4fss is available
    [    4.973761] remoteproc remoteproc0: Direct firmware load for am62-mcu-m4f0_0-fw failed with error -2
    [    4.983014] remoteproc remoteproc0: powering up 5000000.m4fss
    [    4.988886] remoteproc remoteproc0: Direct firmware load for am62-mcu-m4f0_0-fw failed with error -2
    [    5.003300] remoteproc remoteproc0: request_firmware failed: -2
    [    5.200023] random: systemd: uninitialized urandom read (16 bytes read)
    [    5.206848] random: systemd: uninitialized urandom read (16 bytes read)
    [    5.232402] platform 78000000.r5f: R5F core may have been powered on by a different host, programmed state (0) != actual state (1)
    [    5.250168] random: systemd: uninitialized urandom read (16 bytes read)
    [    5.270552] platform 78000000.r5f: configured R5F for IPC-only mode
    [    5.290535] platform 78000000.r5f: assigned reserved memory node r5f-dma-memory@9d900000
    [    5.300826] remoteproc remoteproc1: 78000000.r5f is available
    [    5.316529] remoteproc remoteproc1: attaching to 78000000.r5f
    [    5.331296] platform 78000000.r5f: R5F core initialized in IPC-only mode
    [    5.348916]  remoteproc1#vdev0buffer: assigned reserved memory node r5f-dma-memory@9d900000
    [    5.371024] virtio_rpmsg_bus virtio0: rpmsg host is online
    [    5.376768] virtio_rpmsg_bus virtio0: creating channel ti.ipc4.ping-pong addr 0xd
    [    5.386199] virtio_rpmsg_bus virtio0: creating channel rpmsg_chrdev addr 0xe
    [    5.423012]  remoteproc1#vdev0buffer: registered virtio0 (type 7)
    [    5.438438] remoteproc remoteproc1: remote processor 78000000.r5f is now attached
    [    5.462618] PVR_K:  210: Read BVNC 33.15.11.3 from HW device registers
    [    5.469263] PVR_K:  210: RGX Device registered with BVNC 33.15.11.3
    [    5.494495] [drm] Initialized pvr 1.15.6133109 20170530 for fd00000.gpu on minor 0
    [    6.220333] random: systemd: uninitialized urandom read (16 bytes read)
    [    6.414348] random: crng init done
    [    6.417785] random: 121 urandom warning(s) missed due to ratelimiting
    [    6.569470] remoteproc remoteproc2: 30074000.pru is available
    [    6.583933] cdns-csi2rx 30101000.csi-bridge: Probed CSI2RX with 4/4 lanes, 4 streams, external D-PHY
    [    6.587637] remoteproc remoteproc3: 30078000.pru is available
    [    6.933696] FAT-fs (mmcblk1p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
    [    7.607629] Bluetooth: Core ver 2.22
    [    7.614485] NET: Registered protocol family 31
    [    7.619125] Bluetooth: HCI device and connection manager initialized
    [    7.631524] Bluetooth: HCI socket layer initialized
    [    7.638041] Bluetooth: L2CAP socket layer initialized
    [    7.643678] Bluetooth: SCO socket layer initialized
    [    7.645888] cfg80211: Loading compiled-in X.509 certificates for regulatory database
    [    7.727362] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
    [    7.857777] am65-cpsw-nuss 8000000.ethernet: down msc_sl e0000000 tmo 0
    [    7.888440] am65-cpsw-nuss 8000000.ethernet: set new flow-id-base 19
    [    7.906066] am65-cpsw-nuss 8000000.ethernet eth1: PHY [8000f00.mdio:01] driver [TI DP83867] (irq=POLL)
    [    7.926237] am65-cpsw-nuss 8000000.ethernet eth1: configuring for phy/rgmii-rxid link mode
    [    7.955738] am65-cpsw-nuss 8000000.ethernet: down msc_sl e0000000 tmo 0
    [    7.973959] am65-cpsw-nuss 8000000.ethernet eth0: PHY [8000f00.mdio:00] driver [TI DP83867] (irq=POLL)
    [    7.987449] am65-cpsw-nuss 8000000.ethernet eth0: configuring for phy/rgmii-rxid link mode
    [   10.870539] PVR_K:  848: RGX Firmware image 'rgx.fw.33.15.11.3' loaded
    [   10.883829] PVR_K:  848: Shader binary image 'rgx.sh.33.15.11.3' loaded
    
    root@xxx:~# media-ctl -p
    Media controller API version 5.10.140
    
    Media device information
    ------------------------
    driver          j721e-csi2rx
    model           TI-CSI2RX
    serial          
    bus info        platform:30102000.ticsi2rx
    hw revision     0x1
    driver version  5.10.140
    
    Device topology
    - entity 1: 30102000.ticsi2rx (5 pads, 5 links, 1 route)
                type V4L2 subdev subtype Unknown flags 0
                device node name /dev/v4l-subdev0
            routes:
                    0/0 -> 1/0 [ACTIVE]
            pad0: Sink
                    [stream:0 fmt:UYVY8_2X8/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
                    <- "cdns_csi2rx.30101000.csi-bridge":1 [ENABLED,IMMUTABLE]
            pad1: Source
                    [stream:0 fmt:UYVY8_2X8/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
                    -> "30102000.ticsi2rx context 0":0 [ENABLED,IMMUTABLE]
            pad2: Source
                    -> "30102000.ticsi2rx context 1":0 [ENABLED,IMMUTABLE]
            pad3: Source
                    -> "30102000.ticsi2rx context 2":0 [ENABLED,IMMUTABLE]
            pad4: Source
                    -> "30102000.ticsi2rx context 3":0 [ENABLED,IMMUTABLE]
    
    - entity 7: cdns_csi2rx.30101000.csi-bridge (5 pads, 2 links, 0 route)
                type V4L2 subdev subtype Unknown flags 0
                device node name /dev/v4l-subdev1
            pad0: Sink
                    [stream:0 fmt:UYVY8_2X8/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
                    <- "ov5640 1-003c":0 [ENABLED,IMMUTABLE]
            pad1: Source
                    [stream:0 fmt:UYVY8_2X8/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
                    -> "30102000.ticsi2rx":0 [ENABLED,IMMUTABLE]
            pad2: Source
                    [stream:0 fmt:UYVY8_2X8/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
            pad3: Source
                    [stream:0 fmt:UYVY8_2X8/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
            pad4: Source
                    [stream:0 fmt:UYVY8_2X8/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
    
    - entity 13: ov5640 1-003c (1 pad, 1 link, 0 route)
                 type V4L2 subdev subtype Sensor flags 0
                 device node name /dev/v4l-subdev2
            pad0: Source
                    [stream:0 fmt:UYVY8_2X8/640x480@1/30 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:full-range]
                    -> "cdns_csi2rx.30101000.csi-bridge":0 [ENABLED,IMMUTABLE]
    
    - entity 19: 30102000.ticsi2rx context 0 (1 pad, 1 link, 0 route)
                 type Node subtype V4L flags 0
                 device node name /dev/video0
            pad0: Sink
                    <- "30102000.ticsi2rx":1 [ENABLED,IMMUTABLE]
    
    - entity 25: 30102000.ticsi2rx context 1 (1 pad, 1 link, 0 route)
                 type Node subtype V4L flags 0
                 device node name /dev/video1
            pad0: Sink
                    <- "30102000.ticsi2rx":2 [ENABLED,IMMUTABLE]
    
    - entity 31: 30102000.ticsi2rx context 2 (1 pad, 1 link, 0 route)
                 type Node subtype V4L flags 0
                 device node name /dev/video2
            pad0: Sink
                    <- "30102000.ticsi2rx":3 [ENABLED,IMMUTABLE]
    
    - entity 37: 30102000.ticsi2rx context 3 (1 pad, 1 link, 0 route)
                 type Node subtype V4L flags 0
                 device node name /dev/video3
            pad0: Sink
                    <- "30102000.ticsi2rx":4 [ENABLED,IMMUTABLE]
    
    

  • Hello Maulik,

    Thanks for providing the log. They both look good to me.

    root@xxx:~# v4l2-ctl --device /dev/video0 --stream-mmap --stream-to=frame.raw --stream-count=1
    [ 1084.854969] cdns-mipi-dphy 30110000.phy: DPHY wait for lane ready timeout
    [ 1084.861779] cdns-csi2rx 30101000.csi-bridge: Failed to configure external DPHY: -110
    VIDIOC_STREAMON returned -1 (Connection timed out)

    This error indicates time out when configuring the Cadence DPHY. I'm not sure what could be the root cause.

    I noticed that in your device tree, the CSI interface has 4 data lanes. So does your CSI interface actually have 4 data lanes? The CSI interface on TI's AM62x starter kit EVM supports only 2 data lanes, so the default device tree in the SDK has only 2 data lanes for CSI interface..

    Regards,

    Jianzhong

  • Hello Maulik,

    Thanks for providing the log. They both look good to me.

    root@xxx:~# v4l2-ctl --device /dev/video0 --stream-mmap --stream-to=frame.raw --stream-count=1
    [ 1084.854969] cdns-mipi-dphy 30110000.phy: DPHY wait for lane ready timeout
    [ 1084.861779] cdns-csi2rx 30101000.csi-bridge: Failed to configure external DPHY: -110
    VIDIOC_STREAMON returned -1 (Connection timed out)

    This error indicates time out when configuring the Cadence DPY. I'm not sure what could be the root cause.

    I noticed that in your device tree, the CSI interface has 4 data lanes. So does your CSI interface actually have 4 data lanes? The CSI interface on TI's AM62x starter kit EVM supports only 2 data lanes, so the default device tree in the SDK has only 2 data lanes for CSI interface..

    Regards,

    Jianzhong

  • Hi Jianzhong,

    My CSI interface actually have 4 data lanes. I tried with 2 data lanes also but it is not working. Can you please do the needful?

    root@xxx~# dmesg | grep csi
    [ 6.474474] cdns-csi2rx 30101000.csi-bridge: Probed CSI2RX with 2/4 lanes, 4 streams, external D-PHY

    root@xxx:~# v4l2-ctl --device /dev/video0 --stream-mmap --stream-to=frame.raw --stream-count=1
    [ 97.703700] cdns-mipi-dphy 30110000.phy: DPHY wait for lane ready timeout
    [ 97.710513] cdns-csi2rx 30101000.csi-bridge: Failed to configure external DPHY: -110
    VIDIOC_STREAMON returned -1 (Connection timed out)

    Thanks,

    Maulik Manvar

  • Hello Maulik,

    The DPHY error happens here in the source code: https://git.ti.com/cgit/ti-linux-kernel/ti-linux-kernel/tree/drivers/phy/cadence/cdns-dphy.c?h=ti-linux-5.10.y#n585.

    Can you modify your code to print out some debugging stats, such as the return value "ret"?

    I'll also check internally for reasons that could cause the timeout.

    Regards,

    Jianzhong

  • Hello Maulik,

    Which version of SDK are you using? Can you please try the latest release (8.6) from https://www.ti.com/tool/PROCESSOR-SDK-AM62X? There was a bug in DPHY driver in 8.4 release.

    Regards,

    Jianzhong

  • Hello Maulik,

    I have not heard back from you. I assume this issue has been resolved.

    Regards,

    Jianzhong

  • Hi Jianzhong,

    Still I need to check with 8.6 SDK. I will share my feedback once finalise the latest 8.6 tisdk integration with repository.

    Thanks,

    Maulik

  • Hi Maulik,

    Yes, please keep us updated.

    Thank you.

    Jianzhonjg

  • Hi Jianzhong,

    Now, Our Team integrated repo with latest ti 8.6 SDK. I tried to capture images with below command.

    gst-launch-1.0 v4l2src num-buffers=1 device=/dev/video0 ! videoconvert ! jpegenc ! multifilesink location=1_image_HD_d.jpg

    I am getting below image as an output of above command.

    Can you share the steps how to clear this image and also correct us how to solve the issue. Can you also share commands for video recording ?

    Thanks,

    Maulik Manvar

  • Hello Maulik Manvar,

    Please check some example commands here. You may also want to capture multiple images because the first captured image may not have valid data due to cold start up.

    Regards,

    Jianzhong

  • Hello Maulik Manvar,

    I looked at your GStreamer pipeline again and think the "videoconvert" may be problematic. I tried the following and it worked fine:

    root@am62xx-evm:~# media-ctl --set-v4l2 "'ov5640 4-003c':0 [fmt:UYVY8_1X16/1920x1080@1/30 field:none]"
    root@am62xx-evm:~# gst-launch-1.0 v4l2src num-buffers=1 device=/dev/video0 ! video/x-raw , width=1920, height=1080 ! jpegenc ! multifilesink location=image_1920x1080.jpg

    Please also refer to the AM62x Linux Academy - Use Camera for more details about how to configure the sensor format.

    Regards,

    Jianzhong

  • Hi Jianzhong,

    I tried your suggestions and I was able to get the proper image two times. In 5 trials, I succeeded only for one time with 1280x720 resolution.

    root@am6254:~# media-ctl --set-v4l2 "'ov5640 1-003c':0 [fmt:UYVY8_1X16/1280x720@1/30 field:none]"

    root@am6254:~# gst-launch-1.0 v4l2src num-buffers=1 device=/dev/video0 ! video/x-raw , width=1280, height=720 ! jpegenc ! multifilesink location=image_1280x720.jpg
    Setting pipeline to PAUSED ...
    Pipeline is live and does not need PREROLL ...
    Setting pipeline to PLAYING ...
    New clock: GstSystemClock
    Got EOS from element "pipeline0".
    Execution ended after 0:00:02.176380500
    Setting pipeline to NULL ...
    [ 113.948738] ti-udma 485c0100.dma-controller: chan1 teardown timeout!
    Freeing pipeline ...


    root@am6254:~# gst-launch-1.0 v4l2src num-buffers=1 device=/dev/video0 ! video/x-raw , width=1280, height=720 ! jpegenc ! multifilesink location=2image_1280x720.jpg
    Setting pipeline to PAUSED ...
    Pipeline is live and does not need PREROLL ...
    Setting pipeline to PLAYING ...
    New clock: GstSystemClock
    Got EOS from element "pipeline0".
    Execution ended after 0:00:00.425276790
    Setting pipeline to NULL ...
    [ 126.428740] ti-udma 485c0100.dma-controller: chan1 teardown timeout!
    Freeing pipeline ...


    root@am6254:~# gst-launch-1.0 v4l2src num-buffers=1 device=/dev/video0 ! video/x-raw , width=1280, height=720 ! jpegenc ! multifilesink location=3image_1280x720.jpg
    Setting pipeline to PAUSED ...
    Pipeline is live and does not need PREROLL ...
    Setting pipeline to PLAYING ...
    New clock: GstSystemClock
    Got EOS from element "pipeline0".
    Execution ended after 0:00:00.411141880
    Setting pipeline to NULL ...
    Freeing pipeline ...


    root@am6254:~# gst-launch-1.0 v4l2src num-buffers=1 device=/dev/video0 ! video/x-raw , width=1280, height=720 ! jpegenc ! multifilesink location=4image_1280x720.jpg
    Setting pipeline to PAUSED ...
    Pipeline is live and does not need PREROLL ...
    Setting pipeline to PLAYING ...
    New clock: GstSystemClock
    Got EOS from element "pipeline0".
    Execution ended after 0:00:00.432719370
    Setting pipeline to NULL ...
    [ 154.972736] ti-udma 485c0100.dma-controller: chan1 teardown timeout!
    Freeing pipeline ...

    At 4th try I was able to capture full clear image. In 1st,2nd and 3rd try I get green colour in an image.

    For 1920x1080 resolution, whenever I try to follow your suggestions, every time I get  Gstreamer v4l2src: Failed to allocate required memory

    Thanks,

    Maulik

  • Hi Maulik,

    At 4th try I was able to capture full clear image. In 1st,2nd and 3rd try I get green colour in an image.

    After you change the format, do a "media-ctl -p" to verify the format is changed for both "ov5640" and "cdns_csi2rx.30101000.csi-bridge":

    root@am62xx-evm:~# media-ctl --set-v4l2 "'ov5640 4-003c':0 [fmt:UYVY8_1X16/1280x760@1/30 field:none]"
    root@am62xx-evm:~# media-ctl -p
    Media controller API version 5.10.168
    
    Media device information
    ------------------------
    driver          j721e-csi2rx
    model           TI-CSI2RX
    serial
    bus info        platform:30102000.ticsi2rx
    hw revision     0x1
    driver version  5.10.168
    
    Device topology
    - entity 1: 30102000.ticsi2rx (5 pads, 5 links, 1 route)
                type V4L2 subdev subtype Unknown flags 0
                device node name /dev/v4l-subdev0
            routes:
                    0/0 -> 1/0 [ACTIVE]
            pad0: Sink
                    [stream:0 fmt:UYVY8_1X16/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
                    <- "cdns_csi2rx.30101000.csi-bridge":1 [ENABLED,IMMUTABLE]
            pad1: Source
                    [stream:0 fmt:UYVY8_1X16/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
                    -> "30102000.ticsi2rx context 0":0 [ENABLED,IMMUTABLE]
            pad2: Source
                    -> "30102000.ticsi2rx context 1":0 [ENABLED,IMMUTABLE]
            pad3: Source
                    -> "30102000.ticsi2rx context 2":0 [ENABLED,IMMUTABLE]
            pad4: Source
                    -> "30102000.ticsi2rx context 3":0 [ENABLED,IMMUTABLE]
    
    - entity 7: cdns_csi2rx.30101000.csi-bridge (5 pads, 2 links, 0 route)
                type V4L2 subdev subtype Unknown flags 0
                device node name /dev/v4l-subdev1
            pad0: Sink
                    [stream:0 fmt:UYVY8_1X16/1280x720 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:full-range]
                    <- "ov5640 4-003c":0 [ENABLED,IMMUTABLE]
            pad1: Source
                    [stream:0 fmt:UYVY8_1X16/1280x720 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:full-range]
                    -> "30102000.ticsi2rx":0 [ENABLED,IMMUTABLE]
            pad2: Source
                    [stream:0 fmt:UYVY8_1X16/1280x720 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:full-range]
            pad3: Source
                    [stream:0 fmt:UYVY8_1X16/1280x720 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:full-range]
            pad4: Source
                    [stream:0 fmt:UYVY8_1X16/1280x720 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:full-range]
    
    - entity 13: ov5640 4-003c (1 pad, 1 link, 0 route)
                 type V4L2 subdev subtype Sensor flags 0
                 device node name /dev/v4l-subdev2
            pad0: Source
                    [stream:0 fmt:UYVY8_1X16/1280x720@1/30 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:full-range
                     crop.bounds:(0,0)/2624x1964
                     crop:(0,250)/2624x1456]
                    -> "cdns_csi2rx.30101000.csi-bridge":0 [ENABLED,IMMUTABLE]

    You can also try to capture multiple images at the same time. Usually the first image may be blank and the rest should be good.

    root@am62xx-evm:~# media-ctl --set-v4l2 "'ov5640 4-003c':0 [fmt:UYVY8_1X16/1280x760@1/30 field:none]"
    root@am62xx-evm:~# gst-launch-1.0 v4l2src num-buffers=5 device=/dev/video0 ! video/x-raw , width=1280, height=760 ! jpegenc ! multifilesink location=image_1280x760_%d.jpg

    For 1920x1080 resolution, whenever I try to follow your suggestions, every time I get  Gstreamer v4l2src: Failed to allocate required memory

    Not sure if this is due to insufficient memory in your system, but you can try to use Yavta to capture so that you can isolate any GStreamer issues:

    root@am62xx-evm:~# media-ctl --set-v4l2 "'ov5640 4-003c':0 [fmt:UYVY8_1X16/1920x1080@1/30 field:none]"
    root@am62xx-evm:~# yavta -c -Fov5640-1920x1080.cap -s 1920x1080 -f UYVY /dev/video0 -c20

    You can use a Linux utility such as "mplayer" to play the above captured video.

    Regards,

    Jianzhong