beagleboard / linux

The official Read Only BeagleBoard and BeagleBone kernel repository https://git.beagleboard.org/beagleboard/linux
http://beagleboard.org/source
Other
715 stars 566 forks source link

Really Fix remoteproc to work with the PRU GNU Binutils port #187

Closed dinuxbg closed 5 years ago

dinuxbg commented 5 years ago

Patch 864ac57456e3fb mistakenly modifies DRAM addresses, whereas IRAM are the ones needing a fixup. Note that TI toolchains are not impacted - both DRAM and IRAM higher address bits are zeros for TI-produced ELFs.

This patch fixes the following error: [ 1672.917602] remoteproc remoteproc1: Booting fw image pru-core0.elf, size 7104 [ 1672.917632] remoteproc remoteproc1: bad phdr da 0x20000000 mem 0x8f4 [ 1672.929347] remoteproc remoteproc1: Failed to load program segments: -22 [ 1672.938733] remoteproc remoteproc1: Boot failed: -22

I'm not sure what went wrong. The patch here correctly fixes IRAM: https://github.com/RobertCNelson/ti-linux-kernel-dev/blob/ti-linux-4.14.y/patches/drivers/ti/pru_rproc/0001-Fix-remoteproc-to-work-with-the-PRU-GNU-Binutils-por.patch

Signed-off-by: Dimitar Dimitrov dimitar@dinux.eu

dinuxbg commented 5 years ago

@RobertCNelson , gentle ping.

RobertCNelson commented 5 years ago

and finally merged. ;)