[Ilugc] Compilation of a module under kernel 2.6

  • From: vsst@xxxxxxxxxx (S.Thayumanavar)
  • Date: Sat Sep 25 10:29:01 2004

   suppose your module is hello.c. Do create a makefile as follows:
        obj-m :=3D hello.o
   save it and compile it as follows:
       make -C /pathtolinuxkernelsource SUBDIRS=3D$PWD modules.

    for more info, refer kbuild in the Documentation directory of the
Linux kernel source.

***********************************
    S.THAYUMANAVAR,
    Engineer-SC
    SST1 Operation And Control
    INSTITUTE  FOR PLASMA RESEARCH,
    GANDHINAGAR,INDIA.
    Mobile No: 09426394817
***********************************

On Fri, 24 Sep 2004 ilugc-request@xxxxxxxxxxxxx wrote:

Send ilugc mailing list submissions to
=09ilugc@xxxxxxxxxxxxx
=20
To subscribe or unsubscribe via the World Wide Web, visit
=09http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
or, via email, send a message with subject or body 'help' to
=09ilugc-request@xxxxxxxxxxxxx
=20
You can reach the person managing the list at
=09ilugc-owner@xxxxxxxxxxxxx
=20
When replying, please edit your Subject line so it is more specific
than "Re: Contents of ilugc digest..."
=20
=20
Today's Topics:
=20
   1. Re: Fwd: [Ilugc] Fwd: announcing a open source security
      system for=09linux (Tusar Nayak)
   2. setting up Iqara Broadband connection in Linux (Karthik)
   3. Re: setting up Iqara Broadband connection in Linux (Ramanraj K)
   4. internal modem (EECHHUTTI R. RAJASEKARAN)
   5. Iqara in Linux (was: setting up Iqara Broadband connection=09in
      Linux) (Sridhar R)
   6. How to findout the nodes of a hostserver (Gilbert Raja)
   7. Re: kernel 2.6 module (Shakthi Kannan)
   8. Any problems with linux on AMD 64 (Vijairaj)
   9. Re: Any problems with linux on AMD 64 (Suresh Ramasubramanian)
  10. Re: Any problems with linux on AMD 64 (R Deepak)
=20
=20
----------------------------------------------------------------------
=20
Message: 1
Date: Fri, 24 Sep 2004 17:31:25 +0530
From: Tusar Nayak <tusar.nayak@xxxxxxxxx>
Subject: Re: Fwd: [Ilugc] Fwd: announcing a open source security
=09system for=09linux
To: ilugc@xxxxxxxxxxxxx
Message-ID: <b14db7960409240501a11ea87@xxxxxxxxxxxxxx>
Content-Type: text/plain; charset=3DUS-ASCII
=20
the code is immature.. class not defined ..object not created but
used.. doubt if it ever runs..
=20
=20
On Fri, 24 Sep 2004 17:31:51 +0530 (IST), Kilaru Sambaiah
<sambaiah@xxxxxxxxxxxxxx> wrote:



My guess ---> the user has to know answers for a list of questions. T=
he
auth system, will choose one of THESE at radom.

Not that these list of questions are generated on the fly.........

Havent looked into your code. Cant comment.

=20
   It is printf("Hello, World\n") equivalent program.
=20
   statistics
=20
   It is 1472 bytes and 1 day older.
=20
=20
--
=20
thanks and regards,
Sambaiah K
_______________________________________________
To unsubscribe, email ilugc-request@xxxxxxxxxxxxx with
"unsubscribe <password> address"
in the subject or body of the message.
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

