Innovative Integration
 
Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
Snap example fails.

 
Post new topic   Reply to topic    II Support Forum Index -> Linux Development Corner
View previous topic :: View next topic  
Author Message
engink



Joined: 01 Dec 2011
Posts: 1

PostPosted: Fri Dec 09, 2011 1:13 am    Post subject: Snap example fails. Reply with quote

we are using X3_25M XMC module with PCI-E carrier card,
our kernel version is Linux 2.6.39.4 (Ubuntu).
i compiled windriver jungo kernel driver and kernel plugin
as described in "Linux notes" tutorial,but snap application fails
and giving error given below,

"Could not Open PCI Device. Error 0x2000000b: Kernel PlugIn failure"

I'm giving debug monitor output below,it can't find "KP_MALBU" module
so i changed MODULE_NAME as KP_MALBU but error still remain.

Do_pci_scan: found 1 cards
PciScanDevices: PCI bus scanned successfully.
Found 1 matching cards (vendor ID 0x1303, device ID 0x30)
Do_pci_card: entered 2.1.0
Do_pci_card: getting info from PnP for 2.1.0
Do_pci_card: found 3 items
Do_pci_scan: entered, search VID 0, search DID 0, options 2
Do_pci_scan: found 5 cards
Do_card_lock: entered
Do_card_lock: target bus [5] specified
Table_add (card): new handle 1
pci_register_card: registering PCI on 2.1.0
di_unconfigure: entered, PCI device 1303/30
di_configure: PCI device 1303/30, 2.1.0, hdr 0
MEM fe400000 (100000)
MEM fe500000 (10000)
IRQ 11
pci_get_supported_interrupt_types: Line based interrupts found
Do_card_lock: item 1, bar 0, memory range 0xfe400000-0xfe4fffff, options 0x0
Map_physical_mem_krnl: entered, physical addr 0xfe400000, length 0x100000
Map_physical_mem_krnl: kernel addr 0xffffc90022e00000
Map_physical_mem_user: entered, physical addr 0xfe400000, length 0x100000
Map_physical_mem_user: pPhysicalMem fe400000, dwBytesAligned 100000, dwBaseAligned fe400000, dwLinear 7f2c99f61000
Do_card_lock: item 2, bar 1, memory range 0xfe500000-0xfe50ffff, options 0x0
Map_physical_mem_krnl: entered, physical addr 0xfe500000, length 0x10000
Map_physical_mem_krnl: kernel addr 0xffffc90011e60000
Map_physical_mem_user: entered, physical addr 0xfe500000, length 0x10000
Map_physical_mem_user: pPhysicalMem fe500000, dwBytesAligned 10000, dwBaseAligned fe500000, dwLinear 7f2ca2d8c000
Do_card_lock: item 3, interrupt 17
Do_install_irq: entered, hCard=1
Table_add (irq): new handle 1
Do_install_irq: success, hInterrupt 1
Do_card_lock: success, hCard=1
KP_Open: entered
Table_add (kerplug): new handle 1
KP_OpenDriver: entered, name KP_MALBU
KP_OpenDriver: module name KP_MALBU does not exist!
KP_Open: failed opening kernel plugin driver
Table_remove_general (kerplug): removed handle 1
Do_card_unlock: entered, hCard 1, last 1
Card_close_handle: hCard 1
Card_close_handle: un-registering item 3 interrupt 17
Irq_close_handle: entered, hInterrupt 1
Irq_disable: received 0 inter
rupts called 0 dpc Lost count 0
Table_remove_general (irq): removed handle 1
Card_close_handle: un-registering item 1 memory 0xfe400000-0xfe4fffff
Unmap_physical_mem_user: entered, base addr 00007f2c99f61000, mem section 0000000000100000
Unmap_physical_mem_krnl: entered, linear addr 0xffffc90022e00000, length 0x100000, context (null)
Unmap_physical_mem_krnl - leaving
Card_close_handle: un-registering item 2 memory 0xfe500000-0xfe50ffff
Unmap_physical_mem_user: entered, base addr 00007f2ca2d8c000, mem section 0000000000010000
Unmap_physical_mem_krnl: entered, linear addr 0xffffc90011e60000, length 0x10000, context (null)
Unmap_physical_mem_krnl - leaving
Card_close_handle: success
Table_remove_general (card): removed handle 1
Could not Open PCI Device. Error 0x2000000b: Kernel PlugIn failureWDC_PciScanDevices entered
Do_pci_scan: entered, search VID 1303, search DID 30, options 0
Do_pci_scan: found 1 cards
PciScanDevices: PCI bus scanned successfully.
Found 1 matching cards (vendor ID 0x1303, device ID 0x30)
WDC_PciScanDevices entered
Do_pci_scan: entered, search VID 1303, search DID 30, options 0
Back to top
View user's profile Send private message
ollie
Site Admin


Joined: 20 Feb 2009
Posts: 138

PostPosted: Fri Dec 09, 2011 3:54 pm    Post subject: Reply with quote

Using Ubuntu 11.04 32 bit and the stock 2.6.38-13 kernel, I have successfully installed and run our example program with no problem. It may be the case that you are having trouble because you are using kernel 2.6.39, but my intuition is that the problem is the change I had to make for Ubuntu.

Since our installs are built and tested normally under OpenSUSE and Redhat, one thing I had to change during the standard install of the driver was that when you run ./InnovDriver start, it complains that /etc/sysconfig/InnovDriverConfig is missing. The driver will not start without this command so for Ubuntu you have to Open the /usr/Innovative/InnovDriver file with a text editor and change the following line:

INNOVDRIVER_CONFIG=/etc/sysconfig/InnovDriverConfig

To this

INNOVDRIVER_CONFIG=/usr/Innovative/KerPlug/InnovDriverConfig

After I did this the driver started properly and all was well. Please note that you will have to run this command each time the computer starts. To automate this during the boot process you can add this to the /etc/rc.local file

/usr/Innovative/KerPlug/InnovDriver start

If you follow these instructions and there is still a problem, let me know and I can look further into this.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    II Support Forum Index -> Linux Development Corner (GMT - 8 Hours)
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

© Copyright 2006-2012 Innovative Integration
Powered by phpBB © 2001, 2002 phpBB Group
Based on iCGstation v1.0 Template By Ray © 2003, 2004 iOptional