Загрузка данных


root@imx95-15x15-lpddr4x-frdm:~# readelf -l /root/hello_world_ddr_cm7.elf 

Elf file type is EXEC (Executable file)
Entry point 0x800008b5
There are 4 program headers, starting at offset 52

Program Headers:
  Type           Offset   VirtAddr   PhysAddr   FileSiz MemSiz  Flg Align
  LOAD           0x010000 0x80000000 0x80000000 0x0064c 0x0064c R   0x10000
  LOAD           0x010800 0x80000800 0x80000800 0x0415c 0x0415c RWE 0x10000
  LOAD           0x020000 0x80400000 0x8000495c 0x00060 0x00060 RW  0x10000
  LOAD           0x020060 0x80400060 0x800049c0 0x00000 0x00ed0 RW  0x10000

 Section to Segment mapping:
  Segment Sections...
   00     .interrupts 
   01     .text .ARM .init_array .fini_array 
   02     .data 
   03     .bss .heap .stack

root@imx95-15x15-lpddr4x-frdm:~# echo start > /sys/class/remoteproc/remoteproc1/state 
-sh: echo: write error: Invalid argument

Jun 25 09:05:29 imx95-15x15-lpddr4x-frdm kernel: remoteproc remoteproc1: powering up imx-rproc
Jun 25 09:05:29 imx95-15x15-lpddr4x-frdm kernel: remoteproc remoteproc1: Direct firmware load for /root/hello_world_ddr_cm7.elf failed with error -2
Jun 25 09:05:29 imx95-15x15-lpddr4x-frdm kernel: remoteproc remoteproc1: Falling back to sysfs fallback for: /root/hello_world_ddr_cm7.elf
Jun 25 09:05:29 imx95-15x15-lpddr4x-frdm kernel: remoteproc remoteproc1: Booting fw image /root/hello_world_ddr_cm7.elf, size 414208
Jun 25 09:05:29 imx95-15x15-lpddr4x-frdm kernel: imx-rproc imx95-cm7: lmm(1) powered on by Linux
Jun 25 09:05:29 imx95-15x15-lpddr4x-frdm kernel: remoteproc remoteproc1: header-less resource table
Jun 25 09:05:29 imx95-15x15-lpddr4x-frdm kernel: remoteproc remoteproc1: No resource table in elf
Jun 25 09:05:29 imx95-15x15-lpddr4x-frdm kernel: remoteproc remoteproc1: bad phdr da 0x80000000 mem 0x64c
Jun 25 09:05:29 imx95-15x15-lpddr4x-frdm kernel: remoteproc remoteproc1: Failed to load program segments: -22
Jun 25 09:05:29 imx95-15x15-lpddr4x-frdm kernel: remoteproc remoteproc1: Boot failed: -22
Jun 25 09:05:29 imx95-15x15-lpddr4x-frdm firmwared[524]: load firmware /root/hello_world_ddr_cm7.elf