-
Execution segment violation with a driver
Hi all
I have developed an application with the a PCI Board. I have
used Knoppix (Debian unstable) in a Athlon 1.4 machine and I donīt
have any problems. It works perfectly. Then I have bought a VIA EPIA M-
10000 Ezra board. I have installed Knoppix in that board without problems. I also have tried to mknode and insmod and it has been installed, but when i try to run the demo application i have a segment violation. It says that it has an invalid operation.
I have debugged (as far as i can, not so far ) and i have put
several printk lines and define DEBUG. I have seen that ioctl is
called with a command (cmd) and a pciscan is execute (it works OK, it detects 1 PCI Card) until it calls PUT_DATA macro.
#define PUT_DATA(dtype) copy_to_user((dtype *)arg,(dtype *)&Buf,sizeof(dtype))
Here i have the segment violation and i donīt know why it happens.
Could you give me an idea?
The EPIA board has not full speed in floating point operation only has
a half-speed FPU. The driver doesnīt use it.
Some i686 instructions are not implemented on the EPIA ezra. Could this be a reason? I have compiled the driver as follows :
driver.o: driver.c
gcc -Wall -O -DMODULE -D__KERNEL__ -DLINUX -c driver.c
Could i add another flags?
You could find more info in this link.
http://forums.viaarena.com/messagevi...threadid=43817
Thanks in advance.
Juan Carlos
Similar Threads
-
By pau1knopp in forum General Support
Replies: 2
Last Post: 08-02-2006, 03:41 PM
-
By gecco in forum General Support
Replies: 1
Last Post: 05-18-2004, 02:06 PM
-
By Ish Rattan in forum General Support
Replies: 1
Last Post: 05-15-2004, 03:46 AM
-
By mearls in forum Networking
Replies: 4
Last Post: 06-09-2003, 06:05 PM
-
By MeglaW in forum Hardware & Booting
Replies: 1
Last Post: 03-04-2003, 04:29 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

Dell PowerEdge R620 2x Xeon E5-2630 v2 3.1GHz 2.5" 4-BAY 32GB RAM No OS 2x 495w
$174.95

Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram 2x 550W PSU No HDD
$275.00

Dell Poweredge R720 8SFF 2.5" 2x Xeon E5-2680 v2 2.8GHz 20-Cores 64gb 4x Trays
$259.99

Dell PowerEdge R710 Server 2x Xeon E5620 2.4GHz 96GB DDR3 Rackmount
$139.99

Dell Poweredge R720 8SFF 2.5" x Xeon E5-2680 v2 2.8GHz 20-Cores 128gb 4x Trays
$349.99

Dell Poweredge R630 2x Xeon E5-2680 v4 2.4ghz 28-Core | 32GB | HBA330 | 2x 1100w
$359.99

Dell Poweredge R630 2x Xeon E5-2680 v4 2.4ghz 28-Core 128GB HBA330 2x 1100w
$719.99

Dell PowerEdge R640 8xSFF Server Barebone 2 x Heat Sink w / 2x 1100W PSU
$315.00

Dell R640 Diskless Servers 2x Gold 18-Cores 6254 3.10GHz CPU, 32gb RAM, No Raid
$699.00

Dell PowerEdge R530 2x E5-2630v4 H330 iDRAC8 Port Card Riser No PSU/RAM/HDD
$99.99