1 1
nepo

orangepi+2e dvb-usb Astrometa

Recommended Posts

Hi

I want to install a tv-server (vdr) on my orangepi with a usb-dvb-stick from astrometa. I read this post and try to reproduce it. I build my own image ARMBIAN 5.27 stable Debian GNU/Linux 8 (jessie) 3.4.113-sun8i (linux-sun8i-default.config )and install v4l driver with no errors.

Unfortunately it don't work.  The system don't recognize the stick (see file orangepi_Astrometa.txt and dmesq_media_build.txt ). Useful for comparison my raspberrypi with the stick (raspberry_Astrometa.txt) .

 

Can anybody help?

 

Ciao nepo

Share this post


Link to post
Share on other sites

I can tell you only that you can't make it work on 3.4.113 kernel. According to RPi log you provided, Astrometa stick uses RTL2832 chip, which is supported on media_build, but only if you have kernel 4.7 or newer. Here is the relevant info: https://git.linuxtv.org/media_build.git/tree/v4l/versions.txt#n4

 

It may be that in the past it was possible to build this driver with older backports, but this can be messy... If you are ok with shortcomings of mainline version of Armbian (including little or no official support), then I suggest you try it. At least you won't have to compile any drivers (relevant drivers are already included as modules and they should be auto loaded once you plug in your stick).

Share this post


Link to post
Share on other sites

hi

thanks for answer!

I'm a noob, but my RPI runs with kernel 4.4.50-v7+ and I remember I could compile the v4l driver I will test it again.

 

usb 1-1.3: DVB: registering adapter 0 frontend 0 (Realtek RTL2832 (DVB-T))...
usb 1-1.3: DVB: registering adapter 0 frontend 1 (Panasonic MN88473)...

I need only dvb-c -> mn88473

It is possible to compile without rtl2832 ?

 

edit: v4l compile with kernel 4.4.50 link 

Share this post


Link to post
Share on other sites

Yes, of course you can compile media_build with older kernel, but you will get few driver less. MN88473 should be present with 3.4 kernel. I'm not sure if you can omit part of functionality. To be honest, I don't use DVB dongles, I only help to compile them. Still, media_build has nice warning, which tells you that it is not "production quality". This means that sometimes you need to have some kernel developing experiences to solve the issues.

 

BTW, RTL2832 change to be dependand on 4.7 kernel was made only 2 months ago. Before it was dependand on 3.8 kernel which means you could easily compile it on RPi's 4.4 kernel, but still unable to compile it on 3.4 kernel.

Share this post


Link to post
Share on other sites

Bad news :unsure:

 

If anybody knows, how I can use the orangepi with the stick, please help me. I tested this stick with kernel 4.10.3 (native recognize), but with horrible output link, and so I want to compile another kernel e.g. 4.8 but I'm a noob see  .

 

Thanks for help

 

see you

Share this post


Link to post
Share on other sites

Tough luck. 4.8 kernel should be usable for you just enough, because in this version USB support was introduced for H3, but I'm not sure how to make Armbian image with it.

 

Probably the best way would be to do kernel bisect to pinpoint bad commit between 4.8 and 4.9, but this is tedious work and it should be done on HW supported by SW, e.g. LibreELEC on RPi or something similar. Once bad commit is found, it could be analyzed and fixed. Fix could be then included in Armbian.

Share this post


Link to post
Share on other sites
57 minutes ago, jernej said:

Tough luck. 4.8 kernel should be usable for you just enough, because in this version USB support was introduced for H3, but I'm not sure how to make Armbian image with it.

 

Probably the best way would be to do kernel bisect to pinpoint bad commit between 4.8 and 4.9, but this is tedious work and it should be done on HW supported by SW, e.g. LibreELEC on RPi or something similar. Once bad commit is found, it could be analyzed and fixed. Fix could be then included in Armbian.

Thanks for help, but I understand nothing. :blink:

At moment, I try another thing. Perhaps (hopefully) I make a mistake by compiling the image. In this post idandavidi used a t230c stick and funnily I have such stick somewhere. 

 

So, I'm not sure, idandavidi used kernel 3.4 like me and my orangepi don't recognize the stick t230. I believe, that means i make a mistake by building the image.

