GeSys on a mvme167?
Daron Chabot
daron.chabot at gmail.com
Wed Jul 28 15:07:08 UTC 2010
On Wed, Jul 28, 2010 at 10:09 AM, Jan C. Bernauer <bernauer at mit.edu> wrote:
> Hi,
>
> On 23.07.10 03:41, Till Straumann wrote:
>
>>
>> I uploaded a current snapshot of GeSys including cexp. I had tested this
>> software on
>> the mvme167 successfully albeit not recently.
>>
>
> Thank you very much.
> I got it compiled after patching out the calls to
> rtems_bsdnet_initialize_tftp_filesystem() which does not exist anymore.
>
> Next problem is a Null pointer derefence of symf.
> The code path hits (in init.c)
> switch ( pathType(pathspec) ) {
> case LOCAL_PATH:
> fd = open(pathspec,O_RDONLY);
> if ( fd >= 0 )
> symf = strdup(pathspec);
> break;
>
> The open fails, and symf will not be set. Later, it is accessed and program
> dies.
>
> I will investigate that further (should it open the file from a tftp mount?
> Maybe related to the problem above). For now I commented out the if line, so
> symf will get set anyway.
I think you're right: it's trying to open a file from a tftp mount. The API
to RTEMS' TFTP was changed a couple of months back.
Now you need something like this (from network-demos/tftpTest/init.c):
#include <rtems/libio.h>
rtems_bsdnet_initialize_network ();
mount_and_make_target_path (
NULL,
"/TFTP",
RTEMS_FILESYSTEM_TYPE_TFTPFS,
RTEMS_FILESYSTEM_READ_WRITE,
NULL
);
-- dc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20100728/adb83d43/attachment-0001.html>
More information about the users
mailing list