* Compile modules on 64-bit Linux kernel system for 686 Linux kernel
@ 2009-08-27 11:28 Paul Menzel
2009-08-27 11:58 ` Mauro Carvalho Chehab
0 siblings, 1 reply; 3+ messages in thread
From: Paul Menzel @ 2009-08-27 11:28 UTC (permalink / raw)
To: Linux Media Mailing List
[-- Attachment #1: Type: text/plain, Size: 1616 bytes --]
Hi guys,
( please CC )
I am running Debian Sid/unstable with a 32-bit userspace with a 64-bit
kernel [1]. I want to compile the v4l-dvb modules for a 686 kernel [2]
on this system.
I installed the header files for the 686 kernel [3], but running
$ ARCH=686 make
make -C /tmp/v4l-dvb/v4l
make[1]: Entering directory `/tmp/v4l-dvb/v4l'
perl
scripts/make_config_compat.pl /lib/modules/2.6.30-1-amd64/source ./.myconfig ./config-compat.h
creating symbolic links...
make -C firmware prep
make[2]: Entering directory `/tmp/v4l-dvb/v4l/firmware'
make[2]: Leaving directory `/tmp/v4l-dvb/v4l/firmware'
make -C firmware
make[2]: Entering directory `/tmp/v4l-dvb/v4l/firmware'
CC ihex2fw
Generating vicam/firmware.fw
Generating dabusb/firmware.fw
Generating dabusb/bitstream.bin
Generating ttusb-budget/dspbootcode.bin
Generating cpia2/stv0672_vp4.bin
Generating av7110/bootcode.bin
make[2]: Leaving directory `/tmp/v4l-dvb/v4l/firmware'
Kernel build directory is /lib/modules/2.6.30-1-amd64/build
make -C /lib/modules/2.6.30-1-amd64/build SUBDIRS=/tmp/v4l-dvb/v4l
modules
make[2]: Entering directory `/usr/src/linux-headers-2.6.30-1-amd64'
[…]
still uses the 64-bit modules in /lib/modules/2.6.30-1-amd64 and the
files in /usr/src/linux-headers-2.6.30-1-amd64.
I do not even know if this is the correct way.
Can someone of you please enlighten me?
Thanks,
Paul
[1] http://packages.debian.org/de/sid/linux-image-2.6.30-1-amd64
[2] http://packages.debian.org/de/sid/linux-image-2.6.30-1-686
[3] http://packages.debian.org/de/sid/linux-headers-2.6.30-1-686
[-- Attachment #2: Dies ist ein digital signierter Nachrichtenteil --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Compile modules on 64-bit Linux kernel system for 686 Linux kernel
2009-08-27 11:28 Compile modules on 64-bit Linux kernel system for 686 Linux kernel Paul Menzel
@ 2009-08-27 11:58 ` Mauro Carvalho Chehab
2009-08-28 10:55 ` Paul Menzel
0 siblings, 1 reply; 3+ messages in thread
From: Mauro Carvalho Chehab @ 2009-08-27 11:58 UTC (permalink / raw)
To: Paul Menzel; +Cc: Linux Media Mailing List
Em Thu, 27 Aug 2009 13:28:57 +0200
Paul Menzel <paulepanter@users.sourceforge.net> escreveu:
> Hi guys,
>
> ( please CC )
>
>
> I am running Debian Sid/unstable with a 32-bit userspace with a 64-bit
> kernel [1]. I want to compile the v4l-dvb modules for a 686 kernel [2]
> on this system.
>
> I installed the header files for the 686 kernel [3], but running
>
> $ ARCH=686 make
> make -C /tmp/v4l-dvb/v4l
> make[1]: Entering directory `/tmp/v4l-dvb/v4l'
> perl
> scripts/make_config_compat.pl /lib/modules/2.6.30-1-amd64/source ./.myconfig ./config-compat.h
> creating symbolic links...
> make -C firmware prep
> make[2]: Entering directory `/tmp/v4l-dvb/v4l/firmware'
> make[2]: Leaving directory `/tmp/v4l-dvb/v4l/firmware'
> make -C firmware
> make[2]: Entering directory `/tmp/v4l-dvb/v4l/firmware'
> CC ihex2fw
> Generating vicam/firmware.fw
> Generating dabusb/firmware.fw
> Generating dabusb/bitstream.bin
> Generating ttusb-budget/dspbootcode.bin
> Generating cpia2/stv0672_vp4.bin
> Generating av7110/bootcode.bin
> make[2]: Leaving directory `/tmp/v4l-dvb/v4l/firmware'
> Kernel build directory is /lib/modules/2.6.30-1-amd64/build
> make -C /lib/modules/2.6.30-1-amd64/build SUBDIRS=/tmp/v4l-dvb/v4l
> modules
> make[2]: Entering directory `/usr/src/linux-headers-2.6.30-1-amd64'
> […]
>
> still uses the 64-bit modules in /lib/modules/2.6.30-1-amd64 and the
> files in /usr/src/linux-headers-2.6.30-1-amd64.
>
> I do not even know if this is the correct way.
>
> Can someone of you please enlighten me?
This is not the correct way. You'll need to also point where do you expect it to get the headers:
This should do the trick:
make ARCH=i386 release DIR=<directory_name>
make ARCH=i386 allmodconfig
make ARCH=i386
>
>
> Thanks,
>
> Paul
>
>
> [1] http://packages.debian.org/de/sid/linux-image-2.6.30-1-amd64
> [2] http://packages.debian.org/de/sid/linux-image-2.6.30-1-686
> [3] http://packages.debian.org/de/sid/linux-headers-2.6.30-1-686
Cheers,
Mauro
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Compile modules on 64-bit Linux kernel system for 686 Linux kernel
2009-08-27 11:58 ` Mauro Carvalho Chehab
@ 2009-08-28 10:55 ` Paul Menzel
0 siblings, 0 replies; 3+ messages in thread
From: Paul Menzel @ 2009-08-28 10:55 UTC (permalink / raw)
To: Mauro Carvalho Chehab; +Cc: Linux Media Mailing List
[-- Attachment #1: Type: text/plain, Size: 1018 bytes --]
Dear Mauro,
Am Donnerstag, den 27.08.2009, 08:58 -0300 schrieb Mauro Carvalho Chehab:
> Em Thu, 27 Aug 2009 13:28:57 +0200 Paul Menzel <paulepanter@users.sourceforge.net> escreveu:
> > I am running Debian Sid/unstable with a 32-bit userspace with a 64-bit
> > kernel [1]. I want to compile the v4l-dvb modules for a 686 kernel [2]
> > on this system.
> >
> > I installed the header files for the 686 kernel [3], but running
> >
> > $ ARCH=686 make
[…]
> > I do not even know if this is the correct way.
> >
> > Can someone of you please enlighten me?
>
> This is not the correct way. You'll need to also point where do you expect it to get the headers:
> This should do the trick:
> make ARCH=i386 release DIR=<directory_name>
> make ARCH=i386 allmodconfig
> make ARCH=i386
Thanks, I should have read INSTALL more carefully. I did
$ make ARCH=i686 release VER=2.6.30-1-686
$ make ARCH=i686 allmodconfig
$ make ARCH=i686
which worked like a charm.
Thanks,
Paul
[-- Attachment #2: Dies ist ein digital signierter Nachrichtenteil --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-08-28 10:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-27 11:28 Compile modules on 64-bit Linux kernel system for 686 Linux kernel Paul Menzel
2009-08-27 11:58 ` Mauro Carvalho Chehab
2009-08-28 10:55 ` Paul Menzel
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.