Compile not working in Ubuntu with kernel 4.13.0-36-generic

Discussions for Linux infiniTV installations
Post Reply
bshant

Posts: 9
Joined: Mon Feb 26, 2018 7:42 am
Location:

HTPC Specs: Show details

Compile not working in Ubuntu with kernel 4.13.0-36-generic

#1

Post by bshant » Mon Feb 26, 2018 8:21 am

When I download the files at https://github.com/JamesRHarris/infinitv_pcie into a local directory, running make fails. Anybody have any better luck compiling with current kernels? I am running Mythbuntu 16.04.3 LTS (Xenial Xerus) with Mythtv 0.29.

dvr@dvr:~$ cd /home/dvr/Downloads/infinitv_pcie-master/

dvr@dvr:~/Downloads/infinitv_pcie-master$ ls -l
total 216
-rw-rw-r-- 1 dvr dvr 80 Jun 20 2017 98-ctn91xx.rules
-rw-rw-r-- 1 dvr dvr 6879 Jun 20 2017 ctn91xx_driver.c
-rw-rw-r-- 1 dvr dvr 527 Jun 20 2017 ctn91xx_driver.h
-rw-rw-r-- 1 dvr dvr 8920 Jun 20 2017 ctn91xx_event.c
-rw-rw-r-- 1 dvr dvr 1337 Jun 20 2017 ctn91xx_event.h
-rw-rw-r-- 1 dvr dvr 4739 Jun 20 2017 ctn91xx.h
-rw-rw-r-- 1 dvr dvr 10241 Jun 20 2017 ctn91xx_interrupt.c
-rw-rw-r-- 1 dvr dvr 709 Jun 20 2017 ctn91xx_interrupt.h
-rw-rw-r-- 1 dvr dvr 1594 Jun 20 2017 ctn91xx_ioctl.c
-rw-rw-r-- 1 dvr dvr 4056 Jun 20 2017 ctn91xx_ioctl.h
-rw-rw-r-- 1 dvr dvr 1220 Jun 20 2017 ctn91xx_kal.h
-rw-rw-r-- 1 dvr dvr 44140 Jun 20 2017 ctn91xx_mpeg.c
-rw-rw-r-- 1 dvr dvr 1944 Jun 20 2017 ctn91xx_mpeg.h
-rw-rw-r-- 1 dvr dvr 9154 Jun 20 2017 ctn91xx_net.c
-rw-rw-r-- 1 dvr dvr 389 Jun 20 2017 ctn91xx_net.h
-rw-rw-r-- 1 dvr dvr 7773 Jun 20 2017 ctn91xx_pci.c
-rw-rw-r-- 1 dvr dvr 135 Jun 20 2017 ctn91xx_pci.h
-rw-rw-r-- 1 dvr dvr 5418 Jun 20 2017 ctn91xx_registers.h
-rw-rw-r-- 1 dvr dvr 3939 Jun 20 2017 ctn91xx_reset.c
-rw-rw-r-- 1 dvr dvr 164 Jun 20 2017 ctn91xx_reset.h
-rw-rw-r-- 1 dvr dvr 3339 Jun 20 2017 ctn91xx_rpc.c
-rw-rw-r-- 1 dvr dvr 218 Jun 20 2017 ctn91xx_rpc.h
-rw-rw-r-- 1 dvr dvr 6751 Jun 20 2017 ctn91xx_rtp.c
-rw-rw-r-- 1 dvr dvr 985 Jun 20 2017 ctn91xx_rtp.h
-rw-rw-r-- 1 dvr dvr 6266 Jun 20 2017 ctn91xx_structs.h
-rw-rw-r-- 1 dvr dvr 14708 Jun 20 2017 ctn91xx_util.c
-rw-rw-r-- 1 dvr dvr 2784 Jun 20 2017 ctn91xx_util.h
-rw-rw-r-- 1 dvr dvr 1406 Jun 20 2017 Makefile
-rw-rw-r-- 1 dvr dvr 1659 Jun 20 2017 README

