问题描述
我正在创建文件,我可以QEMU的-kernel选择加载。我大多介意在这里,我已经找到的信息应以文件的地方放置u-boot的配置文件。该文件必须包含u-boot的二进制,FreeBSD内核和RTOS运行(这样我就可以选择要加载的内核或做加载一些实验性的研究与开发2操作系统在同一时间 - 例如FreeBSD是由U-Boot的再FreeBSD的装2日核心负载FreeRTOS的 - 所谓的ASMP)。这似乎周围也没有工具来完成,在自动方式(我的意思是在一个Flash文件,支持多内核)。所以,我需要知道的u-boot flash文件是如何构成的,使我自己的,并把它传递给QEMU争相模仿上午versatilepb。
的qemu系统臂-M versatilepb -m 128M -nographic -kernel myflashfile
因此,答案在这里,在某种程度上取决于你用QEMU仿真电路板的一部分。接下来,可惜versatilepb已经从主线的U-Boot下降,前一段时间(而且是ARM926EJS它不是ASMP理想的核心,你不妨试试VEX preSS A9代替)。现在,这一切说,你要-pflash沿着你控制的内容作为机器使用并行闪存设备的二进制文件传递。而你躺在那了,只要你喜欢,因为你还在使用-kernel U-BOOT.BIN启动机器。不过,你可能会发现更容易通过网络而使用-tftp /一些/目录并加载文件。
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
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)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!