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.

AM6421: am6421 EMMC

Part Number: AM6421

Hi,

Background:

  We are trying to flash the Default-image  "tisdk-default-image-am64xx-evm.tar.xz" to eMMc on custom Board .We are getting the below core dump.

We are using processor SDKv9_00_00_03.

Please help us in resolving the issue.

    Below is the link of our earlier query on flashing eMMc on custom board.

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1300949/am6421-am6421-emmc-flashing/4956753?tisearch=e2e-sitesearch&keymatch=%2520user%253A580104#4956753

  In continuation to this we have made suggested changes in device tree as below

sdhci0: mmc@fa10000 {
compatible = "ti,am64-sdhci-8bit";
reg = <0x00 0xfa10000 0x00 0x260>, <0x00 0xfa18000 0x00 0x134>;
interrupts = <GIC_SPI 133 IRQ_TYPE_LEVEL_HIGH>;
power-domains = <&k3_pds 57 TI_SCI_PD_EXCLUSIVE>;
clocks = <&k3_clks 57 0>, <&k3_clks 57 1>;
clock-names = "clk_ahb", "clk_xin";
/* mmc-ddr-1_8v;
mmc-hs200-1_8v;*/
no-1-8-v;
ti,trm-icp = <0x2>;
ti,itap-del-sel-legacy = <0x10>;
ti,itap-del-sel-mmc-hs = <0xA>;
ti,itap-del-sel-ddr52 = <0x3>;
ti,otap-del-sel-legacy = <0x0>;
ti,otap-del-sel-mmc-hs = <0x0>;
ti,otap-del-sel-ddr52 = <0x6>;
ti,otap-del-sel-hs200 = <0x7>;
};

After this also

 we are getting error as attached in the log below.

logs flashing to emmc on custom baord.txt

When The same SD card is  used to flash eMMC on  AM4EVM it is flashing correctly and we are able to boot from eMMC.

Please help to solve the issue.

