odroid kernel and dvb-t2

Post Reply
ajcard
Posts: 42
Joined: Fri Jun 07, 2019 4:46 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

odroid kernel and dvb-t2

Unread post by ajcard » Tue Jun 11, 2019 4:50 am

Hi there,
I have a problem getting my DVB-T2 Usb stick running properly.
Ive tried a lot, but I am not getting any further.

I also compiled the last kernel 4.9.177+.
I installed the v4lutils 1.16.3, because on my oher pc running
Slackware 14.2 the Stick works fine with them.

Before I post a long story, is there a general problem with dvb-t2
and the odroid kernel or should it work?

User avatar
rooted
Posts: 6792
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 230 times
Been thanked: 42 times
Contact:

Re: odroid kernel and dvb-t2

Unread post by rooted » Tue Jun 11, 2019 7:12 am

What DVB-T2 adapter?

ajcard
Posts: 42
Joined: Fri Jun 07, 2019 4:46 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: odroid kernel and dvb-t2

Unread post by ajcard » Tue Jun 11, 2019 8:05 am

Its a "WinTV SoloHD". And because you asked for it, I hope that other
dvb-t2 devices are supported :-) So here comes some text.

If I plug in the stick I get from dmesg:
------------------------------------------------------------------------
usb 1-1.3: new high-speed USB device number 11 using xhci-hcd
usb 1-1.3: New USB device found, idVendor=2040, idProduct=8268
usb 1-1.3: New USB device strings: Mfr=3, Product=1, SerialNumber=2
usb 1-1.3: Product: soloHD
usb 1-1.3: Manufacturer: HCW
em28xx: New device HCW soloHD @ 480 Mbps (2040:8268, interface 0, class 0)
em28xx: DVB interface 0 found: bulk
em28xx: chip ID is em28178
em28178 #0: EEPROM ID = 26 00 01 00, EEPROM hash = 0xa8c2ca80
em28178 #0: EEPROM info:
em28178 #0: microcode start address = 0x0004, boot configuration = 0x01
em28178 #0: AC97 audio (5 sample rates)
em28178 #0: 500mA max power
em28178 #0: Table at offset 0x27, strings=0x0e6a, 0x1888, 0x087e
em28178 #0: Identified as PCTV tripleStick (292e) (card=94)
em28178 #0: dvb set to bulk mode.
em28178 #0: Binding DVB extension
i2c i2c-6: Added multiplexed i2c bus 7
si2168 6-0064: Silicon Labs Si2168-B40 successfully identified
si2168 6-0064: firmware version: B 4.0.2
si2157 7-0060: Silicon Labs Si2147/2148/2157/2158 successfully attached
DVB: registering new adapter (em28178 #0)
usb 1-1.3: DVB: registering adapter 0 frontend 0 (Silicon Labs Si2168)...
dvb_create_media_entity: media entity 'Silicon Labs Si2168' registered.
dvb_create_media_entity: media entity 'dvb-demux' registered.
em28178 #0: DVB extension successfully initialized
em28178 #0: Registering input extension
Registered IR keymap rc-pinnacle-pctv-hd
input: em28xx IR (em28178 #0) as /devices/platform/ff500000.dwc3/xhci-hcd.0.auto/usb1/1-1/1-1.3/rc/rc0/input5
rc rc0: em28xx IR (em28178 #0) as /devices/platform/ff500000.dwc3/xhci-hcd.0.auto/usb1/1-1/1-1.3/rc/rc0
em28178 #0: Input extension successfully initalized
------------------------------------------------------------------------
Looks good. One difference I see:
Odroid: /devices/platform/ff500000.dwc3/xhci-hcd.0.auto/usb1/1-1/1-1.3/rc/rc0/input5
PC: /devices/pci0000:00/0000:00:04.1/usb1/1-4/rc/rc0/input9
But I don't know if that matters.

Next I start a dvbv5-scan. and dmesg says:
-------------------------------------------
[11101.583326] si2168 6-0064: downloading firmware from file 'dvb-demod-si2168-b40-01.fw'
[11102.322773] si2168 6-0064: firmware version: B 4.0.25
[11102.330150] si2157 7-0060: found a 'Silicon Labs Si2157-A30'
[11102.380798] si2157 7-0060: firmware version: 3.0.5

looks good too.
But dvbv5-scan produces this output:
------------------------------------------------------------------------
Scanning frequency #1 474000000
ERROR command STREAM_ID (42) not found during store
(0x00)
Scanning frequency #2 482000000
ERROR command STREAM_ID (42) not found during store
(0x00) ....

dvbv5-zap fails too:
------------------------
ERROR command STREAM_ID (42) not found during store
tuning to 650000000 Hz

User avatar
odroid
Site Admin
Posts: 32570
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 190 times
Been thanked: 355 times
Contact:

Re: odroid kernel and dvb-t2

Unread post by odroid » Tue Jun 11, 2019 9:37 am

Since we have no TV receiver here, it is not easy to help you efficiently.
Can you compare "lsusb", "lsusb -t" and "lsmod" outputs between N2 and your PC?

ajcard
Posts: 42
Joined: Fri Jun 07, 2019 4:46 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: odroid kernel and dvb-t2

Unread post by ajcard » Tue Jun 11, 2019 10:41 am

odroid wrote:
Tue Jun 11, 2019 9:37 am
Since we have no TV receiver here, it is not easy to help you efficiently.
Can you compare "lsusb", "lsusb -t" and "lsmod" outputs between N2 and your PC?
Here it comes: (shortened a bit)

lsusb pc: Bus 001 Device 054: ID 2040:8268 Hauppauge
lsusb n2: Bus 001 Device 014: ID 2040:8268 Hauppauge

lsusb -t n2: Port 3: Dev 14, If 0, Class=Vendor Specific Class, Driver=em28xx, 480M
lsusb -t pc: Port 4: Dev 54, If 0, Class=Vendor Specific Class, Driver=em28xx, 480M

lsmod: this is not so easy. I.e. I tried to compile the dvb_core as a module, but I
was not able to this. Neither setting the state to "M" with "make menuconfig" or
editing the kernel config did it. In the end it was built into the kernel.
This should be fixed imho.

And maybe there are some other "modules" missing in the lsmod lists.

But I ll try it. Filtered out other modules

lsmod n2:
---------
em28xx_rc 20480 0
si2157 16384 1
si2168 20480 1
em28xx_dvb 36864 0
em28xx 102400 2 em28xx_rc,em28xx_dvb
tveeprom 24576 1 em28xx
i2c_meson_master 20480 0

lsmod pc:
---------
rc_pinnacle_pctv_hd 1089 0
em28xx_rc 8346 0
rc_core 17822 3 em28xx_rc,rc_pinnacle_pctv_hd
si2157 4832 1
si2168 6515 1
i2c_mux 2588 1 si2168
em28xx_dvb 21465 0
dvb_core 83447 1 em28xx_dvb
em28xx 66652 2 em28xx_dvb,em28xx_rc
tveeprom 12160 1 em28xx
v4l2_common 3714 1 em28xx
videodev 132748 2 em28xx,v4l2_common

oh, I see that v4l2_common and videodev are also built into n2 kernel

User avatar
odroid
Site Admin
Posts: 32570
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 190 times
Been thanked: 355 times
Contact:

Re: odroid kernel and dvb-t2

Unread post by odroid » Tue Jun 11, 2019 10:50 am

I couldn't find any clue in the outputs.

As far as I heard, the N2 CoreELEC OS supports many different DVB receivers.
So it is worth to try the CE image to find a solution for Ubuntu OS.

User avatar
rooted
Posts: 6792
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 230 times
Been thanked: 42 times
Contact:

Re: odroid kernel and dvb-t2

Unread post by rooted » Tue Jun 11, 2019 4:12 pm

You have drivers, you have firmware, I honestly don't know why it's not working.

Is the firmware the most recent?

ajcard
Posts: 42
Joined: Fri Jun 07, 2019 4:46 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: odroid kernel and dvb-t2

Unread post by ajcard » Tue Jun 11, 2019 5:05 pm

I've also tested 3 firmware versions....

Odroid told me to use/test coreElec. But even if this runs, it is not what I want.
And if I am right informed, they use a very stripped down 3.x kernel with "special" dvb drivers.

Than I better try another kernel for the N2, 4.14 / 5.0.
But at the moment, there is none. Right?

User avatar
igorpec
Posts: 414
Joined: Sat Dec 12, 2015 4:34 pm
languages_spoken: english,german,slovene
ODROIDs: XU4, HC1, C2, C1+
Has thanked: 11 times
Been thanked: 30 times
Contact:

Re: odroid kernel and dvb-t2

Unread post by igorpec » Tue Jun 11, 2019 5:16 pm

ajcard wrote:
Tue Jun 11, 2019 5:05 pm
I've also tested 3 firmware versions....

Odroid told me to use/test coreElec. But even if this runs, it is not what I want.
And if I am right informed, they use a very stripped down 3.x kernel with "special" dvb drivers.

Than I better try another kernel for the N2, 4.14 / 5.0.
But at the moment, there is none. Right?
None/not much. https://github.com/superna9999/linux/tr ... gic-g12-v2

We will provide kernel, when basic things will be working and when some time is allocated.
ARMBIAN - follow on Twitter
linux for ARM development boards with user friendly development tools

User avatar
igorpec
Posts: 414
Joined: Sat Dec 12, 2015 4:34 pm
languages_spoken: english,german,slovene
ODROIDs: XU4, HC1, C2, C1+
Has thanked: 11 times
Been thanked: 30 times
Contact:

Re: odroid kernel and dvb-t2

Unread post by igorpec » Tue Jun 11, 2019 5:19 pm

ARMBIAN - follow on Twitter
linux for ARM development boards with user friendly development tools

User avatar
rooted
Posts: 6792
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 230 times
Been thanked: 42 times
Contact:

Re: odroid kernel and dvb-t2

Unread post by rooted » Wed Jun 12, 2019 6:41 am

I'm pretty sure with dvbv5-scan you need to scan a specific list of frequencies (channels), are you doing that or just running it without additional flags?

ajcard
Posts: 42
Joined: Fri Jun 07, 2019 4:46 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: odroid kernel and dvb-t2

Unread post by ajcard » Wed Jun 12, 2019 1:53 pm

Patches: Thanks, but I think they belong to the kernel5 / lastDrivers from linuxtv. for 4.x drivers _I_ can not apply them.
But I took sources from 4.14.125 (last 4.14) they compile but the result is the same. With drivers sources from kernel 5
I had no luck.

And I know that I need a init file for dvb5-scan. As I sayd, I have the stick working on my PC using the same tools.
And, If I did something wrong with dvb5_scan, I got messages like "no init file" "no channels found" etc.
Anyway, thanks for every hint! Sometimes I couldn't find a tree in a forest.

ajcard
Posts: 42
Joined: Fri Jun 07, 2019 4:46 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: odroid kernel and dvb-t2

Unread post by ajcard » Thu Jun 13, 2019 5:14 am

I am trying to build the dvb_core and media_support as a module.
But at the end of the kernel compile I get an error:

drivers/built-in.o: In function `videobuf_queue_res_init':
aml-spifc.c:(.text+0x33db80): undefined reference to `videobuf_queue_core_init'

this aml-spifc belongs to the "spi-nor" driver and the description is:
Amlogic spi nor flash support config.
Support for spi nor flash on Amlogic Meson platforms
Need open in defconfig, set CONFIG_SPI_AML_SPIFC=y
need check

is this an essential one needed for booting the device?

ajcard
Posts: 42
Joined: Fri Jun 07, 2019 4:46 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: odroid kernel and dvb-t2

Unread post by ajcard » Fri Jul 26, 2019 2:22 pm

Wow. It was a long way, but finally it works!
Currently the Upstream Kernel 4.9.185 is running.

@tobetter
for vp9 i had to use the
drivers/amlogic/media_modules/frame_provider/decoder/vp9/vvp9.c
from coreelec. diff shows:

--- vvp9.c 2019-07-24 11:37:04.792201943 +0200
+++ vvp9.c 2019-07-22 14:44:02.868383860 +0200
@@ -6889,7 +6889,7 @@ static int prepare_display_buf(struct VP
kfifo_put(&pbi->display_q, (const struct vframe_s *)vf);
ATRACE_COUNTER(MODULE_NAME, vf->pts);
pbi->vf_pre_count++;
-#ifndef CONFIG_AMLOGIC_MEDIA_MULTI_DEC
+#ifdef CONFIG_AMLOGIC_MEDIA_MULTI_DEC
/*count info*/
gvs->frame_dur = pbi->frame_dur;
vdec_count_info(gvs, 0, stream_offset);
@@ -7816,7 +7816,7 @@ int vvp9_dec_status(struct vdec_s *vdec,
vstatus->error_count = 0;
vstatus->status = vp9->stat | vp9->fatal_error;
vstatus->frame_dur = vp9->frame_dur;
-#ifndef CONFIG_AMLOGIC_MEDIA_MULTI_DEC
+#if 0 //#ifndef CONFIG_AMLOGIC_MEDIA_MULTI_DEC
vstatus->bit_rate = gvs->bit_rate;
vstatus->frame_data = gvs->frame_data;
vstatus->total_data = gvs->total_data;

Maybe this helps.

But there are some unexpected USB disconnects too.
Not really reproducable.

My old Flatbed-Scanner is also working.
Next step is adding the printer for sharing.

So if there would be an X11 driver vor 4.9, not fbdev only,
I would be very happy.

But one question: Is there any tool for video editing/cutting?
In past I used avidemux, but imho this is not for arm.

Any suggestions?

elatllat
Posts: 1579
Joined: Tue Sep 01, 2015 8:54 am
languages_spoken: english
ODROIDs: XU4, N1, N2
Has thanked: 24 times
Been thanked: 66 times
Contact:

Re: odroid kernel and dvb-t2

Unread post by elatllat » Wed Aug 28, 2019 11:06 am

ajcard wrote:
Fri Jul 26, 2019 2:22 pm
...video editing...suggestions?
kdenlive
blender
etc; https://en.wikipedia.org/wiki/Compariso ... g_software

ajcard
Posts: 42
Joined: Fri Jun 07, 2019 4:46 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: odroid kernel and dvb-t2

Unread post by ajcard » Wed Aug 28, 2019 1:43 pm

Thanks @elatllat, I've used blender and kdenlive a few years ago, but
my favorite was cinerella ;) Anyway, just for trimming the video or
cutting out some commercials they are not my choice.

So, and also because the latest x86 versions of avidemux didnt work as expected,
I'm thinking of writing my own little prog. Made a few tests, should be
good enough for me.

Post Reply

Return to “Issues”

Who is online

Users browsing this forum: No registered users and 5 guests