dvr@dvr:~/Downloads/infinitv_pcie-master$ sudo make install
[sudo] password for dvr:
Installing ctn91xx driver...
make[1]: Entering directory '/usr/src/linux-headers-4.13.0-36-generic'
INSTALL /home/dvr/Downloads/infinitv_pcie-master/ctn91xx.ko
At main.c:160:
- SSL error:02001002:system library:fopen:No such file or directory: bss_file.c:175
- SSL error:2006D080:BIO routines:BIO_new_file:no such file: bss_file.c:178
sign-file: certs/signing_key.pem: No such file or directory
DEPMOD 4.13.0-36-generic
make[1]: Leaving directory '/usr/src/linux-headers-4.13.0-36-generic'
cp 98-ctn91xx.rules /etc/udev/rules.d/
/sbin/depmod -a

User avatar
Crash2009

Posts: 4355
Joined: Thu May 17, 2012 12:38 am
Location: Ann Arbor, Michigan

HTPC Specs: Show details
5+ Yrs TGB Veteran

#2

Post by Crash2009 » Wed Feb 28, 2018 8:53 am


bshant

Posts: 9
Joined: Mon Feb 26, 2018 7:42 am
Location:

HTPC Specs: Show details

#3

Post by bshant » Thu Mar 01, 2018 8:45 am

No. The Change Log on the Ceton page http://cetoncorp.com/infinitv_support/l ... hange_log/ referenced in that post states that the latest kernel supported is 3.8. On the other hand, the README at the github site states that some files have been revised to allow the driver to compile under kernel 4.11.

I suppose what I'll have to do is reinstall Mythbuntu, update to kernel 4.11, install the InfiniTV 4 drivers, and never update the kernel again.

User avatar
Crash2009

Posts: 4355
Joined: Thu May 17, 2012 12:38 am
Location: Ann Arbor, Michigan

HTPC Specs: Show details
5+ Yrs TGB Veteran

#4

Post by Crash2009 » Sat Mar 03, 2018 12:17 am

I couldn't find the Delete Post button

User avatar
Crash2009

Posts: 4355
Joined: Thu May 17, 2012 12:38 am
Location: Ann Arbor, Michigan

HTPC Specs: Show details
5+ Yrs TGB Veteran

#5

Post by Crash2009 » Sat Mar 03, 2018 9:09 am

This one stalled in the same place as yours. ctn91xx.ko

Code: Select all

Installing ctn91xx driver...
make[1]: Entering directory `/usr/src/linux-headers-3.13.0-43-generic'
  INSTALL /home/zamily84/Downloads/ceton_infinitv_linux_driver/ctn91xx.ko
Can't read private key
  DEPMOD  3.13.0-43-generic
make[1]: Leaving directory `/usr/src/linux-headers-3.13.0-43-generic'
cp 98-ctn91xx.rules /etc/udev/rules.d/
/sbin/depmod -a 3.13.0-43-generic
https://www.linux.org/threads/install-d ... oob.10999/

User avatar
Crash2009

Posts: 4355
Joined: Thu May 17, 2012 12:38 am
Location: Ann Arbor, Michigan

HTPC Specs: Show details
5+ Yrs TGB Veteran

#6

Post by Crash2009 » Sat Mar 03, 2018 9:47 am

Cetonj Driver modified for Linux with support for Kernel 4.11

https://github.com/JamesRHarris/infinitv_pcie

Edit: I just noticed...this is the same link as yours in the first post.
Attachments
infinitv_pcie-master.zip
(40.75 KiB) Downloaded 21 times

fbacher

Posts: 2
Joined: Tue Nov 11, 2014 7:33 am
Location:

HTPC Specs: Show details

#7

Post by fbacher » Wed Mar 07, 2018 6:00 pm

You saved my bacon. I think I Love you.

User avatar
Crash2009

Posts: 4355
Joined: Thu May 17, 2012 12:38 am
Location: Ann Arbor, Michigan

HTPC Specs: Show details
5+ Yrs TGB Veteran

#8

Post by Crash2009 » Thu Mar 08, 2018 5:42 am

fbacher wrote:You saved my bacon. I think I Love you.
Thanks, this was a challenging puzzle. Nice to know I finally solved one.

https://youtu.be/AMFMf9cN64U

bshant

Posts: 9
Joined: Mon Feb 26, 2018 7:42 am
Location:

HTPC Specs: Show details

#9

Post by bshant » Fri Mar 16, 2018 9:48 pm

Crash2009 wrote:Cetonj Driver modified for Linux with support for Kernel 4.11

https://github.com/JamesRHarris/infinitv_pcie

