[RTnet-developers] Kernel module for smc91111
Brought to you by:
bet-frogger,
kiszka
|
From: Hinko K. <hin...@i-...> - 2011-09-14 10:18:35
|
Hi all,
I'm trying to use smc91111 RT driver provided in RTnet package (git
sources) on my ARM PXA253 board. The modules compiles against linux
2.6.35.9 and Xenomai 2.5.6, but when it is loaded it produces oops.
What is the state of this module?
OTOH, I might also try to port the stock kernel driver smc91x we are
currently using to RTnet. It is quite similar to the one in RTnet but
with more features and support for many ARM based boards.
OOPS message:
root@xcep:~# sh -x /usr/local/rtnet/sbin/rtnet start
+ prefix=/usr/local/rtnet
+ RTNETCFG=/usr/local/rtnet/etc/rtnet.conf
+ '[' start = -cf ']'
+ '[' -r /usr/local/rtnet/etc/rtnet.conf ']'
+ . /usr/local/rtnet/etc/rtnet.conf
++ prefix=/usr/local/rtnet
++ exec_prefix=/usr/local/rtnet
++ RTNET_MOD=/usr/local/rtnet/modules
++ RTIFCONFIG=/usr/local/rtnet/sbin/rtifconfig
++ RTCFG=/usr/local/rtnet/sbin/rtcfg
++ TDMACFG=/usr/local/rtnet/sbin/tdmacfg
++ MODULE_EXT=.ko
++ RT_DRIVER=rt_smc91111
++ RT_DRIVER_OPTIONS=
++ IPADDR=127.0.0.2
++ NETMASK=255.255.255.0
++ RT_LOOPBACK=yes
++ RT_PROTOCOLS=tcp udp packet
++ RTCAP=no
++ STAGE_2_SRC=
++ STAGE_2_DST=
++ STAGE_2_CMDS=
++ TDMA_MODE=master
++ TDMA_SLAVES=127.0.0.1
++ TDMA_CYCLE=5000
++ TDMA_OFFSET=200
+ '[' start = -v ']'
+ '[' start = -c ']'
+ NETMASK_OPT=
+ '[' '!' 255.255.255.0 = '' ']'
+ NETMASK_OPT=netmask 255.255.255.0
+ init_rtnet
+ insmod /usr/local/rtnet/modules/rtnet.ko
[ 121.108061]
[ 121.108095] *** RTnet 0.9.12 - built on Sep 14 2011 10:21:23 ***
[ 121.108113]
[ 121.117320] RTnet: initialising real-time networking
+ insmod /usr/local/rtnet/modules/rtipv4.ko
+ insmod /usr/local/rtnet/modules/rt_smc91111.ko
[ 121.964911] LAN91C111: You shouldn't use auto-probing with insmod!
[ 121.972389] Unable to handle kernel NULL pointer dereference at
virtual address 0000020e
[ 121.980720] pgd = c3e94000
[ 121.983449] [0000020e] *pgd=a3dbc031, *pte=00000000, *ppte=00000000
[ 121.989784] Internal error: Oops: 17 [#1]
[ 121.993802] last sysfs file:
[ 121.996773] Modules linked in: rt_smc91111(+) rtipv4 rtnet [last
unloaded: smc91x]
[ 122.004411] CPU: 0 Not tainted (2.6.35.9-rtnet #2)
[ 122.009618] PC is at smc_probe+0x3c/0x47c [rt_smc91111]
[ 122.014854] LR is at 0x20f
[ 122.017582] pc : [<bf02c03c>] lr : [<0000020f>] psr: a0000013
[ 122.017600] sp : c3e5feb8 ip : c0290594 fp : c3e5ff04
[ 122.029092] r10: bf02c4fc r9 : 00000000 r8 : c02a32e0
[ 122.034329] r7 : 4012c008 r6 : 00000200 r5 : c3e3a000 r4 : 00000000
[ 122.040873] r3 : ffffffff r2 : 00000000 r1 : c3d8a520 r0 : c3d8a520
[ 122.047423] Flags: NzCv IRQs on FIQs on Mode SVC_32 ISA ARM
Segment user
[ 122.054581] Control: 0000397f Table: a3e94000 DAC: 00000015
[ 122.060343] Process insmod (pid: 198, stack limit = 0xc3e5e270)
[ 122.066280] Stack: (0xc3e5feb8 to 0xc3e60000)
[ 122.070653] fea0:
00000000 c3e3a000
[ 122.078869] fec0: c3e5feec c3e5fed0 bf00b40c c00639c8 c3e5fef0
00000000 bf02998c c3e3a000
[ 122.087088] fee0: 00000004 00012008 4012c008 c02a32e0 00000000
bf02c4fc c3e5ff1c c3e5ff08
[ 122.095302] ff00: bf02c4cc bf02c00c bf029b40 bf029a1c c3e5ff3c
c3e5ff20 bf02c590 bf02c488
[ 122.103521] ff20: 00000000 00000000 00000000 bf029a1c c3e5ff7c
c3e5ff40 c001e478 bf02c508
[ 122.111732] ff40: 00000000 00000000 bf029a1c 00012008 4012c008
00000000 bf029a1c 00012008
[ 122.119946] ff60: 4012c008 c001f890 c3e5e000 00900080 c3e5ffa4
c3e5ff80 c005cf1c c001e424
[ 122.128164] ff80: c3e5ffa4 c3e5ff90 4001de14 4012c008 00000003
00000080 00000000 c3e5ffa8
[ 122.136378] ffa0: c001f020 c005ce8c 4001de14 4012c008 4012c008
0002ab8d 00012008 00020000
[ 122.144597] ffc0: 4001de14 4012c008 00000003 befbfa6c 00040000
00000000 00012008 00000000
[ 122.152810] ffe0: 400d05d0 befbfa5c 00008d28 400d05dc 60000010
4012c008 aaaaaaaa aaaaaaaa
[ 122.161005] Backtrace:
[ 122.163514] [<bf02c000>] (smc_probe+0x0/0x47c [rt_smc91111]) from
[<bf02c4cc>] (smc_init+0x50/0x80 [rt_smc91
111])
[ 122.173850] [<bf02c47c>] (smc_init+0x0/0x80 [rt_smc91111]) from
[<bf02c590>] (init_module+0x94/0x170 [rt_smc
91111])
[ 122.184308] r5:bf029a1c r4:bf029b40
[ 122.187976] [<bf02c4fc>] (init_module+0x0/0x170 [rt_smc91111]) from
[<c001e478>] (do_one_initcall+0x60/0x1a4
)
[ 122.197908] r5:bf029a1c r4:00000000
[ 122.201560] [<c001e418>] (do_one_initcall+0x0/0x1a4) from
[<c005cf1c>] (sys_init_module+0x9c/0x1bc)
[ 122.210658] [<c005ce80>] (sys_init_module+0x0/0x1bc) from
[<c001f020>] (ret_fast_syscall+0x0/0x2c)
[ 122.219635] r7:00000080 r6:00000003 r5:4012c008 r4:4001de14
[ 122.225347] Code: eb4034f5 e1500004 03e0400f 0a0000f1 (e1d630be)
[ 122.231533] ---[ end trace 4ea5a86e114726cf ]---
Thank you.
--
Hinko Kocevar
Technical support software engineer
Instrumentation Technologies d.d.
Velika pot 22, SI-5250 Solkan - Slovenia
T:+386 5 3352600, F:+386 5 3352601
mailto: hin...@i-...
http://www.i-tech.si - When your users demand stability
|