-
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

Samsung 256 GB Internal SATA SSD Fully Tested 80-99% Health
$28.00

ON SALE TURBOLINK EVO 4TB V-HAND SSD 2.5 SATA III Internal Solid State Drive
$199.99

Western Digital Blue 3D NAND 250GB 2.5" SATA III Internal SSD - WDS250G2B0A
$29.99

Fikwot 512GB SATA SSD 2.5'' SSD SATA III 6Gb/s Internal Solid State Drive 560MBs
$66.00

SAMSUNG SSD 512GB 500GB 480GB 256GB 250GB 240GB SSD 2.5 Solide State Drive 6Gbps
$40.99

256GB mSATA SSD DRIVE MIXED BRAND TESTED WORKING
$23.50

Crucial MX500 CT250MX500SSD1 250 GB SATA III 2.5 in Solid State Drive
$24.99

SAMSUNG SSD 860 EVO 1TB 960GB 512GB 500GB 480GB 250GB 2.5 6Gbps
$125.00

Toshiba THNSN81Q92CSE 1920GB SATA 2.5 Solid State Drive
$199.00

Netac 2TB SSD 3D NAND 2.5'' SATA III 6GB/s Internal Solid State Drive
$190.00