RTEMS netdemos-4.5.0 questions:

Chris Johns cjohns at cybertec.com.au
Mon May 12 21:47:10 UTC 2003


Bert wrote:
> Hi, i want to test the network funtions
> of RTEMS, in the process i met some
> problems:
> 
> 1.Enviroment
> 
> (1)host: 
>    OS: Redhat Linux 8.0,
>    hostname: ghm,
>    ip address: 192.0.2.9,
>    domain name: ghm.sim.com
> 
> (2)client: 
>    Archtecture: i386,
>    hostname: bert,
>    ip address: 192.0.2.2,
>    domain name: bert.sim.com
> 
> 2.Server's configuration on host machine
> 
> (1)DHCP Server (dhcp-3.0pl1-9.i386.rpm)
> the dhcp config file "/etc/dhcp.conf"
> is as following :
>   ddns-update-style none;
>   ignore client-updates;
>   allow bootp;
>   authoritative;
>   subnet 192.0.2.0 
>   netmask 255.255.255.0 
>   {
>     option routers 255.255.255.255;

This should be set to a real address not a mask. The real address should be your 
gateway. For all the conf details try:

  $ man dhcpd.conf

>     option subnet-mask 255.255.255.0;
>     option broadcast-address 192.0.2.255;
>     option nis-domain "sim.com";
>     option domain-name "sim.com";
>     option domain-name-servers 192.0.2.9;
>     option ntp-servers 192.0.2.9;
>     range dynamic-bootp 192.0.2.2 192.0.2.8;
>     default-lease-time 216000;
>     max-lease-time 432000;
>     always-broadcast on;
>     host bert 
>     {
>       hardware ethernet 00:60:08:3D:3A:6E;
>       fixed-address 192.0.2.2;
>       option host-name "bert";
>       filename "test.txt";
>       allow booting;
>      }
>   }
> 	
> (2)tftp server (tftp-server-0.29-3 )
> The file "/etc/xinetd.d/tftp" is following :
> service tftp
> {
> socket_type		= dgram
> protocol		= udp
> wait			= yes
> user			= root
> server			= /usr/sbin/in.tftpd
> #server_args		= -s /tftpboot
> disable			= no
> #per_source		= 11
> #cps			= 100 2
> }
> 
> 3.Testing of programs in netdemos-4.5.0 packages 
>   for rtems networking test:
> 
> i used "grub" to boot up the target,after it got
> its hostname and IP address etc,there always was
> a message "nfs_boot: Add route,error=114" on the
> screen. Why? How to correct it?

I would fix "option routers 255.255.255.255;" and see what happens.

> 
> (1)netdemo test
> 
> when i typed "t" on the target, got:
>  Creat socket.
>  Bind socket.
>  Connect socket.
>  Can't connect socket : Connection refused.
> 
> What's the problem with Connecting socket ?
> 

If RTEMS is also using DHCP then I suspect the gateway address.

> (2)ttcp test
> 
> the error information:
>   >>>ttcp -t 192.0.2.9
>   buflen=8192, nbuf=2048, align=16384/0, 
>   port=5001, 
>   tcp-> 192.0.2.9
>   ttcp-t : socket
>   ttcp-t : connect : Connection refused
>   errno=111
> 
> Why?

Part 1) did not work.

> 
> (3)netlink test
> 
> target's information:
> webs : Listening for HTTP requests at 192.0.2.2
> Then tpye "http://192.0.2.2/index.html" in the 
> web browser on the host,the browser return:
>   Access Error: Page not found
>   when trying to obtain /index.html
>   Cannot open URL /index.html
> At the same time,on the screen of the target
> it showed that:
>   webs : accept request.
>   webs : accept request.
> 
> Why the Access Error occured ? Where would 
> the file "index.html" should be located ?
> 

No sure.

> (4)tftpTest
> 
> the error information on the target's screen:
> 	
>   TFTP mount failed : Not supported.
>   Read 'TFTP/192.0.2.9/'
>   Open failed : No such file or directory.
>   Open failed : No such file or directory.
>   Read 'TFTP/192.0.2.9/BAD-FILE-NAME'
>   Open failed : No such file or directory.
>   Open failed : No such file or directory.
>   Read 'TFTP/192.0.2.9/test.txt'
>   Open failed : No such file or directory.
>   Open failed : No such file or directory.
> 
> where the file "test.txt" should be put?

On your server in the top level TFTP directory.

> How to set the path in "/etc/dhcp.conf"?

The TFTP config controls this. Check the man page for the TFTP server.

-- 
  Chris Johns, cjohns at cybertec.com.au




More information about the users mailing list