boot_permission_linux.html
Adding boot permission for VME CPU boards running VxWorks to boot from a Linux host
Adding permissions for a MVME board to boot, run rshell & nfs mount from a linux host
A. Booting
Can be done via ftp or rsh mechanism. The rsh mechanism is used if there is no password specified in the Boot Parameters of the MVME board. For rsh to work, there must be an entry of the username on the host machine in file .rhosts .For example, bring up the consol of your MVME board (vwisac1 is used
in the example below), and check the parameters by giving the
command
:
-> versionTo change the parameters, issue the command:
VxWorks (for Motorola MVME2300 - MPC 604r) version 5.3.1.
Kernel: WIND version 2.5.
Made on Sep 17 1998, 15:42:09.
Boot line:
dc(0,0)dasdevpc:/vw-ppc/config/vwisac1/vxWorks e=142.90.130.113 h=142.90.106.82 u=midas f=0x8 tn=vwisac1
value = 116 = 0x74 = 't'
-> bootChangeNote: the fields remain unchanged if you only press carriage-return.
'.' = clear field; '-' = go to previous field; ^D = quit
boot device : dc0
processor number : 0
host name : dasdevpc
file name : /vw-ppc/config/vwisac1/vxWorks
inet on ethernet (e) : 142.90.130.113
inet on backplane (b):
host inet (h) : 142.90.106.82
gateway inet (g) :
user (u) : midas
ftp password (pw) (blank = use rsh):
flags (f) : 0x8
target name (tn) : vwisac1
startup script (s) :
other (o) :
The example above shows that rsh will be used since no password is supplied. The username is "midas". This username "midas" is always used for the the Midas DAQ system.
On the host machine (dasdevpc) , account midas has a file /home/midas/.rhosts
Wed> more .rhostsIf using rsh, make a similar file on your host.
pierre midas
e614vw midas
vwisac1 midas
Note that for CAMP (MVME162) nodes, the bootup parameters specifiy the user as "musrdaq", so in this case a file /home/musrdaq/.rhosts is needed.
B. nfs mounts
nfs mounts must be enabled on the host, in this case dasdevpc. This can be done by using- Either the Linux control-panel
As superuser, bring up the Linux control-panel
su
(passwd)
control-panel
On the control panel,
select "System Configuration" (the Conductor icon)
select Server tasks
select Exported file systems
Press Add, enter the exported path name
and the name of the machine
and exit the window after "activating the changes"
e.g.If adding a CAMP node, add lines such as
[root@dasdevpc /etc]# more exports
/home/midas/vw-ppc e614vw(ro)
/home/musrdaq/musr/camp bnmrvw(rw) devvw(rw)
/home/musrdaq/musr/vw bnmrvw(ro) devvw(ro)
C. allow rshell access
edit file /etc/hosts.allow and add your host to the line, e.g.in.rshd: pierre.triumf.ca, bnmrhmvw.triumf.ca
D. reload nfs
executing the commandexportfs -r
or
[root@dasdevpc /etc]# /etc/rc.d/init.d/nfs reload
To check what files systems are exported by a given host
Issue command /usr/sbin/showmount -e "hostname"
For example:
[root@dasdevpc /etc]# /usr/sbin/showmount -e dasdevpc
Export list for dasdevpc:
/home/midas/vw-ppc e614vw.Triumf.CA,/
or
[root@dasdevpc /etc]# /usr/sbin/showmount -e isdaq01
Export list for isdaq01:
/usr/local e614slow.Triumf.CA
/is01_data1 alph04.Triumf.CA,midtis04.Triumf.CA,midtis01.Triumf.CA
/is01_data alph04.Triumf.CA,midtis04.Triumf.CA,midtis01.Triumf.CA
/home alph04.Triumf.CA,midtis04.Triumf.CA,midtis01.Triumf.CA
E. Install rshell if not installed
For SL5 and 6 rshell is usually not installedls /etc/xinetd.dif rsh is not there, install it as follows (as root)
yum install rsh-serverThere should now be a directory etc/xinetd.d/rsh F. Enable rsh protocol (RedHat 7.1 and later) Emable rshell by editing the file /etc/xinetd.d/rsh, e.g.
cd /etc/xinetd.dThen restart:
emacs rsh
Change "disable yes" to
"disable no"
service xinetd reload