EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: DHCP/BOOTP configuration for EPICS with RTEMS
From: Eric Norum <[email protected]>
To: Bruno Seiva Martins <[email protected]>
Cc: [email protected]
Date: Mon, 24 Sep 2012 08:22:10 -0700
What version of RTEMS and of EPICS?
What IOC hardware?
What server hardware/os?

Mount (null):/tftpboot/epics          <-- what was this "(null)" supposed to be?  
That (null) should be the IP address of your server.  
Are you planning on using a TFTP server or an NFS server to get the st.cmd file, databases, and such?  I see that the NFS client is starting up, but the path name looks to me like you're trying to use TFTP.

On Sep 24, 2012, at 7:53 AM, Bruno Seiva Martins <[email protected]> wrote:

Hi all,

I'm struggling to setup a remote boot environment for my EPICS application on RTEMS. The log I get is:

My ip address is 10 .128 .11 .1
Hostname is sbc1
bootpc: DHCP server len is 6Ignoring BOOTP/DHCP option code 28
Boot file is /tftpboot/rtems
Command line is epics/sbc1/
Subnet mask is 255 .255 .0 .0
Server ip address is 10 .128 .11 .3
Gateway ip address is 0 .0 .0 .0
Log server ip address is 10 .128 .11 .3
bootpc_adjust_interface: add net route, error=114
***** Initializing NFS *****
Mount (null):/tftpboot/epics          <-- what was this "(null)" supposed to be?  
RTEMS-RPCIOD $Release$, Till Straumann, Stanford/SLAC/SSRL 2002, See LICENSE file for licensing info.
RTEMS-NFS $Release$, Till Straumann, Stanford/SLAC/SSRL 2002, See LICENSE file for licensing info.
mount failed: Invalid argument
***** Starting EPICS application *****
Can't set initial directory(/epics/sbc1/): No such file or directory

fatal error, exiting



I followed Norum's guide and got everything to compile. Then I created an example app.

makeBaseApp.pl -t example rtems
makeBaseApp.pl -i -t example rtems

After compiling, I set up the PC that will be acting as a server:

Created a /tftpboot directory
Put both generated binaries in it:

/tftpboot/rtems
/tftpboot/rtems.boot

My client is named "sbc1", so I put the st.cmd file, db and dbd directories in:

/tftpboot/epics/sbc1/

The client is a x86 computer running gPXE.

I tried passing different strings to the "command line" (option 129)
epics/sbc1 <-- this one gets me to an ioc prompt, but with no databases loaded
epics/
epics/sbc1/
/epics/sbc1/
10.128.11.3:/tftpboot/epics/sbc1/
etc..

I tried defining OMIT_NFS_SUPPORT and using only TFTP, but got something like

"Can't open /TFTP/BOOTP_HOST/epics/sbc1/st.cmd: No such file or directory"



I believe I'm missing some really simple configuration parameter...



My configuration files:

FILE /etc/default/tftpd-dha

TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/tftpboot"
TFTP_ADDRESS="0.0.0.0:69"

FILE /etc/exports

/tftpboot *(rw,sync,no_root_squash)

FILE /etc/default/dchpd.conf

ddns-update-style none;
default-lease-time 600;
max-lease-time 7200;

# Enable network boot
allow booting;
allow bootp;

log-facility local7;

# Configure the network

option subnet-mask 255.255.0.0;
option broadcast-address 10.128.255.255;
option T128 code 128 = string;
option T129 code 129 = string;

subnet 10.128.0.0 netmask 255.255.0.0 {
   range 10.128.11.1 10.128.11.200;
}

group
{
   next-server 10.128.11.3;

   # DHCP send hostnames declared here
   use-host-decl-names on;
   option T128 e4:45:74:68:00:00; #EtherBoot

# Single Board Computer 1
   host sbc1
   {
      option host-name "sbc1";
      hardware ethernet <MAC ADDRESS>; # ommited on purpose
      fixed-address 10.128.11.1;
      filename "/tftpboot/rtems";  # this works
      option T129 "epics/sbc1/"; # this doesn't

   }
}



Thanks in advance,


Bruno Seiva Martins

 

-- 
Eric Norum
[email protected]





Replies:
Re: DHCP/BOOTP configuration for EPICS with RTEMS Bruno Seiva Martins
References:
DHCP/BOOTP configuration for EPICS with RTEMS Bruno Seiva Martins

Navigate by Date:
Prev: RE: Problem with using strings to access enum indices on Windows Mark Rivers
Next: Re: Problem with using strings to access enum indices on Windows Eric Norum
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: DHCP/BOOTP configuration for EPICS with RTEMS Bruno Seiva Martins
Next: Re: DHCP/BOOTP configuration for EPICS with RTEMS Bruno Seiva Martins
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·