Perhaps anybody can find the error dmesq_t230c.txt   linux-sun8i-default.config

 

Ciao

Edited by nepo

Share this post


Link to post
Share on other sites

Well, unfortunately, T230 now also needs 4.7 kernel (same change as with RTL2832, check above). I'm not sure how to properly use older version of media_build. Probably you need to check out older version using git, and then manually specifying older driver package. Tell me if you want to go this way, but I can't promise you anything. Recompiling kernel should not be needed anymore, because all the needed changes were introduced after the solution in that thread was found.

 

BTW, just curious, does the issue, present in 4.9 and newer kernels, affect all DVB dongles?

Share this post


Link to post
Share on other sites
6 minutes ago, jernej said:

BTW, just curious, does the issue, present in 4.9 and newer kernels, affect all DVB dongles?

I don't know.  I didn't use T230C , because dvb-c support is bad, in 4.10 as well as 4.4 (RPI), so I could not tested really, I read some post about it., with my Astrometa-Dongle and 4.4.5 perfect, recordings (mpeg2) with ProjectX no error ... and with 4.10.3 only problems - live and recordings.

 

24 minutes ago, jernej said:

Tell me if you want to go this way, but I can't promise you anything

I will go every way :D, but I can't go myself (noob)

Share this post


Link to post
Share on other sites

hi

I don't want to give up, also next attempt.

Fresh image Armbian_5.27_Orangepiplus2e_Debian_jessie_dev_4.10.3 (april 5) with no kernel config

Install media-build with

git clone git://linuxtv.org/media_build.git
cd media_build 
./build

No errors!

reboot and sudo make unload, plug in usb-stick

 

Kernel Panic

