随笔 - 8, 文章 - 6, 评论 - 8, 引用 - 0
数据加载中……

编译eboot.nb0的问题

今天主要是看PB中关于Eboot的资料,据介绍生成eboot.bin的方法是:
At the command prompt, type the following command to enable the built features to be copied to the %_FLATRELEASEDIR% directory.

Set WINCEREL=1
Modify the binary image builder file (.bib), Boot.bib, located in the %_WINCEROOT%\Platform\<Hardware Platform Name>\Src\BootLoader directory, to match your run-time image.

Boot.bib is a text file that specifies the size and location of the memory on the target device where you store the boot loader. For more information, see Boot Loader Image Builder File.
At the command prompt, type the following command.

cd %_TGTPLATROOT%\Eboot
Type the following command to build Eboot.bin or Boot.bin.

Build -cfs

由 于最早的时候有建过一个Platform并编译通过,因此我直接在platform\armland下相应文件夹里照着做,但结果会有错,没有什么有用的 错误信息,可能是有些环境变量没设好,不知道怎么设才会全,我试过用wince.bat/myproject1.bat或者直接在PB中开命令行都不行。
生成eboot.nb0倒是可以,执行命令:
G:\WINCE500\PLATFORM\Armland\Src\Bootloader\Eboot>romimage $(ROMIMAGE_FLAGS) eboot.bib
这样可以编译通过,这句话是查看makefile.inc看到的,在PB中开命令行运行就可以通过。由此想到eboot.bin应该也可以看makefile来编译,今天先放着了。
今天可以编译了,先在PB里打开命令行,这时已经设好环境变量了,这里的环境变量是根据什么文件设的不清楚,有几个bat文件,不过不确定,得先看一下bat的语法.执行build -c,昨天的命令后面的-cfs是无效的,这样的话就可以生成所需的文件,包括eboot.nb0,eboot.bin等等.
另 外照我这种方法的话,应该整个过程都是在命令行下执行,那如何在PB中建一个工程来生成文件呢?PB中有建project的选项,不过这个的用处应该是生 成后是要放到nk.bin中运行的。正常情况下如何生成eboot.nb0呢?就是在build and sysgen过程生成,还是有时候有必要单独生成?单独生成的一般方法是什么?命令行或者建工程?

看资料eboot可以通过命令行和IDE方式建立,不过都不是通过建工程来建立的

现在打算自己复制mainstone的BSP中的eboot自己照着改一遍,加深印象。eboot的文件是根据mainstone的BSP改编的>,程序改了一点,编译的过程改了一点,今天没看完,也有些问题,先记下来。
source里某些选项的作用?
eboot.bib里ROMOFFSET=1C8C0000不同,这个做什么用?下面这句话不知道怎么理解,The bootloader is fixed up to run from RAM, but is stored in flash.  ROMOFFSET adjusts the .bin file record headers to that they lie in flash (this tells the bootloader already on the device to store the image in flash).
makefile怎么工作?文件中生成nk.bin只用了romimage $(ROMIMAGE_FLAGS) eboot.bib一个命令,它应该还调用其它东西编>译程序才生成文件,如何做到的?

posted on 2006-06-12 22:46 embedder 阅读(3361) 评论(1)  编辑 收藏 引用

评论

# re: 编译eboot.nb0的问题  回复  更多评论   

你会遇到很多问题,但是要根据eboot项目来组织,每个问题不但要提出,还要解决才可以。
2006-07-16 16:16 | jeffrey
只有注册用户登录后才能发表评论。