Re: Proprietary kernel module with Debian i386 system and AMD64 kernel
Le samedi 22 octobre 2005 à 03:45 -0500, Alexander Charbonnet a écrit :
> A 64-bit kernel does give you the option of running 32- or 64-bit executables,
> true. But everything that's part of the kernel itself, including loadable
> modules, must be the same as the rest of the kernel.
>
>
> On Saturday 22 October 2005 03:18 am, Jérôme Warnier wrote:
> > Le samedi 22 octobre 2005 à 03:01 -0500, Alexander Charbonnet a écrit :
> > > When you're running a 64-bit kernel, like kernel-image-2.6.8-11-amd64-k8,
> > > you must use a 64-bit kernel module.
> >
> > That's what I thought, but it was not perfectly clear to me and as the
> > machine is pretty far from me, I wanted to avoid any problem.
> > All this 64bits kernel mode and and 32bits user mode is quite confusing for
> > me...
> >
> > > On Saturday 22 October 2005 02:50 am, Jérôme Warnier wrote:
> > > > On one of my systems, I'm using Debian for i386, and I'm thinking about
> > > > going to kernel package "kernel-image-2.6.8-11-amd64-k8".
> > > > The main reason I'm using Debian for i386 is that I need a proprietary
> > > > kernel module.
> > > > This kernel module is available for both x86 and AMD64, so I wonder
> > > > which one I should use with the above-mentioned kernel.
> > > >
> > > > Thanks
Now, I have another problem with it:
XserverY:~/aksparlnx-1.6-x86_64# make kernel26
make -C /usr/src/kernel-headers-2.6.8-11-amd64-k8/ here=$(pwd)/ SUBDIRS=
$(pwd) modules
make[1]: Entering directory `/usr/src/kernel-headers-2.6.8-11-amd64-k8'
CC [M] /root/aksparlnx-1.6-x86_64/aksparpub.o
cc1: error: code model `kernel' not supported in the 32 bit mode
make[2]: *** [/root/aksparlnx-1.6-x86_64/aksparpub.o] Error 1
make[1]: *** [_module_/root/aksparlnx-1.6-x86_64] Error 2
make[1]: Leaving directory `/usr/src/kernel-headers-2.6.8-11-amd64-k8'
make: *** [kernel26] Error 2
I guess this is because the compiler should try to cross-compile it. How
can I get out of this?
If it helps, I have acces to other Debian AMD64-installed machines.
Thanks
[..]
Reply to: