Hi all,

After searching in the mailing list , i found Cyril wallois has
created patch for DM9000.

http://www.mail-archive.com/rtnet-users@lists.sourceforge.net/msg02952.html

I applied the patch with Rtnet  0.9.12 , xenomai_2.6.0_rc4.

Intially i got following error while compiling

/storage/xenomai/xeno_sergio/rtnet_123/rtnet/drivers/rt_dm9000.c: In
function 'dm9000_hash_table':
/storage/xenomai/xeno_sergio/rtnet_123/rtnet/drivers/rt_dm9000.c:416:
error: 'struct rtnet_device' has no member named 'mc_list'
/storage/xenomai/xeno_sergio/rtnet_123/rtnet/drivers/rt_dm9000.c:417:
error: 'struct rtnet_device' has no member named 'mc_count'
/storage/xenomai/xeno_sergio/rtnet_123/rtnet/drivers/rt_dm9000.c:444:
error: dereferencing pointer to incomplete type
/storage/xenomai/xeno_sergio/rtnet_123/rtnet/drivers/rt_dm9000.c:445:
error: dereferencing pointer to incomplete type

i was able to compile after disabling mc_list and mc_count in rt_dm9000.c.

Now when i execute rtnet start. i am getting following error

 sivakumar-desktop:~# rtnet start

*** RTnet 0.9.12 - built on Dec 16 2011 12:41:18 ***

RTnet: initialising real-time networking
dm9000 Real Time Ethernet Driver, V0.2
RTnet: registered rteth0
rteth0: dm9000e at c49ea300,c49ee304 IRQ 51 MAC: 08:08:11:18:12:27 (chip)
initializing loopback...
RTnet: registered rtlo
RTcfg: init real-time configuration distribution protocol
RTmac: init realtime media access control
RTmac/TDMA: init time division multiple access control mechanism
Unable to handle kernel NULL pointer dereference at virtual address 00000000
pgd = c2e44000
[00000000] *pgd=32e68031, *pte=00000000, *ppte=00000000
Internal error: Oops: 817 [#1]
last sysfs file: /sys/devices/platform/s3c24xx_led.5/leds/backlight/brightness
Modules linked in: tdma rtmac rtcfg rt_loopback rtpacket rtudp
rt_dm9000 rtipv4 rtnet
CPU: 0    Not tainted  (2.6.37.6-ipipe #5)
PC is at memcpy+0x30/0x29c
LR is at 0x0
pc : [<c01b2e30>]    lr : [<00000000>]    psr: 80000013
sp : c2d19e1c  ip : 00000000  fp : 00000000
r10: 00000000  r9 : c2d0f064  r8 : 00000000
r7 : 00000000  r6 : 00000000  r5 : 00000000  r4 : 00002712
r3 : 18110808  r2 : ffffffe0  r1 : c2cdf498  r0 : 00000000
Flags: Nzcv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
Control: c000717f  Table: 32e44000  DAC: 00000015
Process tdmacfg (pid: 1887, stack limit = 0xc2d18270)
Stack: (0xc2d19e1c to 0xc2d1a000)
9e00:                                                                c2cdf400
9e20: bf04927c c2e52400 bf048bac 00000000 c2d0f000 bf048794 c2d0f000 bf048b00
9e40: 63696e76 bf040030 00000002 80000013 c2cdf400 bf053670 c2d0f000 00000000
9e60: 00012070 c2d18000 00000000 bf048380 c2cdf400 40506e00 00012070 c2cdf4d8
9e80: 00012070 bf050e68 74657472 00003068 00000000 00000000 004c4b40 00000000
9ea0: 00000000 00000000 00000064 00000040 00000007 00000000 00000000 00000000
9ec0: 00000000 00000000 00000000 00000000 00000000 00000000 bf0536a0 c2cdf400
9ee0: 00012070 40506e00 00012070 c2d18000 00000000 bf000e50 74657472 00003068
9f00: 00000000 00000000 4011b000 00000003 c3aa1e00 00000003 c3aa1e00 c00d9c98
9f20: 00000003 c00da3bc c2e510b0 00000000 c2e510b0 c00ca934 c2e510b0 00000001
9f40: c3aa1e08 c3aa1e00 00000003 00000000 00000000 00000000 c3aad004 00000020
9f60: c2cec858 c3aa1e08 00000003 00012070 40506e00 c3aa1e00 c002b2a8 c2d18000
9f80: 00000000 c00da444 00000003 00000000 00012070 00000000 bed0dd84 00000004
9fa0: 00000036 c002b0e0 00000000 bed0dd84 00000003 40506e00 00012070 00000007
9fc0: 00000000 bed0dd84 00000004 00000036 00000000 00000000 4011b000 00000000
9fe0: 00012068 bed0dc08 00008a68 402a70fc 60000010 00000003 00000000 00000000
[<c01b2e30>] (memcpy+0x30/0x29c) from [<63696e76>] (0x63696e76)
Code: e92d01e0 ba000003 e8b151f8 e2522020 (e8a051f8)
---[ end trace b8be054fb8be054e ]---
/usr/local/rtnet/sbin/rtnet: line 68:  1887 Segmentation fault
$TDMACFG rteth0 master $TDMA_CYCLE

How to recify  this

my log

rtnet.conf http://pastebin.com/3VXSjYh3
tdma.conf  http://pastebin.com/XVUsCw8h
boot log  http://pastebin.com/hLzNCMNJ

-- 

sivakumar

------------------------------------------------------------------------------
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure
_______________________________________________
RTnet-users mailing list
RTnet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rtnet-users

Reply via email to