Part Number: TDA4VE-Q1
Tool/software:
hello teams:
sdk update from sdk805 to sdk902
target sdk version: 09.02.00.05
tisdk-tiny-image-j721s2-evm.tar.xz
ti-processor-sdk-linux-adas-j721s2-evm-09_02_00_05
question link from: https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1395669/tda4ve-q1-problems-with-creating-and-starting-the-tda4ve-ubi-burning-file-system
why does an error occur when loading ko at startup?
insmod rpmsg_char.ko
[ 909.390390] vmap allocation for size 20480 failed: use vmalloc=<size> to increase size
[ 909.398344] insmod: vmalloc error: size 16384, vm_struct allocation failed, mode:0xcc0(GFP_KERNEL), nodemask=(null),cpuset=/,mems_allowed=0
[ 909.411562] CPU: 1 PID: 281 Comm: insmod Not tainted 6.1.80 #3
[ 909.417835] Hardware name: Texas Instruments J721S2 EVM (DT)
[ 909.423664] Call trace:
[ 909.426098] dump_backtrace.part.0+0xdc/0xf0
[ 909.430366] show_stack+0x18/0x30
[ 909.433669] dump_stack_lvl+0x68/0x84
[ 909.437322] dump_stack+0x18/0x34
[ 909.440624] warn_alloc+0x114/0x1a0
[ 909.444104] __vmalloc_node_range+0x590/0x740
[ 909.448446] module_alloc+0xec/0x100
[ 909.452011] load_module+0xa1c/0x1c80
[ 909.455663] __do_sys_finit_module+0xac/0x104
[ 909.460006] __arm64_sys_finit_module+0x20/0x30
[ 909.464523] invoke_syscall+0x48/0x114
[ 909.468260] el0_svc_common.constprop.0+0xd4/0xfc
[ 909.472950] do_el0_svc+0x20/0x30
[ 909.476251] el0_svc+0x28/0xa0
[ 909.479295] el0t_64_sync_handler+0xbc/0x140
[ 909.483551] el0t_64_sync+0x18c/0x190
[ 909.487228] Mem-Info:
[ 909.489504] active_anon:54 inactive_anon:3261 isolated_anon:0
[ 909.489504] active_file:1438 inactive_file:2907 isolated_file:0
[ 909.489504] unevictable:0 dirty:0 writeback:0
[ 909.489504] slab_reclaimable:2096 slab_unreclaimable:3930
[ 909.489504] mapped:1843 shmem:2237 pagetables:85
[ 909.489504] sec_pagetables:0 bounce:0
[ 909.489504] kernel_misc_reclaimable:0
[ 909.489504] free:540613 free_pcp:5504 free_cma:65103
[ 909.528272] Node 0 active_anon:216kB inactive_anon:13044kB active_file:5752kB inactive_file:11628kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:7372kB dirty:0kB writeback:0kB shmem:8948kB shmem_thp: 0kB shmem_pmdmapped: 0kB anon_thp: 0kB writeback_tmp:0kB kernel_stack:1120kB pagetables:340kB sec_pagetables:0kB all_unreclaimable? no
[ 909.559063] DMA free:986156kB boost:0kB min:19760kB low:24700kB high:29640kB reserved_highatomic:0KB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:2097152kB managed:990132kB mlocked:0kB bounce:0kB free_pcp:2232kB local_pcp:248kB free_cma:260412kB
[ 909.586296] lowmem_reserve[]: 0 0 1234 1234
[ 909.590477] Normal free:1176296kB boost:0kB min:25292kB low:31612kB high:37932kB reserved_highatomic:0KB active_anon:216kB inactive_anon:13044kB active_file:5752kB inactive_file:11628kB unevictable:0kB writepending:0kB present:2097152kB managed:1264624kB mlocked:0kB bounce:0kB free_pcp:19784kB local_pcp:9544kB free_cma:0kB
[ 909.619010] lowmem_reserve[]: 0 0 0 0
[ 909.622670] DMA: 54kB (UMC) 58kB (UMC) 316kB (UMC) 432kB (UMC) 364kB (UM) 3128kB (UM) 3256kB (MC) 5512kB (UM) 31024kB (UM) 42048kB (UMC) 237*4096kB (MC) = 986156kB
[ 909.638143] Normal: 24kB (UM) 7468kB (UM) 9316kB (M) 1832kB (UME) 464kB (ME) 1128kB (M) 2256kB (UM) 2512kB (ME) 11024kB (U) 12048kB (E) 284*4096kB (M) = 1176296kB
[ 909.653530] Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=1048576kB
[ 909.662215] Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=32768kB
[ 909.670725] Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=2048kB
[ 909.679148] Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=64kB
[ 909.687396] 6582 total pagecache pages
[ 909.691134] 0 pages in swap cache
[ 909.694435] Free swap = 0kB
[ 909.697308] Total swap = 0kB
[ 909.700179] 1048576 pages RAM
[ 909.703139] 0 pages HighMem/MovableOnly
[ 909.706963] 484887 pages reserved
[ 909.710263] 65536 pages cma reserved
[ 909.713828] 0 pages hwpoisoned
insmod: ERROR: could not insert module rpmsg_char.ko: Cannot allocate memor
we add vmalloc=400M at bootargs
cat /proc/cmdline console=ttyS2,115200n8 earlycon=serial2 mtdid=spi-nand0 mtdparts=spi-nand0:512k(ospi_nand.tiboot3),512k(ospi_nand.sysfw),10m(ospi_nand.mcu1_0),768k(ospi_nand.atf),19m(ospi_nand.kernel),1m(ospi_nand.dtb),24320k(ospi_nand.lateapp1),256k(ospi_nand.caldata_merge),40m(ospi_nand.lateapp2),32m(ospi_nand.rootfs),256k(ospi_nand.phypattern) ubi part ospi_nand.rootfs ubi.mtd=ospi_nand.rootfs root=ubi0:rootfs rw rootfstype=ubifs rootwait loglevel=7 vmalloc=400M
But still can't load ko
You are in emergency mode. After logging in, type "journalctl -xb" to view system logs, "systemctl reboot" to reboot, "systemctl default" or "exit" to boot into default mode. Press Enter for maintenance (or press Control-D to continue): [ 16.220165] m_can_platform 2691000.can main_mcan15: renamed from can3 [ 16.281513] m_can_platform 26a1000.can main_mcan16: renamed from can4 [ 16.363071] vmap allocation for size 20480 failed: use vmalloc=<size> to increase size [ 16.366804] m_can_platform 27c1000.can main_mcan12: renamed from can0 [ 16.371308] vmap allocation for size 20480 failed: use vmalloc=<size> to increase size [ 16.387593] systemd-udevd: vmalloc error: size 16384, vm_struct allocation failed, mode:0xcc0(GFP_KERNEL), nodemask=(null),cpuset=/,mems_allowed=0 [ 16.411756] vmap allocation for size 32768 failed: use vmalloc=<size> to increase size [ 16.423643] CPU: 0 PID: 195 Comm: systemd-udevd Not tainted 6.1.80-ti-g2e423244f8c0 #1 [ 16.431558] Hardware name: Texas Instruments J721S2 EVM (DT) [ 16.437205] Call trace: [ 16.439646] dump_backtrace.part.0+0xdc/0xf0 [ 16.441375] mtdblock: MTD device 'ospi_nand.tiboot3' is NAND, please consider using UBI block devices instead. [ 16.443920] show_stack+0x18/0x30 [ 16.443932] dump_stack_lvl+0x68/0x84 [ 16.443940] dump_stack+0x18/0x34 [ 16.443944] warn_alloc+0x114/0x1a0 [ 16.443951] __vmalloc_node_range+0x590/0x740 [ 16.443955] module_alloc+0xec/0x100 [ 16.443961] load_module+0xa1c/0x1c80 [ 16.443968] __do_sys_finit_module+0xac/0x104 [ 16.443972] __arm64_sys_finit_module+0x20/0x30 [ 16.443977] invoke_syscall+0x48/0x114 [ 16.454882] mtdblock: MTD device 'ospi_nand.sysfw' is NAND, please consider using UBI block devices instead. [ 16.457252] el0_svc_common.constprop.0+0xd4/0xfc [ 16.462002] mtdblock: MTD device 'ospi_nand.phypattern' is NAND, please consider using UBI block devices instead. [ 16.464200] do_el0_svc+0x20/0x30 [ 16.464206] el0_svc+0x28/0xa0 [ 16.464213] el0t_64_sync_handler+0xbc/0x140 [ 16.464218] el0t_64_sync+0x18c/0x190 [ 16.475324] mtdblock: MTD device 'ospi_nand.mcu1_0' is NAND, please consider using UBI block devices instead. [ 16.482701] m_can_platform 2681000.can main_mcan14: renamed from can2 [ 16.502152] mtdblock: MTD device 'ospi_nand.atf' is NAND, please consider using UBI block devices instead. [ 16.523674] mtdblock: MTD device 'ospi_nand.dtb' is NAND, please consider using UBI block devices instead. [ 16.535440] vmap allocation for size 20480 failed: use vmalloc=<size> to increase size [ 16.542151] vmap allocation for size 32768 failed: use vmalloc=<size> to increase size [ 16.555813] Mem-Info: [ 16.584911] active_anon:8 inactive_anon:5158 isolated_anon:0 [ 16.584911] active_file:1194 inactive_file:2961 isolated_file:0 [ 16.584911] unevictable:0 dirty:0 writeback:0 [ 16.584911] slab_reclaimable:2013 slab_unreclaimable:4085 [ 16.584911] mapped:1778 shmem:2142 pagetables:364 [ 16.584911] sec_pagetables:0 bounce:0 [ 16.584911] kernel_misc_reclaimable:0 [ 16.584911] free:541552 free_pcp:2231 free_cma:65103 [ 16.625556] mtdblock: MTD device 'ospi_nand.kernel' is NAND, please consider using UBI block devices instead. [ 16.626321] mtdblock: MTD device 'ospi_nand.caldata_merge' is NAND, please consider using UBI block devices instead. [ 16.654407] m_can_platform 27d1000.can main_mcan13: renamed from can1 [ 16.663877] mtdblock: MTD device 'ospi_nand.lateapp1' is NAND, please consider using UBI block devices instead. [ 16.695056] mtdblock: MTD device 'ospi_nand.lateapp2' is NAND, please consider using UBI block devices instead. [ 16.707575] mtdblock: MTD device 'ospi_nand.rootfs' is NAND, please consider using UBI block devices instead. [ 16.806902] Node 0 active_anon:32kB inactive_anon:19372kB active_file:4860kB inactive_file:11928kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:7364kB dirty:0kB writeback:0kB shmem:8568kB shmem_thp: 0kB shmem_pmdmapped: 0kB anon_thp: 0kB writeback_tmp:0kB kernel_stack:1520kB pagetables:1204kB sec_pagetables:0kB all_unreclaimable? no [ 16.843755] vmap allocation for size 32768 failed: use vmalloc=<size> to increase size [ 16.853571] vmap allocation for size 32768 failed: use vmalloc=<size> to increase size [ 16.876078] vmap allocation for size 32768 failed: use vmalloc=<size> to increase size [ 16.885787] DMA free:986156kB boost:0kB min:19760kB low:24700kB high:29640kB reserved_highatomic:0KB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:2097152kB managed:990132kB mlocked:0kB bounce:0kB free_pcp:2232kB local_pcp:1984kB free_cma:260412kB [ 16.921076] lowmem_reserve[]: 0 0 1234 1234 [ 16.925525] Normal free:1176528kB boost:0kB min:25292kB low:31612kB high:37932kB reserved_highatomic:0KB active_anon:168kB inactive_anon:19644kB active_file:4912kB inactive_file:11924kB unevictable:0kB writepending:0kB present:2097152kB managed:1264624kB mlocked:0kB bounce:0kB free_pcp:12064kB local_pcp:4696kB free_cma:0kB [ 16.959070] lowmem_reserve[]: 0 0 0 0 [ 16.962989] DMA: 5*4kB (UMC) 5*8kB (UMC) 3*16kB (UMC) 4*32kB (UMC) 3*64kB (UM) 3*128kB (UM) 3*256kB (MC) 5*512kB (UM) 3*1024kB (UM) 4*2048kB (UMC) 237*4096kB (MC) = 986156kB [ 16.979096] Normal: 2*4kB (UE) 809*8kB (M) 82*16kB (UME) 3*32kB (M) 2*64kB (ME) 1*128kB (M) 2*256kB (ME) 1*512kB (E) 0*1024kB 2*2048kB (UE) 284*4096kB (M) = 1176528kB [ 16.999598] Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=1048576kB [ 17.013914] Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=32768kB [ 17.063370] Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=2048kB [ 17.075568] Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=64kB [ 17.092932] 6449 total pagecache pages [ 17.097152] 0 pages in swap cache [ 17.102472] Free swap = 0kB [ 17.107325] Total swap = 0kB [ 17.111371] 1048576 pages RAM [ 17.115576] 0 pages HighMem/MovableOnly [ 17.120443] 484887 pages reserved [ 17.126519] 65536 pages cma reserved [ 17.131279] 0 pages hwpoisoned ~ # ls insmod.sh phyconfig ~ # cd /lib/modules/6.1.80-ti-g2e423244f8c0/ /lib/modules/6.1.80-ti-g2e423244f8c0 # lsmod Module Size Used by /lib/modules/6.1.80-ti-g2e423244f8c0 # ls kernel modules.dep modules.alias modules.dep.bin modules.alias.bin modules.devname modules.builtin modules.order modules.builtin.alias.bin modules.softdep modules.builtin.bin modules.symbols modules.builtin.modinfo modules.symbols.bin /lib/modules/6.1.80-ti-g2e423244f8c0 # cd kernel/ drivers/ samples/ /lib/modules/6.1.80-ti-g2e423244f8c0 # cd kernel/drivers/remoteproc/ /lib/modules/6.1.80-ti-g2e423244f8c0/kernel/drivers/remoteproc # ls pru_rproc.ko ti_k3_dsp_remoteproc.ko ti_k3_r5_remoteproc.ko ti_k3_common.ko ti_k3_m4_remoteproc.ko /lib/modules/6.1.80-ti-g2e423244f8c0/kernel/drivers/remoteproc # cd ../ /lib/modules/6.1.80-ti-g2e423244f8c0/kernel/drivers # cd rpmsg/ /lib/modules/6.1.80-ti-g2e423244f8c0/kernel/drivers/rpmsg # ls rpmsg_char.ko rpmsg_ns.ko virtio_rpmsg_bus.ko rpmsg_ctrl.ko rpmsg_pru.ko /lib/modules/6.1.80-ti-g2e423244f8c0/kernel/drivers/rpmsg # cd ../ /lib/modules/6.1.80-ti-g2e423244f8c0/kernel/drivers # l sh: l: not found /lib/modules/6.1.80-ti-g2e423244f8c0/kernel/drivers # ls remoteproc rpmsg /lib/modules/6.1.80-ti-g2e423244f8c0/kernel/drivers # cd ../ /lib/modules/6.1.80-ti-g2e423244f8c0/kernel # ls drivers samples /lib/modules/6.1.80-ti-g2e423244f8c0/kernel # cd samples/ /lib/modules/6.1.80-ti-g2e423244f8c0/kernel/samples # ls rpmsg /lib/modules/6.1.80-ti-g2e423244f8c0/kernel/samples # cd rpmsg/ /lib/modules/6.1.80-ti-g2e423244f8c0/kernel/samples/rpmsg # ls rpmsg_client_sample.ko /lib/modules/6.1.80-ti-g2e423244f8c0/kernel/samples/rpmsg # insmod rpmsg_client_ sample.ko [ 74.796599] alloc_vmap_area: 2 callbacks suppressed [ 74.796610] vmap allocation for size 20480 failed: use vmalloc=<size> to increase size [ 74.809429] warn_alloc: 9 callbacks suppressed [ 74.809432] insmod: vmalloc error: size 16384, vm_struct allocation failed, mode:0xcc0(GFP_KERNEL), nodemask=(null),cpuset=/,mems_allowed=0 [ 74.826387] CPU: 1 PID: 244 Comm: insmod Not tainted 6.1.80-ti-g2e423244f8c0 #1 [ 74.833678] Hardware name: Texas Instruments J721S2 EVM (DT) [ 74.839319] Call trace: [ 74.841754] dump_backtrace.part.0+0xdc/0xf0 [ 74.846022] show_stack+0x18/0x30 [ 74.849325] dump_stack_lvl+0x68/0x84 [ 74.852979] dump_stack+0x18/0x34 [ 74.856282] warn_alloc+0x114/0x1a0 [ 74.859761] __vmalloc_node_range+0x590/0x740 [ 74.864105] module_alloc+0xec/0x100 [ 74.867671] load_module+0xa1c/0x1c80 [ 74.871324] __do_sys_finit_module+0xac/0x104 [ 74.875667] __arm64_sys_finit_module+0x20/0x30 [ 74.880184] invoke_syscall+0x48/0x114 [ 74.883920] el0_svc_common.constprop.0+0xd4/0xfc [ 74.888610] do_el0_svc+0x20/0x30 [ 74.891913] el0_svc+0x28/0xa0 [ 74.894957] el0t_64_sync_handler+0xbc/0x140 [ 74.899214] el0t_64_sync+0x18c/0x190 [ 74.902889] Mem-Info: [ 74.905155] active_anon:63 inactive_anon:3560 isolated_anon:0 [ 74.905155] active_file:1409 inactive_file:2888 isolated_file:0 [ 74.905155] unevictable:0 dirty:0 writeback:0 [ 74.905155] slab_reclaimable:2080 slab_unreclaimable:3988 [ 74.905155] mapped:1838 shmem:2238 pagetables:89 [ 74.905155] sec_pagetables:0 bounce:0 [ 74.905155] kernel_misc_reclaimable:0 [ 74.905155] free:540611 free_pcp:5237 free_cma:65103 [ 74.943944] Node 0 active_anon:252kB inactive_anon:14240kB active_file:5636kB inactive_file:11552kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:7352kB dirty:0kB writeback:0kB shmem:8952kB shmem_thp: 0kB shmem_pmdmapped: 0kB anon_thp: 0kB writeback_tmp:0kB kernel_stack:1200kB pagetables:356kB sec_pagetables:0kB all_unreclaimable? no [ 74.974735] DMA free:986156kB boost:0kB min:19760kB low:24700kB high:29640kB reserved_highatomic:0KB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:2097152kB managed:990132kB mlocked:0kB bounce:0kB free_pcp:2232kB local_pcp:1984kB free_cma:260412kB [ 75.002054] lowmem_reserve[]: 0 0 1234 1234 [ 75.006234] Normal free:1176288kB boost:0kB min:25292kB low:31612kB high:37932kB reserved_highatomic:0KB active_anon:252kB inactive_anon:14240kB active_file:5636kB inactive_file:11552kB unevictable:0kB writepending:0kB present:2097152kB managed:1264624kB mlocked:0kB bounce:0kB free_pcp:18724kB local_pcp:7844kB free_cma:0kB [ 75.034769] lowmem_reserve[]: 0 0 0 0 [ 75.038423] DMA: 5*4kB (UMC) 5*8kB (UMC) 3*16kB (UMC) 4*32kB (UMC) 3*64kB (UM) 3*128kB (UM) 3*256kB (MC) 5*512kB (UM) 3*1024kB (UM) 4*2048kB (UMC) 237*4096kB (MC) = 986156kB [ 75.053901] Normal: 2*4kB (UE) 809*8kB (M) 81*16kB (ME) 4*32kB (UM) 2*64kB (ME) 1*128kB (M) 3*256kB (UME) 2*512kB (UE) 1*1024kB (U) 1*2048kB (E) 284*4096kB (M) = 1176288kB [ 75.069207] Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=1048576kB [ 75.077888] Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=32768kB [ 75.086395] Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=2048kB [ 75.094818] Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=64kB [ 75.103066] 6538 total pagecache pages [ 75.106805] 0 pages in swap cache [ 75.110107] Free swap = 0kB [ 75.112980] Total swap = 0kB [ 75.115852] 1048576 pages RAM [ 75.118811] 0 pages HighMem/MovableOnly [ 75.122638] 484887 pages reserved [ 75.125938] 65536 pages cma reserved [ 75.129504] 0 pages hwpoisoned insmod: ERROR: could not insert module rpmsg_client_sample.ko: Cannot allocate memory /lib/modules/6.1.80-ti-g2e423244f8c0/kernel/samples/rpmsg # cat /proc/meminfo MemTotal: 2254756 kB MemFree: 2162444 kB MemAvailable: 2102696 kB Buffers: 0 kB Cached: 26152 kB SwapCached: 0 kB Active: 5884 kB Inactive: 25712 kB Active(anon): 248 kB Inactive(anon): 14148 kB Active(file): 5636 kB Inactive(file): 11564 kB Unevictable: 0 kB Mlocked: 0 kB SwapTotal: 0 kB SwapFree: 0 kB Dirty: 0 kB Writeback: 0 kB AnonPages: 5456 kB Mapped: 7288 kB Shmem: 8952 kB KReclaimable: 8320 kB Slab: 24272 kB SReclaimable: 8320 kB SUnreclaim: 15952 kB KernelStack: 1200 kB PageTables: 356 kB SecPageTables: 0 kB NFS_Unstable: 0 kB Bounce: 0 kB WritebackTmp: 0 kB CommitLimit: 1127376 kB Committed_AS: 33616 kB VmallocTotal: 133143199744 kB VmallocUsed: 5288 kB VmallocChunk: 0 kB Percpu: 400 kB HardwareCorrupted: 0 kB AnonHugePages: 0 kB ShmemHugePages: 0 kB ShmemPmdMapped: 0 kB FileHugePages: 0 kB FilePmdMapped: 0 kB CmaTotal: 262144 kB CmaFree: 260412 kB HugePages_Total: 0 HugePages_Free: 0 HugePages_Rsvd: 0 HugePages_Surp: 0 Hugepagesize: 2048 kB Hugetlb: 0 kB