Some tips

本站充满一个无聊的人的一些奇技淫巧

星期三, 八月 22, 2007

通过修改sinit运行参数提高QNX4.25启动速度失败

为了提高QNX4.25的启动速度,刷新PC104的快速BIOS程序,然后更改DiskOnChip的引导参数,去掉sysinit.1中多于的命令后,从上电到启动还是需要13s时间。
因此想从build boot image上下功夫。
在build文件中最后移行是sinit命令,用use命令查看sinit的帮助信息后,

sinit - initialize the system (QNX)

sinit [options...] [var=value]
Options:
-i init_file Override default system initialization file.
-r path Set a system root directory for /
-s shell_name Use this shell to run initialization file.
-n No network (makes stand alone systems boot faster).
-w Wait for a name locator to communicate with your node.
Only usefull for disk boot.
var=value Define an environment variable.

(NOTE: If present var=value must be the last option on the command line)

发现sinit有个参数“-n”,可以实现无网络启动,这样是启动boot速度更快。这样马上修改了build文件,重新build boot images后,用新image启动,结果出现下面的错误,然后就死机了。
Invalid Option ('n')

经过查看官方手册对sinit的说明:

-i initfile Open this system initialization file (for defaults, see the
Description below).
-r root Define an alias prefix for the filesystem root (/).
-s shell Invoke this shell (default is /bin/sh).
-w Wait for a name locator to communicate with our node.
Only useful for disk boot. See also nameloc -k.
var=value Define an environment variable.

和我用use命令得到的信息是矛盾的,然后上网搜索,均没有找到sinit的这个参数,看来这个‘n’参数可能被屏蔽了,也可能是打算支持,但还没有做好的一个功能。

标签:

0 条评论:

发表评论

订阅 博文评论 [Atom]

<< 主页