The first mail doesn't seem to get through, so I re-send it again.
I try to modify the rtlcan200 written by Heinz Haeberle to make it work on
Advantech's pcm3680 and rtlinux-3.1. I know the pcm3680 is using the I/O
memory, so I make the following changes to the original source :
1. replace the inb/outb with readb/writeb
2. Hard coded the address 0xDA000000 and irq 10
3. replace the memset() with memest_io()
This modified code was compiled without error. However, when I do the
insmod, it give me the following error:
Unable to handle kernel paging request at virtual address da000000
printing eip:
c484207e
*pde = 00000000
Oops: 0000
CPU: 0
EIP: 0010:[<c484207e>]
EFLAGS: 00010292
eax: 0000007d ebx: c4842000 ecx: da000000 edx: da000000
esi: 00000004 edi: 00000064 ebp: c2735eb8 esp: c2735eb8
ds: 0018 es: 0018 ss: 0018
Process insmod (pid: 1203, stackpage=c2735000)
Stack: c2735ee8 c484217d da000000 c2735ee8 c482affe c2735ee8 c482b05c
00000286
00000286 c4842000 00000004 00000040 c2735f28 c48426bf da000000
0000007d
da0001ff c4842a01 c0128594 00000200 c02a0954 c1044010 c02a0780
ffffffff
Call Trace: [<c484217d>] [<da000000>] [<c482affe>] [<c482b05c>] [<c4842000>]
[<c48426bf>] [<da000000>]
[<da0001ff>] [<c4842a01>] [<c0128594>] [<c4842000>] [<c4842000>]
[<c0112257>] [<c4846c80>] [<c483a000>]
[<c4842060>] [<c0106d17>]
Code: 8a 02 83 c8 01 88 02 8a 02 f7 d0 83 e0 01 5d c3 89 f6 55 89
When I do a lsmod, it shown that the module is initializing.
I changed the address to 0xDA00 and the program still can't get away.
My question are:
1. What does the message mean? how to interpret the message?
2. What else do I need to change the code?
3. Is there a way to rmmod the module if it is busy ,beside rebooting the
machine?
Appreciated if you could provide some pointer to the problem. If you ever
hacked the code for above plateform, can I have a copy of the hacked code?
My system configuration are:
Pentium MMX with 64M RAM
Redhat 7.1 with kernel 2.4.4
rtlinux-3.1
Thank you in advance and look forward to hearing from you.
Lim KC
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/