usb 4-1: new high-speed USB device number 2 using ehci-platform
[10756.489835] usb 4-1: New USB device found, idVendor=15f4, idProduct=0131
[10756.489851] usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[10756.489861] usb 4-1: Product: dvbt2
[10756.489872] usb 4-1: Manufacturer: astrometadvbt2
[10756.523013] Unable to handle kernel NULL pointer dereference at virtual address 00000080
[10756.531707] pgd = ecdf4000
[10756.534598] [00000080] *pgd=00000000
[10756.548898] Internal error: Oops: 805 [#1] SMP THUMB2
[10756.564493] Modules linked in: dvb_usb_rtl28xxu(O+) ir_xmp_decoder(O) cfg80211 bluetooth rfkill evdev realtek sun8i_codec_analog sunxi_cir sun4i_codec snd_soc_core snd_pcm_dmaengine snd_pcm sun8i_ths gpio_keys cpufreq_dt thermal_sys uio_pdrv_genirq uio 8189fs [last unloaded: lirc_dev]
[10756.632763] CPU: 0 PID: 5294 Comm: systemd-udevd Tainted: G           O    4.10.3-sun8i #7
[10756.662661] Hardware name: Allwinner sun8i Family
[10756.678351] task: ed5e3900 task.stack: edece000
[10756.693727] PC is at rtl28xxu_identify_state+0x37/0x68 [dvb_usb_rtl28xxu]
[10756.711399] LR is at rtl28xxu_ctrl_msg+0xb6/0xcc [dvb_usb_rtl28xxu]
[10756.728414] pc : [<bfa6215c>]    lr : [<bfa6210f>]    psr: 00070033
               sp : edecfcc0  ip : 00000000  fp : ed64be00
[10756.761072] r10: bfa64064  r9 : ed64be00  r8 : bfa64b7c
[10756.776655] r7 : ece6d000  r6 : 00000000  r5 : ecc6c000  r4 : 00000000
[10756.793479] r3 : 00000002  r2 : 00000000  r1 : 00000000  r0 : 00000000
[10756.810074] Flags: nzcv  IRQs on  FIQs on  Mode SVC_32  ISA Thumb  Segment none
[10756.827485] Control: 50c5387d  Table: 6cdf406a  DAC: 00000051
[10756.843230] Process systemd-udevd (pid: 5294, stack limit = 0xedece210)
[10756.859858] Stack: (0xedecfcc0 to 0xeded0000)
[10756.874058] fcc0: bfa640b8 06000020 00000000 00000000 bfa640b8 ecc6c000 ece6d070 c05ae8a3
[10756.901816] fce0: eda6ca00 00000000 00000000 00000000 00000001 ece6d070 ece6d0e4 00000004
[10756.929671] fd00: 400e0013 bfa64b7c 00000000 c04d2091 0000000a ed64be20 00000000 ece6d070
[10756.957617] fd20: ece6d000 bfa64b7c ed64be00 bfa64064 ffffffed c05500ab c054ffed ed64be20
[10756.985657] fd40: c0b9bc50 00000000 00000000 bfa64b7c 0000002e ed965a24 00000124 c04cb46b
[10757.013735] fd60: 00000000 ed64be20 bfa64b7c ed64be54 c04cb4e1 bfa64c00 ed965a00 c04cb545
[10757.042541] fd80: 00000001 00000000 bfa64b7c c04ca2c5 ee594158 ed8d5ab4 00000000 bfa64b7c
[10757.071946] fda0: ecdd6900 00000000 c0b43418 c04cad4b bfa64688 bfa64b7c c0b43418 bfa64b7c
[10757.101332] fdc0: c0b43418 c054ffed bfa64b7c c04cbab9 bfa64688 bfa64b48 c0b43418 c054f3bd
[10757.130721] fde0: ffffe000 bfa64c00 bfa68001 00000000 00000001 c01016b7 8040003f 014000c0
[10757.160426] fe00: ecc6c018 bfa64c48 00000000 c0b25b2c 8040003e 00000001 ee401e40 edecfe38
[10757.190668] fe20: 00000001 ee401e40 edecfe38 00000001 ee401e40 edecfe50 bfa64c00 bfa64c00
[10757.221303] fe40: bfa64c00 bfa64c00 00000001 ed662500 00000001 c0198fb9 ed965a00 edecff54
[10757.252474] fe60: bfa64c00 edecff54 bfa64c00 00000001 ed965a00 c0173011 bfa64c0c 00007fff
[10757.284414] fe80: bfa64c00 c01712b9 00000000 bfa64c00 bfa64c48 edecff54 bfa64c0c f17b3c38
[10757.316720] fea0: bfa64c0c c0702e0c c08946c0 c0894724 c08946cc bfa64dbc 00000000 00006c88
[10757.349271] fec0: 00000000 edecff48 00006c88 00000000 00000000 00000000 00000000 00000000
[10757.382033] fee0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[10757.414801] ff00: 00000000 00000000 7fffffff 00000000 f17ad000 b6e3d63c 0000017b c0106024
[10757.444261] ff20: edece000 00000000 00000000 c01734c9 7fffffff 00000000 00000003 00000000
[10757.466896] ff40: 00000000 f17ad000 00006c88 00000000 00000000 f17ad000 00006c88 f17b3738
[10757.489527] ff60: f17b35e4 f17b17e8 00002e04 00003894 00000000 00000000 00000000 00001f90
[10757.512156] ff80: 00000020 00000021 00000017 00000000 00000010 00000000 7f68c058 7f680b0c
[10757.534782] ffa0: b0411d00 c0105e61 7f68c058 7f680b0c 00000007 b6e3d63c 00000000 b6e3e0a4
[10757.557413] ffc0: 7f68c058 7f680b0c b0411d00 0000017b 00020000 7f680b0c 7f692448 00000000
[10757.580044] ffe0: be9ef8e8 be9ef8d8 b6e378ff b6d89572 800e0030 00000007 ffffffff ffffffff
[10757.602723] [<bfa6215c>] (rtl28xxu_identify_state [dvb_usb_rtl28xxu]) from [<c05ae8a3>] (dvb_usbv2_probe+0xb7/0x838)
[10757.627812] [<c05ae8a3>] (dvb_usbv2_probe) from [<c05500ab>] (usb_probe_interface+0xbf/0x1bc)
[10757.650865] [<c05500ab>] (usb_probe_interface) from [<c04cb46b>] (driver_probe_device+0x16b/0x1e0)
[10757.674383] [<c04cb46b>] (driver_probe_device) from [<c04cb545>] (__driver_attach+0x65/0x68)
[10757.697392] [<c04cb545>] (__driver_attach) from [<c04ca2c5>] (bus_for_each_dev+0x39/0x58)
[10757.720155] [<c04ca2c5>] (bus_for_each_dev) from [<c04cad4b>] (bus_add_driver+0xab/0x164)
[10757.742940] [<c04cad4b>] (bus_add_driver) from [<c04cbab9>] (driver_register+0x31/0x84)
[10757.765568] [<c04cbab9>] (driver_register) from [<c054f3bd>] (usb_register_driver+0x51/0xdc)
[10757.789677] [<c054f3bd>] (usb_register_driver) from [<c01016b7>] (do_one_initcall+0x2f/0xfc)
[10757.812826] [<c01016b7>] (do_one_initcall) from [<c0198fb9>] (do_init_module+0x45/0x314)
[10757.835625] [<c0198fb9>] (do_init_module) from [<c0173011>] (load_module+0x1461/0x17ac)
[10757.858355] [<c0173011>] (load_module) from [<c01734c9>] (SyS_finit_module+0x65/0x70)
[10757.880927] [<c01734c9>] (SyS_finit_module) from [<c0105e61>] (ret_fast_syscall+0x1/0x4c)
[10757.903873] Code: d004 4604 b958 2302 (f886) 3080 
[10757.916134] ---[ end trace 4885c4e9b24281a6 ]---

dmesq dvb and whole dmesg.txt and armhwinfo.log

orangepi@orangepiplus2e:~/media_build$ dmesg |grep -i dvb
[10756.489861] usb 4-1: Product: dvbt2
[10756.489872] usb 4-1: Manufacturer: astrometadvbt2
[10756.564493] Modules linked in: dvb_usb_rtl28xxu(O+) ir_xmp_decoder(O) cfg80211 bluetooth rfkill evdev realtek sun8i_codec_analog sunxi_cir sun4i_codec snd_soc_core snd_pcm_dmaengine snd_pcm sun8i_ths gpio_keys cpufreq_dt thermal_sys uio_pdrv_genirq uio 8189fs [last unloaded: lirc_dev]
[10756.693727] PC is at rtl28xxu_identify_state+0x37/0x68 [dvb_usb_rtl28xxu]
[10756.711399] LR is at rtl28xxu_ctrl_msg+0xb6/0xcc [dvb_usb_rtl28xxu]
[10757.602723] [<bfa6215c>] (rtl28xxu_identify_state [dvb_usb_rtl28xxu]) from [<c05ae8a3>] (dvb_usbv2_probe+0xb7/0x838)
[10757.627812] [<c05ae8a3>] (dvb_usbv2_probe) from [<c05500ab>] (usb_probe_interface+0xbf/0x1bc)

No modul for mn88743 and

ls /dev/dvb
ls: cannot access '/dev/dvb': No such file or directory

 

make reload

orangepi@orangepiplus2e:~/media_build$ sudo make reload
rmmod: ERROR: Module dvb_usb_rtl28xxu is in use
.
.
insmod: ERROR: could not load module ./dvb_usb_az6027.ko: No such file or directory
insmod: ERROR: could not load module ./dvb_usb_opera.ko: No such file or directory
insmod: ERROR: could not load module ./dvb_usb_digitv.ko: No such file or directory
insmod: ERROR: could not load module ./dvb_usb_dw2102.ko: No such file or directory
insmod: ERROR: could not insert module ./cpia2.ko: Cannot allocate memory
insmod: ERROR: could not load module ./sony_btf_mpx.ko: No such file or directory
insmod: ERROR: could not load module ./dvb_usb_ttusb2.ko: No such file or directory
insmod: ERROR: could not insert module ./saa7115.ko: Cannot allocate memory
insmod: ERROR: could not insert module ./cx25840.ko: Cannot allocate memory
insmod: ERROR: could not insert module ./tvp5150.ko: Cannot allocate memory
insmod: ERROR: could not insert module ./adv7842.ko: Cannot allocate memory
insmod: ERROR: could not insert module ./smiapp.ko: Cannot allocate memory
insmod: ERROR: could not insert module ./cx2341x.ko: Cannot allocate memory
insmod: ERROR: could not insert module ./tvaudio.ko: Cannot allocate memory
insmod: ERROR: could not load module ./dvb_usb_technisat_usb2.ko: No such file or directory
insmod: ERROR: could not load module ./dvb_usb_mxl111sf.ko: No such file or directory
.
.
.
insmod: ERROR: could not load module ./dvb_usb_a800.ko: No such file or directory
insmod: ERROR: could not insert module ./mt9t031.ko: Cannot allocate memory
insmod: ERROR: could not insert module ./ov5642.ko: Cannot allocate memory
insmod: ERROR: could not load module ./go7007_usb.ko: No such file or directory
insmod: ERROR: could not load module ./cx231xx_alsa.ko: No such file or directory
insmod: ERROR: could not load module ./dvb_usb_dibusb_mc.ko: No such file or directory
insmod: ERROR: could not insert module ./mt9m001.ko: Cannot allocate memory
insmod: ERROR: could not load module ./xilinx_tpg.ko: No such file or directory
.
.

What I can do ???

Please help and

Ciao nepo

Share this post


Link to post
Share on other sites

hi again

new image compile without rc_core.

compile media_built and install -> no errors

reboot and plugin the stick -> no kernel Panic :D

 

But:

dmesg

new high-speed USB device number 3 using ehci-platform
[ 2512.085372] usb 4-1: New USB device found, idVendor=15f4, idProduct=0131
[ 2512.085389] usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 2512.085399] usb 4-1: Product: dvbt2
[ 2512.085410] usb 4-1: Manufacturer: astrometadvbt2
[ 2512.109067] media: exports duplicate symbol __media_device_register (owned by kernel)
[ 2512.205549] media: exports duplicate symbol __media_device_register (owned by kernel)