=20
------------------------------
=20
Message: 2
Date: Fri, 24 Sep 2004 05:54:51 -0700 (PDT)
From: Karthik <karthik_cec@xxxxxxxxx>
Subject: [Ilugc] setting up Iqara Broadband connection in Linux
To: ilugc@xxxxxxxxxxxxx
Message-ID: <20040924125451.85865.qmail@xxxxxxxxxxxxxxxxxxxxxxx>
Content-Type: text/plain; charset=3Dus-ascii
=20
i got Iqara broadband connection recently .. i configured my Ethernet car=
d  in RedHat Linux Fedora core 1.0... I also assigned a static IP address u=
sing the ifconfig command..
i downloaded RP-PPPoE .. when i compiled and installed, it asked some que=
stions regarding the firewall, username, password... etc... when i complete=
d the configuration, i gave adsl-start to connect.. but i didnt get connect=
ed ... it also didnt give me any 'connected' messages ... it simply shows m=
e the shell prompt....
=20
Please help me regarding this
=20
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
=20
Karthik
=20
=09=09
---------------------------------
Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty viruses.From shekharchn@yahoo.=
com  Fri Sep 24 18:33:19 2004
Return-Path: <shekharchn@xxxxxxxxx>
X-Original-To: ilugc@xxxxxxxxxxxxxxxxxx
Delivered-To: ilugc@xxxxxxxxxxxxxxxxxx
Received: from localhost (localhost.localdomain [127.0.0.1])
=09by www.ae.iitm.ac.in (Postfix) with ESMTP id 8C7861DB2B0
=09for <ilugc@xxxxxxxxxxxxxxxxxx>; Fri, 24 Sep 2004 18:33:19 +0530 (IST)
Received: from www.ae.iitm.ac.in ([127.0.0.1])
=09by localhost (gateway [127.0.0.1]) (amavisd-new, port 10024) with ESMT=
P
=09id 30308-05 for <ilugc@xxxxxxxxxxxxxxxxxx>;
=09Fri, 24 Sep 2004 18:33:18 +0530 (IST)
Received: from web42003.mail.yahoo.com (web42003.mail.yahoo.com
=09[66.218.93.171])
=09by www.ae.iitm.ac.in (Postfix) with SMTP id E77841DB2AC
=09for <ilugc@xxxxxxxxxxxxxxxxxx>; Fri, 24 Sep 2004 18:33:14 +0530 (IST)
Message-ID: <20040924130307.10353.qmail@xxxxxxxxxxxxxxxxxxxxxxx>
Received: from [203.101.41.24] by web42003.mail.yahoo.com via HTTP;
=09Fri, 24 Sep 2004 06:03:07 PDT
Date: Fri, 24 Sep 2004 06:03:07 -0700 (PDT)
From: shekar <shekharchn@xxxxxxxxx>
To: lk lkj <ilugc@xxxxxxxxxxxxxxxxxx>
MIME-Version: 1.0
Content-Type: text/plain; charset=3Dus-ascii
X-Virus-Scanned: by amavisd-new at ae.iitm.ac.in
Cc:=20
Subject: [Ilugc] kernel 2.6 module
X-BeenThere: ilugc@xxxxxxxxxxxxx
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: ILUG-C  <ilugc.ae.iitm.ac.in>
List-Unsubscribe: <http://www.ae.iitm.ac.in/mailman/listinfo/ilugc>,
=09<mailto:ilugc-request@xxxxxxxxxxxxx?subject=3Dunsubscribe>
List-Archive: <http://www.ae.iitm.ac.in/pipermail/ilugc>
List-Post: <mailto:ilugc@xxxxxxxxxxxxx>
List-Help: <mailto:ilugc-request@xxxxxxxxxxxxx?subject=3Dhelp>
List-Subscribe: <http://www.ae.iitm.ac.in/mailman/listinfo/ilugc>,
=09<mailto:ilugc-request@xxxxxxxxxxxxx?subject=3Dsubscribe>
=20
while testing a small module=20
=20
    during make i used traditional -DMODULE
-D__KERNEL__=20
and other stuff to compile i got
=20
  #error incorrectly using glibc headers for kernel
module=20
=20
 what may be the prb?
=20
-shekar
=20
=20
=20
=20
=09=09
__________________________________
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!
http://promotions.yahoo.com/new_mail
=20
------------------------------
=20
Message: 3
Date: Fri, 24 Sep 2004 18:59:49 +0530
From: Ramanraj K <ramanraj@xxxxxxxxxxxxxxx>
Subject: Re: [Ilugc] setting up Iqara Broadband connection in Linux
To: Karthik <karthik_cec@xxxxxxxxx>
Cc: ilugc@xxxxxxxxxxxxx
Message-ID: <4154214D.3080404@xxxxxxxxxxxxxxx>
Content-Type: text/plain; charset=3Dus-ascii; format=3Dflowed
=20
Karthik wrote:
 > i got Iqara broadband connection recently .. i configured my Ethernet=
