diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-07-18 19:05:39 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-07-18 19:05:39 +0000 |
commit | cd8aff077deaee89d582839470aa9379f683cd84 (patch) | |
tree | 97cd8981862e9d71fb59f4650256069d644ce677 | |
parent | 9727f6897a7d4db87aaecc15773b5b55090c5285 (diff) |
2007-07-18 Joel Sherrill <joel.sherrill@oarcorp.com>
* ChangeLog, init.c: Clean up and now works on PowerPC/ep5200.
-rw-r--r-- | nfsClientTest/ChangeLog | 9 | ||||
-rw-r--r-- | nfsClientTest/init.c | 18 |
2 files changed, 21 insertions, 6 deletions
diff --git a/nfsClientTest/ChangeLog b/nfsClientTest/ChangeLog index b375ed5..04cae85 100644 --- a/nfsClientTest/ChangeLog +++ b/nfsClientTest/ChangeLog @@ -1,3 +1,12 @@ +2007-07-18 Joel Sherrill <joel.sherrill@oarcorp.com> + + * ChangeLog, init.c: Clean up and now works on PowerPC/ep5200. + +2007-07-18 Joel Sherrill <joel.sherrill@oarcorp.com> + + * init.c: Clean up and now works on ep5200. + * mon.c: New file. + 2007-07-16 Joel Sherrill <joel.sherrill@oarcorp.com> * ChangeLog, rootfs/etc/host.conf, rootfs/etc/hosts: New files. diff --git a/nfsClientTest/init.c b/nfsClientTest/init.c index 3211e1a..941761a 100644 --- a/nfsClientTest/init.c +++ b/nfsClientTest/init.c @@ -102,15 +102,18 @@ rtems_task Init( printf( "PWD: " ); pwd(); - printf( "\nls /\n" ); + printf( "\n--->ls /\n" ); ls("/"); - printf( "\nls /etc\n" ); + printf( "\n--->ls /etc\n" ); ls("/etc"); printf("============== Initializing Network ==============\n"); rtems_bsdnet_initialize_network (); + printf("============== Add Route ==============\n"); + rtems_bsdnet_show_inet_routes (); + printf("============== Initializing RPC ==============\n"); int_status = rpcUdpInit(); if ( int_status ) @@ -120,9 +123,12 @@ rtems_task Init( nfsInit( 0, 0 ); printf("============== Mounting Remote Filesystem ==============\n"); -#if 0 +#if 1 + /* This code uses the NFS mount wrapper function */ int_status = nfsMount("192.168.1.210", "/home", "/home" ); #else + /* This section does it more explicitly */ + mkdir( "/home", 0777 ); int_status = mount( NULL, /* mount_table_entry_pointer */ &nfs_fs_ops, /* filesystem_operations_table_pointer */ @@ -130,15 +136,15 @@ rtems_task Init( "192.168.1.210:/home", /* device aka remote filesystem */ "/home" /* mount_point */ ); - #endif - if ( int_status ) printf( "NFS Mount failed -- %s\n", strerror(errno) ); printf("============== Look at Remote Filesystem ==============\n"); - printf( "\nls /home\n" ); + printf( "\n---> ls /home\n" ); ls("/home"); + printf( "\n---> ls /home/nfstest\n" ); + ls("/home/nfstest"); exit(0); |