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.

Dra829v: start Linux kernel card through uboot in sdk8.0 in end kernel panic - not syncing: no working init found

Other Parts Discussed in Thread: DRA829

Hi Expert,

At present, after the SDK package is upgraded to 8.0, each time the Linux kernel is started, it stays in the following information:

”[ 132.359862] ---[ end kerkel panic - not syncing:no working init found. Try passing init=option to kernel. See Linux Documentation/admin-guide/init.rst for guidance.]---

I don't know what caused it. The previous sdk703 version can be started.how to resolve it?


At present, we use the dra829 development board designed by ourselves, which is different from the demo board provided by Ti in DDR, flash, EEPROM and Ethernet. In addition, I use the can board provided by Ti through OSPI_ boot_ app_ mcu_ rtos_ mcu1_ 0 to start uboot, and then connect the NFS of the virtual machine through TFTP to start Linux.
The complete log from u-boot / SPL is as follows:

SBL Revision: 01.00.10.01 (Oct 1 2021 - 14:57:27)
TIFS ver: 21.5.0--v2021.05 (Terrific Llam
SCISERVER Board Configuration header population... PASSED
Sciclient_setBoardConfigHeader... PASSED
Efuse xlated: VD 2 to 800 mV (OppVid: 0x37, Slave:0x48, Res:0x0)
Successfully set voltage to 800 mV for Slave:0x48, Res:0x0
Initlialzing PLLs ...done.
InitlialzingClocks ...done.
Initlialzing DDR ...done.
Initializing GTC ...Begin parsing user application
Calling Sciclient_procBootRequestProcessor, ProcId 0x20...
Calling Sciclient_procBootRequestProcessor, ProcId 0x21...
Calling Sciclient_procBootRequestProcessor, ProcId 0x1...
Calling Sciclient_procBootRequestProcessor, ProcId 0x2...
Calling Sciclient_procBootRequestProcessor, ProcId 0x6...
Calling Sciclient_procBootRequestProcessor, ProcId 0x7...
Calling Sciclient_procBootRequestProcessor, ProcId 0x8...
Calling Sciclient_procBootRequestProcessor, ProcId 0x9...
Calling Sciclient_procBootRequestProcessor, ProcId 0x3...
Calling Sciclient_procBootRequestProcessor, ProcId 0x4...
Calling Sciclient_procBootRequestProcessor, ProcId 0x30...
OSPI RCLK running at 166666666 MHz.
SBL_VerifyMulticoreImage fp_readData
Ospi Read speed for 0x4 bytes from offset 0x100000 = 0 Mbytes per sec
Searching for X509 certificate ...not found
SBL_VerifyMulticoreImage Ccert_len = 0x0

SBL_MulticoreImageParse srcAddr=0x41c7ff58,ImageOffset=0x100000
Ospi Read speed for 0x10 bytes from offset 0x100000 = 0 Mbytes per sec

SBL_MulticoreImageParse - GetDeviceId
Ospi Read speed for 0x8 bytes from offset 0x100010 = 0 Mbytes per sec
Ospi Read speed for 0x8 bytes from offset 0x100018 = 0 Mbytes per sec
Now Parse Individual RPRC files,num_files=1
J721E SBL_RprcImageParse
Ospi Read speed for 0x14 bytes from offset 0x100020 = 0 Mbytes per sec
SBL_RprcImageParse,read application image header
SBL_RprcImageParse,Setup CPUs internal memory before using it
Switching core id 4, proc_id 0x1 to split mode...
Calling Sciclient_procBootGetProcessorState, ProcId 0x1...
Sciclient_procBootSetProcessorCfg, ProcId 0x1, enabling split mode...
Calling Sciclient_procBootGetProcessorState, ProcId 0x1...
Enabling MCU TCMs after reset for core 4
Sciclient_procBootSetProcessorCfg update TCM enable/disable settings...
Ospi Read speed for 0x14 bytes from offset 0x100034 = 0 Mbytes per sec
Copying 0x40 bytes to 0x41010000
Ospi Read speed for 0x40 bytes from offset 0x100048 = 2 Mbytes per sec
Ospi Read speed for 0x14 bytes from offset 0x100088 = 0 Mbytes per sec
Copying 0xaf0 bytes to 0x41010100
Ospi Read speed for 0xaf0 bytes from offset 0x10009c = 18 Mbytes per sec
Ospi Read speed for 0x14 bytes from offset 0x100b8c = 0 Mbytes per sec
Copying 0x28 bytes to 0x41010bf0
Ospi Read speed for 0x28 bytes from offset 0x100ba0 = 1 Mbytes per sec
Ospi Read speed for 0x14 bytes from offset 0x100bc8 = 0 Mbytes per sec
Copying 0x10 bytes to 0x41010c18
Ospi Read speed for 0x10 bytes from offset 0x100bdc = 0 Mbytes per sec
Ospi Read speed for 0x14 bytes from offset 0x100bec = 0 Mbytes per sec
Copying 0x1ecf0 bytes to 0x41ca5080
Ospi Read speed for 0x1ecf0 bytes from offset 0x100c00 = 21 Mbytes per sec
Ospi Read speed for 0x14 bytes from offset 0x11f8f0 = 0 Mbytes per sec
Copying 0x4710 bytes to 0x41cc8d80
Ospi Read speed for 0x4710 bytes from offset 0x11f904 = 19 Mbytes per sec
Ospi Read speed for 0x14 bytes from offset 0x124014 = 0 Mbytes per sec
Copying 0xb80 bytes to 0x41cce688
Ospi Read speed for 0xb80 bytes from offset 0x124028 = 18 Mbytes per sec
Ospi Read speed for 0x14 bytes from offset 0x124ba8 = 0 Mbytes per sec
Copying 0x2000 bytes to 0x41ce0000
Ospi Read speed for 0x2000 bytes from offset 0x124bbc = 18 Mbytes per sec
Ospi Read speed for 0x14 bytes from offset 0x126bbc = 0 Mbytes per sec
Copying 0xecb8 bytes to 0x41ce2100
Ospi Read speed for 0xecb8 bytes from offset 0x126bd0 = 21 Mbytes per sec
Ospi Read speed for 0x14 bytes from offset 0x135888 = 0 Mbytes per sec
Copying 0x5084 bytes to 0x41cf0db8
Ospi Read speed for 0x5084 bytes from offset 0x13589c = 20 Mbytes per sec
Ospi Read speed for 0x14 bytes from offset 0x13a920 = 0 Mbytes per sec
Copying 0x3180 bytes to 0x41cf5e3c
Ospi Read speed for 0x3180 bytes from offset 0x13a934 = 19 Mbytes per sec
Ospi Read speed for 0x14 bytes from offset 0x13dab4 = 0 Mbytes per sec
Copying 0x1900 bytes to 0x41cf9000
Ospi Read speed for 0x1900 bytes from offset 0x13dac8 = 19 Mbytes per sec
Ospi Read speed for 0x14 bytes from offset 0x13f3c8 = 0 Mbytes per sec
Copying 0x200 bytes to 0x41cfde80
Ospi Read speed for 0x200 bytes from offset 0x13f3dc = 11 Mbytes per sec
Ospi Read speed for 0x14 bytes from offset 0x13f5dc = 0 Mbytes per sec
Copying 0x200 bytes to 0x41cfe080
Ospi Read speed for 0x200 bytes from offset 0x13f5f0 = 11 Mbytes per sec
Ospi Read speed for 0x14 bytes from offset 0x13f7f0 = 0 Mbytes per sec
Copying 0x200 bytes to 0x41cfe280
Ospi Read speed for 0x200 bytes from offset 0x13f804 = 11 Mbytes per sec

SBL_MulticoreImageParse - SBL_BootCore
Setting entry point for core 4 @0x41010000

OSPI SBL_MulticoreImageParse - SBL_ENABLE_HLOS_BOOT false

OSPI Boot -SBL_ospiClose
SBL_ospiClose called
Sciclient_procBootReleaseProcessor, ProcId 0x20...
Sciclient_procBootReleaseProcessor, ProcId 0x21...
Sciclient_procBootReleaseProcessor, ProcId 0x1...
Sciclient_procBootReleaseProcessor, ProcId 0x2...
Sciclient_procBootReleaseProcessor, ProcId 0x6...
Sciclient_procBootReleaseProcessor, ProcId 0x7...
Sciclient_procBootReleaseProcessor, ProcId 0x8...
Sciclient_procBootReleaseProcessor, ProcId 0x9...
Sciclient_procBootReleaseProcessor, ProcId 0x3...
Sciclient_procBootReleaseProcessor, ProcId 0x4...
Sciclient_procBootReleaseProcessor, ProcId 0x30...
Calling Sciclient_procBootRequestProcessor, ProcId 0x1...
Sciclient_procBootSetProcessorCfg, ProcId 0x1, EntryPoint 0x41010000...
Sciclient_pmSetModuleClkFreq, DevId 0xfa @ 1000000000Hz...
Copying first 128 bytes from app to MCU ATCM @ 0x0 for core 4
Calling Sciclient_procBootRequestProcessor, ProcId 0x2...
Skipping Sciclient_procBootSetProcessorCfg for ProcId 0x2, EntryPoint 0xfffffffe...
Calling Sciclient_procBootRequestProcessor, ProcId 0x1...
Starting Sciserver..... PASSED

CAN Resontrol failed to configure RMII pins
loop-back mode
CAN Response App:Message Id Received c00000c0 Message Length is 64
CAN Recontrol failed to configure CPSW9G MDIO mux
ge Length is 64
CAN Response App:Test completed for 0 instance

CAN Response App:Test completed for 0 instance

Invalid magic number in Single image header
Crror parsing Main Domain appimage
internal loop-back mode
CAN Response App:Message Id Received c00000b0 Message Length is 64
Cailure during image copy and parsing

000b0 Message Length is 64
CAN Response App:Test completed for 1 instance

CAN Response App:Test completed for 1 instance

Invalid magic number in Single image header
Crror parsing Main Domain appimage
r stack
CAN Response App:Early CAN completed!!!
Cailure during image copy and parsing

Failure during image copy and parsing

OSNOTICE: PBL31: v2.5I(release):08.00.00.004 -dirty
NOfTICE: BL3l1: Built : a19:50:44, sSep 23 202h1
ERROR: GTC_CNTFIlD0 is 0! Aessuming 20f0000000 Hz.t Fix Bootl oader
configured in Legacy SPI mode.

OSPI NOR device ID: 0x5b1c, manufacturer ID: 0x2c
U-Boot SPL 2021.01-dirty (Oct 29 2021 - 13:47:54 +0800)
Model: Texas Instruments K3 J721E SoC

EEPROM not available at 0x50, trying to read at 0x51
Reading on-board EEPROM at 0x51 failed 1
Board: J721EX-PM1-SOM rev E2
SYSFW ABI: 3.1 (firmware rev 0x0015 '21.5.0--v2021.05 (Terrific Llam')
EEPROM not available at 0x50, trying to read at 0x51
Reading on-board EEPROM at 0x51 failed 1
Trying to boot from SPI
CATL Debug,pinctrl_select_state_full,dev-name=spi@47040000,pingname=default,pinctrl-0,size=1
CATL Debug,pinctrl_config_one pinctrl_get_ops,pctldev->name=pinctrl@4301c000,config name=mcu-fss0-ospi0-pins-default
cadence_spi spi@47040000: Can't get reset: -2


U-Boot 2021.01-dirty (Oct 29 2021 - 13:47:54 +0800)

SoC: J721E SR1.0
Model: Texas Instruments K3 J721E SoC
EEPROM not available at 0x50, trying to read at 0x51
Reading on-board EEPROM at 0x51 failed 1
Board: J721EX-PM1-SOM rev E2
DRAM: 4 GiB
CATL Debug,pinctrl_select_state_full,dev-name=clocks,pingname=default,pinctrl-0,size=1
CATL Debug,pinctrl_config_one pinctrl_get_ops,pctldev->name=pinctrl@11c000,config name=audi-ext-refclk2-pins-default
Flash: 0 Bytes
MMC: CATL Debug,pinctrl_select_state_full,dev-name=sdhci@4fb0000,pingname=default,pinctrl-0,size=1
CATL Debug,pinctrl_config_one pinctrl_get_ops,pctldev->name=pinctrl@11c000,config name=main-mmc1-pins-default
sdhci@4f80000: 0, sdhci@4fb0000: 1
Loading Environment from MMC... OK
In: serial@40a00000
Out: serial@40a00000
Err: serial@40a00000
EEPROM not available at 0x50, trying to read at 0x51
Reading on-board EEPROM at 0x51 failed 1
Net: CATL Debug,pinctrl_select_state_full,dev-name=ethernet@46000000,pingname=default,pinctrl-0,size=2
CATL Debug,pinctrl_config_one pinctrl_get_ops,pctldev->name=pinctrl@4301c000,config name=mcu-cpsw-pins-default
CATL Debug,pinctrl_config_one pinctrl_get_ops,pctldev->name=pinctrl@4301c000,config name=mcu-mdio1-pins-default
CATL Debug,am65_cpsw_probe_cpsw
CATL Debug,am65_cpsw_phy_init,phy=24
CATL Debug,genphy_config,phydev=24
am65_cpsw_nuss_slave ethernet@46000000: K3 CPSW: nuss_ver: 0x6BA00101 cpsw_ver: 0x6BA80100 ale_ver: 0x00293904 Ports:1 mdio_freq:1000000
eth0: ethernet@46000000
Hit any key to stop autoboot: 0
k3-navss-ringacc ringacc@2b800000: Ring Accelerator probed rings:286, gp-rings[96,20] sci-dev-id:235
k3-navss-ringacc ringacc@2b800000: dma-ring-reset-quirk: disabled
am65_cpsw_nuss_slave ethernet@46000000: K3 CPSW: rflow_id_base: 2
CATL Debug,genphy_update_link,phydev=24
ethernet@46000000 Waiting for PHY auto negotiation to complete..Boot App: Started at 424 usec
Boot App: Total Num booted cores = 1
Boot App: Booted Core ID #0 at 980009 usecs

MCU Boot Task started at 423 usecs and finished at 5184410 usecs
.. done
link up on port 1, speed 1000, full duplex
Using ethernet@46000000 device
TFTP from server 192.168.0.120; our IP address is 192.168.0.55
Filename 'Image-j7-evm.bin'.
Load address: 0x82000000
Loading: #T ################################################################

Starting kernel ...

ERROR: GTC_CNTFID0 is 0! Assuming 200000000 Hz. Fix Bootloader
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x411fd080]
[ 0.000000] Linux version 5.10.41-g4c2eade9f7 (root@BMS) (aarch64-none-linux-gnu-gcc (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10)) 9.2.1 20191025, GNU ld (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10)) 2.33.1.20191209) #1 SMP PREEMPT Mon Nov 1 10:18:56 CST 2021
[ 0.000000] Machine model: Texas Instruments K3 J721E SoC

