LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 01-18-2018, 09:14 AM   #1
Whynot
Member
 
Registered: Jan 2005
Posts: 98

Rep: Reputation: 18
New Kernel for Conexant cx24120/cx24118 dvbs


Hi everyone
I had already opened a Thread but I think I need to compile new Kernel for my Ubuntu Linux 64-bit System.But I never compile any Kernel.That's why I opened new Thread.

https://www.linuxquestions.org/quest...bs-4175621112/

Code:
$ uname -a
Linux whynot-Bus 4.13.0-21-generic #24-Ubuntu SMP Mon Dec 18 17:29:16 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

https://github.com/pboettch/linux/tree/cx24120-v2

like that is it right?Or I need to use just only for Ubuntu different commands.
Code:
xz -cd linux-4.13.0-21.tar.xz | tar xvf -

xz -cd ../patch-4.13.0-21 | patch -p1

cd linux

make mrproper

Thanks
 
Old 01-18-2018, 02:04 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,623

Rep: Reputation: 208Reputation: 208Reputation: 208
The commands are the same for all systems. If you want to use the git tree you mention, you can also download the whole of it (git clone <link to the repo>) or apply the patch as you do in your example commands.

Then I'd do something like
Code:
cd linux
cp /boot/config-4.13* .config

# regenerate the config file based on your currently running system
make olddefconfig

make linux modules

sudo make install
 
1 members found this post helpful.
Old 01-18-2018, 03:28 PM   #3
Whynot
Member
 
Registered: Jan 2005
Posts: 98

Original Poster
Rep: Reputation: 18
Can you please explain more precisely?
Code:
:/usr/src/linux-source-4.13.0$ ls
debian  debian.master  linux-source-4.13.0.tar.bz2
Code:
:/usr/src/linux-source-4.13.0$sudo su
:/usr/src/linux-source-4.13.0#  xz -cd linux-source-4.13.0.tar.bz2 | tar xjf -
xz: linux-source-4.13.0.tar.bz2: File format not recognized

bzip2: Compressed file ends unexpectedly;
	perhaps it is corrupted?  *Possible* reason follows.
bzip2: Inappropriate ioctl for device
	Input file = (stdin), output file = (stdout)

It is possible that the compressed file(s) have become corrupted.
You can use the -tvv option to test integrity of such files.

