如何通过RAM将数据从U-Boot Bootloader传递到QNX应用程序?

发布于 2025-01-28 05:45:37 字数 221 浏览 2 评论 0原文

在Atsama5D3X模块上使用QNX 6.5.x将U-Boot作为引导加载程序。

我们想通过RAM将〜1.5KB的数据传递到QNX中,而不是尝试通过Flash Storage将其传递。

是否有一种机制告诉QNX保留RAM区域而不是触摸它?这将使我们从QNX应用程序中MMAP,以读取数据,而无需使用QNX将其用于堆或以其他方式将其归零。

您是否有另一种方法将这样的数据传递到QNX中?

Using QNX 6.5.x with u-boot as a bootloader, on an ATSAMA5d3x module.

We'd like to pass some amount of data, ~1.5kb, from the bootloader into QNX via RAM, rather than trying to pass it via flash storage.

Is there a mechanism to tell QNX to reserve an area of RAM and not touch it? This would let us mmap it from the QNX application to read the data out of it, without QNX using it for heap or otherwise zeroing it out.

Is there another approach you've used to pass data like this into QNX?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

淡淡绿茶香 2025-02-04 05:45:37

QNX启动 - *程序允许使用-r参数保留一个烟囱地址空间。您可以在.build文件中为Bootstrap Image(MKIFS)提供参数。

示例:

[image=0x22000000]
[virtual=armle-v7,raw +compress] .bootstrap = {
    # reserve 4k at paddr 0x20000000 and don't clear it
    startup-atsama5d3x-ek -vvv -r 0x20000000,4096,1
    # reset of boot code goes here
}
[+script] .script = {
    # and so on
}
# and so forth

ref: http://www.qnx.com/developers/docs/7.1/#com.qnx.doc.neutrino.utilities/topic/s/startup_options.html

QNX startup-* programs permit the use of the -r argument to reserve a block of phyiscal address space. You can supply arguments to startup in the .build file for the bootstrap image (the source to mkifs).

Example:

[image=0x22000000]
[virtual=armle-v7,raw +compress] .bootstrap = {
    # reserve 4k at paddr 0x20000000 and don't clear it
    startup-atsama5d3x-ek -vvv -r 0x20000000,4096,1
    # reset of boot code goes here
}
[+script] .script = {
    # and so on
}
# and so forth

Ref: http://www.qnx.com/developers/docs/7.1/#com.qnx.doc.neutrino.utilities/topic/s/startup_options.html

渡你暖光 2025-02-04 05:45:37

我尝试在atsama5d3x上使用QNX 6.5.0
我使用bsp的默认nand驱动程序,但是(如果尝试打开一些bin文件时)我会遇到此错误:

fs-etfs-sama5d3x:readcluster dataerr cluster xxxxxxx上的readcluster dataerr

重置后,我可以运行二进制,但是一段时间后,此错误此错误会再次出现

为什么会发生这种情况?您使用默认驱动程序吗?
也许您知道一些东西

*原谅我在您的问题中询问,QNX 6.5.0上的信息很少

。图像描述在这里

I try using qnx 6.5.0 on ATSAMA5d3x
I use default nand driver from bsp, but periodically(when try open some bin file) i get this error:

fs-etfs-sama5d3x: readcluster DATAERR on cluster xxxxxx

after reset all ok, i can run binary, but after a while this error will appear again

Why is this happening? You use default driver?
Maybe you know something

*Forgive me for asking in your question, too little information on qnx 6.5.0 on ATSAMA5d3x

enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文