..........................................................................................

[ 0.000000] page dumped because: nonzero mapcount
[ 0.000000] Modules linked in:
[ 0.000000] CPU: 0 PID: 0 Comm: swapper Tainted: G B 5.10.41-g4c2eade9f7 #1
[ 0.000000] Hardware name: Texas Instruments K3 J721E SoC (DT)
[ 0.000000] Call trace:
[ 0.000000] dump_backtrace+0x0/0x1a0
[ 0.000000] show_stack+0x18/0x68
[ 0.000000] dump_stack+0xd0/0x12c
[ 0.000000] bad_page+0xdc/0x108
[ 0.000000] check_free_page_bad+0x7c/0x88
[ 0.000000] __free_pages_ok+0x3bc/0x3c8
[ 0.000000] __free_pages_core+0xb4/0xc8
[ 0.000000] memblock_free_pages+0x14/0x20
[ 0.000000] memblock_free_all+0x16c/0x24c
[ 0.000000] mem_init+0x68/0x80
[ 0.000000] start_kernel+0x290/0x4d4
[ 0.000000] BUG: Bad page state in process swapper pfn:80033
[ 0.000000] page:(____ptrval____) refcount:0 mapcount:1 mapping:0000000000000000 index:0x0 pfn:0x80033

..........................................................................................

