cx8802.ko module not being built with current HG tree
Subsystems (2)
Hi,
Maybe I'm wrong, but I think there is something wrong in currentKconfig file for cx88 drivers. I've been struggling for some hours trying to find why, after compiling a fresh copy of the LinuxTV HG drivers, I wasn't unable to modprobe cx88-dvb module, which I need for HVR-3000.
The module was not being load because kernel was failing to find cx8802_get_driver, etc... entry points, which are exported by cx88-mpeg.c.
The strange part is that, according to the cx88/Kconfig file this file should be automatically added as dependency if either CX88_DVB or CX88_BLACKBIRD were selected,
but for some strange reason it wasn't.
After a 'make menuconfig' in HG tree the kernel configuration contained these lines (this was using the default config, without adding / removing anything):CONFIG_VIDEO_CX88=mCONFIG_VIDEO_CX88_ALSA=mCONFIG_VIDEO_CX88_BLACKBIRD=mCONFIG_VIDEO_CX88_DVB=mCONFIG_VIDEO_CX88_MPEG=yCONFIG_VIDEO_CX88_VP3054=m
Notice that they are all marked as 'm' excepting CONFIG_VIDEO_CX88_MPEG, which is marked as 'y'. I don't know if it's relevant or not, but the fact is that the module was not being compiled at all. The option was not visible inside menuconfig, by the way.
I've done some changes inside Kconfig to make it visible in menuconfig, and by doing this I've been able to set it to 'm' and rebuild, which has just worked apparently.
This Kconfig file was edited in revisions 10190 & 10191, precisely for reasons related to cx8802 dependencies, so I'm not sure the solution taken there was the right one.
Best regards,
Eduard Huguet
_______________________________________________
linux-dvb users mailing list
For V4L/DVB development, please use instead [email protected] [email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
Hi,
Maybe I'm wrong, but I think there is something wrong in currentKconfig file for cx88 drivers. I've been struggling for some hours trying to find why, after compiling a fresh copy of the LinuxTV HG drivers, I wasn't unable to modprobe cx88-dvb module, which I need for HVR-3000.
The module was not being load because kernel was failing to find cx8802_get_driver, etc... entry points, which are exported by cx88-mpeg.c.
The strange part is that, according to the cx88/Kconfig file this file should be automatically added as dependency if either CX88_DVB or CX88_BLACKBIRD were selected,
but for some strange reason it wasn't.
After a 'make menuconfig' in HG tree the kernel configuration contained these lines (this was using the default config, without adding / removing anything):CONFIG_VIDEO_CX88=mCONFIG_VIDEO_CX88_ALSA=mCONFIG_VIDEO_CX88_BLACKBIRD=mCONFIG_VIDEO_CX88_DVB=mCONFIG_VIDEO_CX88_MPEG=yCONFIG_VIDEO_CX88_VP3054=m
Notice that they are all marked as 'm' excepting CONFIG_VIDEO_CX88_MPEG, which is marked as 'y'. I don't know if it's relevant or not, but the fact is that the module was not being compiled at all. The option was not visible inside menuconfig, by the way.
I've done some changes inside Kconfig to make it visible in menuconfig, and by doing this I've been able to set it to 'm' and rebuild, which has just worked apparently.
This Kconfig file was edited in revisions 10190 & 10191, precisely for reasons related to cx8802 dependencies, so I'm not sure the solution taken there was the right one.
Best regards,
Eduard Huguet
Quoted 4 lines · Eduard Huguet
The module was not being load because kernel was failing to find
cx8802_get_driver, etc... entry points, which are exported bycx88-mpeg.c.
Quoted 9 lines
After a 'make menuconfig' in HG tree the kernel configuration contained these lines (this was using the default config, without adding / removing anything):
CONFIG_VIDEO_CX88=mCONFIG_VIDEO_CX88_ALSA=mCONFIG_VIDEO_CX88_BLACKBIRD=mCONFIG_VIDEO_CX88_DVB=mCONFIG_VIDEO_CX88_MPEG=yCONFIG_VIDEO_CX88_VP3054=m
The problem is that CX88_MPEG is y; it should be m. The kconfig system is strange in the way it handles "hidden" entries. In the Kconfig file, MPEG depends on DVB, so having MPEG at 'y' which is higher than DVB at 'm' shouldn't be allowed. And indeed if you unhide DVB it won't be. But when it's hidden the "default y" overrides the dependencies.
The dependencies here are backward though! It is DVB and BLACKBIRD that depend on MPEG. MPEG depends on CX88.
The right way to do it either to make MPEG visible and give it the right dependencies, or keep it hidden and have DVB and BLACKBIRD select it.
Like this:
linux/drivers/media/video/cx88/Kconfig Thu Feb 05 10:27:41 2009 -0800 renamed from linux/drivers/media/video/cx88/Kconfig Thu Feb 05 09:58:48 2009 -0800 +9 -5
@@ -31,9 +31,17 @@ config VIDEO_CX88_ALSA To compile this driver as a module, choose M here: the module will be called cx88-alsa. +config VIDEO_CX88_MPEG + tristate + depends on VIDEO_CX88 + select VIDEO_BTCX + select VIDEOBUF_DMA_SG + default n + config VIDEO_CX88_BLACKBIRD tristate "Blackbird MPEG encoder support (cx2388x + cx23416)" depends on VIDEO_CX88 + select VIDEO_CX88_MPEG select VIDEO_CX2341X ---help--- This adds support for MPEG encoder cards based on the
@@ -46,6 +54,7 @@ config VIDEO_CX88_DVB config VIDEO_CX88_DVB tristate "DVB/ATSC Support for cx2388x based TV cards" depends on VIDEO_CX88 && DVB_CORE + select VIDEO_CX88_MPEG select VIDEOBUF_DVB select DVB_PLL if !DVB_FE_CUSTOMISE select DVB_MT352 if !DVB_FE_CUSTOMISE
@@ -69,11 +78,6 @@ config VIDEO_CX88_DVB To compile this driver as a module, choose M here: the module will be called cx88-dvb. -config VIDEO_CX88_MPEG - tristate - depends on VIDEO_CX88_DVB || VIDEO_CX88_BLACKBIRD - default y - config VIDEO_CX88_VP3054 tristate "VP-3054 Secondary I2C Bus Support" default m
A Dijous, 5 de febrer de 2009 19:33:21, Trent Piepho va escriure:
Quoted 59 lines · Eduard Huguet
Quoted 4 lines
The module was not being load because kernel was failing to find
cx8802_get_driver, etc... entry points, which are exported bycx88-mpeg.c.Quoted 9 lines
After a 'make menuconfig' in HG tree the kernel configuration contained these lines (this was using the default config, without adding / removing anything):
CONFIG_VIDEO_CX88=mCONFIG_VIDEO_CX88_ALSA=mCONFIG_VIDEO_CX88_BLACKBIRD=mCONFIG_VIDEO_CX88_DVB=mCONFIG_VIDEO_CX88_MPEG=yCONFIG_VIDEO_CX88_VP3054=mThe problem is that
CX88_MPEGis y; it should be m. The kconfig system is strange in the way it handles "hidden" entries. In theKconfigfile, MPEG depends on DVB, so having MPEG at 'y' which is higher than DVB at 'm' shouldn't be allowed. And indeed if you unhide DVB it won't be. But when it's hidden the "default y" overrides the dependencies.The dependencies here are backward though! It is DVB and BLACKBIRD that depend on MPEG. MPEG depends on CX88.
The right way to do it either to make MPEG visible and give it the right dependencies, or keep it hidden and have DVB and BLACKBIRD select it.
Like this:
diff -red3955855d78linux/drivers/media/video/cx88/Kconfig
--- a/linux/drivers/media/video/cx88/Kconfig Thu Feb 05 09:58:48 2009
-0800 +++ b/linux/drivers/media/video/cx88/Kconfig Thu Feb 05 10:27:41
2009 -0800 @@ -31,9 +31,17 @@ configVIDEO_CX88_ALSA
To compile this driver as a module, choose M here: the module will be called cx88-alsa.linux/drivers/media/video/cx88/Kconfig Thu Feb 05 10:27:41 2009 -0800 renamed from linux/drivers/media/video/cx88/Kconfig Thu Feb 05 09:58:48 2009 -0800 +9
-0+config VIDEO_CX88_MPEG + tristate + depends on VIDEO_CX88 + select VIDEO_BTCX + select VIDEOBUF_DMA_SG + default n + config VIDEO_CX88_BLACKBIRD tristate "Blackbird MPEG encoder support (cx2388x + cx23416)" depends on VIDEO_CX88 + select VIDEO_CX88_MPEG select VIDEO_CX2341X ---help--- This adds support for MPEG encoder cards based on the@@ -46,6 +54,7 @@ config VIDEO_CX88_DVB config VIDEO_CX88_DVB tristate "DVB/ATSC Support for cx2388x based TV cards" depends on VIDEO_CX88 && DVB_CORE + select VIDEO_CX88_MPEG select VIDEOBUF_DVB select DVB_PLL if !DVB_FE_CUSTOMISE select DVB_MT352 if !DVB_FE_CUSTOMISE@@ -69,11 +78,6 @@ config VIDEO_CX88_DVB To compile this driver as a module, choose M here: the
linux/drivers/media/video/cx88/Kconfig Thu Feb 05 10:27:41 2009 -0800 config VIDEO_CX88_DVB · line 83
Quoted 10 lines
linux/drivers/media/video/cx88/Kconfig Thu Feb 05 10:27:41 2009 -0800 renamed from linux/drivers/media/video/cx88/Kconfig Thu Feb 05 09:58:48 2009 -0800 +0
-5module will be called cx88-dvb. -config VIDEO_CX88_MPEG - tristate - depends on VIDEO_CX88_DVB || VIDEO_CX88_BLACKBIRD - default y - config VIDEO_CX88_VP3054 tristate "VP-3054 Secondary I2C Bus Support" default m
This is what I thought. I managed to compile the drivers by hacking Kconfig, so this makes sense.
Thanks for your quick patch, I hope it's included into the main tree ASAP as the CX88-DVB driver is widely used, and it's unusable right now unless you do the proper hacking.
Regards,
Eduard Huguet
Quoted 36 lines · On Thu, 5 Feb 2009 16:59:16 +0100 Eduard Huguet <[email protected]> wrote:
Hi,
Maybe I'm wrong, but I think there is something wrong in currentKconfigfile for cx88 drivers. I've been struggling for some hours trying to find why, after compiling a fresh copy of the LinuxTV HG drivers, I wasn't unable to modprobe cx88-dvb module, which I need for HVR-3000.The module was not being load because kernel was failing to find
cx8802_get_driver, etc... entry points, which are exported bycx88-mpeg.c.The strange part is that, according to the cx88/Kconfig file this file should be automatically added as dependency if either
CX88_DVBorCX88_BLACKBIRDwere selected,
but for some strange reason it wasn't.After a 'make menuconfig' in HG tree the kernel configuration contained these lines (this was using the default config, without adding / removing anything):
CONFIG_VIDEO_CX88=mCONFIG_VIDEO_CX88_ALSA=mCONFIG_VIDEO_CX88_BLACKBIRD=mCONFIG_VIDEO_CX88_DVB=mCONFIG_VIDEO_CX88_MPEG=yCONFIG_VIDEO_CX88_VP3054=mNotice that they are all marked as 'm' excepting
CONFIG_VIDEO_CX88_MPEG, which is marked as 'y'. I don't know if it's relevant or not, but the fact is that the module was not being compiled at all. The option was not visible inside menuconfig, by the way.I've done some changes inside
Kconfigto make it visible in menuconfig, and by doing this I've been able to set it to 'm' and rebuild, which has just worked apparently.
Quoted 6 lines
This
Kconfigfile was edited in revisions 10190 & 10191, precisely for reasons related to cx8802 dependencies, so I'm not sure the solution taken there was the right one.Best regards,
Eduard Huguet
Eduard,
I suspect that this is some bug on the out-of-tree build. In order to test it, I've tried to reproduce what I think you did.
So, I ran the following procedures over the devel branch on my -git tree:
make allmodconfig (to select everything as 'm')
I manually unselect all drivers at the tree, keeping only CX88 and submodules. All CX88 submodules as "M".
I've repeated the procedure, this time starting with make allyesconfig.
On both cases, I got those configs:
CONFIG_VIDEO_CX88=mCONFIG_VIDEO_CX88_ALSA=mCONFIG_VIDEO_CX88_BLACKBIRD=mCONFIG_VIDEO_CX88_DVB=mCONFIG_VIDEO_CX88_MPEG=mCONFIG_VIDEO_CX88_VP3054=m
My -git tree were updated up to this changeset:
commit 67e70baf043cfdcdaf5972bc94be82632071536b
Author: Devin Heitmueller <[email protected]> Date: Mon Jan 26 03:07:59 2009 -0300
V4L/DVB (10411): s5h1409: Perform s5h1409 soft reset after tuning
I tried also reproduce the bug you've mentioned at the v4l-dvb tree, but unfortunately, I couldn't (the .config file is attached). I got exactly the same result as compiling in-kernel.
Could you please send us your buggy .config?
Cheers,
Mauro
Hi,
I don't have yet the buggy config, but the steps I was following
when I encounter the problem were the following:
· hg clone http://linuxtv.org/hg/v4l-dvb
· cd v4l-dvb
· make menuconfig
(I mostly uncheck here most of the modules, as I really was
needing only to compile the support for Nova-T 500 and an HVR-3000. I just leave "as is" (checked as M by default) all the SAA7134 and derived options).
· make && make install
Best regards,
Eduard
PS: I suspect that "make allmodconfig" (which I didn't even know it existed...) makes a difference here, because it will mark CX88_MPEG as 'M', if I understand it well. I wasn't using it, so maybe this explains why the option was hiddenly marked as 'Y' instead of 'M'.
2009/2/10 Mauro Carvalho Chehab <[email protected]>:
Quoted 86 lines
Quoted 36 lines · On Thu, 5 Feb 2009 16:59:16 +0100 Eduard Huguet <[email protected]> wrote:
Hi,
Maybe I'm wrong, but I think there is something wrong in currentKconfigfile for cx88 drivers. I've been struggling for some hours trying to find why, after compiling a fresh copy of the LinuxTV HG drivers, I wasn't unable to modprobe cx88-dvb module, which I need for HVR-3000.The module was not being load because kernel was failing to find
cx8802_get_driver, etc... entry points, which are exported bycx88-mpeg.c.The strange part is that, according to the cx88/Kconfig file this file should be automatically added as dependency if either
CX88_DVBorCX88_BLACKBIRDwere selected,
but for some strange reason it wasn't.After a 'make menuconfig' in HG tree the kernel configuration contained these lines (this was using the default config, without adding / removing anything):
CONFIG_VIDEO_CX88=mCONFIG_VIDEO_CX88_ALSA=mCONFIG_VIDEO_CX88_BLACKBIRD=mCONFIG_VIDEO_CX88_DVB=mCONFIG_VIDEO_CX88_MPEG=yCONFIG_VIDEO_CX88_VP3054=mNotice that they are all marked as 'm' excepting
CONFIG_VIDEO_CX88_MPEG, which is marked as 'y'. I don't know if it's relevant or not, but the fact is that the module was not being compiled at all. The option was not visible inside menuconfig, by the way.I've done some changes inside
Kconfigto make it visible in menuconfig, and by doing this I've been able to set it to 'm' and rebuild, which has just worked apparently.Quoted 6 lines
This
Kconfigfile was edited in revisions 10190 & 10191, precisely for reasons related to cx8802 dependencies, so I'm not sure the solution taken there was the right one.Best regards,
Eduard HuguetEduard,
I suspect that this is some bug on the out-of-tree build. In order to test it, I've tried to reproduce what I think you did.
So, I ran the following procedures over the devel branch on my -git tree:
make allmodconfig (to select everything as 'm')
I manually unselect all drivers at the tree, keeping only CX88 and submodules. All CX88 submodules as "M".I've repeated the procedure, this time starting with make allyesconfig.
On both cases, I got those configs:
CONFIG_VIDEO_CX88=mCONFIG_VIDEO_CX88_ALSA=mCONFIG_VIDEO_CX88_BLACKBIRD=mCONFIG_VIDEO_CX88_DVB=mCONFIG_VIDEO_CX88_MPEG=mCONFIG_VIDEO_CX88_VP3054=mMy -git tree were updated up to this changeset:
commit
67e70baf043cfdcdaf5972bc94be82632071536bAuthor: Devin Heitmueller <[email protected]> Date: Mon Jan 26 03:07:59 2009 -0300V4L/DVB (10411): s5h1409: Perform s5h1409 soft reset after tuningI tried also reproduce the bug you've mentioned at the v4l-dvb tree, but unfortunately, I couldn't (the .config file is attached). I got exactly the same result as compiling in-kernel.
Could you please send us your buggy .config?
Cheers,
Mauro
Quoted 5 lines · Eduard Huguet
I don't have yet the buggy config, but the steps I was following
when I encounter the problem were the following:
� hg clone http://linuxtv.org/hg/v4l-dvb
� cd v4l-dvb
� make menuconfig
This is what I did too. Just use the menuconfig or xconfig targets. Maybe the kernel kconfig behavior has changed?
Quoted 9 lines · On Tue, 10 Feb 2009 10:25:26 -0800 (PST) Trent Piepho <[email protected]>…
Quoted 5 lines · Eduard Huguet
I don't have yet the buggy config, but the steps I was following
when I encounter the problem were the following:
· hg clone http://linuxtv.org/hg/v4l-dvb
· cd v4l-dvb
· make menuconfigThis is what I did too. Just use the menuconfig or xconfig targets. Maybe the kernel kconfig behavior has changed?
Hmm... I did a test here with RHEL 2.6.18 kernel:
$ make menuconfig make -C /home/v4l/master/v4l menuconfig make[1]: Entrando no diretório `/home/v4l/master/v4l' /usr/src/kernels/2.6.18-125.el5-x86_64//scripts/kconfig/mconf ./Kconfig # # configuration written to .config #
*** End of Linux kernel configuration.
*** Execute 'make' to build the kernel or try 'make help'.
$ grep CX88 v4l/.config CONFIG_VIDEO_CX88=m CONFIG_VIDEO_CX88_ALSA=m CONFIG_VIDEO_CX88_BLACKBIRD=m CONFIG_VIDEO_CX88_DVB=m CONFIG_VIDEO_CX88_MPEG=y CONFIG_VIDEO_CX88_VP3054=m
So, I got the buggy .config
Another test with 2.6.27:
$ make menuconfig make -C /home/v4l/master/v4l menuconfig make[1]: Entrando no diretório `/home/v4l/master/v4l' ./scripts/make_kconfig.pl /usr/src/kernels/v2.6.27.4/ /usr/src/kernels/v2.6.27.4/ Preparing to compile for kernel version 2.6.27 VIDEO_PXA27x: Requires at least kernel 2.6.29 USB_STV06XX: Requires at least kernel 2.6.28 /usr/src/kernels/v2.6.27.4.i5400//scripts/kconfig/mconf ./Kconfig # # configuration written to .config #
*** End of Linux kernel configuration.
*** Execute 'make' to build the kernel or try 'make help'.
make[1]: Saindo do diretório `/home/v4l/master/v4l' [v4l@pedra master]$ grep CX88 v4l/.config CONFIG_VIDEO_CX88=m CONFIG_VIDEO_CX88_ALSA=m CONFIG_VIDEO_CX88_BLACKBIRD=m CONFIG_VIDEO_CX88_DVB=m CONFIG_VIDEO_CX88_MPEG=m CONFIG_VIDEO_CX88_VP3054=m
With 2.6.27, everything is OK.
So, it seems that a fix at some kernel between 2.6.22 and 2.6.27 changed (or fixed) the Kconfig behaviour.
I suspect that the better fix for this would be to run something like:
cat .config|sed s,'=y','=m'
For kernels older than 2.6.27.
Maybe Hans can give us a hint on what kernel this issue were solved, with his build environment.
Cheers,
Mauro
Quoted 70 lines · On Tuesday 10 February 2009 19:47:40 Mauro Carvalho Chehab wrote:
On Tue, 10 Feb 2009 10:25:26 -0800 (PST)
Quoted 9 lines · Trent Piepho
Quoted 5 lines · Eduard Huguet
I don't have yet the buggy config, but the steps I was following
when I encounter the problem were the following:
· hg clone http://linuxtv.org/hg/v4l-dvb
· cd v4l-dvb
· make menuconfigThis is what I did too. Just use the menuconfig or xconfig targets. Maybe the kernel kconfig behavior has changed?
Hmm... I did a test here with RHEL 2.6.18 kernel:
$ make menuconfig make -C /home/v4l/master/v4l menuconfig make[1]: Entrando no diretório `/home/v4l/master/v4l' /usr/src/kernels/2.6.18-125.el5-x86_64//scripts/kconfig/mconf ./Kconfig # # configuration written to .config #*** End of Linux kernel configuration.
*** Execute 'make' to build the kernel or try 'make help'.$ grep CX88 v4l/.config CONFIG_VIDEO_CX88=m CONFIG_VIDEO_CX88_ALSA=m CONFIG_VIDEO_CX88_BLACKBIRD=m CONFIG_VIDEO_CX88_DVB=m CONFIG_VIDEO_CX88_MPEG=y CONFIG_VIDEO_CX88_VP3054=mSo, I got the buggy .config
Another test with 2.6.27:
$ make menuconfig make -C /home/v4l/master/v4l menuconfig make[1]: Entrando no diretório `/home/v4l/master/v4l' ./scripts/make_kconfig.pl /usr/src/kernels/v2.6.27.4/ /usr/src/kernels/v2.6.27.4/ Preparing to compile for kernel version 2.6.27 VIDEO_PXA27x: Requires at least kernel 2.6.29 USB_STV06XX: Requires at least kernel 2.6.28 /usr/src/kernels/v2.6.27.4.i5400//scripts/kconfig/mconf ./Kconfig # # configuration written to .config #*** End of Linux kernel configuration.
*** Execute 'make' to build the kernel or try 'make help'.make[1]: Saindo do diretório `/home/v4l/master/v4l' [v4l@pedra master]$ grep CX88 v4l/.config
CONFIG_VIDEO_CX88=mCONFIG_VIDEO_CX88_ALSA=mCONFIG_VIDEO_CX88_BLACKBIRD=mCONFIG_VIDEO_CX88_DVB=mCONFIG_VIDEO_CX88_MPEG=mCONFIG_VIDEO_CX88_VP3054=mWith 2.6.27, everything is OK.
So, it seems that a fix at some kernel between 2.6.22 and 2.6.27 changed (or fixed) the
Kconfigbehaviour.
Quoted 8 lines
I suspect that the better fix for this would be to run something like:
cat .config|sed s,'=y','=m'
For kernels older than 2.6.27.
Maybe Hans can give us a hint on what kernel this issue were solved, with his build environment.
2.6.21 is wrong, 2.6.22 is right. Cause: dependency on VIDEOBUF_DMA_SG, which has a dependency on CONFIG_HAS_DMA, which was apparently introduced in 2.6.22 and didn't exist in 2.6.21.
This is fixed by the attached diff.
BTW, all the scripts I use to setup and run the build environment are available here: http://www.xs4all.nl/%7Ehverkuil/logs/scripts.tar.bz2
Regards,
Hans
Signature · 1 line
Hans Verkuil - video4linux developer - sponsored by TANDBERG
v4l/scripts/make_kconfig.pl +5 -0
@@ -537,6 +537,11 @@ $kernopts{HAS_IOMEM} = 2; } +# Kernel < 2.6.22 is missing the HAS_DMA option +if (!defined $kernopts{HAS_DMA} && cmp_ver($kernver, '2.6.22') < 0) { + $kernopts{HAS_DMA} = 2; +} + # Kernel < 2.6.23 is missing the VIRT_TO_BUS option if (!defined $kernopts{VIRT_TO_BUS} && cmp_ver($kernver, '2.6.23') < 0) { # VIRT_TO_BUS -> !PPC64
Quoted 77 lines · On Tue, 10 Feb 2009 21:31:59 +0100 Hans Verkuil <[email protected]> wrote:
Quoted 76 lines · On Tuesday 10 February 2009 19:47:40 Mauro Carvalho Chehab wrote:
On Tue, 10 Feb 2009 10:25:26 -0800 (PST)
Quoted 9 lines · Trent Piepho
Quoted 5 lines · Eduard Huguet
I don't have yet the buggy config, but the steps I was following
when I encounter the problem were the following:
· hg clone http://linuxtv.org/hg/v4l-dvb
· cd v4l-dvb
· make menuconfigThis is what I did too. Just use the menuconfig or xconfig targets. Maybe the kernel kconfig behavior has changed?
Hmm... I did a test here with RHEL 2.6.18 kernel:
$ make menuconfig make -C /home/v4l/master/v4l menuconfig make[1]: Entrando no diretório `/home/v4l/master/v4l' /usr/src/kernels/2.6.18-125.el5-x86_64//scripts/kconfig/mconf ./Kconfig # # configuration written to .config #*** End of Linux kernel configuration.
*** Execute 'make' to build the kernel or try 'make help'.$ grep CX88 v4l/.config CONFIG_VIDEO_CX88=m CONFIG_VIDEO_CX88_ALSA=m CONFIG_VIDEO_CX88_BLACKBIRD=m CONFIG_VIDEO_CX88_DVB=m CONFIG_VIDEO_CX88_MPEG=y CONFIG_VIDEO_CX88_VP3054=mSo, I got the buggy .config
Another test with 2.6.27:
$ make menuconfig make -C /home/v4l/master/v4l menuconfig make[1]: Entrando no diretório `/home/v4l/master/v4l' ./scripts/make_kconfig.pl /usr/src/kernels/v2.6.27.4/ /usr/src/kernels/v2.6.27.4/ Preparing to compile for kernel version 2.6.27 VIDEO_PXA27x: Requires at least kernel 2.6.29 USB_STV06XX: Requires at least kernel 2.6.28 /usr/src/kernels/v2.6.27.4.i5400//scripts/kconfig/mconf ./Kconfig # # configuration written to .config #*** End of Linux kernel configuration.
*** Execute 'make' to build the kernel or try 'make help'.make[1]: Saindo do diretório `/home/v4l/master/v4l' [v4l@pedra master]$ grep CX88 v4l/.config
CONFIG_VIDEO_CX88=mCONFIG_VIDEO_CX88_ALSA=mCONFIG_VIDEO_CX88_BLACKBIRD=mCONFIG_VIDEO_CX88_DVB=mCONFIG_VIDEO_CX88_MPEG=mCONFIG_VIDEO_CX88_VP3054=mWith 2.6.27, everything is OK.
So, it seems that a fix at some kernel between 2.6.22 and 2.6.27 changed (or fixed) the
Kconfigbehaviour.I suspect that the better fix for this would be to run something like:
cat .config|sed s,'=y','=m'
For kernels older than 2.6.27.
Quoted 8 lines
Quoted 2 lines
Maybe Hans can give us a hint on what kernel this issue were solved, with his build environment.
2.6.21 is wrong, 2.6.22 is right. Cause: dependency on
VIDEOBUF_DMA_SG, which has a dependency onCONFIG_HAS_DMA, which was apparently introduced in 2.6.22 and didn't exist in 2.6.21.This is fixed by the attached diff.
No, it didn't fix. I'm still getting this issue with 2.6.18.
Btw, on RHEL5 2.6.18 kernel, HAS_DMA does exist:
$ grep CONFIG_HAS_DMA /usr/src/kernels/2.6.18-125.el5-x86_64/.config CONFIG_HAS_DMA=y
Also, the original reporter were for an Ubuntu kernel 2.6.22.
Quoted 10 lines
Signed-off-by Hans Verkuil <[email protected]>BTW, all the scripts I use to setup and run the build environment are available here: http://www.xs4all.nl/%7Ehverkuil/logs/scripts.tar.bz2
Regards,
Hans
Cheers,
Mauro
Quoted 88 lines · On Tuesday 10 February 2009 21:41:47 Mauro Carvalho Chehab wrote:
On Tue, 10 Feb 2009 21:31:59 +0100
Quoted 85 lines · Hans Verkuil
Quoted 73 lines · On Tuesday 10 February 2009 19:47:40 Mauro Carvalho Chehab wrote:
On Tue, 10 Feb 2009 10:25:26 -0800 (PST)
Quoted 9 lines · Trent Piepho
Quoted 5 lines · Eduard Huguet
I don't have yet the buggy config, but the steps I was
following when I encounter the problem were the following:
· hg clone http://linuxtv.org/hg/v4l-dvb
· cd v4l-dvb
· make menuconfigThis is what I did too. Just use the menuconfig or xconfig targets. Maybe the kernel kconfig behavior has changed?
Hmm... I did a test here with RHEL 2.6.18 kernel:
$ make menuconfig make -C /home/v4l/master/v4l menuconfig make[1]: Entrando no diretório `/home/v4l/master/v4l' /usr/src/kernels/2.6.18-125.el5-x86_64//scripts/kconfig/mconf ./Kconfig # # configuration written to .config #*** End of Linux kernel configuration.
*** Execute 'make' to build the kernel or try 'make help'.$ grep CX88 v4l/.config CONFIG_VIDEO_CX88=m CONFIG_VIDEO_CX88_ALSA=m CONFIG_VIDEO_CX88_BLACKBIRD=m CONFIG_VIDEO_CX88_DVB=m CONFIG_VIDEO_CX88_MPEG=y CONFIG_VIDEO_CX88_VP3054=mSo, I got the buggy .config
Another test with 2.6.27:
$ make menuconfig make -C /home/v4l/master/v4l menuconfig make[1]: Entrando no diretório `/home/v4l/master/v4l' ./scripts/make_kconfig.pl /usr/src/kernels/v2.6.27.4/ /usr/src/kernels/v2.6.27.4/ Preparing to compile for kernel version 2.6.27 VIDEO_PXA27x: Requires at least kernel 2.6.29 USB_STV06XX: Requires at least kernel 2.6.28 /usr/src/kernels/v2.6.27.4.i5400//scripts/kconfig/mconf ./Kconfig # # configuration written to .config #*** End of Linux kernel configuration.
*** Execute 'make' to build the kernel or try 'make help'.make[1]: Saindo do diretório `/home/v4l/master/v4l' [v4l@pedra master]$ grep CX88 v4l/.config
CONFIG_VIDEO_CX88=mCONFIG_VIDEO_CX88_ALSA=mCONFIG_VIDEO_CX88_BLACKBIRD=mCONFIG_VIDEO_CX88_DVB=mCONFIG_VIDEO_CX88_MPEG=mCONFIG_VIDEO_CX88_VP3054=mWith 2.6.27, everything is OK.
So, it seems that a fix at some kernel between 2.6.22 and 2.6.27 changed (or fixed) the
Kconfigbehaviour.I suspect that the better fix for this would be to run something like:
Quoted 6 lines
cat .config|sed s,'=y','=m'
For kernels older than 2.6.27.
Maybe Hans can give us a hint on what kernel this issue were solved, with his build environment.
2.6.21 is wrong, 2.6.22 is right. Cause: dependency on
VIDEOBUF_DMA_SG, which has a dependency onCONFIG_HAS_DMA, which was apparently introduced in 2.6.22 and didn't exist in 2.6.21.
Quoted 8 lines
Quoted 1 line
This is fixed by the attached diff.
No, it didn't fix. I'm still getting this issue with 2.6.18.
Btw, on RHEL5 2.6.18 kernel,
HAS_DMAdoes exist:$ grep CONFIG_HAS_DMA /usr/src/kernels/2.6.18-125.el5-x86_64/.config CONFIG_HAS_DMA=y
Oops, this fixes a different bug. It is still a bug fix, though, since it prevents CX88 from being build at all on any vanilla kernels < 2.6.22. Can you apply it?
Quoted 1 line
Also, the original reporter were for an Ubuntu kernel 2.6.22.
I did some more testing and the bug disappears in kernel 2.6.25. Also, if I just run 'make', then the .config file it produces is fine. I wonder if it isn't a bug in menuconfig itself.
Regards,
Hans
Quoted 12 lines
Quoted 9 lines
Signed-off-by Hans Verkuil <[email protected]>BTW, all the scripts I use to setup and run the build environment are available here: http://www.xs4all.nl/%7Ehverkuil/logs/scripts.tar.bz2
Regards,
Hans
Cheers,
Mauro
Signature · 1 line
Hans Verkuil - video4linux developer - sponsored by TANDBERG
Quoted 6 lines · On Tue, 10 Feb 2009 22:21:39 +0100 Hans Verkuil <[email protected]> wrote:
Quoted 2 lines
$ grep CONFIG_HAS_DMA /usr/src/kernels/2.6.18-125.el5-x86_64/.config CONFIG_HAS_DMA=yOops, this fixes a different bug. It is still a bug fix, though, since it prevents CX88 from being build at all on any vanilla kernels < 2.6.22. Can you apply it?
Applied, thanks.
Quoted 5 lines
Quoted 1 line
Also, the original reporter were for an Ubuntu kernel 2.6.22.
I did some more testing and the bug disappears in kernel 2.6.25. Also, if I just run 'make', then the .config file it produces is fine. I wonder if it isn't a bug in menuconfig itself.
It seems to be a bug at the Kbuild, fixed on Feb, 2008, on this changeset:
commit 587c90616a5b44e6ccfac38e64d4fecee51d588c (attached).
As explained, after the patch description, the value for the Kconfig var, after the patch, uses this formula:
(value && dependency) || select
where value is the default value.
Since CONFIG_CX88_MPEG is defined as:
config VIDEO_CX88_MPEG
tristate
depends on VIDEO_CX88_DVB || VIDEO_CX88_BLACKBIRD
default yAnd there there's no select, the value of CONFIG_CX88_MPEG is determined by:
('y' && dependency)The most complex case is when we have CX88 defined as:
CX88 = 'y'
if both CX88_DVB and CX88_BLACKBIRD are defined as 'm' (or one of them is 'n' and the other is 'm'), then CX88_MPEG is defined as:
CX88_MPEG = 'm'
If one of CX88_DVB or CX88_BLACKBIRD is defined as 'y'; then we have:
CX88_MPEG = 'y'
If both are 'n', we have:
CX88_MPEG = 'n'
So, it seems that, after commit 587c90616a5b44e6ccfac38e64d4fecee51d588c, everything is working as expected. We just need to provide a hack at the out-of-tree build system for kernels that don't have this commit applied.
Cheers,
Mauro
commit 587c90616a5b44e6ccfac38e64d4fecee51d588c
Author: Roman Zippel <[email protected]> Date: Mon Feb 11 21:13:47 2008 +0100
kconfig: fix select in combination with default
> The attached .config (with current -git) results in a compile > error since it contains:
>
> CONFIG_X86=y
> # CONFIG_EMBEDDED is not set
> CONFIG_SERIO=m
> CONFIG_SERIO_I8042=y
>
> Looking at drivers/input/serio/Kconfig I simply don't get how this > can happen.
You've hit the rather subtle rules of select vs default. What happened is that SERIO is selected to m, but SERIO_I8042 isn't selected so the default of y is used instead.
We already had the problem in the past that select and default don't work well together, so this patch cleans this up and makes the rule hopefully more straightforward. Basically now the value is calculated like this:
(value && dependency) || select
where the value is the user choice (if available and the symbol is visible) or default.
In this case it means SERIO and SERIO_I8042 are both set to y due to their default and if SERIO didn't had the default, then the SERIO_I8042 value would be limited to m due to the dependency.
I tested this patch with more 10000 random configs and above case is the only the difference that showed up, so I hope there is nothing that depended on the old more complex and subtle rules.
scripts/kconfig/symbol.c +21 -13
@@ -298,22 +298,30 @@ void sym_calc_value(struct symbol *sym)if (sym_is_choice_value (sym) && sym->visible == yes) { prop =sym_get_choice_prop (sym); newval.tri = (prop_get_symbol (prop)->curr.val == sym) ? yes : no; - }else if (EXPR_OR (sym->visible, sym->rev_dep.tri) != no) { - sym->flags |=SYMBOL_WRITE ; -if (sym_has_value (sym)) - newval.tri = sym->def[S_DEF_USER ].tri; -else if (!sym_is_choice (sym)) { - prop =sym_get_default_prop (sym); -if (prop) - newval.tri =expr_calc_value (prop->expr); + }else { +if (sym->visible != no) { +/* if the symbol is visible use the user value +* if available, otherwise try the default value +*/ + sym->flags |=SYMBOL_WRITE ; +if (sym_has_value (sym)) { + newval.tri =EXPR_AND (sym->def[S_DEF_USER ].tri, + sym->visible); + goto calc_newval; + } } - newval.tri =EXPR_OR (EXPR_AND (newval.tri, sym->visible), sym->rev_dep.tri); - }else if (!sym_is_choice (sym)) { - prop =sym_get_default_prop (sym); -if (prop) { +if (sym->rev_dep.tri != no) sym->flags |=SYMBOL_WRITE ; - newval.tri =expr_calc_value (prop->expr); +if (!sym_is_choice (sym)) { + prop =sym_get_default_prop (sym); +if (prop) { + sym->flags |=SYMBOL_WRITE ; + newval.tri =EXPR_AND (expr_calc_value (prop->expr), + prop->visible.tri); + } } + calc_newval: + newval.tri =EXPR_OR (newval.tri, sym->rev_dep.tri); }if (newval.tri == mod &&sym_get_type (sym) ==S_BOOLEAN ) newval.tri = yes;
Quoted 11 lines · Mauro Carvalho Chehab
Quoted 3 lines
I did some more testing and the bug disappears in kernel 2.6.25. Also, if I just run 'make', then the .config file it produces is fine. I wonder if it isn't a bug in menuconfig itself.
It seems to be a bug at the
Kbuild, fixed on Feb, 2008, on this changeset:
commit587c90616a5b44e6ccfac38e64d4fecee51d588c(attached).As explained, after the patch description, the value for the
Kconfigvar, after the patch, uses this formula:(value && dependency) || select
It's odd that the patch is for "fix select in combination with default", yet there is no select used for CX88_DVB. I think what you've done with CX88_MPEG is something that nothing else in has used before, which made use of the behavior introduced by this patch in a new way.
Quoted 11 lines
And there there's no select, the value of
CONFIG_CX88_MPEGis determined by:('y' && dependency)The most complex case is when we have CX88 defined as:
CX88 = 'y'if both
CX88_DVBandCX88_BLACKBIRDare defined as 'm' (or one of them is 'n' and the other is 'm'), thenCX88_MPEGis defined as:CX88_MPEG = 'm'If one of
CX88_DVBorCX88_BLACKBIRDis defined as 'y'; then we have:
Quoted 8 lines
CX88_MPEG = 'y'If both are 'n', we have:
CX88_MPEG = 'n'So, it seems that, after commit
587c90616a5b44e6ccfac38e64d4fecee51d588c, everything is working as expected. We just need to provide a hack at the out-of-tree build system for kernels that don't have this commit applied.
I still think using select is better. What Roman Zippel was talking about was the mess with select and the tuner drivers. I agree that's a mess and there are better ways to do it without using select. But the MPEG module is like a library used by just DVB and BLACKBIRD. It seems like the ideal case for using select.
Quoted 8 lines · On Tue, 10 Feb 2009 17:20:52 -0800 (PST) Trent Piepho <[email protected]>…
Quoted 7 lines · Mauro Carvalho Chehab
Quoted 3 lines
I did some more testing and the bug disappears in kernel 2.6.25. Also, if I just run 'make', then the .config file it produces is fine. I wonder if it isn't a bug in menuconfig itself.
It seems to be a bug at the
Kbuild, fixed on Feb, 2008, on this changeset:
commit587c90616a5b44e6ccfac38e64d4fecee51d588c(attached).
Quoted 7 lines
Quoted 4 lines
As explained, after the patch description, the value for the
Kconfigvar, after the patch, uses this formula:(value && dependency) || selectIt's odd that the patch is for "fix select in combination with default", yet there is no select used for
CX88_DVB.
If you look at the patch code, it fixed the handling for non-visible Kconfig vars.
Quoted 23 lines
I think what you've done with
CX88_MPEGis something that nothing else in has used before, which made use of the behavior introduced by this patch in a new way.Quoted 11 lines
And there there's no select, the value of
CONFIG_CX88_MPEGis determined by:('y' && dependency)The most complex case is when we have CX88 defined as:
CX88 = 'y'if both
CX88_DVBandCX88_BLACKBIRDare defined as 'm' (or one of them is 'n' and the other is 'm'), thenCX88_MPEGis defined as:CX88_MPEG = 'm'If one of
CX88_DVBorCX88_BLACKBIRDis defined as 'y'; then we have:Quoted 8 lines
CX88_MPEG = 'y'If both are 'n', we have:
CX88_MPEG = 'n'So, it seems that, after commit
587c90616a5b44e6ccfac38e64d4fecee51d588c, everything is working as expected. We just need to provide a hack at the out-of-tree build system for kernels that don't have this commit applied.
Quoted 5 lines
I still think using select is better. What Roman Zippel was talking about was the mess with select and the tuner drivers. I agree that's a mess and there are better ways to do it without using select. But the MPEG module is like a library used by just DVB and BLACKBIRD. It seems like the ideal case for using select.
I can't foresee any case where this logic would fail in the future.
Let's suppose that some newer dependencies would be needed. If those dependencies will be properly added at DVB and/or at BLACKBIRD, this logic will still work. There's no possible case where CX88_MPEG would need a dependency that aren't needed by either DVB and/or BLACKBIRD. Also, by using depends on, instead of select, will warrant that CX88_MPEG will have the proper 'y' or 'm' value, depending on the dependencies of CX88_DVB and CX88_BLACKBIRD.
It seems that this is exactly what Roman expected to be fixed by changing from "select" to "depends on" with tuners.
Cheers,
Mauro
Quoted 8 lines · Mauro Carvalho Chehab
Quoted 5 lines · On Tue, 10 Feb 2009 17:20:52 -0800 (PST) Trent Piepho <[email protected]>…
I still think using select is better. What Roman Zippel was talking about was the mess with select and the tuner drivers. I agree that's a mess and there are better ways to do it without using select. But the MPEG module is like a library used by just DVB and BLACKBIRD. It seems like the ideal case for using select.
Quoted 6 lines
I can't foresee any case where this logic would fail in the future.
Let's suppose that some newer dependencies would be needed. If those dependencies will be properly added at DVB and/or at BLACKBIRD, this logic will still work. There's no possible case where
CX88_MPEGwould need a dependency that aren't needed by either DVB and/or BLACKBIRD. Also, by using depends on,
I think this is the reason select is the better choice here. The only reason select might have a problem is if CX88_MPEG had a dependency that that DVB and BLACKBIRD do not have. But like you said, that isn't going to happen, so there is no problem with select.
Quoted 2 lines
instead of select, will warrant that
CX88_MPEGwill have the proper 'y' or 'm' value, depending on the dependencies ofCX88_DVBandCX88_BLACKBIRD.
Using select like I did will result in CX88_MPEG having the proper 'y' or 'm' as well.
Quoted 2 lines
It seems that this is exactly what Roman expected to be fixed by changing from "select" to "depends on" with tuners.
The problem with the tuners is that the many tuners each have many different dependencies and are used by multiple drivers. select requires that the drivers using the tuners consider those depedencies and if the tuners change the drivers must also be updated. But with CX88_MPEG we don't have this problem.
We also want to be able to manually override tuner selection, which makes things even more complicated for the tuners.
Hi,
Just tried it right now, with these simple steps:
· hg clone http://linuxtv.org/hg/v4l-dvb
· cd v4l-dvb
· make menuconfig & exit from it without touching anything
I attach the resulting v4l/.config file generated. As you can see, CX88_MPEG is being marked as 'Y' instead that 'M':
$ grep CX88 v4l/.config CONFIG_VIDEO_CX88=m CONFIG_VIDEO_CX88_ALSA=m CONFIG_VIDEO_CX88_BLACKBIRD=m CONFIG_VIDEO_CX88_DVB=m CONFIG_VIDEO_CX88_MPEG=y CONFIG_VIDEO_CX88_VP3054=m
I'm compiling against Ubuntu kernel 2.6.22, which I know it's pretty old. Can this make any difference?
Best regards,
Eduard
PS: by the way, this works fine when using revision 10189, just before CX88 dependencies got altered.
2009/2/10 Mauro Carvalho Chehab <[email protected]>:
Quoted 86 lines
Quoted 36 lines · On Thu, 5 Feb 2009 16:59:16 +0100 Eduard Huguet <[email protected]> wrote:
Hi,
Maybe I'm wrong, but I think there is something wrong in currentKconfigfile for cx88 drivers. I've been struggling for some hours trying to find why, after compiling a fresh copy of the LinuxTV HG drivers, I wasn't unable to modprobe cx88-dvb module, which I need for HVR-3000.The module was not being load because kernel was failing to find
cx8802_get_driver, etc... entry points, which are exported bycx88-mpeg.c.The strange part is that, according to the cx88/Kconfig file this file should be automatically added as dependency if either
CX88_DVBorCX88_BLACKBIRDwere selected,
but for some strange reason it wasn't.After a 'make menuconfig' in HG tree the kernel configuration contained these lines (this was using the default config, without adding / removing anything):
CONFIG_VIDEO_CX88=mCONFIG_VIDEO_CX88_ALSA=mCONFIG_VIDEO_CX88_BLACKBIRD=mCONFIG_VIDEO_CX88_DVB=mCONFIG_VIDEO_CX88_MPEG=yCONFIG_VIDEO_CX88_VP3054=mNotice that they are all marked as 'm' excepting
CONFIG_VIDEO_CX88_MPEG, which is marked as 'y'. I don't know if it's relevant or not, but the fact is that the module was not being compiled at all. The option was not visible inside menuconfig, by the way.I've done some changes inside
Kconfigto make it visible in menuconfig, and by doing this I've been able to set it to 'm' and rebuild, which has just worked apparently.Quoted 6 lines
This
Kconfigfile was edited in revisions 10190 & 10191, precisely for reasons related to cx8802 dependencies, so I'm not sure the solution taken there was the right one.Best regards,
Eduard HuguetEduard,
I suspect that this is some bug on the out-of-tree build. In order to test it, I've tried to reproduce what I think you did.
So, I ran the following procedures over the devel branch on my -git tree:
make allmodconfig (to select everything as 'm')
I manually unselect all drivers at the tree, keeping only CX88 and submodules. All CX88 submodules as "M".I've repeated the procedure, this time starting with make allyesconfig.
On both cases, I got those configs:
CONFIG_VIDEO_CX88=mCONFIG_VIDEO_CX88_ALSA=mCONFIG_VIDEO_CX88_BLACKBIRD=mCONFIG_VIDEO_CX88_DVB=mCONFIG_VIDEO_CX88_MPEG=mCONFIG_VIDEO_CX88_VP3054=mMy -git tree were updated up to this changeset:
commit
67e70baf043cfdcdaf5972bc94be82632071536bAuthor: Devin Heitmueller <[email protected]> Date: Mon Jan 26 03:07:59 2009 -0300V4L/DVB (10411): s5h1409: Perform s5h1409 soft reset after tuningI tried also reproduce the bug you've mentioned at the v4l-dvb tree, but unfortunately, I couldn't (the .config file is attached). I got exactly the same result as compiling in-kernel.
Could you please send us your buggy .config?
Cheers,
Mauro
Quoted 10 lines · On Tue, 10 Feb 2009 12:57:47 +0100 Eduard Huguet <[email protected]> wrote:
Hi,
Just tried it right now, with these simple steps:· hg clone http://linuxtv.org/hg/v4l-dvb
· cd v4l-dvb
· make menuconfig & exit from it without touching anythingI attach the resulting v4l/.config file generated. As you can see,
CX88_MPEGis being marked as 'Y' instead that 'M':
Quoted 7 lines
$ grep CX88 v4l/.config CONFIG_VIDEO_CX88=m CONFIG_VIDEO_CX88_ALSA=m CONFIG_VIDEO_CX88_BLACKBIRD=m CONFIG_VIDEO_CX88_DVB=m CONFIG_VIDEO_CX88_MPEG=y CONFIG_VIDEO_CX88_VP3054=m
Weird. I 've applied your changeset and copied it at v4l/.config. Then, a make menuconfig and exit, just to be sure that kernel build would touch on it. Everything worked fine.
Quoted 2 lines
I'm compiling against Ubuntu kernel 2.6.22, which I know it's pretty old. Can this make any difference?
I'm using here kernel 2.6.28.2. Maybe this is some bug on the Ubuntu's kernel kbuild, since make *config options at the out-of-tree kernel is a wrapper to the kernel kbuild.
Could you please try the same procedure with a newer kernel? There's no need to install the kernel on your machine. All you need to do is something like:
wget <newer kernel like 2.6.28.4>
tar -xvfoj <kernel>
cd linux
make init
cd ~/v4l-dvb
make release DIR=<newer kernel patch>
make menuconfig
The "make release" will allow you to use the Kbuild of the newer kernel.
Quoted 6 lines
Best regards,
EduardPS: by the way, this works fine when using revision 10189, just before CX88 dependencies got altered.
The problem is that the old Kconfig were causing breakages upstream.
Cheers,
Mauro
Quoted 32 lines · On Tue, 10 Feb 2009 10:09:55 -0200 Mauro Carvalho Chehab…
Quoted 10 lines · On Tue, 10 Feb 2009 12:57:47 +0100 Eduard Huguet <[email protected]> wrote:
Hi,
Just tried it right now, with these simple steps:· hg clone http://linuxtv.org/hg/v4l-dvb
· cd v4l-dvb
· make menuconfig & exit from it without touching anythingI attach the resulting v4l/.config file generated. As you can see,
CX88_MPEGis being marked as 'Y' instead that 'M':Quoted 7 lines
$ grep CX88 v4l/.config CONFIG_VIDEO_CX88=m CONFIG_VIDEO_CX88_ALSA=m CONFIG_VIDEO_CX88_BLACKBIRD=m CONFIG_VIDEO_CX88_DVB=m CONFIG_VIDEO_CX88_MPEG=y CONFIG_VIDEO_CX88_VP3054=mWeird. I 've applied your changeset and copied it at v4l/.config. Then, a make menuconfig and exit, just to be sure that kernel build would touch on it. Everything worked fine.
Quoted 2 lines
I'm compiling against Ubuntu kernel 2.6.22, which I know it's pretty old. Can this make any difference?
I'm using here kernel 2.6.28.2. Maybe this is some bug on the Ubuntu's kernel kbuild, since make *config options at the out-of-tree kernel is a wrapper to the kernel kbuild.
Quoted 6 lines
Could you please try the same procedure with a newer kernel? There's no need to install the kernel on your machine. All you need to do is something like:
wget <newer kernel like 2.6.28.4>
tar -xvfoj <kernel>
cd linux
Hmm.. you'll need to provide some .config to the downloaded kernel. You may do it my running "make allyesconfig" or "make allmodconfig". Another approach would be to run "make oldconfig", but, in the latter case, you would need to answer to several questions (it is probably ok to just press enter to all questions).
Quoted 12 lines
make init
cd ~/v4l-dvb
make release DIR=<newer kernel patch>
make menuconfigThe "make release" will allow you to use the
Kbuildof the newer kernel.Quoted 4 lines
Best regards,
Eduard
Quoted 7 lines
Quoted 2 lines
PS: by the way, this works fine when using revision 10189, just before CX88 dependencies got altered.
The problem is that the old
Kconfigwere causing breakages upstream.Cheers,
Mauro
Cheers,
Mauro
I'll give it a try, thanks.
Regards,
Eduard
2009/2/10 Mauro Carvalho Chehab <[email protected]>:
Quoted 58 lines
Quoted 10 lines · On Tue, 10 Feb 2009 12:57:47 +0100 Eduard Huguet <[email protected]> wrote:
Hi,
Just tried it right now, with these simple steps:· hg clone http://linuxtv.org/hg/v4l-dvb
· cd v4l-dvb
· make menuconfig & exit from it without touching anythingI attach the resulting v4l/.config file generated. As you can see,
CX88_MPEGis being marked as 'Y' instead that 'M':Quoted 7 lines
$ grep CX88 v4l/.config CONFIG_VIDEO_CX88=m CONFIG_VIDEO_CX88_ALSA=m CONFIG_VIDEO_CX88_BLACKBIRD=m CONFIG_VIDEO_CX88_DVB=m CONFIG_VIDEO_CX88_MPEG=y CONFIG_VIDEO_CX88_VP3054=mWeird. I 've applied your changeset and copied it at v4l/.config. Then, a make menuconfig and exit, just to be sure that kernel build would touch on it. Everything worked fine.
Quoted 2 lines
I'm compiling against Ubuntu kernel 2.6.22, which I know it's pretty old. Can this make any difference?
I'm using here kernel 2.6.28.2. Maybe this is some bug on the Ubuntu's kernel kbuild, since make *config options at the out-of-tree kernel is a wrapper to the kernel kbuild.
Could you please try the same procedure with a newer kernel? There's no need to install the kernel on your machine. All you need to do is something like:
wget <newer kernel like 2.6.28.4>
tar -xvfoj <kernel>
cd linux
make initcd ~/v4l-dvb
make release DIR=<newer kernel patch>
make menuconfigThe "make release" will allow you to use the
Kbuildof the newer kernel.Quoted 6 lines
Best regards,
EduardPS: by the way, this works fine when using revision 10189, just before CX88 dependencies got altered.
The problem is that the old
Kconfigwere causing breakages upstream.Cheers,
Mauro