How to configure the bootrom parameters for VxWorks 5.5?

怎甘沉沦 提交于 2020-01-25 22:32:09

问题


I have a problem configuring the bootrom parameters for my virtual machine VxWorks 5.5.

I want to change the target IP address. I tried modifying the DEFAULT_BOOT_LINE macro in config.h. But, I didn't work. I use printf to check the value of DEFAULT_BOOT_LINE. It didn't changed.

This seems that DEFAULT_BOOT_LINE is defined elsewhere beside config.h and can't be modified. Do you know what the problem is? Is there other methods to change the bootrom parameters?


回答1:


To erase BOOT_LINE_ADRS and get back to DEFAULT_BOOT_LINE,

-> my_boot_line = malloc (8)
-> memset my_boot_line, 0x00, 8
-> memset my_boot_line, 0xff, 4
-> sysNvRamSet my_boot_line, 8, 0 /* This line depends on your BSP. */

To change boot parameters at the bootrom prompt,

[VxWorks Boot] c

To change boot parameters at shell prompt,

-> bootChange /* at the shell prompt */


来源:https://stackoverflow.com/questions/47765475/how-to-configure-the-bootrom-parameters-for-vxworks-5-5

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!