[ 8.965599] k3-ringacc 3c000000.ringacc: Failed to alloc ring mem
[ 8.973019] cma: cma_alloc: alloc failed, req-size: 12 pages, ret: -16
[ 8.977596] k3-ringacc 3c000000.ringacc: Failed to alloc ring mem
[ 8.979553] mmc0: Command Queue Engine enabled
[ 8.985620] cadence-qspi 47040000.spi: error -ENODEV: No Rx DMA available
[ 8.990048] mmc0: new HS400 MMC card at address 0001
[ 8.997106] spi-nor spi0.0: mt35xu02g (262144 Kbytes)
[ 9.007015] mmcblk0: mmc0:0001 DG4016 14.6 GiB
[ 9.011704] mmcblk0boot0: mmc0:0001 DG4016 partition 1 8.00 MiB
[ 9.017783] mmcblk0boot1: mmc0:0001 DG4016 partition 2 8.00 MiB
[ 9.023799] mmcblk0rpmb: mmc0:0001 DG4016 partition 3 4.00 MiB, chardev (237:0)
[ 9.032708] mmcblk0: p1 p2
[ 9.037620] k3-ringacc 3c000000.ringacc: Failed to alloc ring mem
[ 9.049592] k3-ringacc 3c000000.ringacc: Failed to alloc ring mem
[ 9.055693] cadence-qspi 47050000.spi: error -ENODEV: No Rx DMA available
[ 9.062699] spi-nor spi1.0: unrecognized JEDEC id bytes: ff ff ff ff ff ff
[ 9.069570] spi-nor: probe of spi1.0 failed with error -2
[ 9.113594] davinci_mdio 46000f00.mdio: davinci mdio revision 9.7, bus freq 1000000
[ 9.121247] libphy: 46000f00.mdio: probed
[ 9.126409] davinci_mdio 46000f00.mdio: phy[24]: device 46000f00.mdio:18, driver Generic PHY
[ 9.134881] am65-cpsw-nuss 46000000.ethernet: initializing am65 cpsw nuss version 0x6BA00101, cpsw version 0x6BA80100 Ports: 2 quirks:00000000
[ 9.291547] cma: cma_alloc: alloc failed, req-size: 2 pages, ret: -16
[ 9.441979] cma: cma_alloc: alloc failed, req-size: 2 pages, ret: -16
[ 9.457786] cma: cma_alloc: alloc failed, req-size: 17 pages, ret: -16
[ 9.482693] cma: cma_alloc: alloc failed, req-size: 16 pages, ret: -16
[ 9.489230] am65-cpsw-nuss 46000000.ethernet: set new flow-id-base 48
[ 9.501596] k3-ringacc 2b800000.ringacc: Failed to alloc ring mem