dmesg | grep -i dvb only and no adapter in /dev/

4.520298] usb 4-1: Product: dvbt2
[    4.520303] usb 4-1: Manufacturer: astrometadvbt2
[ 2512.085399] usb 4-1: Product: dvbt2
[ 2512.085410] usb 4-1: Manufacturer: astrometadvbt2

armbianmonitor

lsmod

Module                  Size  Used by
bluetooth             263753  0 
cfg80211              192770  0 
rfkill                 10928  3 bluetooth,cfg80211
realtek                 2818  1 
evdev                   9979  0 
ir_lirc_codec           4502  0 
lirc_dev                8387  1 ir_lirc_codec
sun4i_codec            28243  3 
sun8i_codec_analog     13766  1 
sunxi_cir               3825  0 
snd_soc_core          115473  2 sun4i_codec,sun8i_codec_analog
snd_pcm_dmaengine       4221  1 snd_soc_core
snd_pcm                70145  2 snd_pcm_dmaengine,snd_soc_core
sun8i_ths               3134  0 
uio_pdrv_genirq         3354  0 
cpufreq_dt              3522  0 
uio                     8012  1 uio_pdrv_genirq
gpio_keys               8517  0 
thermal_sys            43232  2 cpufreq_dt,sun8i_ths
8189fs                826413  0 
fuse                   70718  1 