=20
card  in RedHat Linux Fedora core 1.0... I also assigned a static IP=20
address using the ifconfig command..
 > i downloaded RP-PPPoE .. when i compiled and installed, it asked some=
=20
questions regarding the firewall, username, password... etc... when i=20
completed the configuration, i gave adsl-start to connect.. but i didnt=
=20
get connected ... it also didnt give me any 'connected' messages ... it=
=20
simply shows me the shell prompt....
 >
 > Please help me regarding this
=20
RP-PPPoE has a TCL/Tk based gui called tkpppoe, with which you can
easily configure and use. tkpppoe is usually found in the "gui" source
directory. Of course, you would run tkpppoe like this:
=20
# wish tkpppoe
=20
=20
------------------------------
=20
Message: 4
Date: 24 Sep 2004 13:36:57 -0000
From: "EECHHUTTI R. RAJASEKARAN" <rsrraja@xxxxxxxxxxxxxx>
Subject: [Ilugc] internal modem
To: ilugc@xxxxxxxxxxxxx
Message-ID: <20040924133657.27465.qmail@xxxxxxxxxxxxxxxxxxxxxxx>
Content-Type: text/plain;=09charset=3Diso-8859-1
=20
 =A0Driver for pctel hsp56 modems is available from http://linmodems.tech=
nion.ac.il/pctel-linux/.  It is easy to install and works well in Redhat 9
=20
=20
From siva@xxxxxxxxxxx  Fri Sep 24 19:08:31 2004
Return-Path: <siva@xxxxxxxxxxx>
X-Original-To: ilugc@xxxxxxxxxxxxx
Delivered-To: ilugc@xxxxxxxxxxxxx
Received: from localhost (localhost.localdomain [127.0.0.1])
=09by www.ae.iitm.ac.in (Postfix) with ESMTP id BFA7E1DB2B5
=09for <ilugc@xxxxxxxxxxxxx>; Fri, 24 Sep 2004 19:08:31 +0530 (IST)
Received: from www.ae.iitm.ac.in ([127.0.0.1])
=09by localhost (gateway [127.0.0.1]) (amavisd-new, port 10024) with ESMT=
P
=09id 30823-07 for <ilugc@xxxxxxxxxxxxx>;
=09Fri, 24 Sep 2004 19:08:31 +0530 (IST)
Received: from whitebox.dias.ath.cx (unknown [61.3.96.166])
=09by www.ae.iitm.ac.in (Postfix) with ESMTP id 399241DB2B0
=09for <ilugc@xxxxxxxxxxxxx>; Fri, 24 Sep 2004 19:08:28 +0530 (IST)
Received: by whitebox.dias.ath.cx (Postfix, from userid 500)
=09id 64484329BA; Fri, 24 Sep 2004 18:45:01 +0530 (IST)
Subject: Re: [Ilugc] setting up Iqara Broadband connection in Linux
In-Reply-To: <20040924125451.85865.qmail@xxxxxxxxxxxxxxxxxxxxxxx>
To: ilugc@xxxxxxxxxxxxx
Date: Fri, 24 Sep 2004 18:45:01 +0530 (IST)
Sender: siva@xxxxxxxxxxxxxxxxxxxx
From: Sivasankar Chander <siva@xxxxxxxxxxx>
X-Mailer: ELM [version 2.4ME+ PL109S (25)]
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=3DUS-ASCII
Message-Id: <20040924131501.64484329BA@xxxxxxxxxxxxxxxxxxxx>
X-Virus-Scanned: by amavisd-new at ae.iitm.ac.in
Cc: Sivasankar Chander <siva@xxxxxxxxxxxxxxxxxxxx>
X-BeenThere: ilugc@xxxxxxxxxxxxx
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: schander@xxxxxxxxxxxxxx
List-Id: ILUG-C  <ilugc.ae.iitm.ac.in>
List-Unsubscribe: <http://www.ae.iitm.ac.in/mailman/listinfo/ilugc>,
=09<mailto:ilugc-request@xxxxxxxxxxxxx?subject=3Dunsubscribe>
List-Archive: <http://www.ae.iitm.ac.in/pipermail/ilugc>
List-Post: <mailto:ilugc@xxxxxxxxxxxxx>
List-Help: <mailto:ilugc-request@xxxxxxxxxxxxx?subject=3Dhelp>
List-Subscribe: <http://www.ae.iitm.ac.in/mailman/listinfo/ilugc>,
=09<mailto:ilugc-request@xxxxxxxxxxxxx?subject=3Dsubscribe>
=20
i got Iqara broadband connection recently ..=20
I also assigned a static IP address using the ifconfig command..
i downloaded RP-PPPoE ..
=20
  For RP-PPPoE, you don't need to assign a static IP address to the