Edit: I just noticed...this is the same link as yours in the first post.
It was a pain, but I am now running Kernel 4.11.14. I just tried compiling but got the same error. Did James. R. Harris's revisions work for you?

Code: Select all

dvr@dvr:~/Downloads/infinitv_pcie-master$ sudo make install
Installing ctn91xx driver...
make[1]: Entering directory '/usr/src/linux-headers-4.11.0-14-lowlatency'
  INSTALL /home/dvr/Downloads/infinitv_pcie-master/ctn91xx.ko
At main.c:160:
- SSL error:02001002:system library:fopen:No such file or directory: bss_file.c:175
- SSL error:2006D080:BIO routines:BIO_new_file:no such file: bss_file.c:178
sign-file: certs/signing_key.pem: No such file or directory
  DEPMOD  4.11.0-14-lowlatency
make[1]: Leaving directory '/usr/src/linux-headers-4.11.0-14-lowlatency'
cp 98-ctn91xx.rules /etc/udev/rules.d/
/sbin/depmod -a

bshant

Posts: 9
Joined: Mon Feb 26, 2018 7:42 am
Location:

HTPC Specs: Show details

#10

Post by bshant » Sun Mar 25, 2018 9:15 am

Crash2009 wrote:This one stalled in the same place as yours. ctn91xx.ko
I now have the InfiniTV 4 working with kernel 4.13.0-36-generic using dkms based on Karl_Shea's comment here:
https://ubuntuforums.org/showthread.php ... st13350770.

Here's the procedure:

Go to https://github.com/JamesRHarris/infinitv_pcie and click on 'Clone or download' to create a zip file of the driver files dated June 20, 2017. Extract the files into a new folder /usr/src/ctn91xx-2017/

Create /usr/src/ctn91xx-2017/dkms.conf:

Code: Select all

MAKE="make"
CLEAN="make clean"
BUILT_MODULE_NAME=ctn91xx
DEST_MODULE_LOCATION=/extra/
BUILT_MODULE_LOCATION=
PACKAGE_NAME=ctn91xx
PACKAGE_VERSION=2017
AUTOINSTALL=yes
REMAKE_INITRD=yes
Open a terminal. Run the following commands:

Code: Select all

$ ifconfig -a
$ cd /usr/src/ctn91xx-2017/
$ sudo dkms add -m ctn91xx -v 2017
$ sudo dkms build -m ctn91xx -v 2017
$ sudo dkms install -m ctn91xx -v 2017
$ ifconfig -a
Note the name of the new Ethernet connection (enp3s8 in my case). Open 'Network Connections' and add a new Ethernet connection, picking the same name from the drop down list. In the IPv4 tab, for Method select Manual, add a new address 192.168.200.200 with netmask 255.255.255.0. Save.

Run

Code: Select all

ifconfig -a
and check that the new Ethernet connection has the correct address and netmask.

With the InfiniTV card inserted and the CableCard paired, run

Code: Select all

cat /dev/ceton/ctn91xx_mpeg0_0 | mplayer -cache 8192 -
You should see an mplayer window playing your video.

Proceed to set up the card in MythTV using the instructions here:
https://www.mythtv.org/wiki/Ceton_Infin ... ing_MythTV.

Enjoy.

bshant

Posts: 9
Joined: Mon Feb 26, 2018 7:42 am
Location:

HTPC Specs: Show details

#11

Post by bshant » Thu Mar 29, 2018 8:53 am

After the dkms install step, I forgot to insert

Code: Select all

sudo modprobe ctn91xx

bshant

Posts: 9
Joined: Mon Feb 26, 2018 7:42 am
Location:

HTPC Specs: Show details

#12

Post by bshant » Sun Apr 08, 2018 9:40 pm

Karl_Shea observes that in order to get dkms.conf to build against the kernel version that's getting installed instead of the current version, the MAKE line should read:

Code: Select all

MAKE="make KERNEL_VERSION=${kernelver}"
CLEAN="make clean"
BUILT_MODULE_NAME=ctn91xx
DEST_MODULE_LOCATION=/extra/
BUILT_MODULE_LOCATION=
PACKAGE_NAME=ctn91xx
PACKAGE_VERSION=2017
AUTOINSTALL=yes
REMAKE_INITRD=yes
https://ubuntuforums.org/showthread.php ... st13355816

Post Reply