Thank You.

  • Please expect delayed response on your question due to our domain expert is out of office this week.

  • Hi Hong,

         Can you update in the issue posted above.

    Thank You.

  • Hi Narasimha,

    Right after Linux is booted, what is the output of the following command?

    # dmesg | grep mmc0

  • Hi Bin Liu,

          The issue is we are not able to extract the root filesystem image to eMMC on custom board.

          i.e when untar is executed we get the error as attached earlier log.

          so, we cannot run the command  dmesg | grep mmc0, because we are not able to come up to Linux command prompt.

           The same sd card we are able to extract on AM64X EVM board. And we are able to boot from eMMC.

            Please suggest to solve this issue.

    Thank you.

             

  • Hi Narashimha,

    Please run this command in SD card boot before extracting the rootfs image to eMMC. You should have Linux prompt in SD card boot mode.

  • Hi Bin,

    Please find below log.

    root@am64xx-evm:~# dmesg | grep mmc0
    [ 5.788306] mmc0: CQHCI version 5.10
    [ 5.853156] mmc0: SDHCI controller on fa10000.mmc [fa10000.mmc] using ADMA 64-bit
    [ 5.999934] mmc0: Command Queue Engine enabled
    [ 6.000015] mmc0: new high speed MMC card at address 0001
    [ 6.000939] mmcblk0: mmc0:0001 S0J56X 14.8 GiB
    [ 6.003823] mmcblk0boot0: mmc0:0001 S0J56X 31.5 MiB
    [ 6.010900] mmcblk0boot1: mmc0:0001 S0J56X 31.5 MiB
    [ 6.012248] mmcblk0rpmb: mmc0:0001 S0J56X 4.00 MiB, chardev (239:0)

    Please suggest solution for the same.

    Thanks & regards

    Sonu

  • Hi Sonu,

    What is the DDR memory size on your board?

  • Hi Bin,

    Please find below logs

    root@am64xx-evm:~# free
    total used free shared buff/cache available
    Mem: 1956728 91964 1733036 8884 131728 1787344
    Swap: 0 0 0

    Regards,

    Sonu

  • Hi Sonu,

    Does you board have 2GB DDR? It is printed in U-Boot boot log as "DRAM: ...".

  • Hi Bin,

    U-Boot 2023.04-g24098ea90d (Jul 06 2023 - 12:59:40 +0000)

    SoC: AM64X SR2.0 HS-FS
    Model: Texas Instruments AM642 EVM
    EEPROM not available at 0x50, trying to read at 0x51
    Reading on-board EEPROM at 0x51 failed -121
    DRAM: 2 GiB

    Regards,

    Sonu

  • Hi Sonu,

    Please boot the board from SD card, and run the following command, let me know if it reports any error.

    # memtester 1G 1

  • Hi Bin,

    As suggested by you i got below logs after running "memtester 1G 1"

    root@am64xx-evm:~# memtester 1G 1
    memtester version 4.5.1 (64-bit)
    Copyright (C) 2001-2020 Charles Cazabon.
    Licensed under the GNU General Public License version 2 (only).

    pagesize is 4096
    pagesizemask is 0xfffffffffffff000
    want 1024MB (1073741824 bytes)
    got 1024MB (1073741824 bytes), trying mlock ...[ 71.896003] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000008
    [ 71.904817] Mem abort info:
    [ 71.907602] ESR = 0x0000000096000046
    [ 71.911341] EC = 0x25: DABT (current EL), IL = 32 bits
    [ 71.916640] SET = 0, FnV = 0
    [ 71.919684] EA = 0, S1PTW = 0
    [ 71.922815] FSC = 0x06: level 2 translation fault
    [ 71.927679] Data abort info:
    [ 71.930549] ISV = 0, ISS = 0x00000046
    [ 71.934373] CM = 0, WnR = 1
    [ 71.937331] user pgtable: 4k pages, 48-bit VAs, pgdp=00000000875b5000
    [ 71.943758] [0000000000000008] pgd=080000008767e003, p4d=080000008767e003, pu d=08000000877d9003, pmd=0000000000000000
    [ 71.954364] Internal error: Oops: 0000000096000046 [#1] PREEMPT SMP
    [ 71.960619] Modules linked in:
    [ 71.963670] CPU: 0 PID: 632 Comm: memtester Not tainted 6.1.33-rt11celstream- v1.0-00001-g3ab301d00947-dirty #1
    [ 71.973655] Hardware name: Texas Instruments AM642 EVM-Celstream (DT)
    [ 71.980081] pstate: 800000c5 (Nzcv daIF -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
    [ 71.987030] pc : get_page_from_freelist+0x27c/0x1000
    [ 71.992001] lr : get_page_from_freelist+0x220/0x1000
    [ 71.996956] sp : ffff80000a3337f0
    [ 72.000260] x29: ffff80000a3337f0 x28: ffff00007fbe3a00 x27: 0000000000000000
    [ 72.007389] x26: 0000000000000000 x25: ffff80000a3339e0 x24: 0000000000000801
    [ 72.014518] x23: fffffc00001c2480 x22: 0000000000000000 x21: ffff00007fbb3b18
    [ 72.021647] x20: ffff00007fbb3b00 x19: ffff00007fbb3b00 x18: 0000000000000000
    [ 72.028775] x17: 0000000000000000 x16: ffff800008d44930 x15: 0000000000000001
    [ 72.035903] x14: 0000000000000002 x13: 000000000003fef0 x12: ffff00007fbe3ee8
    [ 72.043032] x11: ffff00007fbe3ec8 x10: 0000000000000080 x9 : fffffc00003b8008
    [ 72.050161] x8 : ffff00007fbe5400 x7 : 0000000000000000 x6 : 0000000000000001
    [ 72.057289] x5 : 0000000000000100 x4 : 0000000000000000 x3 : dead000000000122
    [ 72.064417] x2 : 0000000000000000 x1 : fffffc00001c2488 x0 : ffff00007fbb3b18
    [ 72.071547] Call trace:
    [ 72.073986] get_page_from_freelist+0x27c/0x1000
    [ 72.078595] __alloc_pages+0x168/0xd20
    [ 72.082338] alloc_pages+0xac/0x160
    [ 72.085825] __pte_alloc_one.constprop.0+0x20/0x84
    [ 72.090612] do_huge_pmd_anonymous_page+0x204/0x7d0
    [ 72.095480] __handle_mm_fault+0x458/0x1010
    [ 72.099660] handle_mm_fault+0xec/0x270
    [ 72.103491] __get_user_pages+0x200/0x3ac
    [ 72.107494] populate_vma_page_range+0x58/0x7c
    [ 72.111931] __mm_populate+0xb4/0x190
    [ 72.115586] do_mlock+0xcc/0x250
    [ 72.118808] __arm64_sys_mlock+0x18/0x2c
    [ 72.122722] invoke_syscall+0x48/0x114
    [ 72.126470] el0_svc_common.constprop.0+0xd4/0xfc
    [ 72.131168] do_el0_svc+0x30/0xd0
    [ 72.134478] el0_svc+0x2c/0x84
    [ 72.137532] el0t_64_sync_handler+0xbc/0x140
    [ 72.141797] el0t_64_sync+0x18c/0x190
    [ 72.145457] Code: d2802443 f2fbd5a3 d1002037 a9400022 (f9000440)
    [ 72.151539] ---[ end trace 0000000000000000 ]---
    [ 72.156145] note: memtester[632] exited with irqs disabled
    [ 72.161721] note: memtester[632] exited with preempt_count 2
    [ 72.167639] Unable to handle kernel NULL pointer dereference at virtual addre ss 0000000000000038
    [ 72.176722] ------------[ cut here ]------------
    [ 72.181332] WARNING: CPU: 0 PID: 632 at mm/slab_common.c:923 free_large_kmall oc+0x8c/0xc4
    [ 72.189512] Modules linked in:
    [ 72.192567] CPU: 0 PID: 632 Comm: memtester Tainted: G D 6.1. 33-rt11celstream-v1.0-00001-g3ab301d00947-dirty #1
    [ 72.204024] Hardware name: Texas Instruments AM642 EVM-Celstream (DT)
    [ 72.210450] pstate: 40000005 (nZcv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
    [ 72.217399] pc : free_large_kmalloc+0x8c/0xc4
    [ 72.221747] lr : kfree+0x78/0x7c
    [ 72.224967] sp : ffff80000a333350
    [ 72.228271] x29: ffff80000a333350 x28: ffff80000a3334f3 x27: ffff800008e8ef90
    [ 72.235401] x26: 0000000000000001 x25: ffff80000824b654 x24: 00000000000000c0
    [ 72.242530] x23: 0000000000000000 x22: 000000000000000b x21: 0000000000000000
    [ 72.249658] x20: ffff000004549400 x19: fffffc0000115240 x18: ffff80000a333378
    [ 72.256787] x17: 0000000000000000 x16: ffff800008d44930 x15: 000000000000000a
    [ 72.263915] x14: ffff000001f4920c x13: 1fffe000003e93a1 x12: ffff80000a333378
    [ 72.271044] x11: 0000000000000009 x10: ffff000001f49d08 x9 : ffff000001f49d0c
    [ 72.278173] x8 : 0000000000000001 x7 : ffff000001f49280 x6 : ffff000001f49208
    [ 72.285301] x5 : 0000000000000000 x4 : 0000000000000398 x3 : fffffc0000115240
    [ 72.292429] x2 : ffffffffffffffff x1 : ffff000004549400 x0 : 0000000000000000
    [ 72.299558] Call trace:
    [ 72.301996] free_large_kmalloc+0x8c/0xc4
    [ 72.305998] kfree+0x78/0x7c
    [ 72.308873] __audit_free+0x88/0x140
    [ 72.312444] do_exit+0x750/0x910
    [ 72.315671] make_task_dead+0xa0/0x1a0
    [ 72.319415] die+0x1f4/0x230
    [ 72.322293] die_kernel_fault+0x268/0x358
    [ 72.326294] __do_kernel_fault+0x124/0x1b0
    [ 72.330388] do_page_fault+0xd0/0x3d0
    [ 72.334044] do_translation_fault+0xac/0xc0
    [ 72.338222] do_mem_abort+0x44/0x94
    [ 72.341705] el1_abort+0x40/0x6c
    [ 72.344931] el1h_64_sync_handler+0xd8/0xe4
    [ 72.349110] el1h_64_sync+0x64/0x68
    [ 72.352592] get_page_from_freelist+0x27c/0x1000
    [ 72.357203] __alloc_pages+0x168/0xd20
    [ 72.360944] alloc_pages+0xac/0x160
    [ 72.364431] __pte_alloc_one.constprop.0+0x20/0x84
    [ 72.369217] do_huge_pmd_anonymous_page+0x204/0x7d0
    [ 72.374085] __handle_mm_fault+0x458/0x1010
    [ 72.378267] handle_mm_fault+0xec/0x270
    [ 72.382098] __get_user_pages+0x200/0x3ac
    [ 72.386102] populate_vma_page_range+0x58/0x7c
    [ 72.390538] __mm_populate+0xb4/0x190
    [ 72.394194] do_mlock+0xcc/0x250
    [ 72.397415] __arm64_sys_mlock+0x18/0x2c
    [ 72.401330] invoke_syscall+0x48/0x114
    [ 72.405075] el0_svc_common.constprop.0+0xd4/0xfc
    [ 72.409773] do_el0_svc+0x30/0xd0
    [ 72.413083] el0_svc+0x2c/0x84
    [ 72.416133] el0t_64_sync_handler+0xbc/0x140
    [ 72.420397] el0t_64_sync+0x18c/0x190
    [ 72.424052] ---[ end trace 0000000000000000 ]---
    [ 72.428751] Mem abort info:
    [ 72.431538] ESR = 0x0000000096000006
    [ 72.435307] EC = 0x25: DABT (current EL), IL = 32 bits
    [ 72.440790] Unable to handle kernel NULL pointer dereference at virtual addre ss 0000000000000038
    [ 72.449593] SET = 0, FnV = 0
    [ 72.452661] EA = 0, S1PTW = 0
    [ 72.455793] FSC = 0x06: level 2 translation fault
    [ 72.460680] Mem abort info:
    [ 72.463465] ESR = 0x0000000096000006
    [ 72.467224] Data abort info:
    [ 72.470116] EC = 0x25: DABT (current EL), IL = 32 bits
    [ 72.475438] ISV = 0, ISS = 0x00000006
    [ 72.479285] SET = 0, FnV = 0
    [ 72.482351] CM = 0, WnR = 0
    [ 72.485330] user pgtable: 4k pages, 48-bit VAs, pgdp=0000000081fdf000
    [ 72.491779] EA = 0, S1PTW = 0
    [ 72.494932] FSC = 0x06: level 2 translation fault
    [ 72.499819] [0000000000000038] pgd=0800000081fc8003, p4d=0800000081fc8003, pu d=0800000081fe3003, pmd=0000000000000000
    [ 72.510443] Data abort info:
    [ 72.513335] ISV = 0, ISS = 0x00000006
    [ 72.517180] CM = 0, WnR = 0
    [ 72.520161] Internal error: Oops: 0000000096000006 [#2] PREEMPT SMP
    [ 72.526418] Modules linked in:
    [ 72.529467] CPU: 0 PID: 141 Comm: systemd-journal Tainted: G D W 6.1.33-rt11celstream-v1.0-00001-g3ab301d00947-dirty #1
    [ 72.541444] Hardware name: Texas Instruments AM642 EVM-Celstream (DT)
    [ 72.547869] pstate: 40000005 (nZcv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
    [ 72.554817] pc : kmem_cache_alloc+0x17c/0x400
    [ 72.559173] lr : kmem_cache_alloc+0x80/0x400
    [ 72.563436] sp : ffff800009a63d00
    [ 72.566740] x29: ffff800009a63d00 x28: ffff000007481cc0 x27: 0000000000000000
    [ 72.573870] x26: ffff0000012fda00 x25: 00000000000000b0 x24: 0000000000000001
    [ 72.580999] x23: ffff000000007800 x22: 0000000000000cc0 x21: ffff000001e19a00
    [ 72.588128] x20: ffff000007481d80 x19: 0000000000000000 x18: 0000000000000000
    [ 72.595256] x17: 0000000000000000 x16: 0000000000000000 x15: 0000000000000000
    [ 72.602384] x14: 0000000000000000 x13: 0000000000000000 x12: 0000000000000000
    [ 72.609512] x11: 0000000000000000 x10: 0000000000000000 x9 : ffff800009a63eb0
    [ 72.616640] x8 : 0000000000000001 x7 : ffff800076af0000 x6 : 00000000000006b0
    [ 72.623768] x5 : 0000000000000927 x4 : ffff00007fbb3cb0 x3 : 0000000000418400
    [ 72.630896] x2 : 0000000000000058 x1 : ffffffffffffffff x0 : 0000000000000000
    [ 72.638025] Call trace:
    [ 72.640463] kmem_cache_alloc+0x17c/0x400
    [ 72.644467] prepare_creds+0x24/0x2d4
    [ 72.648125] do_faccessat+0x1e8/0x2cc
    [ 72.651782] __arm64_sys_faccessat+0x24/0x30
    [ 72.656046] invoke_syscall+0x48/0x114
    [ 72.659791] el0_svc_common.constprop.0+0xd4/0xfc
    [ 72.664489] do_el0_svc+0x30/0xd0
    [ 72.667800] el0_svc+0x2c/0x84
    [ 72.670851] el0t_64_sync_handler+0xbc/0x140
    [ 72.675116] el0t_64_sync+0x18c/0x190
    [ 72.678775] Code: 9a810273 f9400260 7217001f 9a9f1273 (f9401e60)
    [ 72.684855] ---[ end trace 0000000000000000 ]---
    [ 72.689490] object pointer: 0x00000000ec9d2360
    [ 72.694168] Unable to handle kernel NULL pointer dereference at virtual addre ss 0000000000000038
    [ 72.702968] user pgtable: 4k pages, 48-bit VAs, pgdp=000000008462f000
    [ 72.709421] Mem abort info:
    [ 72.712226] [0000000000000038] pgd=080000008466b003, p4d=080000008466b003, pu d=0800000084670003, pmd=0000000000000000
    [ 72.722850] ESR = 0x0000000096000006
    [ 72.726608] EC = 0x25: DABT (current EL), IL = 32 bits
    [ 72.731927] SET = 0, FnV = 0
    [ 72.734973] EA = 0, S1PTW = 0
    [ 72.738124] Internal error: Oops: 0000000096000006 [#3] PREEMPT SMP
    [ 72.744379] Modules linked in:
    [ 72.747428] CPU: 0 PID: 164 Comm: systemd-timesyn Tainted: G D W 6.1.33-rt11celstream-v1.0-00001-g3ab301d00947-dirty #1
    [ 72.759404] Hardware name: Texas Instruments AM642 EVM-Celstream (DT)
    [ 72.765829] pstate: 40000005 (nZcv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
    [ 72.772779] pc : kmem_cache_alloc_lru+0x1c0/0x52c
    [ 72.777481] lr : kmem_cache_alloc_lru+0xc4/0x52c
    [ 72.782091] sp : ffff800009a7bc70
    [ 72.785395] x29: ffff800009a7bc70 x28: ffff0000063b9380 x27: 0000000000000000
    [ 72.792525] x26: ffff000001f1bc00 x25: 0000000000000300 x24: 0000000000000001
    [ 72.799654] x23: ffff000000069700 x22: 0000000000000cc0 x21: ffff00000447a580
    [ 72.806783] x20: ffff0000063b8680 x19: 0000000000000000 x18: 0000000000000000
    [ 72.813912] x17: 0000000000000000 x16: 0000000000000000 x15: 0000000000000000
    [ 72.821040] x14: 0000000000000000 x13: 0000000000000000 x12: 0000000000000000
    [ 72.828168] x11: 0000000000000000 x10: 0000000040000028 x9 : ffff80000817098c
    [ 72.835296] x8 : 0000000000000001 x7 : 0000000000000ea9 x6 : 0000000000000000
    [ 72.842424] x5 : 00000000000000c6 x4 : ffff00007fbb5040 x3 : 0000000000062300
    [ 72.849553] x2 : 0000000000000300 x1 : ffffffffffffffff x0 : 0000000000000000
    [ 72.856681] Call trace:
    [ 72.859119] kmem_cache_alloc_lru+0x1c0/0x52c
    [ 72.863470] sock_alloc_inode+0x24/0x74
    [ 72.867304] alloc_inode+0x28/0xe0
    [ 72.870700] new_inode_pseudo+0x14/0x50
    [ 72.874529] sock_alloc+0x1c/0x90
    [ 72.877839] __sock_create+0x54/0x1d0
    [ 72.881496] __sys_socket+0x8c/0x120
    [ 72.885067] __arm64_sys_socket+0x20/0x30
    [ 72.889070] invoke_syscall+0x48/0x114
    [ 72.892815] el0_svc_common.constprop.0+0xd4/0xfc
    [ 72.897512] do_el0_svc+0x30/0xd0
    [ 72.900822] el0_svc+0x2c/0x84
    [ 72.903873] el0t_64_sync_handler+0xbc/0x140
    [ 72.908138] el0t_64_sync+0x18c/0x190
    [ 72.911796] Code: 9a810273 f9400260 7217001f 9a9f1273 (f9401e60)
    [ 72.917877] ---[ end trace 0000000000000000 ]---
    [ 72.922575] FSC = 0x06: level 2 translation fault
    [ 72.927462] Data abort info:
    [ 72.930353] ISV = 0, ISS = 0x00000006
    [ 72.934196] CM = 0, WnR = 0
    [ 72.937202] user pgtable: 4k pages, 48-bit VAs, pgdp=000000008462f000
    [ 72.943649] [0000000000000038] pgd=080000008466b003, p4d=080000008466b003, pu d=0800000084670003, pmd=0000000000000000
    [ 72.954270] Internal error: Oops: 0000000096000006 [#4] PREEMPT SMP
    [ 72.960525] Modules linked in:
    [ 72.963572] CPU: 0 PID: 632 Comm: memtester Tainted: G D W 6.1. 33-rt11celstream-v1.0-00001-g3ab301d00947-dirty #1
    [ 72.975028] Hardware name: Texas Instruments AM642 EVM-Celstream (DT)
    [ 72.981452] pstate: 40000005 (nZcv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
    [ 72.988400] pc : kmem_cache_free+0x74/0x36c
    [ 72.992579] lr : __khugepaged_exit+0xdc/0x1a4
    [ 72.996929] sp : ffff80000a333320
    [ 73.000233] x29: ffff80000a333320 x28: ffff80000a3334f3 x27: ffff800008e8ef90
    [ 73.007363] x26: 0000000000000001 x25: ffff80000824b654 x24: 00000000000000c0
    [ 73.014491] x23: ffff000005babc60 x22: ffff80000828fe2c x21: 0000000000000000
    [ 73.021620] x20: ffff0000075dd070 x19: ffff000000069d00 x18: 0000000000000000
    [ 73.028748] x17: 0000000000000000 x16: 0000000000000000 x15: 0000000000000000
    [ 73.035876] x14: 00000000000003ac x13: 0000000000000000 x12: 0000000000000000
    [ 73.043005] x11: 0000000000000000 x10: 0000000000000aa0 x9 : ffff80000a333120
    [ 73.050133] x8 : ffff000007287400 x7 : ffff000005babc60 x6 : ffff800076af0000
    [ 73.057261] x5 : ffff000007286900 x4 : dead000000000100 x3 : ffff000005babf00
    [ 73.064390] x2 : 0000000000000000 x1 : ffffffffffffffff x0 : 0000000000000000
    [ 73.071518] Call trace:
    [ 73.073955] kmem_cache_free+0x74/0x36c
    [ 73.077785] __khugepaged_exit+0xdc/0x1a4
    [ 73.081787] __mmput+0x38/0x160
    [ 73.084922] mmput+0x50/0x60
    [ 73.087796] do_exit+0x294/0x910
    [ 73.091022] make_task_dead+0xa0/0x1a0
    [ 73.094765] die+0x1f4/0x230
    [ 73.097641] die_kernel_fault+0x268/0x358
    [ 73.101643] __do_kernel_fault+0x124/0x1b0
    [ 73.105734] do_page_fault+0xd0/0x3d0
    [ 73.109392] do_translation_fault+0xac/0xc0
    [ 73.113569] do_mem_abort+0x44/0x94
    [ 73.117052] el1_abort+0x40/0x6c
    [ 73.120276] el1h_64_sync_handler+0xd8/0xe4
    [ 73.124455] el1h_64_sync+0x64/0x68
    [ 73.127935] get_page_from_freelist+0x27c/0x1000
    [ 73.132547] __alloc_pages+0x168/0xd20
    [ 73.136289] alloc_pages+0xac/0x160
    [ 73.139775] __pte_alloc_one.constprop.0+0x20/0x84
    [ 73.144561] do_huge_pmd_anonymous_page+0x204/0x7d0
    [ 73.149429] __handle_mm_fault+0x458/0x1010
    [ 73.153610] handle_mm_fault+0xec/0x270
    [ 73.157441] __get_user_pages+0x200/0x3ac
    [ 73.161445] populate_vma_page_range+0x58/0x7c
    [ 73.165881] __mm_populate+0xb4/0x190
    [ 73.169538] do_mlock+0xcc/0x250
    [ 73.172758] __arm64_sys_mlock+0x18/0x2c
    [ 73.176673] invoke_syscall+0x48/0x114
    [ 73.180417] el0_svc_common.constprop.0+0xd4/0xfc
    [ 73.185114] do_el0_svc+0x30/0xd0
    [ 73.188425] el0_svc+0x2c/0x84
    [ 73.191475] el0t_64_sync_handler+0xbc/0x140
    [ 73.195739] el0t_64_sync+0x18c/0x190
    [ 73.199397] Code: 9a9f12b5 b6b8005e b2503fd6 d503201f (f9401ea0)
    [ 73.205477] ---[ end trace 0000000000000000 ]---
    [ 73.210636] Unable to handle kernel NULL pointer dereference at virtual addre ss 0000000000000008
    [ 73.219426] Mem abort info:
    [ 73.222209] ESR = 0x0000000096000046
    [ 73.225948] EC = 0x25: DABT (current EL), IL = 32 bits
    [ 73.231247] SET = 0, FnV = 0
    [ 73.234291] EA = 0, S1PTW = 0
    [ 73.237422] FSC = 0x06: level 2 translation fault
    [ 73.242287] Data abort info:
    [ 73.245156] ISV = 0, ISS = 0x00000046
    [ 73.248980] CM = 0, WnR = 1
    [ 73.251938] user pgtable: 4k pages, 48-bit VAs, pgdp=0000000081fdf000
    [ 73.258364] [0000000000000008] pgd=0800000081fc8003, p4d=0800000081fc8003, pu d=0800000081fe3003, pmd=0000000000000000
    [ 73.268967] Internal error: Oops: 0000000096000046 [#5] PREEMPT SMP
    [ 73.275221] Modules linked in:
    [ 73.278270] CPU: 0 PID: 141 Comm: systemd-journal Tainted: G D W 6.1.33-rt11celstream-v1.0-00001-g3ab301d00947-dirty #1
    [ 73.290247] Hardware name: Texas Instruments AM642 EVM-Celstream (DT)
    [ 73.296672] pstate: 200000c5 (nzCv daIF -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
    [ 73.303621] pc : get_page_from_freelist+0x48c/0x1000
    [ 73.308585] lr : get_page_from_freelist+0x40c/0x1000
    [ 73.313540] sp : ffff800009a63310
    [ 73.316844] x29: ffff800009a63310 x28: ffff00007fbe3a00 x27: 0000000000000000
    [ 73.323974] x26: 0000000000000068 x25: ffffffffffffffff x24: 0000000000000801
    [ 73.331102] x23: fffffc000030dbc0 x22: 0000000000000000 x21: ffff00007fbe3f80
    [ 73.338231] x20: 0000000000000000 x19: 0000000000000000 x18: 0000000000000000
    [ 73.345359] x17: 0000000000000000 x16: ffff800008d44930 x15: 0000000000000001
    [ 73.352488] x14: 0000000000000002 x13: 000000000003fef0 x12: ffff800009a637d8
    [ 73.359616] x11: 00000000000001f1 x10: ffff000001754a08 x9 : fffffc000030dbc0
    [ 73.366745] x8 : 0000000000000000 x7 : 0000000000000000 x6 : 0000000000000001
    [ 73.373873] x5 : 0000000000000100 x4 : 0000000000000000 x3 : 0000000000000000
    [ 73.381001] x2 : 0000000000000000 x1 : 0000000000000000 x0 : fffffc000030dbc8
    [ 73.388130] Call trace:
    [ 73.390568] get_page_from_freelist+0x48c/0x1000
    [ 73.395178] __alloc_pages+0x168/0xd20
    [ 73.398921] alloc_pages+0xac/0x160
    [ 73.402407] __get_free_pages+0x14/0x3c
    [ 73.406235] __tlb_remove_page_size+0x8c/0xc4
    [ 73.410585] unmap_page_range+0x574/0x950
    [ 73.414591] unmap_vmas+0xd0/0x16c
    [ 73.417988] exit_mmap+0xa0/0x1fc
    [ 73.421297] __mmput+0x40/0x160
    [ 73.424432] mmput+0x50/0x60
    [ 73.427306] do_exit+0x294/0x910
    [ 73.430531] make_task_dead+0xa0/0x1a0
    [ 73.434274] die+0x1f4/0x230
    [ 73.437152] die_kernel_fault+0x268/0x358
    [ 73.441153] __do_kernel_fault+0x124/0x1b0
    [ 73.445247] do_page_fault+0xd0/0x3d0
    [ 73.448904] do_translation_fault+0xac/0xc0
    [ 73.453081] do_mem_abort+0x44/0x94
    [ 73.456564] el1_abort+0x40/0x6c
    [ 73.459789] el1h_64_sync_handler+0xd8/0xe4
    [ 73.463967] el1h_64_sync+0x64/0x68
    [ 73.467449] kmem_cache_alloc+0x17c/0x400
    [ 73.471452] prepare_creds+0x24/0x2d4
    [ 73.475112] do_faccessat+0x1e8/0x2cc
    [ 73.478769] __arm64_sys_faccessat+0x24/0x30
    [ 73.483033] invoke_syscall+0x48/0x114
    [ 73.486778] el0_svc_common.constprop.0+0xd4/0xfc
    [ 73.491476] do_el0_svc+0x30/0xd0
    [ 73.494786] el0_svc+0x2c/0x84
    [ 73.497837] el0t_64_sync_handler+0xbc/0x140
    [ 73.502101] el0t_64_sync+0x18c/0x190
    [ 73.505760] Code: aa0903f7 d503201f a9401007 8b020443 (f90004e4)
    [ 73.511842] ---[ end trace 0000000000000000 ]---
    [ 73.516445] note: systemd-journal[141] exited with irqs disabled
    [ 73.522555] note: systemd-journal[141] exited with preempt_count 2
    [ 73.528883] Fixing recursive fault but reboot is needed!
    [ 73.534403] Unable to handle kernel NULL pointer dereference at virtual addre ss 0000000000000038

    Regards,

    Sonu

  • Hi Bin Liu,

      Thank you for the reply.

      Below is the part no for DDR on our board   

       K4A8G165WB-BCRC.

         Please advise if it is the issue.

    Thank You.

  • Hi Narasimha,

    Instead of 1GB, if you run memtester with a smaller memory size, for example 512M or 256M, or event 1M, does the same crash still happen?

  • Hi Bin,

    Below is the log when i run memtester with 512M

    root@am64xx-evm:~# memtester 512M 1
    memtester version 4.5.1 (64-bit)
    Copyright (C) 2001-2020 Charles Cazabon.
    Licensed under the GNU General Public License version 2 (only).

    pagesize is 4096
    pagesizemask is 0xfffffffffffff000
    want 512MB (536870912 bytes)
    got 512MB (536870912 bytes), trying mlock ...locked.
    Loop 1/1:
    Stuck Address : ok
    Random Value : ok
    Compare XOR : ok
    Compare SUB : ok
    Compare MUL : ok
    Compare DIV : ok
    Compare OR : ok
    Compare AND : ok
    Sequential Increment: ok
    Solid Bits : ok
    Block Sequential : ok
    Checkerboard : ok
    Bit Spread : ok
    Bit Flip : ok
    Walking Ones : ok
    Walking Zeroes : ok

    Done.

    But when i extract "tisdk-default-image-am64xx-evm.tar.xz" i get same error below is the log.

    ./opt/ltp/testcases/bin/setsockopt01
    ./opt/ltp/testcases/bin/setsockopt02
    ./opt/ltp/testcases/bin/setsockopt03
    ./opt/ltp/testcases/bin/setsockopt04
    ./opt/ltp/testcases/bin/setsockopt05
    ./opt/ltp/testcases/bin/setsockopt06
    ./opt/ltp/testcases/bin/setsockopt07
    ./opt/ltp/testcases/bin/setsockopt08
    ./opt/ltp/testcases/bin/setsockopt09
    ./opt/ltp/testcases/bin/settimeofday01
    ./opt/ltp/testcases/bin/settimeofday02
    ./opt/ltp/testcases/bin/setuid01
    ./opt/ltp/testcases/bin/setuid01_16
    ./opt/ltp/testcases/bin/setuid03
    ./opt/ltp/testcases/bin/setuid03_16
    ./opt/ltp/testcases/bin/setuid04
    ./opt/ltp/testcases/bin/setuid04_16
    ./opt/ltp/testcases/bin/setxattr01
    ./opt/ltp/testcases/bin/setxattr02
    ./opt/ltp/testcases/bin/setxattr03
    ./opt/ltp/testcases/bin/sgetmask01
    ./opt/ltp/testcases/bin/shell_pipe01.sh
    ./opt/ltp/testcases/bin/shm_comm
    ./opt/ltp/testcases/bin/shm_test
    ./opt/ltp/testcases/bin/shmat01
    ./opt/ltp/testcases/bin/shmat02
    ./opt/ltp/testcases/bin/shmat03
    ./opt/ltp/testcases/bin/shmat1
    ./opt/ltp/testcases/bin/shmctl01
    ./opt/ltp/testcases/bin/shmctl02
    ./opt/ltp/testcases/bin/shmctl03
    ./opt/ltp/testcases/bin/shmctl04
    ./opt/ltp/testcases/bin/shmctl05
    ./opt/ltp/testcases/bin/shmctl06
    ./opt/ltp/testcases/bin/shmctl07
    ./opt/ltp/testcases/bin/shmctl08
    ./opt/ltp/testcases/bin/shmdt01
    ./opt/ltp/testcases/bin/shmdt02
    ./opt/ltp/testcases/bin/shmem_2nstest
    ./opt/ltp/testcases/bin/shmget02[ 1122.256342] Unable to handle kernel paging request at virtual address 0000018017ffffb8

    [ 1122.270896] Mem abort info:
    [ 1122.274269] ESR = 0x0000000096000004
    [ 1122.279041] EC = 0x25: DABT (current EL), IL = 32 bits
    [ 1122.284872] SET = 0, FnV = 0
    [ 1122.288767] EA = 0, S1PTW = 0
    [ 1122.292393] FSC = 0x04: level 0 translation fault
    [ 1122.298103] Data abort info:
    [ 1122.301506] ISV = 0, ISS = 0x00000004
    [ 1122.305627] CM = 0, WnR = 0
    [ 1122.309471] user pgtable: 4k pages, 48-bit VAs, pgdp=00000000877aa000
    [ 1122.316384] [0000018017ffffb8] pgd=0000000000000000, p4d=0000000000000000
    [ 1122.324128] Internal error: Oops: 0000000096000004 [#1] PREEMPT SMP
    [ 1122.330408] Modules linked in:
    [ 1122.333463] CPU: 0 PID: 724 Comm: tar Not tainted 6.1.33-rt11celstream-v1.0-00001-g3ab301d00947-dirty #1
    [ 1122.342928] Hardware name: Texas Instruments AM642 EVM-Celstream (DT)
    [ 1122.349353] pstate: 80000005 (Nzcv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
    [ 1122.356302] pc : __d_lookup+0x54/0xf0
    [ 1122.359971] lr : __d_lookup+0x38/0xf0
    [ 1122.363628] sp : ffff80000a88bb30
    [ 1122.366933] x29: ffff80000a88bb30 x28: ffff80000a88bc80 x27: ffff000000181020
    [ 1122.374063] x26: 00000000000209c1 x25: 0000000000000040 x24: ffff80000a88bc90
    [ 1122.381192] x23: ffff00002937be40 x22: ffff00002937be40 x21: 0000000010be6e6f
    [ 1122.388321] x20: ffff00007b800000 x19: 9000018017ffffa0 x18: 0000000000000000
    [ 1122.395450] x17: 0000000000000000 x16: 0000000000000000 x15: 0000000000000000
    [ 1122.402578] x14: ffffffffffffffff x13: ffff000000181034 x12: ffff80000a88bcc4
    [ 1122.409708] x11: 00000003ad4dcee9 x10: 0000000000000002 x9 : 0000000000000003
    [ 1122.416836] x8 : ffff00002937bd80 x7 : d0d0d0d0d0d0d0d0 x6 : 30fa478962f1f823
    [ 1122.423965] x5 : ffff80000a88bc90 x4 : ffff00002937be40 x3 : 0000000000000000
    [ 1122.431093] x2 : ffff80000923c000 x1 : ffff000007474b00 x0 : 0000000000000001
    [ 1122.438223] Call trace:
    [ 1122.440661] __d_lookup+0x54/0xf0
    [ 1122.443973] d_lookup+0x44/0x70
    [ 1122.447110] path_openat+0x2c0/0xe44
    [ 1122.450679] do_filp_open+0x80/0x130
    [ 1122.454247] do_sys_openat2+0xb4/0x170
    [ 1122.457994] __arm64_sys_openat+0x60/0xb0
    [ 1122.461997] invoke_syscall+0x48/0x114
    [ 1122.465745] el0_svc_common.constprop.0+0xd4/0xfc
    [ 1122.470443] do_el0_svc+0x30/0xd0
    [ 1122.473753] el0_svc+0x2c/0x84
    [ 1122.476807] el0t_64_sync_handler+0xbc/0x140
    [ 1122.481072] el0t_64_sync+0x18c/0x190
    [ 1122.484734] Code: 54000081 14000011 f9400273 b40001f3 (b9401a63)
    [ 1122.490816] ---[ end trace 0000000000000000 ]---
    [ 1122.516098] Unable to handle kernel paging request at virtual address 0596069543079404
    Segmentation fault
    root@am64xx-evm:/mnt/temp# [ 1122.532578] Mem abort info:
    [ 1122.535402] ESR = 0x0000000096000004
    [ 1122.543576] EC = 0x25: DABT (current EL), IL = 32 bits
    [ 1122.549501] SET = 0, FnV = 0
    [ 1122.553435] EA = 0, S1PTW = 0
    [ 1122.557013] FSC = 0x04: level 0 translation fault
    [ 1122.562133] Data abort info:
    [ 1122.565858] ISV = 0, ISS = 0x00000004
    [ 1122.570092] CM = 0, WnR = 0
    [ 1122.573314] [0596069543079404] address between user and kernel address ranges
    [ 1122.581221] Internal error: Oops: 0000000096000004 [#2] PREEMPT SMP
    [ 1122.587500] Modules linked in:
    [ 1122.590555] CPU: 0 PID: 1 Comm: systemd Tainted: G D 6.1.33-rt11celstream-v1.0-00001-g3ab301d00947-dirty #1
    [ 1122.601668] Hardware name: Texas Instruments AM642 EVM-Celstream (DT)
    [ 1122.608094] pstate: 00000005 (nzcv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
    [ 1122.615043] pc : __d_lookup_rcu+0x4c/0xf4
    [ 1122.619058] lr : lookup_fast+0x34/0x13c
    [ 1122.622892] sp : ffff80000941bab0
    [ 1122.626196] x29: ffff80000941bab0 x28: ffff80000941bc80 x27: 0000000000000000
    [ 1122.633326] x26: ffff80000924efd8 x25: 2f2f2f2f2f2f2f2f x24: d0d0d0d0d0d0d0d0
    [ 1122.640455] x23: ffff80000941bc80 x22: fefefefefefefeff x21: ffff0000006b8f00
    [ 1122.647584] x20: ffff80000941bc80 x19: ffff80000941bc80 x18: 0000000000000000
    [ 1122.654713] x17: 0000000000000000 x16: 0000000000000000 x15: 0000000000000000
    [ 1122.661842] x14: ffffffffffffffff x13: ffff000000186021 x12: ffff80000941bcc4
    [ 1122.668970] x11: 000000041d393017 x10: 0000fffffffffff8 x9 : 0000000000000004
    [ 1122.676099] x8 : ffff0000006b8f00 x7 : e5e2e7ffb3bfa2a0 x6 : 0000000000210000
    [ 1122.683227] x5 : ffff00007b800000 x4 : 00000000000074e4 x3 : 00000000636f7270
    [ 1122.690356] x2 : 0000000000000004 x1 : 0596069543079408 x0 : ffff0000006b8f00
    [ 1122.697486] Call trace:
    [ 1122.699925] __d_lookup_rcu+0x4c/0xf4
    [ 1122.703581] walk_component+0x28/0x190
    [ 1122.707322] link_path_walk.part.0.constprop.0+0x258/0x3c0
    [ 1122.712798] path_openat+0xa4/0xe44
    [ 1122.716279] do_filp_open+0x80/0x130
    [ 1122.719846] do_sys_openat2+0xb4/0x170
    [ 1122.723592] __arm64_sys_openat+0x60/0xb0
    [ 1122.727595] invoke_syscall+0x48/0x114
    [ 1122.731343] el0_svc_common.constprop.0+0x44/0xfc
    [ 1122.736041] do_el0_svc+0x30/0xd0
    [ 1122.739351] el0_svc+0x2c/0x84
    [ 1122.742405] el0t_64_sync_handler+0xbc/0x140
    [ 1122.746670] el0t_64_sync+0x18c/0x190
    [ 1122.750331] Code: 9280000e 14000003 f9400021 b4000441 (b85fc02a)
    [ 1122.756414] ---[ end trace 0000000000000000 ]---
    [ 1122.773697] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
    [ 1122.781372] Kernel Offset: disabled
    [ 1122.784850] CPU features: 0x00000,00800084,0000421b
    [ 1122.789719] Memory Limit: none
    [ 1122.792771] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b ]---

    Regards,

    Sonu

  • Hi Narasimha,

      Below is the part no for DDR on our board   

       K4A8G165WB-BCRC.

    Please check this indeed is the part on your board. Searching it on Internet and it shows it is a 1GB DDR, and your u-boot/kernel is configured to use 2GB DDR, it definitely would crash when accessing beyond 1GB address.

  • Hi Bin,

    K4A8G165WB-BCRC is the part no.

     

  • K4A8G165WB-BCRC is the part no.

    It is a 1GB DDR, not 2GB.