[Q] Building additional kernel module

View: New views
6 Messages — Rating Filter:   Alert me  

[Q] Building additional kernel module

by Chun, Sungjin :: Rate this Message:

| View Threaded | Show Only this Message

Hi,

How can I build additional kernel module without building entire  
kernel? I've tried building custom kernel but failed - My windows pc  
just reboots if I try to boot with newly built kernel. My first try  
was failed because I've built my kernel with gcc-3.3 which is default  
in debian stable (sarge), and second try with gcc-3.4, I just got  
reboot of my windows machine. What I really want to do is just build  
additional kernel module, not rebuilding of entire kernel.

I'm using colinux-0.6.3. Can anyone help me?

Thanks in advance.


_______________________________________________
coLinux-users mailing list
coLinux-users@...
https://lists.sourceforge.net/lists/listinfo/colinux-users

Re: [Q] Building additional kernel module

by H. Nestler :: Rate this Message:

| View Threaded | Show Only this Message

Chun Sungjin wrote:
> How can I build additional kernel module without building entire  
> kernel? I've tried building custom kernel but failed - My windows pc  
> just reboots if I try to boot with newly built kernel. My first try  
> was failed because I've built my kernel with gcc-3.3 which is default  
> in debian stable (sarge), and second try with gcc-3.4, I just got  
> reboot of my windows machine. What I really want to do is just build  
> additional kernel module, not rebuilding of entire kernel.
>
> I'm using colinux-0.6.3. Can anyone help me?

You need to unpack the complete vanialla kernel, patch it with the file
patch/linux from coLinux source. Then must copy the file
conf/linux-config as .config into your kernel tree and call "make
oldconfig".  Then you can use the coLinux kernel headers for your modules.

But please don't add any module with direct hardware access.  This would
all times crash your system.

Please read also the file doc/building, section "2. Compiling the
Cooperative Linux kernel".  The latest step "make vmlinux" you not need
for "external module" only compile.

--
Henry Nestler


_______________________________________________
coLinux-users mailing list
coLinux-users@...
https://lists.sourceforge.net/lists/listinfo/colinux-users

Parent Message unknown Re: [Q] Building additional kernel module

by Chun, Sungjin :: Rate this Message:

| View Threaded | Show Only this Message

Thanks. I managed to compile kernel :-) What I want to build is fuse like user mode to kernel mode mediation module.


----- Original Message -----
From: Henry Nestler <Henry.Ne@...>
To: Chun Sungjin <chunsj@...>
Cc: colinux-users@...
Sent: 06-06-09 02:06:43
Subject: Re: Re: [coLinux-users] [Q] Building additional kernel module

You need to unpack the complete vanialla kernel, patch it with the file
patch/linux from coLinux source. Then must copy the file
conf/linux-config as .config into your kernel tree and call "make
oldconfig". Then you can use the coLinux kernel headers for your modules.

But please don't add any module with direct hardware access. This would
all times crash your system.

Please read also the file doc/building, section "2. Compiling the
Cooperative Linux kernel". The latest step "make vmlinux" you not need
for "external module" only compile.

--
Henry Nestler
_______________________________________________
coLinux-users mailing list
coLinux-users@...
https://lists.sourceforge.net/lists/listinfo/colinux-users

Re: [Q] Building additional kernel module

by George P Boutwell :: Rate this Message:

| View Threaded | Show Only this Message

On 6/9/06, "S.J.Chun" <chunsj@...> wrote:
> Thanks. I managed to compile kernel :-) What I want to build is fuse like user mode to kernel mode mediation module.
>

coLinux shouldn't be different than doing it on a real/native kernel.
If you are experience error, or problems, maybe you can be specific
and post those and we can help with that?

--
George


_______________________________________________
coLinux-users mailing list
coLinux-users@...
https://lists.sourceforge.net/lists/listinfo/colinux-users

Parent Message unknown Re: [Q] Building additional kernel module

by Chun, Sungjin :: Rate this Message:

| View Threaded | Show Only this Message

Hi.

What I've done before - yes, the failure case - was related to hardware configuration; like changing CPU type to Crusoe, Uniprocessor APIC setting and
MSR and CPUID. After restoring these configuration to original coLinux ones, I can make working kernel.

----- Original Message -----
From: George P Boutwell <george.boutwell@...>
To: "\"S.J.Chun\"" <chunsj@...>
Cc: colinux-users@..., Henry Nestler <Henry.Ne@...>
Sent: 06-06-13 01:40:18
Subject: Re: Re: [coLinux-users] [Q] Building additional kernel module

On 6/9/06, "S.J.Chun" wrote:
> Thanks. I managed to compile kernel :-) What I want to build is fuse like user mode to kernel mode mediation module.
>

coLinux shouldn't be different than doing it on a real/native kernel.
If you are experience error, or problems, maybe you can be specific
and post those and we can help with that?

--
George
_______________________________________________
coLinux-users mailing list
coLinux-users@...
https://lists.sourceforge.net/lists/listinfo/colinux-users

Parent Message unknown Re: [Q] Building additional kernel module

by George P Boutwell :: Rate this Message:

| View Threaded | Show Only this Message

On 6/12/06, "S.J.Chun" wrote:
> What I've done before - yes, the failure case - was related to hardware configuration; like changing CPU type to Crusoe, Uniprocessor APIC setting and
> MSR and CPUID. After restoring these configuration to original coLinux ones, I can make working kernel.
>

In most those situations you'd have to make additional changes to the
coLinux code to support them...  ie... coLinux is targetted for an the
generic i686, not for a specific chipset like Crusoe...  It's note got
the Uniprocessor APIC implemented, etc.

HTH,

--
George


_______________________________________________
coLinux-users mailing list
coLinux-users@...
https://lists.sourceforge.net/lists/listinfo/colinux-users