eth interface (in fact, you should not). adsl-start will assign an
IP address to the PPPoE interface (say ppp0) when it connects.
=20
-Siva
=20
------------------------------
=20
Message: 5
Date: Fri, 24 Sep 2004 19:28:47 +0530
From: Sridhar R <sridharinfinity@xxxxxxxxx>
Subject: [Ilugc] Iqara in Linux (was: setting up Iqara Broadband
=09connection=09in Linux)
To: Karthik <karthik_cec@xxxxxxxxx>,=09Chennai Linux User's Group
=09<ilugc@xxxxxxxxxxxxx>
Message-ID: <8816fcf8040924065852f8554d@xxxxxxxxxxxxxx>
Content-Type: text/plain; charset=3DUS-ASCII
=20
On Fri, 24 Sep 2004 05:54:51 -0700 (PDT), Karthik <karthik_cec@xxxxxxxxx>=
 wrote:
i got Iqara broadband connection recently .. i configured my Ethernet c=
ard  in RedHat Linux Fedora core 1.0... I also assigned a static IP address=
 using the ifconfig command..
i downloaded RP-PPPoE .. when i compiled and installed, it asked some q=
uestions regarding the firewall, username, password... etc... when i comple=
ted the configuration, i gave adsl-start to connect.. but i didnt get conne=
cted ... it also didnt give me any 'connected' messages ... it simply shows=
 me the shell prompt....
=20
=20
Also post a review of your success story .. so that I could freely go
for Iqara.
=20
btw, I can't get a knowledge of the installation charges from their
site.  What is the deposit. Do I have to pay for the modem, if not
what is the rent?
=20
=20
--=20
Sridhar R - http://cs.annauniv.edu/~rsridhar
Blog: http://www.livejournal.com/~sridharinfinity
=20
------------------------------
=20
Message: 6
Date: Fri, 24 Sep 2004 06:47:34 -0700 (PDT)
From: Gilbert Raja <raja_gilbert@xxxxxxxxxxx>
Subject: [Ilugc] How to findout the nodes of a hostserver
To: linux user group chennai <ilugc@xxxxxxxxxxxxx>
Message-ID: <20040924134734.9643.qmail@xxxxxxxxxxxxxxxxxxxxxxxxx>
Content-Type: text/plain; charset=3Dus-ascii
=20
hello all,
=20
    i have one doubt in webhosting. We can easily
findout  the server which is hosted by which server
easily. but i want to know about how many hosts are
connected with that particular hostserver? for example
mydomain.com is hosted by myhosting server. i want to
know the details about how many domains are connected
with that myhosting server?
 is it possible? pls let me know.
=20
=20
=20
=20
=09=09
__________________________________
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail=20
=20
------------------------------
=20
Message: 7
Date: Fri, 24 Sep 2004 07:12:05 -0700 (PDT)
From: Shakthi Kannan <cyborg4k@xxxxxxxxx>
Subject: Re: [Ilugc] kernel 2.6 module
To: ilugc@xxxxxxxxxxxxx
Message-ID: <20040924141205.88928.qmail@xxxxxxxxxxxxxxxxxxxxxxx>
Content-Type: text/plain; charset=3Dus-ascii
=20
Hi Shekhar:
=20
while testing a small module=20
=20
    during make i used traditional -DMODULE
