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.

AM62A7: Problems with porting u-boot to a custom card

Part Number: AM62A7
Other Parts Discussed in Thread: SK-AM62A-LP, SYSCONFIG

Hello, we have a custom built card that I am having problems getting to boot to u-boot. 

We do not have the same DDR memory as the SK-AM62A-LP board. Because of that I have followed the instructions at: Porting U-Boot and AM62Ax MCU+ SDK: DDR (ti.com) to generate a new DDR config using SysConfig (ti.com)

With my new DDR config the card seems to get further in the boot process, but not all the way. Could you help me determine if it is still a DDR problem? And how I can proceed with debugging? 


Printout from boot

U-Boot SPL 2023.04 (Apr 02 2024 - 08:44:27 +0200)
SYSFW ABI: 3.1 (firmware rev 0x0009 '9.1.8--v09.01.08 (Kool Koala)')
am62a_init: board_init_f done
SPL initial stack usage: 17040 bytes
am62a_init: spl_boot_device: devstat = 0xe43 bootmedia = 0x8 bootindex = 0
Trying to boot from MMC2
alloc space exhausted
Could not get FIT buffer of 2715372 bytes
check CONFIG_SYS_SPL_MALLOC_SIZE
am62a_init: spl_boot_device: devstat = 0xe43 bootmedia = 0x8 bootindex = 0
Authentication passed
am62a_init: spl_boot_device: devstat = 0xe43 bootmedia = 0x8 bootindex = 0
Authentication passed
am62a_init: spl_boot_device: devstat = 0xe43 bootmedia = 0x8 bootindex = 0
Authentication passed
am62a_init: spl_boot_device: devstat = 0xe43 bootmedia = 0x8 bootindex = 0
Authentication passed
am62a_init: spl_boot_device: devstat = 0xe43 bootmedia = 0x8 bootindex = 0
Authentication passed
Starting ATF on ARM64 core...

