博客首页
注册
建议与交流
排行榜
加入友情链接
推荐
投诉
搜索:
帮助
斯诺随笔 snowman Gossip
当追求自由 无所谓恐惧 执著成就梦想
zhuzimin.cublog.cn
管理博客
发表文章
留言
收藏夹
· unix 网站
博客圈
音乐
· 流行经典
· 外国经典
· 专辑-信乐团
· 专辑-胎教
· 专辑-齐秦
相册
· 梅花之约
· 云南印象
· 越狱
· 宁夏之旅
· 经典推荐永久收藏
文章
· 休闲随笔
· IEC61850
· 我的诗歌
· 越狱
· unix笔记
· 计算机软硬件技术
· 可爱宝宝
· Java学习日记
· 规约学习
· Eclipse
· SAS变电站自动化
· 心情日记
首页
关于作者
姓名:zzm 职业:打工一族 年龄:不到100岁 位置:东北的东北方向 个性介绍: --^--相由心生--^--
||
<<
>>
||
我的分类
文章列表 - unix笔记
在VMWare上安装VxWorks操作系统
<DIV> <DIV class=con_sample> <P>VxWorks学习笔记——实战之在VMWare上安装VxWorks操作系统</P></DIV> <DIV class=con_all> <P> <DIV><STRONG><SPAN style="FONT-SIZE: 24pt">准备工作</SPAN></STRONG></DIV> <DIV>我们假设您有一台普通配置的<SPAN>PC机,并安装了Windows2000操作系统。其次您需要安装Tornado 2.2 for pcPentium开发环境。缺省安装的Tornado 2.2 for pcPentium可能不包括pcPentium的BSP组件,但该组件可以从风河公司(Windriver)的网站免费下载。</SPAN></DIV> <DIV>我们将在下文以<SPAN>WIND_BASE引用Tornado的安装路径。</SPAN></DIV> <DIV>其次是要安装<SPAN>VMWare软件,这里我们使用4.0的版本。如果您还没有该软件,也可以从VMWare的网站下载试用版。</SPAN></DIV> <DIV>最后,由于<SPAN>Tornado自带的PC-NET网卡驱动有问题,所以需要下载AMD的PC-NET网卡的VxWorks系统驱动,可以从AMD网站免费下载。</SPAN></DIV> <DIV>一张<SPAN>1.44M的软盘,用于制作系统引导盘。</SPAN></DIV> <DIV>准备并安装好以上软件后,就可以开始下一步的工作了。</DIV> <DIV> </DIV> <DIV><STRONG><SPAN style="FONT-SIZE: 24pt">开始安装</SPAN></STRONG></DIV> <DIV><STRONG><SPAN style="FONT-SIZE: 18pt">编译网卡驱动程序</SPAN></STRONG></DIV> <DIV>VMWare为运行于其上的操作系统提供虚拟网卡支持,该网卡类型即为<SPAN>AMD的PC-NET。实际上,在Tornado开发包中已经包含了该类型网卡的驱动程序,但经过测试,对于VMWare无法正常工作,所以您需要从AMD的网站下载最新的驱动程序。</SPAN></DIV> <DIV>下载得到的是一个可执行的安装程序,运行该程序将得到一个压缩包和一个帮助文件,按照该帮助的要求,将压缩包直接释放到<SPAN>Tornado目录下。如果提示是否允许覆盖文件,则选择允许。</SPAN></DIV> <DIV>此后按如下步骤完成驱动程序的编译和替换:</DIV> <UL type=disc> <LI>打开一个控制台窗口,运行批处理程序:<SPAN>$(WIND_BASE)\host\x86-win32\bin\ torVars.bat; </SPAN> <LI>重新定位到<SPAN>$(WIND_BASE)\target\src\drv\end目录,运行: </SPAN></LI></UL> <DIV>make CPU=PENTIUM tool=gnu ln97xend.o</DIV> <DIV>其间会产生一些警告,但这不会影响我们的工作。</DIV> <UL type=disc> <LI>重新定位到<SPAN>$(WIND_BASE)\target\lib\pentium\PENTIUM\common目录,并将上一步生成的文件ln97xend.o复制到此目录下。备份此目录下的文件libdrv.a; </SPAN> <LI>运行命令<SPAN>arpentium -d libdrv.a ln97xEnd.o,删除libdrv.a中原有的ln97xEnd模块,然后再运行命令: </SPAN></LI></UL> <DIV>arpentium -ra iOlicomEnd.o libdrv.a ln97xEnd.o</DIV> <DIV>将我们刚刚创建的新模块添加进去。</DIV> <DIV>到此有关网卡驱动的设置就完成了。注意不要关闭这个窗口,后面还要使用。</DIV> <DIV> </DIV> <DIV><STRONG><SPAN style="FONT-SIZE: 18pt">修改配置文件</SPAN></STRONG></DIV> <DIV>在这一节中,我们要修改编译<SPAN>VxWorks的配置头文件Config.h中定义的一些参数,使编译出来的系统引导程序和VxWorks的映象符合我们的要求;同时还要修改sysLn97xEnd.c这个文件,以使系统的网络功能正常运行。</SPAN></DIV> <UL type=disc> <LI>定位目录到<SPAN>$(WIND_BASE)\target\config\pcPentium并打开该目录下Config.h文件; </SPAN> <LI>我们首先要修改<SPAN>VxWorks的启动参数。先查找到定义DEFAULT_BOOT_LINE宏的地方,修改预处理条件CPU == PENTIUM分支下的定义如下: </SPAN></LI></UL> <DIV>#define DEFAULT_BOOT_LINE \</DIV> <DIV>"lnPci(0,0)your_host_name:d:\\vxWorks h=192.168.80.169 e=192.168.80.254 u=target pw=vxworks tn=target"</DIV> <DIV>其中:</DIV> <UL type=disc> <LI>lnPci(0,0)指定了使用第<SPAN>0个网卡和第0个处理器,lnPci这个标识会因为使用的驱动程序不同而有所不同,但这里用lnPci就可以了; </SPAN> <LI>your_host_name指定您的主机的名字,使用<SPAN>Windows系统的主机名就可以; </SPAN> <LI>d:\\vxWorks指定了<SPAN>VxWorks映象下载的完整路径; </SPAN> <LI>h=192.168.80.169是主机的<SPAN>IP地址,就是您当前正在使用的系统的IP地址; </SPAN> <LI>e=192.168.80.254是目标机的<SPAN>IP地址,也就是未来VxWorks操作系统的IP地址,您只要任意指定一个不冲突的IP地址即可,这里我们假设您的目标机IP地址和主机IP地址在同一个网段内; </SPAN> <LI>u=target指定了<SPAN>FTP服务器的用户名,这个FTP就是用来下载VxWorks映象的,后面还会提到; </SPAN> <LI>pw=vxwroks是用户名对应的口令; <LI>tn=target指定目标机的名字,任意指定即可; </LI></UL> <DIV>您可以参考<SPAN>Tornado自带的手册以获取更多信息;</SPAN></DIV> <UL type=disc> <LI>下面我们要指定使用什么样的网卡驱动程序。首先查找<SPAN>“Network driver options”这段文字,之后您可以看到在该注释后面定义了一系列的有关网卡驱动的宏定义。注意保证INCLUDE_END和INCLUDE_LN_97X_END这两个宏处于定义状态(define),其他的宏都处于未定义状态(undef); </SPAN> <LI>缺省情况下,<SPAN>VxWorks系统是不接受外部输入设备(如键盘)的输入,也不向外部输出设备(如显示器)输出数据。为了便于调试,我们必须改变它的这种缺省状态。我们查找定位宏INCLUDE_PC_CONSOLE,然后保证其处于定义状态(define)即可; </SPAN> <LI>到此为止,对<SPAN>config.h文件的修改就完成了,保存修改,然后再打开同一目录下的sysLn97xEnd.c文件; </SPAN> <LI>这一步修改的目的是要使网卡正常工作。我们先定位到<SPAN>“memory-mapped IO base”这段文字,然后将其前面的参数由pciRsrc[endUnit].bar[1]修改为NONE,这样就可以了。最后别忘了保存。 </SPAN></LI></UL> <DIV>到此为止,全部的修改工作都完成了,下一步就可以开始编译连接了。</DIV> <DIV> </DIV> <DIV><STRONG><SPAN style="FONT-SIZE: 18pt">编译程序</SPAN></STRONG></DIV> <DIV>这一节我们要编译生成<SPAN>bootrom引导程序和VxWorks运行映象。</SPAN></DIV> <UL type=disc> <LI>打开您的<SPAN>Tornado开发工具,在Build菜单下选择Build Boot ROM,弹出如下对话框: </SPAN></LI></UL> <DIV> </DIV> <P align=center><IMG alt="" src="http://p.blog.csdn.net/images/p_blog_csdn_net/GoodFeeling_Jon/Installing%20VxWorks%20on%20VMware%20-%2001.PNG"></P> <DIV>在<SPAN>BSP列表中选择pcPentium,而在Image to build列表中分别选择bootrom和gnu。完成选择后,点击OK按钮就开始引导程序的编译了。编译产生的文件bootrom将保存在$(WIND_BASE)\target\config\pcPentium目录下。</SPAN></DIV> <UL type=disc> <LI>编译生成<SPAN>bootrom后,还要创建一个VxWorks映象(image),也就是VxWorks操作系统本身的代码。 </SPAN> <UL type=circle> <LI>创建一个<SPAN>“bootable VxWorks image”的工程; </SPAN> <LI>选择您需要的<SPAN>VxWorks组件。这一步是可选的,如果您只想使用缺省的配置,那根本就不需要这一步;但如果您想使用额外的组件,例如,您可能想通过telnet连接VxWorks系统,这时就需要在Workspace窗口的VxWorks选项卡中选择telnet sever对应的组件,如下图: </SPAN></LI></UL></LI></UL> <P align=center><SPAN><IMG alt="" src="http://p.blog.csdn.net/images/p_blog_csdn_net/GoodFeeling_Jon/Installing%20VxWorks%20on%20VMware%20-%2002.PNG"></SPAN></P> <DIV>在这个例子中我们选择了两个重要的组件:<SPAN>Telnet server 和 Target shell 。前者使我们可以通过Telnet协议登录到VxWorks操作系统中;后者则可以让我们通过命令行控制VxWorks系统。</SPAN></DIV> <UL type=disc> <UL type=circle> <LI>完成选择后,即可开始编译程序; </LI></UL></UL> <DIV> </DIV> <UL type=disc> <LI>到此我们已经生成了<SPAN>VxWorks的系统引导程序和运行时的代码映象。这里还要提醒读者,在您每次修改完系统的配置信息(如:config.h)后,都要重新创建一个工程来编译VxWorks映象,以免出现代码不一致的问题。 </SPAN> <LI>将生成的名为<SPAN>“vxworks”的文件复制到D盘根目录下。这个路径是由上面我们所设置的DEFAULT_BOOT_LINE宏中的路径参数决定的,必须保持二者一致。 </SPAN></LI></UL> <DIV><STRONG><SPAN style="FONT-SIZE: 18pt">制作引导磁盘</SPAN></STRONG></DIV> <DIV>现在开始制作<SPAN>VxWorks系统引导磁盘,用于引导装载VxWorks运行映象。</SPAN></DIV> <DIV>我们回到<SPAN>“编译网卡驱动程序”一节中所打开的控制台窗口,定位目录到$(WIND_BASE)\target\config\pcPentium,插入您已经格式化好的软盘,然后运行:</SPAN></DIV> <DIV>mkboot a: bootrom</DIV> <DIV>该命令将在软盘上建立<SPAN>VxWorks系统引导分区,并将引导程序复制到软盘上。</SPAN></DIV> <DIV>这里再额外向您介绍一个虚拟软盘的工具:<SPAN>RamDiskNT,它可以在内存中建立一个虚拟的软盘,对于提高VxWorks的启动速度有很大帮助。</SPAN></DIV> <DIV> </DIV> <DIV><STRONG><SPAN style="FONT-SIZE: 18pt">配置FTP服务器</SPAN></STRONG></DIV> <DIV>这里的<SPAN>FTP服务器用于在系统成功引导后,下载VxWorks的运行时映象。我们这里使用Tornado开发环境自带的FTP服务器。</SPAN></DIV> <UL type=disc> <LI>打开<SPAN>Tornado FTP Server,选择“Security”菜单下的“Users/Rights”子菜单,弹出如下对话框: </SPAN></LI></UL> <P><SPAN><IMG alt="" src="http://p.blog.csdn.net/images/p_blog_csdn_net/GoodFeeling_Jon/Installing%20VxWorks%20on%20VMware%20-%2003.PNG"></SPAN></P> <DIV>当<SPAN>User Name为“target”时,修改“Home Directory”为D盘根目录(此路径由上面的DEFAULT_BOOT_LINE参数决定),同时修改口令为“vxworks”,最后点击“Done”按钮完成修改;</SPAN></DIV> <UL type=disc> <LI>为了便于调试,我们还要打开<SPAN>FTP Server的日志功能。选择“Logging”菜单下的“Logging Options”子菜单,弹出如下对话框,其中除了“Winsock Calls”外,让其他选项全都处于开启状态。 </SPAN></LI></UL> <UL type=disc> <LI>保持<SPAN>FTP Server窗口处于打开状态(这样FTP服务器就处于运行状态)。 </SPAN></LI></UL> <DIV> </DIV> <DIV><STRONG><SPAN style="FONT-SIZE: 18pt">创建VxWorks系统</SPAN></STRONG></DIV> <UL type=disc> <LI>打开您的<SPAN>VMWare Workstation,在File->New菜单下选择创建一个新的虚拟机(Virtual Machine),按照其向导帮助,完成虚拟机的配置。在选择操作系统类型时,选择“Other”,其余选项均使用缺省值就可以了。 </SPAN> <LI>完成以上配置后,点击右侧窗口中的<SPAN>“Start this virtual machine”,系统即开始引导运行,如下图所示:</SPAN> </LI></UL> <P><SPAN> <IMG alt="" src="http://p.blog.csdn.net/images/p_blog_csdn_net/GoodFeeling_Jon/Installing%20VxWorks%20on%20VMware%20-%2005.PNG"></SPAN></P> <DIV>在引导过程中,您会遇到一个<SPAN>7秒钟的等待,以决定是使用缺省的引导参数,还是手动输入引导参数。这里我们选择前者,所以不需要做任何工作。</SPAN></DIV> <DIV>成功引导后,系统会自动从<SPAN>FTP Server下载映象,并开始运行,得到如下画面:</SPAN></DIV> <DIV align=center> </DIV> <DIV> <IMG height=308 alt="" src="http://p.blog.csdn.net/images/p_blog_csdn_net/GoodFeeling_Jon/Installing%20VxWorks%20on%20VMware%20-%2006.PNG" width=554></DIV> <DIV>到此,我们已经成功的在<SPAN>VMWare上安装了VxWorks操作系统。</SPAN></DIV> <DIV>需要注意的是,上面的画面会因为选择组件的不同而略微有所不同(例如,如果您没有选择<SPAN>target shell,就不会出现命令行提示符),但一般不会影响后续操作。</SPAN></DIV> <DIV><STRONG><SPAN style="FONT-SIZE: 24pt">配置联机调试环境</SPAN></STRONG></DIV> <DIV>装好系统后,您肯定还希望将自己编写的应用程序下载到目标机进行调试,下面我们就完成这一部分的配置工作。</DIV> <DIV>打开您的<SPAN>Tornado开发环境,选择“Tools->Target Server->Configure”菜单,弹出如下对话框:</SPAN></DIV> <DIV><SPAN><IMG alt="" src="http://p.blog.csdn.net/images/p_blog_csdn_net/GoodFeeling_Jon/Installing%20VxWorks%20on%20VMware%20-%2007.PNG"></SPAN></DIV> <DIV>在<SPAN>“Description”中任意填写一个名字,这里是“net00”;在“Available Back”中选择“wdbrpc”,并在下面的IP地址框中填写目标机的IP地址,这里是“192.168.80.254”(由DEFAULT_BOOT_LINE参数决定);将“Target Server Properties”下拉框更改至“Core File and Symbols”,并在“File Path”一项中选择您的映象的完整路径,这里是“D:\vxWorks”(由DEFAULT_BOOT_LINE参数决定)。</SPAN></DIV> <DIV>完成以上两项配置,点击<SPAN>“Launch”按钮,就可以启动Target Server了。</SPAN></DIV> <DIV><SPAN><IMG alt="" src="http://p.blog.csdn.net/images/p_blog_csdn_net/GoodFeeling_Jon/Installing%20VxWorks%20on%20VMware%20-%2008.PNG"></SPAN></DIV> <DIV>再回到<SPAN>Tornado开发环境,在工具条上的Target Server下拉框列表中选择“192.168.80.254@your_host_name”。这时您会发现工具条中一些原先处于“禁用”状态的工具按钮,现在都已经处于“激活”状态了。</SPAN></DIV><SPAN style="FONT-SIZE: 12pt">现在您就可以开始联机调试您的VxWorks应用程序了。</SPAN></DIV></DIV>
查看全文
发表于:2007-09-19 ┆
阅读(377)
┆
评论(0)
查看CPU温度的命令!!
<DIV> </DIV> <DIV>How to find Temperature Range on Sun Blade [TM] Sun Fire[TM] systems <BR></DIV> <DIV>(一)prtpicl -v -c temperature-sensor<BR><BR>Keyword(s):Sun Fire V880/ V480r/ V280r, Sun Blade 1000/2000 /100/150, cpu temp<BR><BR>Description Top <BR><BR><BR>Document Body Top <BR><BR>The way to find out what the temperature range is on Sun Blade Desktop or a Sun Fire entry level server is to use a command. <BR><BR>#prtpicl -v -c temperature-sensor <BR><BR>This will look at the fru info on the CPU and display it to the screen. <BR><BR>The temps are different from system to system, and CPU to CPU. <BR><BR>The info in the fru id is set at manufacturing, and can varies from CPU speed to CPU type. It should not be assumed that there is a default temp for all CPUs. <BR><BR>Example: <BR><BR># prtpicl -v -c temperature-sensor<BR> CPU0_DIE_TEMPERATURE_SENSOR (temperature-sensor, 3a00000579)<BR> :PSVC_FRU (3a000006ebTBL) <BR><BR> | (3a0000058dH) |<BR> :PSVC_PHYSICAL_DEVICE (3a00000678TBL) <BR><BR> | (3a000005a1H) |<BR> :PSVC_PARENT (3a000005ebTBL) <BR><BR> | (3a0000049dH) |<BR> :PSVC_TS_OVERTEMP_LED (3a000005b8TBL) <BR><BR> | (3a000004e1H) |<BR> :HighShutdownThreshold 95 <BR> :HighWarningThreshold 93 <BR> :LowShutdownThreshold -10 <BR> :LowWarningThreshold 0 <BR> :Temperature 59 <BR> :FaultInformation NO_FAULT <BR> :State OK <BR> :_class temperature-sensor <BR> :name CPU0_DIE_TEMPERATURE_SENSOR <BR> CPU1_DIE_TEMPERATURE_SENSOR (temperature-sensor, 3a00000583)<BR> :PSVC_FRU (3a000006eeTBL) <BR><BR> | (3a00000592H) |<BR> :PSVC_PHYSICAL_DEVICE (3a0000067bTBL) <BR><BR> | (3a000005a6H) |<BR> :PSVC_PARENT (3a000005eeTBL) <BR><BR> | (3a000004a2H) |<BR> :PSVC_TS_OVERTEMP_LED (3a000005bbTBL) <BR><BR> | (3a000004e1H) |<BR> :HighShutdownThreshold 95 <BR> :HighWarningThreshold 93 <BR> :LowShutdownThreshold -10 <BR> :LowWarningThreshold 0 <BR> :Temperature 57 <BR> :FaultInformation NO_FAULT <BR> :State OK <BR> :_class temperature-sensor <BR> :name CPU1_DIE_TEMPERATURE_SENSOR <BR><BR><BR>From the example above: <BR><BR>The "Temperature 57" is the temp. that the CPU is at, at this current time. <BR><BR>The "HighShutdownThreshold 95" is the temp. at which the system will shut itself down. <BR><BR>The "HighWarningThreshold 93" is the temp. at which the system will start to send warnings out to the console. <BR><BR>Note that all temps are in degrees centigrade. <BR><BR><BR>keywords: Sun Fire V880/ V480r/ V280r , Sun Blade 1000/2000 /100/150 , cpu temp <BR></DIV> <DIV> <DIV> </DIV> <DIV> </DIV> <DIV>(二)/usr/platform/sun4u/sbin/prtdiag -v 部分机型支持</DIV> <DIV><BR>bash-2.03$ /usr/platform/sun4u/sbin/prtdiag -v<BR>System Configuration: Sun Microsystems sun4u Sun Blade 150 (UltraSPARC-IIe 650MHz)<BR>System clock frequency: 93 MHZ<BR>Memory size: 1GB <BR><BR>==================================== CPUs ====================================<BR> E$ CPU CPU Temperature<BR>CPU Freq Size Impl. Mask Die Ambient<BR>--- -------- ---------- ------ ---- -------- --------<BR>0 650 MHz 512KB US-IIe 3.3 36 C 36 C<BR><BR>================================= IO Devices =================================<BR> Bus Freq<BR>Brd Type MHz Slot Name Model<BR>--- ---- ---- ---------- -------------------------------- ----------------------<BR>0 pci 33 7 isa/dma-isadma (dma) <BR>0 pci 33 7 isa/serial-su16550 (serial) <BR>0 pci 33 7 isa/serial-su16550 (serial) <BR>0 pci 33 8 sound-pci10b9,5451.10b9.5451.1 (+ <BR>0 pci 33 12 network-pci108e,1101.1 (network) SUNW,pci-eri <BR>0 pci 33 12 firewire-pci108e,1102.1001 (fire+ <BR>0 pci 33 13 ide-pci10b9,5229.c3 (ide) <BR>0 pci 33 19 SUNW,m64B (display) ATY,RageXL <BR><BR>============================ Memory Configuration ============================<BR>Segment Table:<BR>-----------------------------------------------------------------------<BR>Base Address Size Interleave Factor Contains<BR>-----------------------------------------------------------------------<BR>0x0 256MB 1 Label -<BR>0x40000000 256MB 1 Label -<BR>0x80000000 256MB 1 Label -<BR>0xc0000000 256MB 1 Label -<BR><BR>=============================== usb Devices ===============================<BR><BR>Name Port#<BR>------------ -----<BR>mouse 2<BR>keyboard 4<BR><BR>============================ Environmental Status ============================<BR>Fan Speeds:<BR>----------------------------<BR>Fan Device Speed<BR>----------------------------<BR>system 100%<BR><BR>================================ HW Revisions ================================<BR>ASIC Revisions:<BR>---------------<BR>ebus: Rev 1<BR><BR>System PROM revisions:<BR>----------------------<BR>OBP 4.10.6 2003/06/06 12:30<BR>POST 2.0.1 2001/08/23 17:13</DIV></DIV>
查看全文
发表于:2007-06-07 ┆
阅读(1335)
┆
评论(0)
Sun Ultra45 xvr-2500 双屏配置
<DIV>Sun Ultra45 xvr-2500 双屏配置:</DIV> <DIV>1.在一个较大的帧缓冲器上设置两个视频流,使系统无需使用 Xinerama 软件便可支持两个显示器。<BR>例如:一个Sun XVR-2500图形加速器可以创建一个宽(或高)帧缓冲器,并显示在两个屏幕上(分屏功能),请执行以下步骤:<BR>host% fbconfig -dev /dev/fb0 -doublewide enable<BR>host% fbconfig -dev /dev/fb0 -doublehigh enable</DIV> <DIV>2.确保两个Sun图形加速器都在使用相同的视频格式。<BR>使用 fbconfig 命令检查各个图形板的分辨率。<BR>host% fbconfig -dev /dev/fb0 -prconf<BR>使用 fbconfig 命令更改分辨率。<BR>必须分别配置每个图形板(即 kfb0、kfb1 等)。<BR>host% fbconfig -dev /dev/fb0 -res 1280x1024x76<BR>host% fbconfig -dev /dev/fb1 -res 1280x1024x76<BR>退出 X Window System,然后重新登录以使分辨率生效。</DIV> <DIV>3.SUN Xvr-1200除了可以在“一个较大的帧缓冲器上设置两个视频流”的方法外(分屏同2500),还有个"设置两个独立的视频流"的部分,说明<BR>可以配置成双屏。Xvr-2500则没有该功能。</DIV> <DIV>4.安装2块Xvr-2500显卡配置双屏。<BR># mkdir -p /etc/dt/config<BR># cp /usr/dt/config/Xservers /etc/dt/config<BR># cd /etc/dt/config<BR># vi + Xservers<BR>添加这样一行:0 Local <A href="mailto:local_uid@console">local_uid@console</A> root /usr/openwin/bin/Xsun -dev /dev/fbs/kfb0 -dev /dev/fbs/kfb1<BR>(文件里原本有一行“:0 Local <A href="mailto:local_uid@console">local_uid@console</A> root /usr/openwin/bin/Xsun -nobanner”)</DIV> <DIV>ATTENTION: <BR> 对于Sun Ultra 45 和 Ultra 25 工作站,Sun 唯一支持的操作系统是 Solaris 10 操作系统。<BR> 如果安装了其他版本的 Solaris 软件,则工作站可能无法正常工作。<BR> 在开始安装之前,请验证即将在工作站上安装的是solaris 10 1/06 os 或solaris os 的后续兼容版本。 <BR>ATTENTION:<BR> 集成在solaris 系统中的power management软件可使内部子系统处于低能耗模式,从而提高能效。<BR> 只有在使用java 桌面系统窗口系统(而不是使用cde 窗口系统)时,sun ultra 25工作站才会符合或超出energy star 的标准。如果当前使用的是cde,则可以切换到java 桌面系统,方法是从cde 会话中注销,然后选择java 桌面系统而非cde 来重新登录。可根据需要对工作站子系统恢复供电。在默认情况下,默认的非活动时间为30 分钟。在低能耗模式下,工作站仍保持网络识别状态,并可对网络通信做出响应。<BR>ATTENTION:<BR> 可选部件(如dimm、pci 卡、图形加速器和硬盘驱动器)对静电比较敏感。因此,在操作硬件部件时,请务必佩戴防静电手腕带。外设部件互连扩展 (PCI-X0) 100 MHz 插槽(插槽 0)和(PCI-X1) 100 MHz 插槽(插槽 1)中仅允许插入 Sun XVR-100 图形加速器。外设部件互连加速 (PCI-E1 x16) 插槽(插槽 3)和 (PCI-E2 x16) 插槽(插槽 4) 插入Sun XVR-2500 图形加速器。</DIV>
查看全文
发表于:2007-06-07 ┆
阅读(495)
┆
评论(0)
Sun xvr-600,m64(solaris8) config
<DIV>SUN XVR-600<BR>===========<BR>stop2:/export/home/nari/exe> fbconfig -list<BR> Device-Filename Specific Config Program<BR> --------------- -----------------------<BR> /dev/fbs/jfb0 SUNWjfb_config<BR> /dev/fbs/jfb1 SUNWjfb_config</DIV> <DIV><BR>stop2:/export/home/nari/exe> fbconfig -dev /dev/fb0 -propt<BR>--- OpenWindows Configuration for /dev/fb0 ---<BR>OWconfig: machine<BR>Video Mode: NONE<BR>Accum: Enabled (allocate an accumulation buffer if possible)<BR>Multisample Information:<BR> Multisample Mode: Disabled (multisample visuals will not be available)<BR> Samples Per Pixel: N/A (multisampling disabled)<BR> Visual Information:<BR> Default Visual: Non-Linear Normal Visual<BR> Visual Ordering: Linear Visuals are last<BR> Overlay Visuals are last<BR> Gamma Correction Value: 2.22<BR> Gamma Correction Table: Not Available<BR> Fake8 rendering: disabled<BR> Default Visual Depth (defdepth): 8</DIV> <DIV><BR>stop2:/export/home/nari/exe> fbconfig -dev /dev/fb1 -propt<BR>--- OpenWindows Configuration for /dev/fb1 ---<BR>OWconfig: machine<BR>Video Mode: NONE<BR>Accum: Enabled (a……
查看全文
发表于:2007-06-07 ┆
阅读(506)
┆
评论(0)
Sun Ultra45 xvr-2500 config
<DIV><BR>#fbconfig -list<BR> Device-Filename Specific Config Program<BR> --------------- -----------------------<BR> /dev/fbs/kfb0 SUNWkfb_config /* xvr-2500 */<BR> /dev/fbs/jfb0 SUNWjfb_config /* xvr-600 */<BR>#<BR># ls -al fb*<BR>lrwxrwxrwx 1 root root 43 May 18 10:07 fb -> <A>/devices/pci@1f,700000/SUNW,XVR-2500@0:kfb0</A><BR>lrwxrwxrwx 1 root root 8 May 15 14:09 fb0 -> fbs/kfb0<BR>lrwxrwxrwx 1 root root 8 May 18 10:07 fb1 -> fbs/jfb0<BR>lrwxrwxrwx 1 root root 67 May 18 10:07 jfb0 -> <A href="mailto:../../devices/pci@1e,600000/pci@0/pci@9/pci@0,2/SUNW,XVR-600@1:jfb0">../../devices/pci@1e,600000/pci@0/pci@9/pci@0,2/SUNW,XVR-600@1:jfb0</A><BR>lrwxrwxrwx 1 root root 48 May 15 14:09 kfb0 -> <A href="mailto:../../devices/pci@1f,700000/SUNW,XVR-2500@0:kfb0">../../devices/pci@1f,700000/SUNW,XVR-2500@0:kfb0</A><BR>#</DIV> <DIV># fbconfig<BR> fbconfig [-list] [-gui] [-dev devname | abbreviation]<BR> [-res video-mode] [-propt] [-prconf] [-help]</DIV> <DIV> -list List installed and configurable frame buffers<BR> -gui Invoke Graphical User Interface (SUNWdcm)<BR> to configure devices and update Xservers file.</DIV> <DIV>Usage:</DIV> <DIV> SUNWkfb_config [-dev devname] [-file machine | system]<BR> [-res video-mode]<BR> [-deflinear true | false]<BR> [-defoverlay true | false]<BR> [-doublewide enable | disable]<BR> [-doublehigh enable | disable]<BR> [-g gamma-value]<BR> [-gfile filename]<BR> [-multisample disable | available | forceon ]<BR> [-offset xoff-value yoff-value]<BR> [-samples 1 | 4 | 8 | 16 ]<BR> [-slave disable | multiview ]<BR> [-defaults] [-propt] [-prconf] [-help]</DIV> <DIV> -defaults set all options for specified device back to default<BR> values (except for -dev).<BR> -deflinear If true, default visual will be linear visual.<BR> Default: false<BR> -defoverlay If true, default visual will be overlay visual.<BR> Default: false<BR> -dev device to configure. Default: /dev/fb<BR> -doublewide combine both displays into one horizontal virtual<BR> display. Default: disable<BR> -doublehigh combine both displays into one vertical virtual<BR> display. Default: disable<BR> -file which OWconfig file to update. Default: machine<BR> -g Gamma Correction Value<BR> Default: 2.2<BR> -gfile Filename of the file containing Gamma Correction Table<BR> -help print out this message.<BR> -multisample If disable, no multisampling is possible. If available,<BR> multisampling is possible but selected on a per window<BR> basis. If forceon, all Open GL windows are rendered<BR> using multisampling<BR> Default: disable<BR> -offset adjust the position of the specified stream.<BR> Currently only implemented in -doublewide and<BR> -doublehigh modes.<BR> For -doublewide the X offset is used to position the<BR> rightmost stream. Negative is left (overlaps with<BR> left stream).<BR> For -doublehigh the Y offset is used to position the<BR> bottommost stream. Negative is up (overlaps with<BR> upper stream)<BR> -propt print out current option settings.<BR> -prconf print out device hardware configuration.<BR> -res video-mode to set on device. No default.<BR> -res \? will show list of possible video modes.<BR> -samples Request num. of samples to compute per display pixel.<BR> Default: 4<BR> -slave If multiview this device synchronizes video with a<BR> master through the multiview ribbon cable. Both<BR> devices should be running the same resolution and<BR> this option should be issued when the window system.<BR> is running. Default: disabled</DIV> <DIV><BR>#<BR>#fbconfig -dev /dev/fb0 -propt<BR>--- Graphics Configuration for /dev/fb0 ---<BR>OWconfig: machine<BR>Video Mode: SUNW_STD_1280x1024x76<BR>Multisample Information:<BR> Multisample Mode: Disabled (multisample visuals will not be available)<BR> Samples Per Pixel: N/A (multisampling disabled)<BR> Screen Information:<BR> DoubleWide: Disabled<BR> DoubleHigh: Disabled<BR> Offset/Overlap: [0, 0]<BR> Visual Information:<BR> Default Visual: Non-Linear Normal Visual<BR> Gamma Correction: using default gamma value 2.22<BR>#<BR>#<BR># fbconfig -prconf<BR>--- Hardware Configuration for /dev/fb ---<BR>Type: Unknown<BR>PROM Information: @(#) xvr2500-0.fth 17.116 05/10/26 SMI</DIV> <DIV>Monitor/Resolution Information:<BR> EDID Data: Not Available<BR> Current resolution setting: SUNW_STD_1280x1024x76</DIV> <DIV>Framelock Configuration:<BR> Slave Mode: Disabled</DIV> <DIV>#<BR># man SUNWkfb_config<BR>Reformatting page. Please Wait... done</DIV> <DIV>Maintenance Commands SUNWkfb_config(1M)</DIV> <DIV>NAME<BR> SUNWkfb_config - fbconfig module for configuring the Sun<BR> XVR-2500 Graphics Device</DIV> <DIV>SYNOPSIS<BR> /usr/lib/fbconfig/SUNWkfb_config [-dev device-filename] [<BR> -res video-mode] [-file machine | system] [-deflinear true |<BR> false] [-defoverlay true | false] [-linearorder first |<BR> last] [-slave disable | multiview] [-accum enable | disable]<BR> [-g gamma-correction-value] [-gfile gamma-correction-file]<BR> [-doublewide enable | disable] [-doublehigh enable | dis-<BR> able] [-outputs swapped | direct] [-multisample available |<BR> disable | forceon] [-samples 1 | 2 | 4 | 8 | 16] [<BR> -offset xval yval] [-propt] [-prconf] [-defaults]</DIV> <DIV> /usr/lib/fbconfig/SUNWkfb_config [-propt] [-prconf]</DIV> <DIV> /usr/lib/fbconfig/SUNWkfb_config [-help] [ -res ?]</DIV> <DIV> SUNWkfb_config configures the Sun XVR-2500 Graphics<BR> Accelerator and some of the X11 window system defaults for<BR> the Sun XVR-2500.</DIV> <DIV> The first form of SUNWkfb_config shown in the SYNOPSIS sec-<BR> tion stores the specified options in the OWconfig file.<BR> These options initialize the Sun XVR-2500 device the next<BR> time the window system is run on that device. Updating<BR> options in the OWconfig file provides persistence of these<BR> options across window system sessions and system reboots.</DIV> <DIV> The second and third forms which invoke only the -prconf,<BR> -propt, -help, and -res ? options, do not update the OWcon-<BR> fig file. Additionally, for the third form all other options<BR> are ignored.</DIV> <DIV> You can specify options for only one device at a time. If<BR> you want to specify options for multiple devices, you must<BR> invoke the SUNWkfb_config utility multiple times.</DIV> <DIV> You can use the SUNWkfb_config utility to specify Sun XVR-<BR> 2500-specific options. Use the normal window system options<BR> to specify default depth, default visual class and so forth.<BR> Specify these as device modifiers on the command line. See<BR> Xsun(1).</DIV> <DIV> You can also specify which OWconfig file to update. By<BR> default, SUNWkfb_config updates the machine-specific file in<BR> the /etc/openwin. You can specify an alternate file by using<BR> the -file option. For example, the system-global OWconfig<BR> file in the /usr/openwin directory tree can be updated<BR> instead.</DIV> <DIV>SunOS 5.10 Last change: 26 Aug 2005 1</DIV> <DIV>Maintenance Commands SUNWkfb_config(1M)</DIV> <DIV> Both of these standard OWconfig files can only be written by<BR> root. Consequently, the SUNWkfb_config program, which is<BR> owned by the root user, always runs with setuid root permis-<BR> sion.</DIV> <DIV> The following options are supported:</DIV> <DIV> -accum enable | disable</DIV> <DIV> Enable or disable frame buffer memory. If enabled, frame<BR> buffer memory is allocated for the accelerated accumula-<BR> tion buffer for windows. If disabled, software accumula-<BR> tion buffering for windows is used. Accelerated accumu-<BR> lation buffers for pBuffers are always available as<BR> memory allows.</DIV> <DIV> -dev device-filename</DIV> <DIV> Specify the SunXVR-2500 special file. The default is<BR> /dev/fbs/kfb0.</DIV> <DIV> -defaults</DIV> <DIV> Reset all option values except -dev to their default<BR> values.</DIV> <DIV> This option sets the resolution override to none which<BR> implies the last video mode setting is preserved. If no<BR> monitor is attached, the video mode is set to<BR> 1152x900x66.</DIV> <DIV> -deflinear true | false</DIV> <DIV> The Sun XVR-2500 possesses two types of visuals: linear<BR> and nonlinear. Linear visuals are gamma corrected and<BR> nonlinear visuals are not. There are two visuals that<BR> have both linear and nonlinear versions: 24-bit<BR> TrueColor and 8-bit StaticGray.</DIV> <DIV> If the value of this option is true, the default visual<BR> is set to the linear visual that satisfies other speci-<BR> fied default visual selection options (specifically, the<BR> Xsun defdepth and defclass options; see Xsun(1)). If<BR> false, or if there is no linear visual that satisfies<BR> the other default visual selection options, the non-</DIV> <DIV>SunOS 5.10 Last change: 26 Aug 2005 2</DIV> <DIV>Maintenance Commands SUNWkfb_config(1M)</DIV> <DIV> linear visual specified by these other options is chosen<BR> as the default visual. This option cannot be used when<BR> the -defoverlay option is present, because the Sun XVR-<BR> 2500 does not possess a linear overlay visual.</DIV> <DIV> -defoverlay true | false</DIV> <DIV> The Sun XVR-2500 provides an 8-bit PseudoColor visual<BR> whose pixels are disjoint from the rest of the visuals.<BR> This is called the overlay visual. Windows created in<BR> this visual will not damage windows created in other<BR> visuals. The converse, however, is not true. Windows<BR> created in other visuals will damage overlay windows.</DIV> <DIV> If the value of this option is true, the overlay visual<BR> is the default visual. If false, the nonoverlay visual<BR> that satisfies the other default visual selection<BR> options, such as defdepth and defclass, is chosen as the<BR> default visual. See Xsun(1). Whenever -defoverlay true<BR> is used, the default depth and class chosen on the<BR> openwin command line must be 8-bit PseudoColor. If not,<BR> a warning message is printed and the -defoverlay option<BR> is treated as false.</DIV> <DIV> -doublehigh enable | disable</DIV> <DIV> Configure the two outputs of the Sun XVR-2500 into one<BR> vertical virtual display. The default is disable.</DIV> <DIV> -doublewide enable | disable</DIV> <DIV> Configure the two outputs of the Sun XVR-2500 into one<BR> horizontal virtual display. The default is disable.</DIV> <DIV> -file machine|system</DIV> <DIV> Specifies which OWconfig file to update. If machine is<BR> specified, the machine-specific OWconfig file in the<BR> /etc/openwin directory tree is updated. If system is<BR> specified, the global OWconfig file in the /usr/openwin<BR> directory tree is updated. If the specified file does<BR> not exist, it is created. This option has no effect<BR> unless other options are specified. The default is<BR> machine.</DIV> <DIV>SunOS 5.10 Last change: 26 Aug 2005 3</DIV> <DIV><BR>config the depth value on solaris 10 platform: <BR>run this command first at root to config display !!!!<BR>#svccfg -s x11-server setprop options/default_depth=8</DIV> <DIV>1.insert the XVR-2500 Graphics Device CDROM.<BR>2.cd /cdrom/cdrom0/<BR>3.#./install (#./uninstall)<BR>4.install all the package!!<BR>5.#fbconfig -gui <BR>6.config the Graphics Device through the GUI interface!</DIV> <DIV> </DIV>
查看全文
发表于:2007-06-07 ┆
阅读(508)
┆
评论(0)
solaris 10修改主机名
<DIV>solaris 10修改主机名以及使用smc时的注意事项。 <BR></DIV> <DIV> </DIV> <DIV>1.Solaris 10中修改主机名需要修改下面文件中的内容:<BR>/etc/hosts,<BR>/etc/hosts.equiv,<BR>/etc/nodename,<BR>/etc/hostname.hme0(bge0),<BR>/etc/hostname.hme1(bge1),<BR>/etc/inet/ipnodes<BR>6个文件中的相关内容。<BR>(需要注意的是,如果修改了机器的IP地址,除了修改hostname.*外,还必须修改ipnodes文件中的内容,否则会出现ping不通的情况。)<BR>2.更改完主机名后,启动smc的时候,会发现smc的控制台打不开,提示类似“open tbx failed”的错误。<BR>解决该问题的办法是:smc启动后,打开菜单“控制台”中的“打开工具箱”,在其中的主机名下,单击装入即可。<BR>如果想下次启动smc时正常显示,则需要修改菜单“控制台”中的“首选设置”,选中“上次打开的工具箱”就ok了。</DIV> <DIV><IMG src="http://www.cublog.cn/images/face/030.gif"></DIV> <DIV></DIV>
查看全文
发表于:2007-06-07 ┆
阅读(654)
┆
评论(0)
OpenBoot PROM
<DIV> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 120pt; mso-char-indent-count: 8.0"><SPAN lang=EN-US style="FONT-SIZE: 15pt; FONT-FAMILY: Verdana; mso-bidi-font-size: 10.0pt">OpenBoot PROM</SPAN><SPAN style="FONT-SIZE: 15pt; FONT-FAMILY: 宋体; mso-bidi-font-size: 10.0pt; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">介绍</SPAN><SPAN style="FONT-SIZE: 15pt; FONT-FAMILY: Verdana; mso-bidi-font-size: 10.0pt"> <SPAN lang=EN-US><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana"><o:p> </o:p></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">所有</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana">Sun</SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体……
查看全文
发表于:2007-06-07 ┆
阅读(459)
┆
评论(0)