* 3rdparty modules for 2.5.53
@ 2003-01-01 17:19 Albert Kajakas
2003-01-01 18:24 ` Sam Ravnborg
2003-01-01 18:56 ` Andi Kleen
0 siblings, 2 replies; 5+ messages in thread
From: Albert Kajakas @ 2003-01-01 17:19 UTC (permalink / raw)
To: linux-kernel
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 696 bytes --]
Hello!
I have a problem with compiling modules for 2.5.
i wrote a module for 2.4. For 2.5 (51,52,53) it compiles nicely, but insmod complains about invalid format. I have the latest module init tools of Rusty installed. I'm usin gcc 3.2. Do i have to use any special compiler/linker options or defines or whatever to generate a working module ? what could be the problem ? Even a simple hello-world module doesnt work. Although, i have a working 2.5.53 modular kernel that was built using same tools.
best,
Al.
-- everyday.com --
Kuidas elad, Eesti tudeng?
Osale Tõnis Paltsu esseekonkursil üliõpilastele,
auhinnafond 10 000 kr. http://www.palts.ee/?id=756
Häid pühi soovides, Tõnis Palts
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: 3rdparty modules for 2.5.53
2003-01-01 17:19 3rdparty modules for 2.5.53 Albert Kajakas
@ 2003-01-01 18:24 ` Sam Ravnborg
2003-01-01 18:56 ` Andi Kleen
1 sibling, 0 replies; 5+ messages in thread
From: Sam Ravnborg @ 2003-01-01 18:24 UTC (permalink / raw)
To: Albert Kajakas, Kai Germaschewski; +Cc: linux-kernel
On Wed, Jan 01, 2003 at 07:19:24PM +0200, Albert Kajakas wrote:
>
> Hello!
> I have a problem with compiling modules for 2.5.
> i wrote a module for 2.4. For 2.5 (51,52,53) it compiles nicely, but insmod complains about invalid format. I have the latest module init tools of Rusty installed. I'm usin gcc 3.2. Do i have to use any special compiler/linker options or defines or whatever to generate a working module ? what could be the problem ? Even a simple hello-world module doesnt work. Although, i have a working 2.5.53 modular kernel that was built using same tools.
>
Try to folllow this reciept posted by Kai G.
-------------
Well, you can do
cd my_module
echo "obj-m := my_module.o" > Makefile
vi my_module.c
make -C <path/to/kernel/src> SUBDIRS=$PWD modules
That's not too bad (and basically works for 2.4 as well)
---------------
Sam
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: 3rdparty modules for 2.5.53
2003-01-01 17:19 3rdparty modules for 2.5.53 Albert Kajakas
2003-01-01 18:24 ` Sam Ravnborg
@ 2003-01-01 18:56 ` Andi Kleen
2003-01-01 22:29 ` Bjoern A. Zeeb
1 sibling, 1 reply; 5+ messages in thread
From: Andi Kleen @ 2003-01-01 18:56 UTC (permalink / raw)
To: Albert Kajakas; +Cc: linux-kernel
Albert Kajakas <Albert.Kajakas@mail.ee> writes:
> Hello!
> I have a problem with compiling modules for 2.5.
I recently tracked down the same problem.
Add a -DKBUILD_MODNAME="yourname" compile option to one of the files,
the new loader requires a module name section. It should be only set
once for each module.
In addition make sure you're using the new style module_init/module_exit
macros instead of init_module/cleanup_module.
-Andi
P.S.: I agree that the error reporting sucks for this one. It would
be better if the kernel loader give some kind of text message back.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: 3rdparty modules for 2.5.53
2003-01-01 18:56 ` Andi Kleen
@ 2003-01-01 22:29 ` Bjoern A. Zeeb
0 siblings, 0 replies; 5+ messages in thread
From: Bjoern A. Zeeb @ 2003-01-01 22:29 UTC (permalink / raw)
To: Andi Kleen; +Cc: linux kernel mailing list
On 1 Jan 2003, Andi Kleen wrote:
[new modules thing]
> P.S.: I agree that the error reporting sucks for this one. It would
> be better if the kernel loader give some kind of text message back.
I think we mainly lack of documentation. anybody really followed and
understood this thing or perhaps the author ;-) should
write a/update modules.txt for 'module writers' not for users:
- how to update old style to new style; what needs to be changed ?
- what needs to be done to build own modules outside kernel tree ?
- skeleton for new modules
- dos and dont's
Did I miss s.th. ?
--
Bjoern A. Zeeb bzeeb at Zabbadoz dot NeT
56 69 73 69 74 http://www.zabbadoz.net/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: 3rdparty modules for 2.5.53
@ 2003-01-01 22:32 Albert Kajakas
0 siblings, 0 replies; 5+ messages in thread
From: Albert Kajakas @ 2003-01-01 22:32 UTC (permalink / raw)
To: Andi Kleen; +Cc: linux-kernel
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 908 bytes --]
Thanks!
it i postponed development for weeks just because i switched to 2.5 and i couldn't solve the stupid problem.
al.
>Albert Kajakas <Albert.Kajakas@mail.ee> writes:
>
>> Hello!
>> I have a problem with compiling modules for 2.5.
>
>I recently tracked down the same problem.
>
>Add a -DKBUILD_MODNAME="yourname" compile option to one of the files,
>the new loader requires a module name section. It should be only set
>once for each module.
>
>In addition make sure you're using the new style module_init/module_exit
>macros instead of init_module/cleanup_module.
>
>-Andi
>
>P.S.: I agree that the error reporting sucks for this one. It would
>be better if the kernel loader give some kind of text message back.
>
>
-- everyday.com --
Kuidas elad, Eesti tudeng?
Osale Tõnis Paltsu esseekonkursil üliõpilastele,
auhinnafond 10 000 kr. http://www.palts.ee/?id=756
Häid pühi soovides, Tõnis Palts
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2003-01-01 22:25 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-01 17:19 3rdparty modules for 2.5.53 Albert Kajakas
2003-01-01 18:24 ` Sam Ravnborg
2003-01-01 18:56 ` Andi Kleen
2003-01-01 22:29 ` Bjoern A. Zeeb
-- strict thread matches above, loose matches on Subject: below --
2003-01-01 22:32 Albert Kajakas
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox