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.

AM5718: CMEM error

Part Number: AM5718

Hi! I work with sdk linux (ram based) and i ran into a problem when using application with opencl ->"CMEM Error: init: Failed to open /dev/cmem TIOCL FATAL: The cmemk kernel module is not installed. Consult the OpenCl UserGuid at http://software-dl.ti.com/mctools/esd/docs/opencl/index.html. "
I can not find in the assembly mention of CMEM.
Thanks!

  • Hi, can you please explain more about what you are trying to do? What do you mean by "ram based" Linux? How are you booting? Could you please provide a complete boot log as an attachment to your post?

    The root cause seems to be the module didn't load or wasn't installed. This happens automatically with the SDK when booted from SD Card.

    Can you also please share what version of the SDK you are working with?

    Thank you.

  • Hi! SDK version - 05.03.00.07, ram based - linux kernel used initramfs, bootlog

    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Linux version 4.14.79-ge669d52447 (megacount@megacount-systems) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)) #1 SMP PREEMPT Fri Sep 13 15:17:45 +05 2019
    [    0.000000] CPU: ARMv7 Processor [412fc0f2] revision 2 (ARMv7), cr=30c5387d
    [    0.000000] CPU: div instructions available: patching division code
    [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
    [    0.000000] OF: fdt: Machine model: TI AM5718 IDK
    [    0.000000] Memory policy: Data cache writealloc
    [    0.000000] efi: Getting EFI parameters from FDT:
    [    0.000000] efi: UEFI not found.
    [    0.000000] Reserved memory: created CMA memory pool at 0x0000000095800000, size 56 MiB
    [    0.000000] OF: reserved mem: initialized node ipu2-memory@95800000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created CMA memory pool at 0x0000000099000000, size 64 MiB
    [    0.000000] OF: reserved mem: initialized node dsp1-memory@99000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created CMA memory pool at 0x000000009d000000, size 32 MiB
    [    0.000000] OF: reserved mem: initialized node ipu1-memory@9d000000, compatible id shared-dma-pool
    [    0.000000] cma: Reserved 24 MiB at 0x00000000be400000
    [    0.000000] OMAP4: Map 0x00000000bfd00000 to fe600000 for dram barrier
    [    0.000000] On node 0 totalpages: 212224
    [    0.000000] free_area_init_node: node 0, pgdat c6253d80, node_mem_map ef6a6000
    [    0.000000]   DMA zone: 1728 pages used for memmap
    [    0.000000]   DMA zone: 0 pages reserved
    [    0.000000]   DMA zone: 147456 pages, LIFO batch:31
    [    0.000000]   HighMem zone: 64768 pages, LIFO batch:15
    [    0.000000] DRA722 ES2.0
    [    0.000000] percpu: Embedded 15 pages/cpu @ef649000 s31372 r8192 d21876 u61440
    [    0.000000] pcpu-alloc: s31372 r8192 d21876 u61440 alloc=15*4096
    [    0.000000] pcpu-alloc: [0] 0
    [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 210496
    [    0.000000] Kernel command line: console=ttyO2,115200n8 root=PARTUUID=2bba86a6-02 rdinit=/sbin/init rw rootfstype=ext4 rootwait
    [    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
    [    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
    [    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
    [    0.000000] Memory: 560612K/848896K available (8192K kernel code, 347K rwdata, 2568K rodata, 86016K init, 282K bss, 108060K reserved, 180224K cma-reserved, 234496K highmem)
    [    0.000000] Virtual kernel memory layout:
                       vector  : 0xffff0000 - 0xffff1000   (   4 kB)
                       fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
                       vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
                       lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
                       pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
                       modules : 0xbf000000 - 0xbfe00000   (  14 MB)
                         .text : 0xc0008000 - 0xc0a00000   (10208 kB)
                         .init : 0xc0e00000 - 0xc6200000   (86016 kB)
                         .data : 0xc6200000 - 0xc6256e98   ( 348 kB)
                          .bss : 0xc6258000 - 0xc629ebe0   ( 283 kB)
    [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    [    0.000000] Preemptible hierarchical RCU implementation.
    [    0.000000]  RCU restricting CPUs from NR_CPUS=2 to nr_cpu_ids=1.
    [    0.000000]  Tasks RCU enabled.
    [    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
    [    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
    [    0.000000] GIC: Using split EOI/Deactivate mode
    [    0.000000] OMAP clockevent source: timer1 at 32786 Hz
    [    0.000000] arch_timer: cp15 timer(s) running at 6.14MHz (phys).
    [    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x16af5adb9, max_idle_ns: 440795202250 ns
    [    0.000004] sched_clock: 56 bits at 6MHz, resolution 162ns, wraps every 4398046511023ns
    [    0.000016] Switching to timer-based delay loop, resolution 162ns
    [    0.000353] clocksource: 32k_counter: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 58327039986419 ns
    [    0.000362] OMAP clocksource: 32k_counter at 32768 Hz
    [    0.000807] Console: colour dummy device 80x30
    [    0.000824] WARNING: Your 'console=ttyO2' has been replaced by 'ttyS2'
    [    0.000832] This ensures that you still see kernel messages. Please
    [    0.000839] update your kernel commandline.
    [    0.000860] Calibrating delay loop (skipped), value calculated using timer frequency.. 12.29 BogoMIPS (lpj=61475)
    [    0.000875] pid_max: default: 32768 minimum: 301
    [    0.000990] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.001004] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.001529] CPU: Testing write buffer coherency: ok
    [    0.001568] CPU0: Spectre v2: using ICIALLU workaround
    [    0.001767] /cpus/cpu@0 missing clock-frequency property
    [    0.001781] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
    [    0.039857] Setting up static identity map for 0x80200000 - 0x80200060
    [    0.059864] Hierarchical SRCU implementation.
    [    0.080053] EFI services will not be available.
    [    0.099921] smp: Bringing up secondary CPUs ...
    [    0.099931] smp: Brought up 1 node, 1 CPU
    [    0.099941] SMP: Total of 1 processors activated (12.29 BogoMIPS).
    [    0.099948] CPU: All CPU(s) started in HYP mode.
    [    0.099956] CPU: Virtualization extensions available.
    [    0.100380] devtmpfs: initialized
    [    0.118579] random: get_random_u32 called from bucket_table_alloc+0x108/0x230 with crng_init=0
    [    0.120074] VFP support v0.3: implementor 41 architecture 4 part 30 variant f rev 0
    [    0.120271] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [    0.120287] futex hash table entries: 256 (order: 2, 16384 bytes)
    [    0.124013] pinctrl core: initialized pinctrl subsystem
    [    0.124516] DMI not present or invalid.
    [    0.124763] NET: Registered protocol family 16
    [    0.130821] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [    0.131667] omap_hwmod: l3_main_2 using broken dt data from ocp
    [    0.326950] cpuidle: using governor ladder
    [    0.326985] cpuidle: using governor menu
    [    0.335191] gpio gpiochip0: (gpio): added GPIO chardev (254:0)
    [    0.335262] gpiochip_setup_dev: registered GPIOs 0 to 31 on device: gpiochip0 (gpio)
    [    0.335323] OMAP GPIO hardware version 0.1
    [    0.335982] gpio gpiochip1: (gpio): added GPIO chardev (254:1)
    [    0.336044] gpiochip_setup_dev: registered GPIOs 32 to 63 on device: gpiochip1 (gpio)
    [    0.336713] gpio gpiochip2: (gpio): added GPIO chardev (254:2)
    [    0.336777] gpiochip_setup_dev: registered GPIOs 64 to 95 on device: gpiochip2 (gpio)
    [    0.337447] gpio gpiochip3: (gpio): added GPIO chardev (254:3)
    [    0.337508] gpiochip_setup_dev: registered GPIOs 96 to 127 on device: gpiochip3 (gpio)
    [    0.338162] gpio gpiochip4: (gpio): added GPIO chardev (254:4)
    [    0.338229] gpiochip_setup_dev: registered GPIOs 128 to 159 on device: gpiochip4 (gpio)
    [    0.338892] gpio gpiochip5: (gpio): added GPIO chardev (254:5)
    [    0.338957] gpiochip_setup_dev: registered GPIOs 160 to 191 on device: gpiochip5 (gpio)
    [    0.339620] gpio gpiochip6: (gpio): added GPIO chardev (254:6)
    [    0.339682] gpiochip_setup_dev: registered GPIOs 192 to 223 on device: gpiochip6 (gpio)
    [    0.340377] gpio gpiochip7: (gpio): added GPIO chardev (254:7)
    [    0.340439] gpiochip_setup_dev: registered GPIOs 224 to 255 on device: gpiochip7 (gpio)
    [    0.362189] No ATAGs?
    [    0.362235] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
    [    0.362249] hw-breakpoint: maximum watchpoint size is 8 bytes.
    [    0.362637] omap4_sram_init:Unable to allocate sram needed to handle errata I688
    [    0.362648] omap4_sram_init:Unable to get sram pool needed to handle errata I688
    [    0.363190] OMAP DMA hardware revision 0.0
    [    0.392569] edma 43300000.edma: memcpy is disabled
    [    0.395774] edma 43300000.edma: TI EDMA DMA engine driver
    [    0.402698] omap-dma-engine 4a056000.dma-controller: OMAP DMA engine driver (LinkedList1/2/3 supported)
    [    0.403186] of_get_named_gpiod_flags: can't parse 'gpio' property of node '/fixedregulator-vmain[0]'
    [    0.403411] of_get_named_gpiod_flags: can't parse 'gpio' property of node '/fixedregulator-v3_3d[0]'
    [    0.403692] of_get_named_gpiod_flags: can't parse 'gpio' property of node '/fixedregulator-vtt[0]'
    [    0.406145] omap-iommu 40d01000.mmu: 40d01000.mmu registered
    [    0.406352] omap-iommu 40d02000.mmu: 40d02000.mmu registered
    [    0.406594] omap-iommu 58882000.mmu: 58882000.mmu registered
    [    0.406849] omap-iommu 55082000.mmu: 55082000.mmu registered
    [    0.407164] iommu: Adding device 58820000.ipu to group 1
    [    0.407250] iommu: Adding device 55020000.ipu to group 2
    [    0.407400] iommu: Adding device 40800000.dsp to group 0
    [    0.409793] palmas 0-0058: Irq flag is 0x00000004
    [    0.432380] palmas 0-0058: Muxing GPIO 2f, PWM 0, LED 0
    [    0.433991] SMPS12: supplied by regulator-dummy
    [    0.435698] SMPS3: supplied by VMAIN
    [    0.437242] SMPS45: supplied by regulator-dummy
    [    0.439051] SMPS6: supplied by VMAIN
    [    0.440715] SMPS7: supplied by VMAIN
    [    0.442533] SMPS8: supplied by VMAIN
    [    0.443806] SMPS9: supplied by VMAIN
    [    0.444787] LDO1: supplied by VMAIN
    [    0.450993] random: fast init done
    [    0.451476] LDO2: supplied by VMAIN
    [    0.461323] LDO3: supplied by VMAIN
    [    0.471349] LDO4: supplied by VMAIN
    [    0.481336] LDO5: supplied by regulator-dummy
    [    0.482046] LDO6: supplied by regulator-dummy
    [    0.482736] LDO7: supplied by regulator-dummy
    [    0.483430] LDO8: supplied by regulator-dummy
    [    0.484147] LDO9: supplied by VMAIN
    [    0.491682] LDOLN: supplied by VMAIN
    [    0.501394] LDOUSB: supplied by VMAIN
    [    0.513460] gpiochip_find_base: found new base at 504
    [    0.513599] gpio gpiochip8: (48070000.i2c:tps659038@58:tps659038_gpio): added GPIO chardev (254:8)
    [    0.513672] gpiochip_setup_dev: registered GPIOs 504 to 511 on device: gpiochip8 (48070000.i2c:tps659038@58:tps659038_gpio)
    [    0.514099] omap_i2c 48070000.i2c: bus 0 rev0.12 at 400 kHz
    [    0.514308] media: Linux media interface: v0.10
    [    0.514347] Linux video capture interface: v2.00
    [    0.514433] pps_core: LinuxPPS API ver. 1 registered
    [    0.514441] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.514460] PTP clock support registered
    [    0.514487] EDAC MC: Ver: 3.0.0
    [    0.520879] dmi: Firmware registration failed.
    [    0.521309] omap-mailbox 48840000.mailbox: omap mailbox rev 0x400
    [    0.521509] omap-mailbox 48842000.mailbox: omap mailbox rev 0x400
    [    0.521851] Advanced Linux Sound Architecture Driver Initialized.
    [    0.530964] clocksource: Switched to clocksource arch_sys_counter
    [    0.538502] NET: Registered protocol family 2
    [    0.539040] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
    [    0.539105] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.539231] TCP: Hash tables configured (established 8192 bind 8192)
    [    0.539302] UDP hash table entries: 512 (order: 2, 16384 bytes)
    [    0.539335] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
    [    0.539453] NET: Registered protocol family 1
    [    0.559812] RPC: Registered named UNIX socket transport module.
    [    0.559822] RPC: Registered udp transport module.
    [    0.559830] RPC: Registered tcp transport module.
    [    0.559837] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.559849] PCI: CLS 0 bytes, default 64
    [    5.118977] hw perfevents: no interrupt-affinity property for /pmu, guessing.
    [    5.119105] hw perfevents: enabled with armv7_cortex_a15 PMU driver, 7 counters available
    [    5.120167] workingset: timestamp_bits=14 max_order=18 bucket_order=4
    [    5.124397] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [    5.134943] NFS: Registering the id_resolver key type
    [    5.134966] Key type id_resolver registered
    [    5.134975] Key type id_legacy registered
    [    5.135012] ntfs: driver 2.1.32 [Flags: R/O].
    [    5.136669] bounce: pool size: 64 pages
    [    5.136718] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
    [    5.136729] io scheduler noop registered
    [    5.136738] io scheduler deadline registered
    [    5.136837] io scheduler cfq registered (default)
    [    5.136847] io scheduler mq-deadline registered
    [    5.136856] io scheduler kyber registered
    [    5.141415] pinctrl-single 4a003400.pinmux: 282 pins at pa fc003400 size 1128
    [    5.141577] pinctrl-single 4a002e8c.pinmux: please update dts to use #pinctrl-cells = <1>
    [    5.141652] pinctrl-single 4a002e8c.pinmux: initialized with no interrupts
    [    5.141663] pinctrl-single 4a002e8c.pinmux: 1 pins at pa fc002e8c size 4
    [    5.154395] dra7-pcie 51000000.pcie: Linked as a consumer to phy-4a094000.pciephy.1
    [    5.154569] dra7-pcie 51000000.pcie: GPIO lookup for consumer (null)
    [    5.154577] dra7-pcie 51000000.pcie: using device tree for GPIO lookup
    [    5.154612] of_get_named_gpiod_flags: parsed 'gpios' property of node '/ocp/axi@0/pcie@51000000[0]' - status (0)
    [    5.154781] OF: PCI: host bridge /ocp/axi@0/pcie@51000000 ranges:
    [    5.154816] OF: PCI:    IO 0x20003000..0x20012fff -> 0x00000000
    [    5.154838] OF: PCI:   MEM 0x20013000..0x2fffffff -> 0x20013000
    [    6.155089] dra7-pcie 51000000.pcie: phy link never came up
    [    6.155227] dra7-pcie 51000000.pcie: PCI host bridge to bus 0000:00
    [    6.155240] pci_bus 0000:00: root bus resource [bus 00-ff]
    [    6.155251] pci_bus 0000:00: root bus resource [io  0x0000-0xffff]
    [    6.155262] pci_bus 0000:00: root bus resource [mem 0x20013000-0x2fffffff]
    [    6.155297] pci 0000:00:00.0: [104c:8888] type 01 class 0x060400
    [    6.155329] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit]
    [    6.155390] pci 0000:00:00.0: supports D1
    [    6.155398] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
    [    6.155580] PCI: bus0: Fast back to back transfers disabled
    [    6.155671] PCI: bus1: Fast back to back transfers enabled
    [    6.155708] pci 0000:00:00.0: BAR 0: assigned [mem 0x20100000-0x201fffff 64bit]
    [    6.155727] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
    [    6.156064] pcieport 0000:00:00.0: Signaling PME with IRQ 170
    [    6.156189] pcieport 0000:00:00.0: AER enabled with IRQ 170
    [    6.159183] V3_3D: supplied by smps9
    [    6.159498] vtt_fixed: supplied by V3_3D
    [    6.201717] Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled
    [    6.204451] 48020000.serial: ttyS2 at MMIO 0x48020000 (irq = 45, base_baud = 3000000) is a 8250
    [    7.250401] console [ttyS2] enabled
    [    7.255837] omap_rng 48090000.rng: Random Number Generator ver. 20
    [    7.262956] DSS: OMAP DSS rev 6.1
    [    7.267988] omapdss_dss 58000000.dss: bound 58001000.dispc (ops dispc_component_ops)
    [    7.276466] omapdss_dss 58000000.dss: bound 58040000.encoder (ops hdmi5_component_ops)
    [    7.285492] tpd12s015 encoder@0: GPIO lookup for consumer (null)
    [    7.285500] tpd12s015 encoder@0: using device tree for GPIO lookup
    [    7.285511] of_get_named_gpiod_flags: can't parse 'gpios' property of node '/encoder@0[0]'
    [    7.285519] of_get_named_gpiod_flags: can't parse 'gpio' property of node '/encoder@0[0]'
    [    7.285526] tpd12s015 encoder@0: using lookup tables for GPIO lookup
    [    7.285534] tpd12s015 encoder@0: lookup for GPIO (null) failed
    [    7.285542] tpd12s015 encoder@0: GPIO lookup for consumer (null)
    [    7.285548] tpd12s015 encoder@0: using device tree for GPIO lookup
    [    7.285556] of_get_named_gpiod_flags: can't parse 'gpios' property of node '/encoder@0[1]'
    [    7.285563] of_get_named_gpiod_flags: can't parse 'gpio' property of node '/encoder@0[1]'
    [    7.285570] tpd12s015 encoder@0: using lookup tables for GPIO lookup
    [    7.285576] tpd12s015 encoder@0: lookup for GPIO (null) failed
    [    7.285583] tpd12s015 encoder@0: GPIO lookup for consumer (null)
    [    7.285589] tpd12s015 encoder@0: using device tree for GPIO lookup
    [    7.285619] of_get_named_gpiod_flags: parsed 'gpios' property of node '/encoder@0[2]' - status (0)
    [    7.286501] of_get_named_gpiod_flags: can't parse 'hpd-gpios' property of node '/connector@0[0]'
    [    7.296501] brd: module loaded
    [    7.305012] loop: module loaded
    [    7.312289] m25p80 spi0.0: s25fl256s1 (32768 Kbytes)
    [    7.317335] 7 ofpart partitions found on MTD device spi0.0
    [    7.322927] Creating 7 MTD partitions on "spi0.0":
    [    7.327744] 0x000000000000-0x000000040000 : "QSPI.SPL"
    [    7.333595] 0x000000040000-0x000000140000 : "QSPI.u-boot"
    [    7.339655] 0x000000140000-0x0000001c0000 : "QSPI.u-boot-spl-os"
    [    7.346302] 0x0000001c0000-0x0000001d0000 : "QSPI.u-boot-env"
    [    7.352696] 0x0000001d0000-0x0000001e0000 : "QSPI.u-boot-env.backup1"
    [    7.359752] 0x0000001e0000-0x0000009e0000 : "QSPI.kernel"
    [    7.365796] 0x0000009e0000-0x000002000000 : "QSPI.file-system"
    [    7.372839] mdio_bus fixed-0: GPIO lookup for consumer reset
    [    7.372847] mdio_bus fixed-0: using lookup tables for GPIO lookup
    [    7.372855] mdio_bus fixed-0: lookup for GPIO reset failed
    [    7.372879] libphy: Fixed MDIO Bus: probed
    [    7.379571] mdio_bus 48485000.mdio: GPIO lookup for consumer reset
    [    7.379578] mdio_bus 48485000.mdio: using lookup tables for GPIO lookup
    [    7.379586] mdio_bus 48485000.mdio: lookup for GPIO reset failed
    [    7.431001] davinci_mdio 48485000.mdio: davinci mdio revision 1.6, bus freq 1000000
    [    7.438694] davinci_mdio 48485000.mdio: detected phy mask fffffffc
    [    7.464761] libphy: 48485000.mdio: probed
    [    7.468798] davinci_mdio 48485000.mdio: phy[0]: device 48485000.mdio:00, driver Micrel KSZ9031 Gigabit PHY
    [    7.478575] davinci_mdio 48485000.mdio: phy[1]: device 48485000.mdio:01, driver Micrel KSZ9031 Gigabit PHY
    [    7.489325] cpsw 48484000.ethernet: Detected MACID = 44:ea:d8:14:59:92
    [    7.496000] cpsw 48484000.ethernet: initialized cpsw ale version 1.4
    [    7.502426] cpsw 48484000.ethernet: ALE Table size 1024
    [    7.507683] cpsw 48484000.ethernet: device node lookup for pps timer failed
    [    7.514734] cpsw 48484000.ethernet: cpts: overflow check period 500 (jiffies)
    [    7.522620] cpsw 48484000.ethernet: cpsw: Detected MACID = 44:ea:d8:14:59:93
    [    7.530852] i2c /dev entries driver
    [    7.535111] IR NEC protocol handler initialized
    [    7.539661] IR RC5(x/sz) protocol handler initialized
    [    7.544756] IR RC6 protocol handler initialized
    [    7.549304] IR JVC protocol handler initialized
    [    7.553870] IR Sony protocol handler initialized
    [    7.558505] IR SANYO protocol handler initialized
    [    7.563240] IR Sharp protocol handler initialized
    [    7.567962] IR MCE Keyboard/mouse protocol handler initialized
    [    7.574162] IR XMP protocol handler initialized
    [    7.584270] sdhci: Secure Digital Host Controller Interface driver
    [    7.590480] sdhci: Copyright(c) Pierre Ossman
    [    7.596031] sdhci-pltfm: SDHCI platform and OF driver helper
    [    7.602434] sdhci-omap 4809c000.mmc: GPIO lookup for consumer cd
    [    7.602440] sdhci-omap 4809c000.mmc: using device tree for GPIO lookup
    [    7.602463] of_get_named_gpiod_flags: parsed 'cd-gpios' property of node '/ocp/mmc@4809c000[0]' - status (0)
    [    7.602473] sdhci-omap 4809c000.mmc: Got CD GPIO
    [    7.607109] sdhci-omap 4809c000.mmc: GPIO lookup for consumer wp
    [    7.607113] sdhci-omap 4809c000.mmc: using device tree for GPIO lookup
    [    7.607119] of_get_named_gpiod_flags: can't parse 'wp-gpios' property of node '/ocp/mmc@4809c000[0]'
    [    7.607124] of_get_named_gpiod_flags: can't parse 'wp-gpio' property of node '/ocp/mmc@4809c000[0]'
    [    7.607129] sdhci-omap 4809c000.mmc: using lookup tables for GPIO lookup
    [    7.607134] sdhci-omap 4809c000.mmc: lookup for GPIO wp failed
    [    7.607893] sdhci-omap 4809c000.mmc: no pinctrl state for ddr_1_8v mode
    [    7.614572] sdhci-omap 4809c000.mmc: no pinctrl state for hs200_1_8v mode
    [    7.681188] mmc0: SDHCI controller on 4809c000.mmc [4809c000.mmc] using ADMA
    [    7.688632] sdhci-omap 480b4000.mmc: GPIO lookup for consumer wp
    [    7.688639] sdhci-omap 480b4000.mmc: using device tree for GPIO lookup
    [    7.688649] of_get_named_gpiod_flags: can't parse 'wp-gpios' property of node '/ocp/mmc@480b4000[0]'
    [    7.688659] of_get_named_gpiod_flags: can't parse 'wp-gpio' property of node '/ocp/mmc@480b4000[0]'
    [    7.688665] sdhci-omap 480b4000.mmc: using lookup tables for GPIO lookup
    [    7.688672] sdhci-omap 480b4000.mmc: lookup for GPIO wp failed
    [    7.750976] mmc1: SDHCI controller on 480b4000.mmc [480b4000.mmc] using ADMA
    [    7.758369] of_get_named_gpiod_flags: parsed 'gpios' property of node '/leds/cpu0-led[0]' - status (0)
    [    7.758394] no flags found for gpios
    [    7.758471] of_get_named_gpiod_flags: parsed 'gpios' property of node '/leds/usr0-led[0]' - status (0)
    [    7.758477] no flags found for gpios
    [    7.758537] of_get_named_gpiod_flags: parsed 'gpios' property of node '/leds/heartbeat-led[0]' - status (0)
    [    7.758543] no flags found for gpios
    [    7.758603] of_get_named_gpiod_flags: parsed 'gpios' property of node '/leds/usr1-led[0]' - status (0)
    [    7.758609] no flags found for gpios
    [    7.758671] of_get_named_gpiod_flags: parsed 'gpios' property of node '/leds/usr2-led[0]' - status (0)
    [    7.758676] no flags found for gpios
    [    7.758736] of_get_named_gpiod_flags: parsed 'gpios' property of node '/leds/mmc0-led[0]' - status (0)
    [    7.758741] no flags found for gpios
    [    7.759095] ledtrig-cpu: registered to indicate activity on CPUs
    [    7.771449] NET: Registered protocol family 10
    [    7.776010] mmc0: host does not support reading read-only switch, assuming write-enable
    [    7.784367] mmc0: new high speed SDHC card at address aaaa
    [    7.790167] mmcblk0: mmc0:aaaa SE32G 29.7 GiB
    [    7.795188]  mmcblk0: p1 p2
    [    7.812039] Segment Routing with IPv6
    [    7.815751] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
    [    7.822647] NET: Registered protocol family 17
    [    7.827409] Key type dns_resolver registered
    [    7.831851] omap_voltage_late_init: Voltage driver support not added
    [    7.838258] Power Management for TI OMAP4+ devices.
    [    7.843661] Registering SWP/SWPB emulation handler
    [    7.857602] dmm 4e000000.dmm: workaround for errata i878 in use
    [    7.864995] dmm 4e000000.dmm: initialized all PAT entries
    [    7.871840] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
    [    7.878482] [drm] No driver support for vblank timestamp query.
    [    7.890114] ti-iodelay 4844a000.padconf: Set reg 0x18c Delay(a: 0 g: 0), Elements(C=0 F=0)0x29000
    [    7.899049] ti-iodelay 4844a000.padconf: Set reg 0x1a4 Delay(a: 119 g: 0), Elements(C=0 F=3)0x29003
    [    7.908159] ti-iodelay 4844a000.padconf: Set reg 0x1b0 Delay(a: 0 g: 0), Elements(C=0 F=0)0x29000
    [    7.917091] ti-iodelay 4844a000.padconf: Set reg 0x1bc Delay(a: 18 g: 0), Elements(C=0 F=0)0x29000
    [    7.926110] ti-iodelay 4844a000.padconf: Set reg 0x1c8 Delay(a: 894 g: 0), Elements(C=1 F=12)0x2902c
    [    7.935302] ti-iodelay 4844a000.padconf: Set reg 0x1d4 Delay(a: 30 g: 0), Elements(C=0 F=0)0x29000
    [    7.944320] ti-iodelay 4844a000.padconf: Set reg 0x1e0 Delay(a: 0 g: 0), Elements(C=0 F=0)0x29000
    [    7.953251] ti-iodelay 4844a000.padconf: Set reg 0x1ec Delay(a: 23 g: 0), Elements(C=0 F=0)0x29000
    [    7.962269] ti-iodelay 4844a000.padconf: Set reg 0x1f8 Delay(a: 0 g: 0), Elements(C=0 F=0)0x29000
    [    7.971200] ti-iodelay 4844a000.padconf: Set reg 0x360 Delay(a: 0 g: 0), Elements(C=0 F=0)0x29000
    [    7.980122] ti-iodelay 4844a000.padconf: Set reg 0x194 Delay(a: 152 g: 0), Elements(C=0 F=4)0x29004
    [    7.989225] ti-iodelay 4844a000.padconf: Set reg 0x1ac Delay(a: 206 g: 0), Elements(C=0 F=6)0x29006
    [    7.998329] ti-iodelay 4844a000.padconf: Set reg 0x1b8 Delay(a: 78 g: 0), Elements(C=0 F=2)0x29002
    [    8.007347] ti-iodelay 4844a000.padconf: Set reg 0x1c4 Delay(a: 2 g: 0), Elements(C=0 F=0)0x29000
    [    8.016278] ti-iodelay 4844a000.padconf: Set reg 0x1d0 Delay(a: 266 g: 0), Elements(C=0 F=7)0x29007
    [    8.025382] ti-iodelay 4844a000.padconf: Set reg 0x1dc Delay(a: 0 g: 0), Elements(C=0 F=0)0x29000
    [    8.034312] ti-iodelay 4844a000.padconf: Set reg 0x1e8 Delay(a: 0 g: 0), Elements(C=0 F=0)0x29000
    [    8.043242] ti-iodelay 4844a000.padconf: Set reg 0x1f4 Delay(a: 43 g: 0), Elements(C=0 F=1)0x29001
    [    8.052259] ti-iodelay 4844a000.padconf: Set reg 0x200 Delay(a: 0 g: 0), Elements(C=0 F=0)0x29000
    [    8.061188] ti-iodelay 4844a000.padconf: Set reg 0x368 Delay(a: 0 g: 0), Elements(C=0 F=0)0x29000
    [    8.070110] ti-iodelay 4844a000.padconf: Set reg 0x190 Delay(a: 0 g: 0), Elements(C=0 F=0)0x29000
    [    8.079042] ti-iodelay 4844a000.padconf: Set reg 0x1a8 Delay(a: 0 g: 0), Elements(C=0 F=0)0x29000
    [    8.087980] ti-iodelay 4844a000.padconf: Set reg 0x1b4 Delay(a: 0 g: 0), Elements(C=0 F=0)0x29000
    [    8.096911] ti-iodelay 4844a000.padconf: Set reg 0x1c0 Delay(a: 0 g: 0), Elements(C=0 F=0)0x29000
    [    8.105841] ti-iodelay 4844a000.padconf: Set reg 0x1d8 Delay(a: 0 g: 0), Elements(C=0 F=0)0x29000
    [    8.114770] ti-iodelay 4844a000.padconf: Set reg 0x1e4 Delay(a: 0 g: 0), Elements(C=0 F=0)0x29000
    [    8.123699] ti-iodelay 4844a000.padconf: Set reg 0x1f0 Delay(a: 0 g: 0), Elements(C=0 F=0)0x29000
    [    8.132628] ti-iodelay 4844a000.padconf: Set reg 0x1fc Delay(a: 0 g: 0), Elements(C=0 F=0)0x29000
    [    8.141558] ti-iodelay 4844a000.padconf: Set reg 0x364 Delay(a: 0 g: 0), Elements(C=0 F=0)0x29000
    [    8.152564] mmc1: new DDR MMC card at address 0001
    [    8.157635] mmcblk1: mmc1:0001 R1J56L 13.8 GiB
    [    8.162330] mmcblk1boot0: mmc1:0001 R1J56L partition 1 4.00 MiB
    [    8.168390] mmcblk1boot1: mmc1:0001 R1J56L partition 2 4.00 MiB
    [    8.174476] mmcblk1rpmb: mmc1:0001 R1J56L partition 3 128 KiB
    [    8.411170] [drm] Enabling DMM ywrap scrolling
    [    8.447863] Console: switching to colour frame buffer device 240x67
    [    8.468643] omapdrm omapdrm.0: fb0: omapdrm frame buffer device
    [    8.475133] [drm] Initialized omapdrm 1.0.0 20110917 for omapdrm.0 on minor 0
    [    8.482721] hctosys: unable to open rtc device (rtc0)
    [    8.488377] ALSA device list:
    [    8.491397]   No soundcards found.
    [    8.494834] Warning: unable to open an initial console.
    [    8.537735] Freeing unused kernel memory: 86016K
    [    9.663765] random: dd: uninitialized urandom read (512 bytes read)
    [    9.739674] net eth0: initializing cpsw version 1.15 (0)
    [    9.861924] Micrel KSZ9031 Gigabit PHY 48485000.mdio:00: attached PHY driver [Micrel KSZ9031 Gigabit PHY] (mii_bus:phy_addr=48485000.mdio:00, irq=POLL)
    [    9.882634] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    [   12.009630] cpsw 48484000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
    [   12.017737] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
    
    

  • Hi,

    Can you please share more details about how you are building the initramfs? Have you confirmed you are loading cmem as part of your ramfs boot?

    Can you try booting the full SDK off of SD card to see if you see the same issue?

    Thanks.

  • https://e2e.ti.com/support/processors/f/791/p/816522/3044146 This link wrote to me how to build initramfs (Method 2).  SDK version 05.03.00.07

  • OK, so you used the tiny filesystem that comes with the SDK?

    If so, it does not include all of the modules necessary for something like OpenCL. It is really intended for very small, simple operations. For more complicated things like OpenCL, you will need to either port all the necessary modules over to the tiny FS or use a larger, custom FS that has what you need.

    I hope this is helpful.

  • OpenCL comes in a large SDK (> 5 GB). File transfer does not always work in a tiny file system. To run an application that requires OpenCL, I just added a DLL, this did not work with CMEM

  • Yes, that is probably correct as the cmem kernel module probably has other dependencies that are not resolved just by copying one KO. Did you receive any output when you modprobed the module that listed the dependencies that need to be resolved?

  • I used the command insmod cmemk.ko pools = 4x30000,2x500000 phys_start=0x0 phys_end=0x3000000 and the error is disappeared, but another error appeared - LAD_connect() failed :4 I can assume this is due to access to the directory?

  • It seems this issue was posted before and some suggestions were provided:

    https://e2e.ti.com/support/legacy_forums/embedded/linux/f/354/p/500780/1815013#1815013

    I hope this helps.