I'm seeing kernel panic error when starting Linux (A53) after downloading M7 .bin firmware from TFTP server to SRAM region. When I tried the same with SD card, everything works without error. To see the error, I only had to call tftp from U-Boot like so tftp 0x34300000 firmware.bin, it is not necessary to call startm7 or run the binary.
As a side note, I don't think this is a file transfer problem as I have ran nfsboot many times without issue. The problem seems to be related to tftp and sram
I have tried below configurations:
- Linux BSP 30.0 and 29.0HF1
- RTD 3.0 and RTD 2.0HF2
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[ 0.000000] Linux version 5.10.41-rt42+g98b692708f63 (oe-user@oe-host) (aarch64-fsl-linux-gcc (GCC) 10.2.0, GNU ld (GNU Binutils) 2.35.1) #1 SMP PREEMPT Thu Aug 19 13:51:06 UTC 2021
[ 0.000000] Machine model: Freescale S32G274
[ 0.000000] earlycon: linflex0 at MMIO 0x00000000401c8000 (options '115200n8')
[ 0.000000] printk: bootconsole [linflex0] enabled
[ 0.000000] SError Interrupt on CPU0, code 0xbf000002 -- SError
[ 0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 5.10.41-rt42+g98b692708f63 #1
[ 0.000000] Hardware name: Freescale S32G274 (DT)
[ 0.000000] pstate: 60000085 (nZCv daIf -PAN -UAO -TCO BTYPE=--)
[ 0.000000] pc : setup_arch+0x164/0x58c
[ 0.000000] lr : setup_arch+0x15c/0x58c
[ 0.000000] sp : ffffffc010c43ef0
[ 0.000000] x29: ffffffc010c43ef0 x28: 0000000080b00018
[ 0.000000] x27: 00000000fff3d830 x26: 0000000000000000
[ 0.000000] x25: 00000000fffcf110 x24: 00000000ffd48cd8
[ 0.000000] x23: ffffffc010000000 x22: ffffffc010c4e280
[ 0.000000] x21: ffffffc010ce1000 x20: fffffffefe7f208c
[ 0.000000] x19: ffffffc010c96e98 x18: 0000000000000030
[ 0.000000] x17: 0000000000001800 x16: 0000000000000000
[ 0.000000] x15: ffffffc010c4e6e8 x14: ffffffffffffffff
[ 0.000000] x13: 0000000000000000 x12: 0000000000000028
[ 0.000000] x11: 0000000000000015 x10: 0101010101010101
[ 0.000000] x9 : 3334ff6b6e6e6f5e x8 : 7f7f7f7f7f7f7f7f
[ 0.000000] x7 : 736d647164676e62 x6 : 000006161d090b74
[ 0.000000] x5 : 740b091d16060000 x4 : 0000000000000000
[ 0.000000] x3 : ce6ded8ca0000000 x2 : 000000000000000c
[ 0.000000] x1 : 0000000000000000 x0 : 0000000000000080
[ 0.000000] Kernel panic - not syncing:
[ 0.000000] Asynchronous SError Interrupt
[ 0.000000] ---[ end Kernel panic - not syncing: Asynchronous SError Interrupt ]---