....................................................................................................................

[ 132.289931] Run /bin/sh as init process
[ 132.293796] Kernel panic - not syncing: No working init found. Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst for guidance.
[ 132.307937] CPU: 0 PID: 1 Comm: swapper/0 Tainted: G B 5.10.41-g4c2eade9f7 #1
[ 132.316354] Hardware name: Texas Instruments K3 J721E SoC (DT)
[ 132.322170] Call trace:
[ 132.324608] dump_backtrace+0x0/0x1a0
[ 132.328258] show_stack+0x18/0x68
[ 132.331559] dump_stack+0xd0/0x12c
[ 132.334951] panic+0x16c/0x334
[ 132.337992] kernel_init+0xf8/0x114
[ 132.341468] ret_from_fork+0x10/0x34
[ 132.345033] SMP: stopping secondary CPUs
[ 132.348947] Kernel Offset: disabled
[ 132.352424] CPU features: 0x0040022,20006008
[ 132.356680] Memory Limit: none
[ 132.359727] ---[ end Kernel panic - not syncing: No working init found. Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst for guidance. ]---


CAN_ BOOT_ APP_ MCU_ RTOS is a demo provided by Ti. It is started through SBL. Firmware is loaded in SBL. CAN_ BOOT_ APP_ MCU_ RTOS starts ATF in flash through bootapp_ Optee (address in flash: 0x1c000), ATF_ Optee starts uboot again (address in flash: 0x7c0000). Here is the image information and write address of my flash brush:

sbl_cust_img_mcu1_0_release.tiimage ----0x0

tifs.bin--------------------------------------------------0x80000

nor_spi_patterns.bin--------------------------------0x3fe0000

can_boot_app_mcu_rtos_mcu1_0_release.appimage----0x100000

atf_optee.appimage--------------------------------------0x1c0000

tikernelimage_linux.appimage-------------------------0x7c0000

tidtb_linux.appimage-------------------------------------0x1ec0000

u-boot.image-----------------------------------------------0x280000