u-boot flash 文件的结构是什么?( ARM 多功能 pb ) [英] What is a structure of u-boot flash file? ( ARM versatile pb )

查看:29
本文介绍了u-boot flash 文件的结构是什么?( ARM 多功能 pb )的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建可以使用 qemu 的 -kernel 选项加载的文件.我最介意这里的 u-boot 配置文件,我发现信息应该放在文件的某个地方.该文件必须包含要运行的 u-boot 二进制文件、freebsd 内核和 RTOS(因此我可以选择加载哪个内核或在同时加载 2 个操作系统时进行一些实验性开发 - 例如.FreeBSD 由 u-boot 加载,然后由 FreeBSD 加载在第二个核心上加载 FreeRTOS - 所谓的 ASMP ).似乎没有工具可以自动执行此操作(我的意思是在一个闪存文件中支持多个内核).所以我需要知道如何构造 u-boot flash 文件来制作我自己的并将其传递给 qemu emulatoring am allowedpb.

I'm working on creating file that I can load with -kernel option of qemu. I mostly mind here u-boot config file that I have found information should be placed somewhere in file. That file have to contain u-boot binary, freebsd kernel and RTOS to run ( so i can choose which kernel to load or do some experimental developement in loading 2 OS at same time - eg. FreeBSD is loaded by u-boot and then FreeBSD loads FreeRTOS on 2nd core - so called ASMP ). It seems there is no tools around to do that in automatic way ( I mean supporting multiple kernels in one flash file ). So I need to know how is u-boot flash file structured to make my own and pass it to qemu emulating am versatilepb.

qemu-system-arm -M versatilepb -m 128M -nographic -kernel myflashfile

推荐答案

所以这里的答案部分取决于您使用 QEMU 模拟的电路板.接下来,不幸的是,多功能 pb 前段时间已从主线 U-Boot 中删除(并且作为 ARM926EJS,它不是 ASMP 的理想核心,您可能希望改为尝试 vexpress a9).现在,所有这些都说,您希望 -pflash 传递您控制的二进制文件作为机器使用的并行闪存设备.您可以随意布置它,因为您仍在使用 -kernel u-boot.bin 来引导机器.然而,您可能会发现使用 -tftp/some/dir 并通过网络加载文件更容易.

So the answer here depends in part on the board you are emulating with QEMU. Next, unfortunately the versatilepb has been dropped from mainline U-Boot some time ago (and being ARM926EJS it is not the ideal core for ASMP, you may wish to try vexpress a9 instead). Now, all of that said, you want -pflash to pass along a binary file you control the contents of as the parallel flash device used by the machine. And you lay that out however you like since you're still using -kernel u-boot.bin to boot the machine. You may however find it easier to use -tftp /some/dir and load the files via the network instead.

这篇关于u-boot flash 文件的结构是什么?( ARM 多功能 pb )的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