Re: [RTnet-users] Inappropriate ioctl for device

2010-03-24 Thread Cyril Wallois
Thanks Jan, Now rtping and rtroute run, my next step is to receive packet without oops. Cordially, Cyril -- Download IntelĀ® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proacti

Re: [RTnet-users] Inappropriate ioctl for device

2010-03-24 Thread Jan Kiszka
Jan Kiszka wrote: > Cyril Wallois wrote: >> Hello Jan , >> >>> Could you verify that sizeof(struct ipv4_cmd) gives the same results in >> kernel and user space: >> >> In the kernel space the size is 56, against in the user space the size is >> 52. >> >> Where should I add the definition of the stru

Re: [RTnet-users] Inappropriate ioctl for device

2010-03-24 Thread Jan Kiszka
Cyril Wallois wrote: > Hello Jan , > >> Could you verify that sizeof(struct ipv4_cmd) gives the same results in > kernel and user space: > > In the kernel space the size is 56, against in the user space the size is > 52. > > Where should I add the definition of the structure, in rtping.c ? > P

Re: [RTnet-users] Inappropriate ioctl for device

2010-03-24 Thread Cyril Wallois
Hello Jan , >Could you verify that sizeof(struct ipv4_cmd) gives the same results in kernel and user space: In the kernel space the size is 56, against in the user space the size is 52. Where should I add the definition of the structure, in rtping.c ? Cordially, Cyril -

Re: [RTnet-users] Inappropriate ioctl for device

2010-03-24 Thread Cyril Wallois
Hello, I wrote a mistake about the rtlo interface, because I try with rtl0 : # ./rtifconfig rtlo up 127.0.0.1 # ./rtifconfig rteth0Medium: Ethernet Hardware address: 00:1E:AC:00:00:14 IP address: 192.168.1.11 Broadcast address: 192.168.1.255 UP BROADCAST RUNNING MTU: 15

Re: [RTnet-users] Inappropriate ioctl for device

2010-03-24 Thread Jan Kiszka
Cyril Wallois wrote: > Hello, > > I don't show the configuration procedure as well : > > > # insmod rtnet.ko > ->ok > > > > *** RTnet 0.9.11 - built on Mar 8 2010 15:57:09 > *** > > > RTnet: initialising real-time > networking > > # insmod rtipv4.ko > ->ok > > # insmod rtpacket.ko > ->ok

Re: [RTnet-users] Inappropriate ioctl for device

2010-03-24 Thread Cyril Wallois
Hello, I don't show the configuration procedure as well : # insmod rtnet.ko ->ok *** RTnet 0.9.11 - built on Mar 8 2010 15:57:09 *** RTnet: initialising real-time networking # insmod rtipv4.ko ->ok # insmod rtpacket.ko ->ok # insmod rt_loopback.ko ->ok initializing loopback... RTnet:

Re: [RTnet-users] Inappropriate ioctl for device

2010-03-23 Thread Jan Kiszka
Cyril Wallois wrote: > Hi Jan, > > Is CONFIG_FRAME_POINTER set as well? The stack unwinder likely needs > this to tell data apart from return addresses. [Argh, another one with a broken mail client setup...] > > CONFIG_FRAME_POINTER is set in autoconf.h of the kernel source : > > #defi

Re: [RTnet-users] Inappropriate ioctl for device

2010-03-23 Thread Cyril Wallois
Hi Jan, Is CONFIG_FRAME_POINTER set as well? The stack unwinder likely needs this to tell data apart from return addresses. CONFIG_FRAME_POINTER is set in autoconf.h of the kernel source : #define CONFIG_FRAME_POINTER 1 > To begin, I would like to understand the error : Inappropria

Re: [RTnet-users] Inappropriate ioctl for device

2010-03-23 Thread Jan Kiszka
Cyril Wallois wrote: > Hello, > > I modify my source file and compile a new kernel with debug symbol, but it > don't solve the problem. Is CONFIG_FRAME_POINTER set as well? The stack unwinder likely needs this to tell data apart from return addresses. > > To begin, I would like to understand th

Re: [RTnet-users] Inappropriate ioctl for device

2010-03-23 Thread Cyril Wallois
Hello, I modify my source file and compile a new kernel with debug symbol, but it don't solve the problem. To begin, I would like to understand the error : Inappropriate ioctl for device This error is return in slave or master node by tdmacfg : MASTER : ./rtnet -v start ... usr/rtnet/sbin/tdm

Re: [RTnet-users] Inappropriate ioctl for device

2010-03-23 Thread Jan Kiszka
Cyril Wallois wrote: > Hi all and thanks Jan for your help, > > I send a new version of the kernel Oops which correspond to the driver > version, and it should be more readable in a file than in the message's > content. You should enabled debug symbols for you kernel to get all those addresses re

Re: [RTnet-users] Inappropriate ioctl for device

2010-03-22 Thread Cyril Wallois
Hi all and thanks Jan for your help, I send a new version of the kernel Oops which correspond to the driver version, and it should be more readable in a file than in the message's content. Regards, WALLOIS Cyril /* * Davicom DM9000 Fast Ethernet driver for Linux. * Copyright (C) 1997 St

Re: [RTnet-users] Inappropriate ioctl for device

2010-03-20 Thread Jan Kiszka
Cyril Wallois wrote: > Hi, > > I'm trying to develop a driver (Davicom dm9000 on an embedded ARM card) for > RTNet, I can send packet with the command "rtnet start" but i have some > problem on packet's receive. > > In master mode with the ./rtnet -v start command, I have the following error > :

[RTnet-users] Inappropriate ioctl for device

2010-03-19 Thread Cyril Wallois
Hi, I'm trying to develop a driver (Davicom dm9000 on an embedded ARM card) for RTNet, I can send packet with the command "rtnet start" but i have some problem on packet's receive. In master mode with the ./rtnet -v start command, I have the following error : /usr/rtnet/sbin/tdmacfg rteth0 maste