so I look at this page and try

orangepi@orangepiplus2e:~/media_build$ sudo make unload 
[sudo] password for orangepi: 
make -C /home/orangepi/media_build/v4l unload
make[1]: Entering directory '/home/orangepi/media_build/v4l'
scripts/rmmod.pl unload
found 575 modules
/sbin/rmmod ir_lirc_codec
Pulseaudio is running with UUID(s): 
/sbin/rmmod lirc_dev
make[1]: Leaving directory '/home/orangepi/media_build/v4l'orangepi@orangepiplus2e:~/media_build$ sudo modprobe -a rtl2832_sdr videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_core mn88473 rtl2832 dvb_usb_rtl28xxu
modprobe: ERROR: could not insert 'rtl2832_sdr': Exec format error
modprobe: ERROR: could not insert 'videobuf2_v4l2': Exec format error
modprobe: ERROR: could not insert 'videobuf2_core': Exec format error
modprobe: ERROR: could not insert 'mn88473': Exec format error
modprobe: ERROR: could not insert 'rtl2832': Exec format error
modprobe: ERROR: could not insert 'dvb_usb_rtl28xxu': Exec format error

reboot

The same problem. Also I try (found no *.ko.gz files)

sudo make reload
sudo depmod -a

Nothing !

What can i do else

Share this post


Link to post
Share on other sites
1 1