<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hey Guys<br>
<br>
All im trying to do here is learn about make files and how to link
linux header files stored in /usr/src/<span class="sy0"
style="color: rgb(0, 68, 0); font-family: Consolas, Menlo, Monaco,
'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono',
'Bitstream Vera Sans Mono', monospace, serif; font-size: 12px;
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: 21px; orphans: auto;
text-align: left; text-indent: 0px; text-transform: none;
white-space: normal; widows: auto; word-spacing: 0px;
-webkit-text-stroke-width: 0px;"></span><span style="color: rgb(0,
0, 0); font-family: Consolas, Menlo, Monaco, 'Lucida Console',
'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono',
monospace, serif; font-size: 12px; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: 21px; orphans: auto; text-align: left; text-indent:
0px; text-transform: none; white-space: normal; widows: auto;
word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline
!important; float: none; background-color: rgb(255, 255, 255);">linux</span><span
class="sy0" style="color: rgb(0, 68, 0); font-family: Consolas,
Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans
Mono', 'Bitstream Vera Sans Mono', monospace, serif; font-size:
12px; font-style: normal; font-variant: normal; font-weight:
normal; letter-spacing: normal; line-height: 21px; orphans: auto;
text-align: left; text-indent: 0px; text-transform: none;
white-space: normal; widows: auto; word-spacing: 0px;
-webkit-text-stroke-width: 0px;">-</span><span style="color:
rgb(0, 0, 0); font-family: Consolas, Menlo, Monaco, 'Lucida
Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera
Sans Mono', monospace, serif; font-size: 12px; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: 21px; orphans: auto; text-align: left; text-indent:
0px; text-transform: none; white-space: normal; widows: auto;
word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline
!important; float: none; background-color: rgb(255, 255, 255);">headers</span><span
class="sy0" style="color: rgb(0, 68, 0); font-family: Consolas,
Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans
Mono', 'Bitstream Vera Sans Mono', monospace, serif; font-size:
12px; font-style: normal; font-variant: normal; font-weight:
normal; letter-spacing: normal; line-height: 21px; orphans: auto;
text-align: left; text-indent: 0px; text-transform: none;
white-space: normal; widows: auto; word-spacing: 0px;
-webkit-text-stroke-width: 0px;">-</span><span style="color:
rgb(0, 0, 0); font-family: Consolas, Menlo, Monaco, 'Lucida
Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera
Sans Mono', monospace, serif; font-size: 12px; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: 21px; orphans: auto; text-align: left; text-indent:
0px; text-transform: none; white-space: normal; widows: auto;
word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline
!important; float: none; background-color: rgb(255, 255, 255);">3</span><span
class="sy0" style="color: rgb(0, 68, 0); font-family: Consolas,
Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans
Mono', 'Bitstream Vera Sans Mono', monospace, serif; font-size:
12px; font-style: normal; font-variant: normal; font-weight:
normal; letter-spacing: normal; line-height: 21px; orphans: auto;
text-align: left; text-indent: 0px; text-transform: none;
white-space: normal; widows: auto; word-spacing: 0px;
-webkit-text-stroke-width: 0px;">.</span><span style="color:
rgb(0, 0, 0); font-family: Consolas, Menlo, Monaco, 'Lucida
Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera
Sans Mono', monospace, serif; font-size: 12px; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: 21px; orphans: auto; text-align: left; text-indent:
0px; text-transform: none; white-space: normal; widows: auto;
word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline
!important; float: none; background-color: rgb(255, 255, 255);">13</span><span
class="sy0" style="color: rgb(0, 68, 0); font-family: Consolas,
Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans
Mono', 'Bitstream Vera Sans Mono', monospace, serif; font-size:
12px; font-style: normal; font-variant: normal; font-weight:
normal; letter-spacing: normal; line-height: 21px; orphans: auto;
text-align: left; text-indent: 0px; text-transform: none;
white-space: normal; widows: auto; word-spacing: 0px;
-webkit-text-stroke-width: 0px;">.</span><span style="color:
rgb(0, 0, 0); font-family: Consolas, Menlo, Monaco, 'Lucida
Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera
Sans Mono', monospace, serif; font-size: 12px; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: 21px; orphans: auto; text-align: left; text-indent:
0px; text-transform: none; white-space: normal; widows: auto;
word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline
!important; float: none; background-color: rgb(255, 255, 255);">0</span><span
class="sy0" style="color: rgb(0, 68, 0); font-family: Consolas,
Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans
Mono', 'Bitstream Vera Sans Mono', monospace, serif; font-size:
12px; font-style: normal; font-variant: normal; font-weight:
normal; letter-spacing: normal; line-height: 21px; orphans: auto;
text-align: left; text-indent: 0px; text-transform: none;
white-space: normal; widows: auto; word-spacing: 0px;
-webkit-text-stroke-width: 0px;">-</span><span class="nu0"
style="color: rgb(204, 34, 0); font-family: Consolas, Menlo,
Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono',
'Bitstream Vera Sans Mono', monospace, serif; font-size: 12px;
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: 21px; orphans: auto;
text-align: left; text-indent: 0px; text-transform: none;
white-space: normal; widows: auto; word-spacing: 0px;
-webkit-text-stroke-width: 0px;">35</span><span class="sy0"
style="color: rgb(0, 68, 0); font-family: Consolas, Menlo, Monaco,
'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono',
'Bitstream Vera Sans Mono', monospace, serif; font-size: 12px;
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: 21px; orphans: auto;
text-align: left; text-indent: 0px; text-transform: none;
white-space: normal; widows: auto; word-spacing: 0px;
-webkit-text-stroke-width: 0px;">-</span><span style="color:
rgb(0, 0, 0); font-family: Consolas, Menlo, Monaco, 'Lucida
Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera
Sans Mono', monospace, serif; font-size: 12px; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: 21px; orphans: auto; text-align: left; text-indent:
0px; text-transform: none; white-space: normal; widows: auto;
word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline
!important; float: none; background-color: rgb(255, 255, 255);">generic</span>
to my program that im writing.<br>
So far ive been getting the simplest of Kernel Modules to compile
and load in Linux but nothing useful . The moment I delve deeper I
seem to get missing header file errors when using "make".<br>
All I want to do is write from Kernel space into user space and visa
verse. I will be dumping allocated PCI memory blocks into files.<br>
I will also have to edit registers of the PCI to be able to make
triggers go off by setting bits high etc.<br>
But this is just an introduction to it all and im already having
trouble compiling.<br>
<br>
Now im not 100% sure if its missing header files but the errors is
quite large.<br>
<br>
This is my Pastebin of the C MODULE Code :<br>
<br>
pastebin.com/lWPBR8DJ <br>
<br>
And here it the PASTEBIN of my MAKEFILE and its errors:<br>
<br>
pastebin.com/ffT1F26N<br>
<br>
ALSO...Does anybody know of a good tutorial on how to write a PCI
driver in Kernel space using kernel modules...also how to send data
from and to the module from UserSpace?<br>
</body>
</html>