-D__KERNEL__=20
and other stuff to compile i got
=20
Compilation of a 2.6 kernel module is different from a
2.4. Check this link:
=20
http://lwn.net/Articles/driver-porting/
=20
Shaks
=20
=3D=3D=3D=3D=3D
-------------------------------------------------------------------------=
-
K Shakthi
Hexaware Technologies Limited
Specsoft, Embedded Systems Practice
51/3 G N Chetty Road
T Nagar
Chennai 600 017
India
Tel: (91) (44) 5200 1600. Extn: 6225=20
http://www.geocities.com/shakthimaan
-------------------------------------------------------------------------=
-
=20
=20
=09=09
__________________________________
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail=20
=20
------------------------------
=20
Message: 8
Date: Fri, 24 Sep 2004 17:34:51 +0500
From: Vijairaj <vijairaj_sr@xxxxxxxxxxxxxx>
Subject: [Ilugc] Any problems with linux on AMD 64
To: ilugc@xxxxxxxxxxxxxxxxxx
Message-ID: <pan.2004.09.24.12.32.29.453892@xxxxxxxxxxxxxx>
Content-Type: text/plain; charset=3DISO-8859-1
=20
Dear All
=09I have planned to buy an AMD 64 with Krypton motherboard. Do anybody k=
now
=09of any problems running Fedora Core 2 on this. If any, please let me
=09know, so that i can buy the right hardware.
thanks & regards
Vijairaj
=20
=20
------------------------------
=20
Message: 9
Date: Fri, 24 Sep 2004 20:42:32 +0530
From: Suresh Ramasubramanian <linux@xxxxxxxxxxxxxxxx>
Subject: Re: [Ilugc] Any problems with linux on AMD 64
To: Vijairaj <vijairaj_sr@xxxxxxxxxxxxxx>
Cc: ilugc@xxxxxxxxxxxxxxxxxx
Message-ID: <20040924151232.GA13327@xxxxxxxxxxxxxxxx>
Content-Type: text/plain; charset=3Dus-ascii
=20
On Fri, Sep 24, 2004 at 05:34:51PM +0500, Vijairaj wrote:
Dear All
=09I have planned to buy an AMD 64 with Krypton motherboard. Do anybody=
 know
=09of any problems running Fedora Core 2 on this. If any, please let me
=09know, so that i can buy the right hardware.
=20
quoting a recent ilugc post -
=20
Sivasankar Chander wrote:

I'm curious to hear if anybody has tried out a 64-bit x86-64 install of
any standard distro, and what their experiences were. In particular, is
it possible to install standard i386 elf binaries (say, from a .i386 rp=
m),
and expect it to run without recompilation on an Opteron box running a
64-bit kernel?


http://www.beowulf.org/pipermail/beowulf/2004-May/006317.html and the
thread around it make for interesting reading

You buy the box, we'll all come over and see how well gentoo works on
that thing :)

       suresh
=20
--=20
linux@xxxxxxxxxxxxxxxx (Suresh Ramasubramanian)
jaharkes@ravel:/usr/src$ mv linux Gnu/Linux
mv: cannot move `linux' to `Gnu/Linux': No such file or directory
=09jaharkes @ cs.cmu.edu in reply to RMS on linux.kernel
=20
------------------------------
=20
Message: 10
Date: Fri, 24 Sep 2004 21:39:24 +0530 (IST)
From: R Deepak <rdeepak@xxxxxxxxxxxxxxxxxxxx>
Subject: Re: [Ilugc] Any problems with linux on AMD 64
To: Vijairaj <vijairaj_sr@xxxxxxxxxxxxxx>
Cc: ilugc@xxxxxxxxxxxxxxxxxx
Message-ID:
=09<Pine.LNX.4.60.0409242137060.22986@xxxxxxxxxxxxxxxxxxxxxxxx>
Content-Type: TEXT/PLAIN; charset=3DUS-ASCII
=20
Greetings!
=20
On Fri, 24 Sep 2004, Vijairaj wrote:
=20
- =09I have planned to buy an AMD 64 with Krypton motherboard. Do anybody=
 know
- =09of any problems running Fedora Core 2 on this. If any, please let me
- =09know, so that i can buy the right hardware.
=20
I don't know about fedora core 2.. I've been using gentoo on an AMD64=20
with an ASUS K8V-X motherboard for about two weeks.. no problems.
=20
Almost all the apps work perfectly fine with -march=3Dathlon64... except=
=20
OpenOffice which needs the 32bit emulation libraries. But you won't notic=
e=20
anything different after you install it.
=20
Regards
Deepak
=20
=20
------------------------------
=20
_______________________________________________
ilugc mailing list
ilugc@xxxxxxxxxxxxx
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
=20
=20
End of ilugc Digest, Vol 4, Issue 67
************************************
=20

Other related posts:

  • » [Ilugc] Compilation of a module under kernel 2.6 - S.Thayumanavar