This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Permissions and Network


Hi,

Hope someone can help, being stuck on this for a while.

Initially started working on eCos using the version 1.3 (current) repository,then downloaded the latest (v2) repository and changed the repository. Problem is with I try to built eCos, etc, I get the following error. I noticed this came up before and someone mentioned, switching the entries listed under 'mount' and change the to 'textmode'. I have done this and also made sure the permissions are correct, but still given errors, this is what I see.

/*****************************************************************************/

make -j1 --directory "/ecos-c/workdir1/ecos/ecos_build"

make: Entering directory `/ecos-c/workdir1/ecos/ecos_build'
make -r -C hal/i386/arch/v2_0 headers
make[1]: Entering directory `/ecos-c/workdir1/ecos/ecos_build/hal/i386/arch/v2_0'
make[1]: Leaving directory `/ecos-c/workdir1/ecos/ecos_build/hal/i386/arch/v2_0'
make -r -C hal/i386/generic/v2_0 headers
make[1]: Entering directory `/ecos-c/workdir1/ecos/ecos_build/hal/i386/generic/v2_0'
make[1]: Leaving directory `/ecos-c/workdir1/ecos/ecos_build/hal/i386/generic/v2_0'
make -r -C hal/i386/pc/v2_0 headers
make[1]: Entering directory `/ecos-c/workdir1/ecos/ecos_build/hal/i386/pc/v2_0'
cp: cannot create regular file `/ecos-c/workdir1/ecos/ecos_install/include/pkgconf/mlt_i386_pc_floppy.ldi': Permission denied
make[1]: Leaving directory `/ecos-c/workdir1/ecos/ecos_build/hal/i386/pc/v2_0'
make[1]: *** [/ecos-c/workdir1/ecos/ecos_install/include/pkgconf/mlt_i386_pc_floppy.ldi] Error 1
make: Leaving directory `/ecos-c/workdir1/ecos/ecos_build'
make: *** [headers] Error 2


/*****************************************************************************/

The reason I wish to use the lastest repository, is because my project is interested in the network stack. When I have been running the basic1 application with the ecos library (setup up with new_net) linked in, using gdb, I have been trying to follow the program through to see how packets are sent from say the ip_output function. As I am interested in the interface between the IP layer and the network interface device.

Problem is I struggling to see what happens (does it even go through the ip_output function), initially I set up the ecos build to use dhcp to gain an IP address, but this didnt seem to be recieving an address. I then allocated an IP address statically and set up the other various components such as the gateway address, which am pretty sure should work. However with both setup I am unable to find out if the IP address has been setup correctly, I can see all the various initialisation but not packet being sent out.

I am currently running redboot on a i386 target that has been given a static address of 127.168.112.210, where as ecos has been given a static IP address of 192.168.112.204, and using an Intel 82559 Ethernet card which is supported. Debugging the target using a remote machine over com1.

Lastly I tried to build the tests as given in the eCos book, but for some reason or other these are also ending in error, not sure what the problem is, the output below is what I see.

/*****************************************************************************/

make[1]: Leaving directory `/ecos-c/workdir/ecos/ecos_build/error/current'
make -r -C io/fileio/current tests
make[1]: Entering directory `/ecos-c/workdir/ecos/ecos_build/io/fileio/current'
i386-elf-gcc -g -nostdlib -Wl,--gc-sections -Wl,-static -L/ecos-c/workdir/ecos/ecos_install/lib -Ttarget.ld -o /ecos-c/workdir/ecos/ecos_install/tests/io/fileio/current/tests/socket tests/socket.o\
/ecos-c/workdir/ecos/ecos_install/lib/libtarget.a(net_common_bootp_support.o): In function `init_net':
/ecos-c/ecos/packages/net/common/current/src/bootp_support.c:509: undefined reference to `setdomainname'
/ecos-c/ecos/packages/net/common/current/src/bootp_support.c:513: undefined reference to `cyg_dns_res_init'
collect2: ld returned 1 exit status
make[1]: Leaving directory `/ecos-c/workdir/ecos/ecos_build/io/fileio/current'
make[1]: *** [/ecos-c/workdir/ecos/ecos_install/tests/io/fileio/current/tests/socket] Error 1
make: Leaving directory `/ecos-c/workdir/ecos/ecos_build'
make: *** [tests] Error 2


/*****************************************************************************/

Thanks for time, hope that makes some sort of sense.

Stuart W Park.



--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]