NOTICE: BL31: v2.9(release):v2.9.0-614-gd7a7135d32-dirty

 

  • Hi,

    Thank you for sharing the error logs, I will check this and get back with more information.

    Regards,
    Aparna

  • Hi,

    Can you check if you can see logs from DM on other UART port?
    Meanwhile, could you also try booting from a different boot media like UART/DFU to check if it boots from there or not?

    Since, DDR initialization is done and the logs are past that stage, most likely there is no issue with DDR configuration.
    I will check internally, what are the ways to debug this.

    Regards,
    Aparna

  • Hello, 

    I do not get any printout on the other UART ports. 

    I can try booting using other media, but I am not really sure how. I will have to look into that. 

    Thank you.

  • Hello again, 


    We have made progress!
    We removed the ddr config in the R5F sysconfig and only has the .dtsi file. I read the README from the syscfg tool wrong ( dev.ti.com/tirex/content/Processor_DDR_Config_0.10.01.0000/docs/README.html)

    Now the DM UART prints: 

    Sciserver Testapp Built On: Feb 20 2024 11:52:43
    Sciserver Version: v2023.12.0.0-REL.MCUSDK.09.01.00.39+
    RM_PM_HAL Version: v09.01.08
    Starting Sciserver..... PASSED
    [IPC RPMSG ECHO] Version: REL.MCUSDK.09.01.00.39+ (Apr 3 2024 16:30:22):

    We looked with the debugger and we are on program counter 0x9CA30138, which looks like it is in the DDR memory.  

    But we still have problems with the main domain boot. 
    We get the following printout: 

    U-Boot SPL 2023.04 (Apr 03 2024 - 16:30:41 +0200)
    SYSFW ABI: 3.1 (firmware rev 0x0009 '9.1.8--v09.01.08 (Kool Koala)')
    am62a_init: board_init_f done
    SPL initial stack usage: 17040 bytes
    am62a_init: spl_boot_device: devstat = 0xe43 bootmedia = 0x8 bootindex = 0
    Trying to boot from MMC2
    am62a_init: spl_boot_device: devstat = 0xe43 bootmedia = 0x8 bootindex = 0
    Authentication passed
    am62a_init: spl_boot_device: devstat = 0xe43 bootmedia = 0x8 bootindex = 0
    Authentication passed
    am62a_init: spl_boot_device: devstat = 0xe43 bootmedia = 0x8 bootindex = 0
    Authentication passed
    am62a_init: spl_boot_device: devstat = 0xe43 bootmedia = 0x8 bootindex = 0
    Authentication passed
    am62a_init: spl_boot_device: devstat = 0xe43 bootmedia = 0x8 bootindex = 0
    Authentication passed
    Starting ATF on ARM64 core...
    
    NOTICE:  BL31: v2.9(release):6dad2c2e0-dirty
    NOTICE:  BL31: Built : 13:40:43, Apr  2 2024
    Unhandled Exception in EL3.
    x30            = 0x000000009e786034
    x0             = 0x0000000000000001
    x1             = 0x000000009e78a010
    x2             = 0x000000009e78a000
    x3             = 0x000000009e78a050
    x4             = 0x0000000032401000
    x5             = 0x0000000000000040
    x6             = 0x000000009e79c05e
    x7             = 0x0000000000000000
    x8             = 0x000000009e79ffff
    x9             = 0x000000009e791cd8
    x10            = 0x0000000032c80000
    x11            = 0x0000000000000000
    x12            = 0xd383df04905054c0
    x13            = 0x350021962c72885f
    x14            = 0x8632881041c268e9
    x15            = 0xa5f33a95879f54ef
    x16            = 0xb7588ca8614fec06
    x17            = 0x000000009e780658
    x18            = 0x0000000000000004
    x19            = 0x000000009e7892a8
    x20            = 0x000000009e78b470
    x21            = 0x20b580d00b6737d8
    x22            = 0xacf7b609d030d7b7
    x23            = 0x95d7f2fd08510021
    x24            = 0x000000009e79c000
    x25            = 0x00080000a6df10c7
    x26            = 0x818a0000bba11ccd
    x27            = 0xf07eaa3ed3b44e4a
    x28            = 0x00000000edcf78b8
    x29            = 0x000000009e78b3f0
    scr_el3        = 0x0000000000000238
    sctlr_el3      = 0x0000000030cd183f
    cptr_el3       = 0x0000000000000000
    tcr_el3        = 0x0000000080803520
    daif           = 0x00000000000003c0
    mair_el3       = 0x00000000004404ff
    spsr_el3       = 0x00000000600002cc
    elr_el3        = 0x000000009e782ebc
    ttbr0_el3      = 0x000000009e791e00
    esr_el3        = 0x0000000096000010
    far_el3        = 0x0000000032401000
    spsr_el1       = 0x00000000d812091d
    elr_el1        = 0x87c588445c7fcfb3
    spsr_abt       = 0x000000000e108288
    spsr_und       = 0x000000000e080202
    spsr_irq       = 0x0000000000104888
    spsr_fiq       = 0x0000000008085100
    sctlr_el1      = 0x0000000000c50838
    actlr_el1      = 0x0000000000000000
    cpacr_el1      = 0x0000000000000000
    csselr_el1     = 0x0000000000000000
    sp_el1         = 0x34da1d83a120a692
    esr_el1        = 0x0000000018fc2eb2
    ttbr0_el1      = 0x0a0b4a28940c04ea
    ttbr1_el1      = 0x013612a002089300
    mair_el1       = 0x44e048e000098aa4
    amair_el1      = 0x0000000000000000
    tcr_el1        = 0x0000000000000000
    tpidr_el1      = 0x042018048260c000
    tpidr_el0      = 0x081422211048d0b0
    tpidrro_el0    = 0x1000180040846011
    par_el1        = 0x2400004000534019
    mpidr_el1      = 0x0000000080000000
    afsr0_el1      = 0x0000000000000000
    afsr1_el1      = 0x0000000000000000
    contextidr_el1 = 0x0000000000000000
    vbar_el1       = 0x0000000000000000
    cntp_ctl_el0   = 0x0000000000000002
    cntp_cval_el0  = 0xfc8480c0028a49b7
    cntv_ctl_el0   = 0x0000000000000002
    cntv_cval_el0  = 0x941e7fc0bfeb0ac8
    cntkctl_el1    = 0x0000000000000000
    sp_el0         = 0x000000009e78b3f0
    isr_el1        = 0x0000000000000000
    dacr32_el2     = 0x00000000339f888b
    ifsr32_el2     = 0x0000000000001201
    cpuectlr_el1   = 0x0000000000000040
    cpumerrsr_el1  = 0x000000000808002d
    l2merrsr_el1   = 0x0000000011305120
    cpuactlr_el1   = 0x00001000090ca00


    Could it be a problem with our bl31.bin (ATF) file? 

  • Hello,

    New update.

    It was the BL31.bin file that was bad, I used one I built using the ATF repository. When I used the one included in the SDK it gets to the u-boot prompt. 

    But it will not boot to linux... 

    The following log is when i let it autoboot: 

    U-Boot SPL 2023.04 (Apr 04 2024 - 10:37:19 +0200)
    SYSFW ABI: 3.1 (firmware rev 0x0009 '9.1.8--v09.01.08 (Kool Koala)')
    am62a_init: board_init_f done
    SPL initial stack usage: 17040 bytes
    am62a_init: spl_boot_device: devstat = 0xe43 bootmedia = 0x8 bootindex = 0
    Trying to boot from MMC2
    am62a_init: spl_boot_device: devstat = 0xe43 bootmedia = 0x8 bootindex = 0
    Authentication passed
    am62a_init: spl_boot_device: devstat = 0xe43 bootmedia = 0x8 bootindex = 0
    Authentication passed
    am62a_init: spl_boot_device: devstat = 0xe43 bootmedia = 0x8 bootindex = 0
    Authentication passed
    am62a_init: spl_boot_device: devstat = 0xe43 bootmedia = 0x8 bootindex = 0
    Authentication passed
    am62a_init: spl_boot_device: devstat = 0xe43 bootmedia = 0x8 bootindex = 0
    Authentication passed
    Starting ATF on ARM64 core...
    
    NOTICE:  BL31: v2.9(release):v2.9.0-614-gd7a7135d32-dirty
    NOTICE:  BL31: Built : 09:34:15, Aug 24 2023
    
    U-Boot SPL 2023.04 (Apr 04 2024 - 10:37:27 +0200)
    SYSFW ABI: 3.1 (firmware rev 0x0009 '9.1.8--v09.01.08 (Kool Koala)')
    am62a_init: board_init_f done
    am62a_init: spl_boot_device: devstat = 0xe43 bootmedia = 0x8 bootindex = 0
    Trying to boot from MMC2
    am62a_init: spl_boot_device: devstat = 0xe43 bootmedia = 0x8 bootindex = 0
    Authentication passed
    am62a_init: spl_boot_device: devstat = 0xe43 bootmedia = 0x8 bootindex = 0
    Authentication passed
    
    
    U-Boot 2023.04 (Apr 04 2024 - 10:37:27 +0200)
    
    SoC:   AM62AX SR1.0 HS-FS
    Model: Texas Instruments AM62A7 SK
    DRAM:  2 GiB (effective 4 GiB)
    Core:  56 devices, 26 uclasses, devicetree: separate
    MMC:   mmc@fa10000: 0, mmc@fa00000: 1
    Loading Environment from nowhere... OK
    In:    serial@2800000
    Out:   serial@2800000
    Err:   serial@2800000
    Net:   Could not get PHY for ethernet@8000000port@1: addr 0
    am65_cpsw_nuss_port ethernet@8000000port@1: phy_connect() failed
    No ethernet found.
    
    Hit any key to stop autoboot:  0
    switch to partitions #0, OK
    mmc1 is current device
    SD/MMC found on device 1
    Failed to load 'boot.scr'
    639 bytes read in 26 ms (23.4 KiB/s)
    Loaded env from uEnv.txt
    Importing environment from mmc1 ...
    ## Error: "main_cpsw0_qsgmii_phyinit" not defined
    20302336 bytes read in 866 ms (22.4 MiB/s)
    57364 bytes read in 29 ms (1.9 MiB/s)
    Working FDT set to 88000000
    ## Flattened Device Tree blob at 88000000
       Booting using the fdt blob at 0x88000000
    Working FDT set to 88000000
       Loading Device Tree to 000000008feee000, end 000000008fffffff ... OK
    Working FDT set to 8feee000
    
    Starting kernel ...
    
    [    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
    [    0.000000] Linux version 6.1.46-g247b2535b2 (oe-user@oe-host) (aarch64-oe-linux-gcc (GCC) 11.4.0, GNU ld (GNU Binutils) 2.38.20220708) #1 SMP PREEMPT Wed Dec  6 17:54:04 UTC 2023
    [    0.000000] Machine model: Texas Instruments AM62A7 SK
    [    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 CMA memory pool at 0x00000000c0000000, size 576 MiB
    [    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x0000000099800000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node c7x-dma-memory@99800000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x0000000099900000, size 30 MiB
    [    0.000000] OF: reserved mem: initialized node c7x-memory@99900000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x000000009b800000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-dma-memory@9b800000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x000000009b900000, size 15 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-dma-memory@9b900000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x000000009c800000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-dma-memory@9c800000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x000000009c900000, size 30 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-dma-memory@9c900000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a1000000, size 32 MiB
    [    0.000000] OF: reserved mem: initialized node edgeai-dma-memory@a1000000, compatible id shared-dma-pool
    [    0.000000] OF: reserved mem: initialized node edgeai_shared-memories, compatible id dma-heap-carveout
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000ae000000, size 288 MiB
    [    0.000000] OF: reserved mem: initialized node edgeai-core-heap-memory@ae000000, compatible id shared-dma-pool
    [    0.000000] Zone ranges:
    [    0.000000]   DMA      [mem 0x0000000080000000-0x00000000ffffffff]
    [    0.000000]   DMA32    empty
    [    0.000000]   Normal   [mem 0x0000000100000000-0x00000008ffffffff]
    [    0.000000] Movable zone start for each node
    [    0.000000] Early memory node ranges
    [    0.000000]   node   0: [mem 0x0000000080000000-0x00000000997fffff]
    [    0.000000]   node   0: [mem 0x0000000099800000-0x000000009b7fefff]
    [    0.000000]   node   0: [mem 0x000000009b800000-0x000000009e6fffff]
    [    0.000000]   node   0: [mem 0x000000009e700000-0x000000009e77ffff]
    [    0.000000]   node   0: [mem 0x000000009e780000-0x00000000a2ffffff]
    [    0.000000]   node   0: [mem 0x00000000a3000000-0x00000000adffffff]
    [    0.000000]   node   0: [mem 0x00000000ae000000-0x00000000bfffffff]
    [    0.000000]   node   0: [mem 0x00000000c0000000-0x00000000ffffffff]
    [    0.000000]   node   0: [mem 0x0000000880000000-0x00000008ffffffff]
    [    0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x00000008ffffffff]
    [    0.000000] On node 0, zone DMA: 1 pages in unavailable ranges
    [    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.4
    [    0.000000] percpu: Embedded 19 pages/cpu s37992 r8192 d31640 u77824
    [    0.000000] Detected VIPT I-cache on CPU0
    [    0.000000] CPU features: detected: GIC system register CPU interface
    [    0.000000] CPU features: detected: ARM erratum 845719
    [    0.000000] alternatives: applying boot alternatives
    [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 1032191
    [    0.000000] Kernel command line: console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000 mtdparts=spi-nand0:512k(ospi_nand.tiboot3),2m(ospi_nand.tispl),4m(ospi_nand.u-boot),256k(ospi_nand.env),256k(ospi_nand.env.backup),98048k@32m(ospi_nand.rootfs),256k@130816k(ospi_nand.phypattern) root=PARTUUID=260440ee-02 rw rootfstype=ext4 rootwait
    [    0.000000] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
    [    0.000000] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
    [    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
    [    0.000000] software IO TLB: area num 4.
    [    0.000000] Unable to handle kernel paging request at virtual address ffff00007fce0000
    [    0.000000] Mem abort info:
    [    0.000000]   ESR = 0x0000000096000047
    [    0.000000]   EC = 0x25: DABT (current EL), IL = 32 bits
    [    0.000000]   SET = 0, FnV = 0
    [    0.000000]   EA = 0, S1PTW = 0
    [    0.000000]   FSC = 0x07: level 3 translation fault
    [    0.000000] Data abort info:
    [    0.000000]   ISV = 0, ISS = 0x00000047
    [    0.000000]   CM = 0, WnR = 1
    [    0.000000] swapper pgtable: 4k pages, 48-bit VAs, pgdp=0000000083004000
    [    0.000000] [ffff00007fce0000] pgd=18000008ffff9003, p4d=18000008ffff9003
    [    0.000000] Unable to handle kernel paging request at virtual address ffff00087fff9008
    [    0.000000] Mem abort info:
    [    0.000000]   ESR = 0x0000000096000006
    [    0.000000]   EC = 0x25: DABT (current EL), IL = 32 bits
    [    0.000000]   SET = 0, FnV = 0
    [    0.000000]   EA = 0, S1PTW = 0
    [    0.000000]   FSC = 0x06: level 2 translation fault
    [    0.000000] Data abort info:
    [    0.000000]   ISV = 0, ISS = 0x00000006
    [    0.000000]   CM = 0, WnR = 0
    [    0.000000] swapper pgtable: 4k pages, 48-bit VAs, pgdp=0000000083004000
    [    0.000000] [ffff00087fff9008] pgd=18000008ffff9003, p4d=18000008ffff9003
    [    0.000000] Unable to handle kernel paging request at virtual address ffff00087fff9108
    [    0.000000] Mem abort info:
    [    0.000000]   ESR = 0x0000000096000006
    [    0.000000]   EC = 0x25: DABT (current EL), IL = 32 bits
    [    0.000000]   SET = 0, FnV = 0
    [    0.000000]   EA = 0, S1PTW = 0
    [    0.000000]   FSC = 0x06: level 2 translation fault
    [    0.000000] Data abort info:
    [    0.000000]   ISV = 0, ISS = 0x00000006
    [    0.000000]   CM = 0, WnR = 0
    [    0.000000] swapper pgtable: 4k pages, 48-bit VAs, pgdp=0000000083004000
    [    0.000000] [ffff00087fff9108] pgd=18000008ffff9003, p4d=18000008ffff9003
    [    0.000000] Unable to handle kernel paging request at virtual address ffff00087fff9108
    [    0.000000] Mem abort info:
    [    0.000000]   ESR = 0x0000000096000006
    [    0.000000]   EC = 0x25: DABT (current EL), IL = 32 bits
    [    0.000000]   SET = 0, FnV = 0
    [    0.000000]   EA = 0, S1PTW = 0
    [    0.000000]   FSC = 0x06: level 2 translation fault
    [    0.000000] Data abort info:
    [    0.000000]   ISV = 0, ISS = 0x00000006
    [    0.000000]   CM = 0, WnR = 0
    [    0.000000] swapper pgtable: 4k pages, 48-bit VAs, pgdp=0000000083004000
    [    0.000000] [ffff00087fff9108] pgd=18000008ffff9003, p4d=18000008ffff9003
    [    0.000000] Unable to handle kernel paging request at virtual address ffff00087fff9108
    [    0.000000] Mem abort info:
    [    0.000000]   ESR = 0x0000000096000006
    [    0.000000]   EC = 0x25: DABT (current EL), IL = 32 bits
    [    0.000000]   SET = 0, FnV = 0
    [    0.000000]   EA = 0, S1PTW = 0
    [    0.000000]   FSC = 0x06: level 2 translation fault
    [    0.000000] Data abort info:
    [    0.000000]   ISV = 0, ISS = 0x00000006
    [    0.000000]   CM = 0, WnR = 0
    [    0.000000] swapper pgtable: 4k pages, 48-bit VAs, pgdp=0000000083004000
    [    0.000000] [ffff00087fff9108] pgd=18000008ffff9003, p4d=18000008ffff9003
    [    0.000000] Unable to handle kernel paging request at virtual address ffff00087fff9108
    [    0.000000] Mem abort info:
    [    0.000000]   ESR = 0x0000000096000006
    [    0.000000]   EC = 0x25: DABT (current EL), IL = 32 bits
    [    0.000000]   SET = 0, FnV = 0
    [    0.000000]   EA = 0, S1PTW = 0
    [    0.000000]   FSC = 0x06: level 2 translation fault
    [    0.000000] Data abort info:
    [    0.000000]   ISV = 0, ISS = 0x00000006
    [    0.000000]   CM = 0, WnR = 0
    [    0.000000] swapper pgtable: 4k pages, 48-bit VAs, pgdp=0000000083004000
    [    0.000000] [ffff00087fff9108] pgd=18000008ffff9003, p4d=18000008ffff9003
    [    0.000000] Unable to handle kernel paging request at virtual address ffff00087fff9108
    [    0.000000] Mem abort info:
    [    0.000000]   ESR = 0x0000000096000006
    [    0.000000]   EC = 0x25: DABT (current EL), IL = 32 bits
    [    0.000000]   SET = 0, FnV = 0
    [    0.000000]   EA = 0, S1PTW = 0
    [    0.000000]   FSC = 0x06: level 2 translation fault
    [    0.000000] Data abort info:
    [    0.000000]   ISV = 0, ISS = 0x00000006
    [    0.000000]   CM = 0, WnR = 0
    [    0.000000] swapper pgtable: 4k pages, 48-bit VAs, pgdp=0000000083004000
    [    0.000000] [ffff00087fff9108] pgd=18000008ffff9003, p4d=18000008ffff9003
    [    0.000000] Unable to handle kernel paging request at virtual address ffff00087fff9108
    [    0.000000] Mem abort info:
    [    0.000000]   ESR = 0x0000000096000006
    [    0.000000]   EC = 0x25: DABT (current EL), IL = 32 bits
    [    0.000000]   SET = 0, FnV = 0
    [    0.000000]   EA = 0, S1PTW = 0
    [    0.000000]   FSC = 0x06: level 2 translation fault
    [    0.000000] Data abort info:
    [    0.000000]   ISV = 0, ISS = 0x00000006
    [    0.000000]   CM = 0, WnR = 0
    [    0.000000] swapper pgtable: 4k pages, 48-bit VAs, pgdp=0000000083004000
    [    0.000000] [ffff00087fff9108] pgd=18000008ffff9003, p4d=18000008ffff9003
    [    0.000000] Unable to handle kernel paging request at virtual address ffff00087fff9108
    [    0.000000] Mem abort info:
    [    0.000000]   ESR = 0x0000000096000006
    [    0.000000]   EC = 0x25: DABT (current EL), IL = 32 bits
    [    0.000000]   SET = 0, FnV = 0
    [    0.000000]   EA = 0, S1PTW = 0
    [    0.000000]   FSC = 0x06: level 2 translation fault
    [    0.000000] Data abort info:
    [    0.000000]   ISV = 0, ISS = 0x00000006
    [    0.000000]   CM = 0, WnR = 0
    [    0.000000] swapper pgtable: 4k pages, 48-bit VAs, pgdp=0000000083004000
    [    0.000000] [ffff00087fff9108] pgd=18000008ffff9003, p4d=18000008ffff9003
    [    0.000000] Unable to handle kernel paging request at virtual address ffff00087fff9108
    [    0.000000] Mem abort info:
    [    0.000000]   ESR = 0x0000000096000006
    [    0.000000]   EC = 0x25: DABT (current EL), IL = 32 bits
    [    0.000000]   SET = 0, FnV = 0
    [    0.000000]   EA = 0, S1PTW = 0
    [    0.000000]   FSC = 0x06: level 2 translation fault
    [    0.000000] Data abort info:
    [    0.000000]   ISV = 0, ISS = 0x00000006
    [    0.000000]   CM = 0, WnR = 0
    [    0.000000] swapper pgtable: 4k pages, 48-bit VAs, pgdp=0000000083004000
    [    0.000000] [ffff00087fff9108] pgd=18000008ffff9003, p4d=18000008ffff9003
    [    0.000000] Unable to handle kernel paging request at virtual address ffff00087fff9108
    [    0.000000] Mem abort info:
    [    0.000000]   ESR = 0x0000000096000006
    [    0.000000]   EC = 0x25: DABT (current EL), IL = 32 bits
    [    0.000000]   SET = 0, FnV = 0
    [    0.000000]   EA = 0, S1PTW = 0
    [    0.000000]   FSC = 0x06: level 2 translation fault
    [    0.000000] Data abort info:
    [    0.000000]   ISV = 0, ISS = 0x00000006
    [    0.000000]   CM = 0, WnR = 0
    [    0.000000] swapper pgtable: 4k pages, 48-bit VAs, pgdp=0000000083004000
    [    0.000000] [ffff00087fff9108] pgd=18000008ffff9003, p4d=18000008ffff9003
    [    0.000000] Unable to handle kernel paging request at virtual address ffff00087fff9108
    [    0.000000] Mem abort info:
    [    0.000000]   ESR = 0x0000000096000006
    [    0.000000]   EC = 0x25: DABT (current EL), IL = 32 bits
    [    0.000000]   SET = 0, FnV = 0
    [    0.000000]   EA = 0, S1PTW = 0
    [    0.000000]   FSC = 0x06: level 2 translation fault
    [    0.000000] Data abort info:
    [    0.000000]   ISV = 0, ISS = 0x00000006
    [    0.000000]   CM = 0, WnR = 0
    [    0.000000] swapper pgtable: 4k pages, 48-bit VAs, pgdp=0000000083004000
    [    0.000000] [ffff00087fff9108] pgd=18000008ffff9003, p4d=18000008ffff9003
    [    0.000000] Unable to handle kernel paging request at virtual address ffff00087fff9108
    [    0.000000] Mem abort info:
    [    0.000000]   ESR = 0x0000000096000006
    [    0.000000]   EC = 0x25: DABT (current EL), IL = 32 bits
    [    0.000000]   SET = 0, FnV = 0
    [    0.000000]   EA = 0, S1PTW = 0
    [    0.000000]   FSC = 0x06: level 2 translation fault
    [    0.000000] Data abort info:
    [    0.000000]   ISV = 0, ISS = 0x00000006
    [    0.000000]   CM = 0, WnR = 0
    [    0.000000] swapper pgtable: 4k pages, 48-bit VAs, pgdp=0000000083004000
    [    0.000000] [ffff00087fff9108] pgd=18000008ffff9003, p4d=18000008ffff9003
    [    0.000000] Unable to handle kernel paging request at virtual address ffff00087fff9108
    [    0.000000] Mem abort info:
    [    0.000000]   ESR = 0x0000000096000006
    [    0.000000]   EC = 0x25: DABT (current EL), IL = 32 bits
    [    0.000000]   SET = 0, FnV = 0
    [    0.000000]   EA = 0, S1PTW = 0
    [    0.000000]   FSC = 0x06: level 2 translation fault
    [    0.000000] Data abort info:
    [    0.000000]   ISV = 0, ISS = 0x00000006
    [    0.000000]   CM = 0, WnR = 0
    [    0.000000] swapper pgtable: 4k pages, 48-bit VAs, pgdp=0000000083004000
    [    0.000000] [ffff00087fff9108] pgd=18000008ffff9003, p4d=18000008ffff9003
    [    0.000000] Unable to handle kernel paging request at virtual address ffff00087fff9108
    [    0.000000] Mem abort info:
    [    0.000000]   ESR = 0x0000000096000006
    [    0.000000]   EC = 0x25: DABT (current EL), IL = 32 bits
    [    0.000000]   SET = 0, FnV = 0
    [    0.000000]   EA = 0, S1PTW = 0
    [    0.000000]   FSC = 0x06: level 2 translation fault
    [    0.000000] Data abort info:
    [    0.000000]   ISV = 0, ISS = 0x00000006
    [    0.000000]   CM = 0, WnR = 0
    [    0.000000] swapper pgtable: 4k pages, 48-bit VAs, pgdp=0000000083004000
    [    0.000000] [ffff00087fff9108] pgd=18000008ffff9003, p4d=18000008ffff9003
    [    0.000000] Unable to handle kernel paging request at virtual address ffff00087fff9108
    [    0.000000] Mem abort info:
    [    0.000000]   ESR = 0x0000000096000006
    [    0.000000]   EC = 0x25: DABT (current EL), IL = 32 bits
    [    0.000000]   SET = 0, FnV = 0
    [    0.000000]   EA = 0, S1PTW = 0
    [    0.000000]   FSC = 0x06: level 2 translation fault
    [    0.000000] Data abort info:
    [    0.000000]   ISV = 0, ISS = 0x00000006
    [    0.000000]   CM = 0, WnR = 0
    [    0.000000] swapper pgtable: 4k pages, 48-bit VAs, pgdp=0000000083004000
    [    0.000000] [ffff00087fff9108] pgd=18000008ffff9003, p4d=18000008ffff9003
    [    0.000000] Unable to handle kernel paging request at virtual address ffff00087fff9108
    [    0.000000] Mem abort info:
    [    0.000000]   ESR = 0x0000000096000006
    [    0.000000]   EC = 0x25: DABT (current EL), IL = 32 bits
    [    0.000000]   SET = 0, FnV = 0
    [    0.000000]   EA = 0, S1PTW = 0
    [    0.000000]   FSC = 0x06: level 2 translation fault
    [    0.000000] Data abort info:
    [    0.000000]   ISV = 0, ISS = 0x00000006
    [    0.000000]   CM = 0, WnR = 0
    [    0.000000] swapper pgtable: 4k pages, 48-bit VAs, pgdp=0000000083004000
    [    0.000000] [ffff00087fff9108] pgd=18000008ffff9003, p4d=18000008ffff9003
    [    0.000000] Unable to handle kernel paging request at virtual address ffff00087fff9108
    [    0.000000] Mem abort info:
    [    0.000000]   ESR = 0x0000000096000006
    [    0.000000]   EC = 0x25: DABT (current EL), IL = 32 bits
    [    0.000000]   SET = 0, FnV = 0
    [    0.000000]   EA = 0, S1PTW = 0
    [    0.000000]   FSC = 0x06: level 2 translation fault
    [    0.000000] Data abort info:
    [    0.000000]   ISV = 0, ISS = 0x00000006
    [    0.000000]   CM = 0, WnR = 0
    [    0.000000] swapper pgtable: 4k pages, 48-bit VAs, pgdp=0000000083004000
    [    0.000000] [ffff00087fff9108] pgd=18000008ffff9003, p4d=18000008ffff9003
    [    0.000000] Unable to handle kernel paging request at virtual address ffff00087fff9108
    [    0.000000] Mem abort info:
    [    0.000000]   ESR = 0x0000000096000006
    [    0.000000]   EC = 0x25: DABT (current EL), IL = 32 bits
    [    0.000000]   SET = 0, FnV = 0
    [    0.000000]   EA = 0, S1PTW = 0
    [    0.000000]   FSC = 0x06: level 2 translation fault
    [    0.000000] Data abort info:
    [    0.000000]   ISV = 0, ISS = 0x00000006
    [    0.000000]   CM = 0, WnR = 0
    [    0.000000] swapper pgtable: 4k pages, 48-bit VAs, pgdp=0000000083004000
    [    0.000000] [ffff00087fff9108] pgd=18000008ffff9003, p4d=18000008ffff9003
    [    0.000000] Unable to handle kernel paging request at virtual address ffff00087fff9108
    [    0.000000] Mem abort info:
    [    0.000000]   ESR = 0x0000000096000006
    [    0.000000]   EC = 0x25: DABT (current EL), IL = 32 bits
    [    0.000000]   SET = 0, FnV = 0
    [    0.000000]   EA = 0, S1PTW = 0
    [    0.000000]   FSC = 0x06: level 2 translation fault
    [    0.000000] Data abort info:
    [    0.000000]   ISV = 0, ISS = 0x00000006
    [    0.000000]   CM = 0, WnR = 0
    [    0.000000] swapper pgtable: 4k pages, 48-bit VAs, pgdp=0000000083004000
    [    0.000000] [ffff00087fff9108] pgd=18000008ffff9003, p4d=18000008ffff9003
    [    0.000000] Unable to handle kernel paging request at virtual address ffff00087fff9108
    [    0.000000] Mem abort info:
    [    0.000000]   ESR = 0x0000000096000006
    [    0.000000]   EC = 0x25: DABT (current EL), IL = 32 bits
    [    0.000000]   SET = 0, FnV = 0
    [    0.000000]   EA = 0, S1PTW = 0
    [    0.000000]   FSC = 0x06: level 2 translation fault
    [    0.000000] Data abort info:
    [    0.000000]   ISV = 0, ISS = 0x00000006
    [    0.000000]   CM = 0, WnR = 0
    [    0.000000] swapper pgtable: 4k pages, 48-bit VAs, pgdp=0000000083004000
    [    0.000000] [ffff00087fff9108] pgd=18000008ffff9003, p4d=18000008ffff9003
    [    0.000000] Unable to handle kernel paging request at virtual address ffff00087fff9108
    [    0.000000] Mem abort info:
    [    0.000000]   ESR = 0x0000000096000006
    [    0.000000]   EC = 0x25: DABT (current EL), IL = 32 bits
    [    0.000000]   SET = 0, FnV = 0
    [    0.000000]   EA = 0, S1PTW = 0
    [    0.000000]   FSC = 0x06: level 2 translation fault
    [    0.000000] Data abort info:
    [    0.000000]   ISV = 0, ISS = 0x00000006
    [    0.000000]   CM = 0, WnR = 0
    [    0.000000] swapper pgtable: 4k pages, 48-bit VAs, pgdp=0000000083004000
    [    0.000000] [ffff00087fff9108] pgd=18000008ffff9003, p4d=18000008ffff9003
    [    0.000000] Unable to handle kernel paging request at virtual address ffff00087fff9108
    [    0.000000] Mem abort info:
    [    0.000000]   ESR = 0x0000000096000006
    [    0.000000]   EC = 0x25: DABT (current EL), IL = 32 bits
    [    0.000000]   SET = 0, FnV = 0
    [    0.000000]   EA = 0, S1PTW = 0
    [    0.000000]   FSC = 0x06: level 2 translation fault
    [    0.000000] Data abort info:
    [    0.000000]   ISV = 0, ISS = 0x00000006
    [    0.000000]   CM = 0, WnR = 0
    [    0.000000] swapper pgtable: 4k pages, 48-bit VAs, pgdp=0000000083004000
    [    0.000000] [ffff00087fff9108] pgd=18000008ffff9003, p4d=18000008ffff9003
    [    0.000000] Unable to handle kernel paging request at virtual address ffff00087fff9108
    [    0.000000] Mem abort info:
    [    0.000000]   ESR = 0x0000000096000006
    [    0.000000]   EC = 0x25: DABT (current EL), IL = 32 bits
    [    0.000000]   SET = 0, FnV = 0
    [    0.000000]   EA = 0, S1PTW = 0
    [    0.000000]   FSC = 0x06: level 2 translation fault
    [    0.000000] Data abort info:
    [    0.000000]   ISV = 0, ISS = 0x00000006
    [    0.000000]   CM = 0, WnR = 0
    [    0.000000] swapper pgtable: 4k pages, 48-bit VAs, pgdp=0000000083004000
    [    0.000000] [ffff00087fff9108] pgd=18000008ffff9003, p4d=18000008ffff9003
    [    0.000000] Unable to handle kernel paging request at virtual address ffff00087fff9108
    [    0.000000] Mem abort info:
    [    0.000000]   ESR = 0x0000000096000006
    [    0.000000]   EC = 0x25: DABT (current EL), IL = 32 bits
    [    0.000000]   SET = 0, FnV = 0
    [    0.000000]   EA = 0, S1PTW = 0
    [    0.000000]   FSC = 0x06: level 2 translation fault
    [    0.000000] Data abort info:
    [    0.000000]   ISV = 0, ISS = 0x00000006
    [    0.000000]   CM = 0, WnR = 0
    [    0.000000] swapper pgtable: 4k pages, 48-bit VAs, pgdp=0000000083004000
    [    0.000000] [ffff00087fff9108] pgd=18000008ffff9003, p4d=18000008ffff9003
    [    0.000000] Unable to handle kernel paging request at virtual address ffff00087fff9108
    [    0.000000] Mem abort info:
    [    0.000000]   ESR = 0x0000000096000006
    [    0.000000]   EC = 0x25: DABT (current EL), IL = 32 bits
    [    0.000000]   SET = 0, FnV = 0
    [    0.000000]   EA = 0, S1PTW = 0
    [    0.000000]   FSC = 0x06: level 2 translation fault
    [    0.000000] Data abort info:
    [    0.000000]   ISV = 0, ISS = 0x00000006
    [    0.000000]   CM = 0, WnR = 0
    [    0.000000] swapper pgtable: 4k pages, 48-bit VAs, pgdp=0000000083004000
    [    0.000000] [ffff00087fff9108] pgd=18000008ffff9003, p4d=18000008ffff9003
    [    0.000000] Insufficient stack space to handle exception!
    [    0.000000] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000078
    [    0.000000] Mem abort info:
    [    0.000000]   ESR = 0x0000000096000004
    [    0.000000]   EC = 0x25: DABT (current EL), IL = 32 bits
    [    0.000000]   SET = 0, FnV = 0
    [    0.000000]   EA = 0, S1PTW = 0
    [    0.000000]   FSC = 0x04: level 0 translation fault
    [    0.000000] Data abort info:
    [    0.000000]   ISV = 0, ISS = 0x00000004
    [    0.000000]   CM = 0, WnR = 0
    [    0.000000] [0000000000000078] user address but active_mm is swapper
    [    0.000000] Internal error: Oops: 0000000096000004 [#1] PREEMPT SMP
    [    0.000000] Modules linked in:
    [    0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 6.1.46-g247b2535b2 #1
    [    0.000000] Hardware name: Texas Instruments AM62A7 SK (DT)
    [    0.000000] pstate: 000003c5 (nzcv DAIF -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
    [    0.000000] pc : __ipi_send_mask+0x18/0x110
    [    0.000000] lr : arch_irq_work_raise+0x44/0x50
    [    0.000000] sp : ffff00087f831fa0
    [    0.000000] x29: ffff00087f831fa0 x28: ffff8000092329c0 x27: ffff800008ecede8
    [    0.000000] x26: ffff8000092b4000 x25: ffff800008f95000 x24: 0000000000000000
    [    0.000000] x23: ffff00087f831300 x22: 0000000096000006 x21: ffff800009220000
    [    0.000000] x20: 0000000000000060 x19: 0000000000000001 x18: 0000000000000038
    [    0.000000] x17: 3030666666662073 x16: 736572646461206c x15: fffffffffffe4e30
    [    0.000000] x14: 0000000000000010 x13: 216e6f6974706563 x12: 786520656c646e61
    [    0.000000] x11: 68206f7420656361 x10: 7073206b63617473 x9 : 646e6168206f7420
    [    0.000000] x8 : ffff800009241378 x7 : ffff00087f831fa0 x6 : 000000000000000c
    [    0.000000] x5 : ffff00087f832b60 x4 : ffff00087f832b60 x3 : ffff800008c1ae08
    [    0.000000] x2 : 0000000000000000 x1 : ffff800008c1ae28 x0 : 0000000000000000
    [    0.000000] Call trace:
    [    0.000000]  __ipi_send_mask+0x18/0x110
    [    0.000000]  arch_irq_work_raise+0x44/0x50
    [    0.000000]  __irq_work_queue_local+0x78/0x80
    [    0.000000]  irq_work_queue+0x50/0x80
    [    0.000000]  __wake_up_klogd.part.0+0x98/0xf0
    [    0.000000]  defer_console_output+0x20/0x30
    [    0.000000]  vprintk+0x94/0xe4
    [    0.000000]  _printk+0x60/0x8c
    [    0.000000]  panic_bad_stack+0x7c/0x124
    [    0.000000]  handle_bad_stack+0x34/0xc0
    [    0.000000]  __bad_stack+0x78/0x7c
    [    0.000000]  die_kernel_fault+0x2b0/0x358
    [    0.000000] Code: 910003fd a90153f3 91018014 a90363f7 (f9400e97)
    [    0.000000] ---[ end trace 0000000000000000 ]---
    [    0.000000] Kernel panic - not syncing: Oops: Fatal exception in interrupt
    
    
     

    Do you have any leads on what could be causing the Kernel panic from this? 

  • Hi, 

    Have you been following the Porting Kernel guide: Porting Kernel

    Are you able to boot with minimal DTS configuration?

    Regards,
    Aparna 

  • Hello, 

    Yes, I tried that but when I follow the guide I get build errors. 

      DTC     arch/arm64/boot/dts/ti/k3-am62a7-hello-world.dtb
    arch/arm64/boot/dts/ti/k3-am62a-main.dtsi:203.35-226.4: ERROR (phandle_references): /bus@f0000/system-controller@44043000: Reference to non-existent node or label "mcu_mcan0"
    
      also defined at arch/arm64/boot/dts/ti/k3-am62a.dtsi:129.7-131.3
    arch/arm64/boot/dts/ti/k3-am62a-main.dtsi:203.35-226.4: ERROR (phandle_references): /bus@f0000/system-controller@44043000: Reference to non-existent node or label "mcu_mcan1"
    
      also defined at arch/arm64/boot/dts/ti/k3-am62a.dtsi:129.7-131.3
    arch/arm64/boot/dts/ti/k3-am62a-main.dtsi:203.35-226.4: ERROR (phandle_references): /bus@f0000/system-controller@44043000: Reference to non-existent node or label "mcu_uart0"
    
      also defined at arch/arm64/boot/dts/ti/k3-am62a.dtsi:129.7-131.3
    arch/arm64/boot/dts/ti/k3-am62a-main.dtsi:203.35-226.4: ERROR (phandle_references): /bus@f0000/system-controller@44043000: Reference to non-existent node or label "wkup_uart0"
    
      also defined at arch/arm64/boot/dts/ti/k3-am62a.dtsi:129.7-131.3
    arch/arm64/boot/dts/ti/k3-am62a7.dtsi:104.27-145.4: ERROR (phandle_references): /opp-table: Reference to non-existent node or label "wkup_conf"
    
    ERROR: Input tree has errors, aborting (use -f to force output)
    make[2]: *** [scripts/Makefile.lib:424: arch/arm64/boot/dts/ti/k3-am62a7-hello-world.dtb] Error 2
    make[1]: *** [scripts/Makefile.build:502: arch/arm64/boot/dts/ti] Error 2
    make: *** [Makefile:1478: dtbs] Error 2


    The ti-linux-kernal is unmodified, apart from the hello-world.dts and Makefile adjustment that the guide tells me to do. 

    I think the build command is outdated. 

    I am using make ARCH=arm64 CROSS_COMPILE='aarch64-linux-gnu-' dtbs
    instead of 
    make ARCH=arm64 CROSS_COMPILE='aarch64-none-linux-gnu-' dtbs

    From what I have seen before is the aarch64-none-linux-gnu compile option is for older SDK, so more things might have been changed. 

  • Hi, 

    There is a follow up thread: (9) AM62A7: Problems with following Linux Board Port guide for custom board - Processors forum - Processors - TI E2E support forums

    C
    losing this one, we can continue discussion on the other thread.

    Regards,
    Aparna