我找來了現成的文章,因為我是在一個廣告滿天飛的不可信任的網站上找到的,而且也沒有注明版權,我這里就很方便地直接搬上來了。
如下:
我也是初學者,根據wabcon2003-12-27的教程在VMWare上安裝VxWorks操作系統(原文找不到了),生成的bootrom在VMware中加載出現:
(tBoot): sysNvRamGet:open failed
Attached TCP/IP interface to lnPci0.停在這里不動了。
先說明TCP/IP錯誤,主要是沒有將網絡驅動程序加入bootrom中。
解決辦法:
先將從AMD下載的網卡驅動中的ln97xEnd.h和ln97xEnd.c復制到pcPentium目錄中,然后修改pcPentium中的Makefile文件
將MACH_EXTRA = 改為MACH_EXTRA = ln97xEnd.o
然后編譯生成bootrom。此時如果后面的操作都正確,boot已經可以成功了。
open failed錯誤不影響boot,但是有網友反應會影響到以后的開發,以后還是應該解決掉。解決的方法也很簡單,就是修改config.h文件將
#define SYS_WARM_TYPE SYS_WARM_FD 改為
#define SYS_WARM_TYPE SYS_WARM_BIOS
Build Boo ROM的時候不支持C++語法,即//的注釋符不能被正確解析。
環境變量的設置只是臨時的,關閉控制臺之后需要重新設置環境變量。
mkboot a: bootrom 在a:后面有個空格。
就這么多了,歡迎大家和我交流。Have Fun!
————————————————————————————————————————————————
這個問題相信很多人會遇到,就放這里希望有人可以查到吧!還有上面(tBoot): sysNvRamGet:open failed這個問題。直接在磁盤上建立一個以“nvram.txt” 命名的txt文件就ok了。如果你想知道為什么,那就看下面的描述,國際友人寫的。
> Hi,
>
> I am using VxWorks 5.5 for target machine Pentium II. When the system
> boots up, VxWorks gives a message as:
>
> 0x2a7a8c(tBoot): sysNvRamGet: open failed
Second attempt:
now I see what is going on. The very first time after building the
boot diskette, the file nvram.txt with the boot parameters, is not
there yet. So this system call tries to open this file and fails.
After you supply the boot parameters by hand, they are written to this
file, and the next time you boot after that, the error message should
not happen.
So, this error message should not cause any problems.
Mark Galecki