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.

[参考译文] OMAP-L138:U-Boot 独立 hello_world "未定义的指令"

Guru**** 1137450 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1187134/omap-l138-u-boot-standalone-hello_world-undefined-instruction

器件型号:OMAP-L138
Thread 中讨论的其他器件:OMAPL138

您好!

我正在尝试在我们的逻辑 PD DA850 EVM 参考上运行 U-Boot (ti-staging 2021.01)。

不过、我在独立的 hello_world 计划方面遇到了问题。

首先、在 arch/arm/config.mk 中定义的默认 CONFIG_BALTERNAL_LOAD_ADDR = 0xc100000对于该电路板来说似乎是错误的、我必须将其更改为0xc1000000

是否不应该在 configs/da850evm_defconfig 中设置此值
OMAPL138 LCDK 电路板是否使用默认值正常工作?

问题是启动应用程序时触发异常:

[09:36:50:609] Filename 'hello_world.bin'.
[09:36:50:609] Load address: 0xc0000000
[09:36:50:609] Loading: *<0x08>#
[09:36:50:632] ⇥	 43 KiB/s
[09:36:50:632] done
[09:36:50:632] Bytes transferred = 580 (244 hex)
[09:36:50:632] U-Boot > go 0xc0000000
[09:36:51:893] ## Starting application at 0xC0000000 ...
[09:36:51:893] undefined instruction
[09:36:51:893] pc : [<c0000008>]⇥	   lr : [<c7f9c833>]
[09:36:51:893] reloc pc : [<b90e5008>]⇥	   lr : [<c1081833>]
[09:36:51:893] sp : c7e75810  ip : 0000001c⇥	 fp : c10b1768
[09:36:51:893] r10: deadbeef  r9 : c7e7aee0⇥	 r8 : c7f9b2a0
[09:36:51:893] r7 : 00000000  r6 : c0000000⇥	 r5 : c7e7c948  r4 : 00000002
[09:36:51:893] r3 : c0000000  r2 : c7e7c94c⇥	 r1 : c7e7c94c  r0 : 00000001
[09:36:51:893] Flags: Nzcv  IRQs off  FIQs off  Mode SVC_32
[09:36:51:893] Code: 00000000 00000000 0005b570 000e0008 (f8d2f000)
[09:36:51:893] Resetting CPU ...
[09:36:51:909] 
[09:36:52:004] resetting ...

在 OMAPL138 LCDK 电路板上这也不是一个问题吗?

我已将代码平分、似乎 此提交 引入了更改。

它在 PROCESSOR-SDK 06.03.00.106上确实运行良好。
如果我现在禁用最近 U-Boot 版本上的 Thumb Build、则 hello_world 将不再崩溃。
但这不是我们的解决方案、因为内存是这里的一个真正的限制。

感谢你的帮助!

此致、
Julien

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    有趣的是、将 Thumb 构建的 U-Boot 与非 Thumb 独立 hello_world 混合使用似乎是可行的。 至少它不会立即崩溃。
    不过、这是安全使用的吗?