You can use the `bzip2recover' program to attempt to recover
data from undamaged sections of corrupted files.

tar: Child returned status 2
tar: Error is not recoverable: exiting now
Code:
:/usr/src/linux-source-4.13.0#  xz -cd linux-source-4.13.0.tar.bz2 | tar xvf -
xz: linux-source-4.13.0.tar.bz2: File format not recognized
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
 
Old 01-20-2018, 12:03 AM   #4
AwesomeMachine
Senior Member
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 3,583

Rep: Reputation: 644Reputation: 644Reputation: 644Reputation: 644Reputation: 644Reputation: 644
For tar.bz2,
Code:
$ tar jxvf file.tar.bz2
No xz.
 
Old 01-23-2018, 02:58 AM   #5
Whynot
Member
 
Registered: Jan 2005
Posts: 98

Original Poster
Rep: Reputation: 18
https://github.com/pboettch/linux/bl...4120-v2/README

Last edited by Whynot; 01-23-2018 at 03:14 AM.
 
Old 01-23-2018, 03:14 PM   #6
Whynot
Member
 
Registered: Jan 2005
Posts: 98

Original Poster
Rep: Reputation: 18
I just compiled new Kernel As described here
https://wiki.ubuntu.com/KernelTeam/GitKernelBuild
Code:
uname -a
Linux whynot-Bus 4.15.0-rc9-custom #1 SMP Tue Jan 23 13:46:29 CET 2018 x86_64 x86_64 x86_64 GNU/Linux
but I dont know how could we patch or add this latest drivers

https://github.com/pboettch/linux/tree/cx24120-v2
https://github.com/pboettch/linux/tr.../dvb-frontends

Code:
cx24117.c 	[media] cx24117: fix a buffer overflow when checking userspace params 	3 years ago
	cx24117.h 	[media] Add and use IS_REACHABLE macro 	3 years ago
	cx24120.c 	[media] cx24120: fix minor checkpatch-error 	3 years ago
	cx24120.h 	[media] cx24120: fix strict checkpatch-errors 	3 years ago
	cx24123.c 	[media] cx24123: fix kernel oops due to missing parent pointer 	3 years ago
	cx24123.h 	[media] cx24123/mb86a20s/s921: fix compiler warnings


Code:
$ kaffeine -d
23-01-18 23:03:20.209 [Debug   ] kaffeine.vlc: Using libVLC with args: --no-video-title-show
23-01-18 23:03:20.265 [Debug   ] kaffeine.mediawidget: video resized to 0.0
23-01-18 23:03:20.327 [Info    ] kaffeine.dvb: Using built-in dvb device manager
23-01-18 23:03:20.562 [Debug   ] kaffeine.dev: New device detected: /org/kde/solid/udev/sys/devices/pci0000:00/0000:00:1e.0/0000:07:01.0/dvb/dvb0.demux0
23-01-18 23:03:20.562 [Debug   ] kaffeine.dev: New device detected: /org/kde/solid/udev/sys/devices/pci0000:00/0000:00:1e.0/0000:07:01.0/dvb/dvb0.dvr0
23-01-18 23:03:20.562 [Debug   ] kaffeine.dev: New device detected: /org/kde/solid/udev/sys/devices/pci0000:00/0000:00:1e.0/0000:07:01.0/dvb/dvb0.frontend0
23-01-18 23:03:20.564 [Debug   ] kaffeine.dev: Device Conexant CX24120/CX24118 (/dev/dvb/adapter0/frontend0) capabilities:
23-01-18 23:03:20.564 [Debug   ] kaffeine.dev:      CAN_2G_MODULATION
23-01-18 23:03:20.564 [Debug   ] kaffeine.dev:      CAN_FEC_1_2
23-01-18 23:03:20.564 [Debug   ] kaffeine.dev:      CAN_FEC_2_3
23-01-18 23:03:20.564 [Debug   ] kaffeine.dev:      CAN_FEC_3_4
23-01-18 23:03:20.565 [Debug   ] kaffeine.dev:      CAN_FEC_4_5
23-01-18 23:03:20.565 [Debug   ] kaffeine.dev:      CAN_FEC_5_6
23-01-18 23:03:20.565 [Debug   ] kaffeine.dev:      CAN_FEC_6_7
23-01-18 23:03:20.565 [Debug   ] kaffeine.dev:      CAN_FEC_7_8
23-01-18 23:03:20.565 [Debug   ] kaffeine.dev:      CAN_FEC_AUTO
23-01-18 23:03:20.565 [Debug   ] kaffeine.dev:      CAN_INVERSION_AUTO
23-01-18 23:03:20.565 [Debug   ] kaffeine.dev:      CAN_QPSK
23-01-18 23:03:20.565 [Debug   ] kaffeine.dev:      CAN_RECOVER
23-01-18 23:03:20.565 [Debug   ] kaffeine.dev: DVB API Version 5.10, Current v5 delivery system: DVBS
23-01-18 23:03:20.565 [Debug   ] kaffeine.dev: Supported delivery systems: 
23-01-18 23:03:20.565 [Debug   ] kaffeine.dev:     [DVBS]
23-01-18 23:03:20.565 [Debug   ] kaffeine.dev:      DVBS2
23-01-18 23:03:20.565 [Debug   ] kaffeine.dev: supports lnb UNIVERSAL
23-01-18 23:03:20.565 [Debug   ] kaffeine.dev: supports lnb DBS
23-01-18 23:03:20.565 [Debug   ] kaffeine.dev: supports lnb EXTENDED
23-01-18 23:03:20.565 [Debug   ] kaffeine.dev: supports lnb STANDARD
23-01-18 23:03:20.565 [Debug   ] kaffeine.dev: supports lnb L10700
23-01-18 23:03:20.565 [Debug   ] kaffeine.dev: supports lnb L11300
23-01-18 23:03:20.565 [Debug   ] kaffeine.dev: supports lnb ENHANCED
23-01-18 23:03:20.565 [Debug   ] kaffeine.dev: supports lnb QPH031
23-01-18 23:03:20.566 [Debug   ] kaffeine.dev: supports lnb C-BAND
23-01-18 23:03:20.566 [Debug   ] kaffeine.dev: supports lnb C-MULT
23-01-18 23:03:20.566 [Debug   ] kaffeine.dev: supports lnb DISHPRO
23-01-18 23:03:20.566 [Debug   ] kaffeine.dev: supports lnb 110BS
23-01-18 23:03:20.566 [Debug   ] kaffeine.dev: supports lnb STACKED-BRASILSAT
23-01-18 23:03:20.566 [Debug   ] kaffeine.dev: supports lnb OI-BRASILSAT
23-01-18 23:03:20.566 [Debug   ] kaffeine.dev: supports lnb AMAZONAS
23-01-18 23:03:20.566 [Debug   ] kaffeine.dev: supports lnb AMAZONAS
23-01-18 23:03:20.566 [Debug   ] kaffeine.dev: supports lnb GVT-BRASILSAT
23-01-18 23:03:20.566 [Debug   ] kaffeine.dev: SEC: set voltage to OFF
23-01-18 23:03:20.566 [Info    ] kaffeine.dev: Found dvb device P13d0210313d02103: Conexant CX24120/CX24118
23-01-18 23:03:20.566 [Debug   ] kaffeine.dev: New device detected: /org/kde/solid/udev/sys/devices/pci0000:00/0000:00:1e.0/0000:07:01.0/dvb/dvb0.net0
23-01-18 23:03:20.606 [Debug   ] kaffeine.mediawidget: video resized to 0.0
23-01-18 23:03:20.609 [Warning ] Invalid Context= "stock" line for icon theme:  "/usr/share/icons/ubuntu-mono-dark/stock/16/"
23-01-18 23:03:20.609 [Warning ] Invalid Context= "stock" line for icon theme:  "/usr/share/icons/ubuntu-mono-dark/stock/22/"
23-01-18 23:03:20.609 [Warning ] Invalid Context= "stock" line for icon theme:  "/usr/share/icons/ubuntu-mono-dark/stock/24/"
23-01-18 23:03:20.609 [Warning ] Invalid Context= "stock" line for icon theme:  "/usr/share/icons/ubuntu-mono-dark/stock/32/"
23-01-18 23:03:20.609 [Warning ] Invalid Context= "stock" line for icon theme:  "/usr/share/icons/ubuntu-mono-dark/stock/48/"
23-01-18 23:03:20.609 [Warning ] Invalid Context= "stock" line for icon theme:  "/usr/share/icons/ubuntu-mono-dark/stock/64/"
23-01-18 23:03:20.609 [Warning ] Invalid Context= "stock" line for icon theme:  "/usr/share/icons/ubuntu-mono-dark/stock/128/"
23-01-18 23:03:24.577 [Debug   ] kaffeine.dev: Device Conexant CX24120/CX24118 (/dev/dvb/adapter0/frontend0) capabilities:
23-01-18 23:03:24.577 [Debug   ] kaffeine.dev:      CAN_2G_MODULATION
23-01-18 23:03:24.577 [Debug   ] kaffeine.dev:      CAN_FEC_1_2
23-01-18 23:03:24.577 [Debug   ] kaffeine.dev:      CAN_FEC_2_3
23-01-18 23:03:24.577 [Debug   ] kaffeine.dev:      CAN_FEC_3_4
23-01-18 23:03:24.577 [Debug   ] kaffeine.dev:      CAN_FEC_4_5
23-01-18 23:03:24.577 [Debug   ] kaffeine.dev:      CAN_FEC_5_6
23-01-18 23:03:24.578 [Debug   ] kaffeine.dev:      CAN_FEC_6_7
23-01-18 23:03:24.578 [Debug   ] kaffeine.dev:      CAN_FEC_7_8
23-01-18 23:03:24.578 [Debug   ] kaffeine.dev:      CAN_FEC_AUTO
23-01-18 23:03:24.578 [Debug   ] kaffeine.dev:      CAN_INVERSION_AUTO
23-01-18 23:03:24.578 [Debug   ] kaffeine.dev:      CAN_QPSK
23-01-18 23:03:24.578 [Debug   ] kaffeine.dev:      CAN_RECOVER
23-01-18 23:03:24.578 [Debug   ] kaffeine.dev: DVB API Version 5.10, Current v5 delivery system: DVBS
23-01-18 23:03:24.578 [Debug   ] kaffeine.dev: Supported delivery systems: 
23-01-18 23:03:24.578 [Debug   ] kaffeine.dev:     [DVBS]
23-01-18 23:03:24.578 [Debug   ] kaffeine.dev:      DVBS2
23-01-18 23:03:24.578 [Warning ] kaffeine.dev: Cannot open dvr /dev/dvb/adapter0/dvr0
23-01-18 23:03:24.578 [Debug   ] kaffeine.dev: SEC: set voltage to OFF

Last edited by Whynot; 01-23-2018 at 05:46 PM.
 
Old 01-24-2018, 04:53 PM   #7
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,623

Rep: Reputation: 208Reputation: 208Reputation: 208
Could you please explain us in more details what do you want to do? I didn't understand it very well. Do you want to add the cx2...c drivers to the latest kernel? Or enable some drivers that you're missing?
 
Old 01-25-2018, 04:39 AM   #8
Whynot
Member
 
Registered: Jan 2005
Posts: 98

Original Poster
Rep: Reputation: 18
I dont know what Im going to do with this card.I would like to compile new firmware or moduls if its possible?I did try to compile new kernel with old .config file.Am I need to select or move models for the new Kernel under this menus?
Code:
make menuconfig
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2018-01-25 11-01-08.png
Views:	1
Size:	177.3 KB
ID:	26805  

Last edited by Whynot; 01-25-2018 at 05:08 AM.
 
Old 01-25-2018, 07:46 AM   #9
Whynot
Member
 
Registered: Jan 2005
Posts: 98

Original Poster
Rep: Reputation: 18
I added Enable debug for the B2C2 FlexCop drivers.Now this is the output
Code:
$ dmesg | grep 'dvb\|DVB\|B2C2\|b2c2\|24120\|cx\|CX\|6421\|nxt'
[   24.141542] b2c2-flexcop: B2C2 FlexcopII/II(b)/III digital TV receiver chip loaded successfully
[   24.564221] dvbdev: DVB: registering new adapter (FlexCop Digital TV device)
[   24.566035] b2c2-flexcop: MAC address = 00:08:f9:e1:ac:0f
[   24.566309] CX24123: wrong demod revision: e9
[   25.806445] nxt200x: nxt200x_readbytes: i2c read error (addr 0x0a, err == -121)
[   25.806447] nxt200x: Unknown/Unsupported NXT chip: 00 00 00 00 00
[   27.772284] cx24120: Conexant cx24120/cx24118 - DVBS/S2 Satellite demod/tuner
[   27.772407] cx24120: Demod cx24120 rev. 0x07 detected.
[   27.772408] cx24120: Conexant cx24120/cx24118 attached.
[   27.963076] b2c2-flexcop: ISL6421 successfully attached.
[   27.963077] b2c2-flexcop: found 'Conexant CX24120/CX24118' .
[   27.963080] b2c2_flexcop_pci 0000:07:01.0: DVB: registering adapter 0 frontend 0 (Conexant CX24120/CX24118)...
[   27.963126] b2c2-flexcop: initialization of 'Sky2PC/SkyStar S2 DVB-S/S2 rev 3.3' at the 'PCI' bus controlled by a 'FlexCopIIb' complete
[  587.308988] cx24120: FW version 1.20.58.2

Last edited by Whynot; 01-25-2018 at 07:52 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Conexant cx24120/cx24118 dvbs Whynot Linux - Hardware 22 01-23-2018 05:44 PM
Conexant- Modem - Ubuntu -conexant cx20468 - URGENT javb Ubuntu 4 05-02-2007 08:58 PM
Avermedia DVBs capture card pyeco Linux - Newbie 5 05-23-2006 08:32 AM
Re: conexant modem and the 2.6 kernel spoody_goon Linux - Hardware 0 05-07-2006 03:03 PM
Conexant Modem Kernel 2.6.7 Mr. D. Linux - Hardware 16 10-14-2004 08:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 12:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration