Superb quality and spec AB-Com PULSe 4K SE. Crazy offer! Only £129! FREE UK DELIVERY! 4K UHD, Enigma 2, Multiboot 4 images & more!...
Superb quality and spec AB-Com PULSe 4K Rev II Twin Satellite tuner only £179! FREE UK DELIVERY! 4K UHD, Enigma 2, SATA HDD facility, Multiboot 4 images & more!...

[VU+ Zero4K] Trying to comple dvb-apps_1.1.1.bb

  • Thread starter Thread starter bear
  • Start date Start date
B

bear

Guest
Am trying to compile the dvbnet app from the dvb-apps_1.1.1 package: openvix/build-enviroment/meta-oe-alliance/meta-oe/recipes-multimedia/dvb-apps/dvb-apps_1.1.1.bb

Have remove the blacklist list line:
PNBLACKLIST[dvb-apps] ?= "Fails to build with RSS http://errors.yoctoproject.org/Errors/Details/130603/ - the recipe will be removed on 2017-09-01 unless the issue is fixed"

When I rebuild the source I can see that the bb file is not skipped anymore, however it doesn't seem to compile it.

I have also tried to compile directly: bitbake dvb-apps_1.1.1.bb, I just get an Unable to connect to bitbake server, or start one error.

Any ideas?
 
Have bitbake running ok now, however is throwing the following error:

make -C dst-utils all
make[2]: Entering directory '/home/openvixbuilder/openvix/build-enviroment/builds/openvix/release/vuzero4k/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/dvb-apps/dvb-apps-1.1.1-r0/git/util/dst-utils'
CC dst_test
dst_test.c: In function 'dst_set_pid':
dst_test.c:116:19: error: 'CA_SET_PID' undeclared (first use in this function); did you mean 'CA_GET_CAP'?
if ((ioctl(cafd, CA_SET_PID)) < 0) {
^~~~~~~~~~
CA_GET_CAP
dst_test.c:116:19: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [../../Make.rules:76: dst_test] Error 1
make[2]: Leaving directory '/home/openvixbuilder/openvix/build-enviroment/builds/openvix/release/vuzero4k/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/dvb-apps/dvb-apps-1.1.1-r0/git/util/dst-utils'
make[1]: *** [Makefile:9: all] Error 2
make[1]: Leaving directory '/home/openvixbuilder/openvix/build-enviroment/builds/openvix/release/vuzero4k/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/dvb-apps/dvb-apps-1.1.1-r0/git/util'
make: *** [Makefile:14: all] Error 2
ERROR: oe_runmake failed
 
I have sent a message to someone. He'll look into it if/when he gets a chance.
 
CA_SET_PID was removed some time ago, see here. You will probably need to apply similar patch as was done here.
 
Thanks LraiZer, will take a look at patching it.
btw, your not aware of any other way of creating a DVB network adapter?
 
Manage to build the the dvb-apps_1.1.1 package with the following changes:

----
Patch ca.h with

#ifndef CA_SET_PID
typedef struct ca_pid {
unsigned int pid;
int index; /* -1 == disable*/
} ca_pid_t;

#define CA_SET_PID _IOW('o', 135, struct ca_pid)
#endif
----
To fix this error "Can't locate atsc_psip_section.pl in @INC"
(ref:https://aur.archlinux.org/packages/linuxtv-dvb-apps/)
edit util/scan/Makefile

change
perl section_generate.pl atsc_psip_section.pl
to
perl section_generate.pl ./atsc_psip_section.pl
----
Build requires dvb-format-convert, install dvb-tools for this utility.
for some reason I had to edit the initial-scan-tables/Makefile and set the path to dvb-format-convert(/usr/bin/dvb-format-convert)
----

The following two packages for dvbnet were created:
libdvbapi_apps_0.0-1222-gceb1183-r0_cortexa15hf-neon-vfpv4.ipk
dvbnet_apps_0.0-1222-gceb1183-r0_cortexa15hf-neon-vfpv4.ipk
 
I was able to install both packages on my vuzero4k ok.

root@vuzero4k:~# dvbnet

DVB Network Interface Manager
Copyright (C) 2003, TV Files S.p.A

Usage: dvbnet [options]
Where options are:
-a AD : Adapter card (default 0)
-n DD : Demux (default 0)
-p PID : Add interface listening on PID
-d NUM : Remove interface NUM
-l : List currently available interfaces
-U : use ULE framing (default: MPE)
-v : Print current version

root@vuzero4k:~#

However if I try to run with any option I get a segmentation fault, not sure what the problem is?
Perhaps an incompatibility with the newer multistream DVB-S2X adapter?

root@vuzero4k:~# dvbnet -l

DVB Network Interface Manager
Copyright (C) 2003, TV Files S.p.A

Query DVB network interfaces:
-----------------------------
Segmentation fault
root@vuzero4k:~#

root@vuzero4k:~# dvbnet -p 8000

DVB Network Interface Manager
Copyright (C) 2003, TV Files S.p.A

Segmentation fault
root@vuzero4k:~#

Attached is a copy of the kernel trace:

[ 687.298186] Unable to handle kernel paging request at virtual address 02d00518
[ 687.305453] pgd = ce0d74c0
[ 687.308177] [02d00518] *pgd=0eb10003, *pmd=00000000
[ 687.313100] Internal error: Oops: 206 [#3] SMP ARM
[ 687.317897] Modules linked in: bluetooth brcmfb(O) dvb_bcm72604(PO) dvb_base(PO) bcm_event(PO) procmk(O) xfs libcrc32c
[ 687.328710] CPU: 1 PID: 1820 Comm: dvbnet Tainted: P D O 4.1.20-1.9 #1
[ 687.336199] Hardware name: Broadcom STB (Flattened Device Tree)
[ 687.342125] task: ce050640 ti: ce86c000 task.ti: ce86c000
[ 687.347536] PC is at mutex_optimistic_spin+0x3c/0x1f0
[ 687.352597] LR is at __mutex_lock_interruptible_slowpath+0x28/0x190
[ 687.358871] pc : [<c005a8e0>] lr : [<c066a6b8>] psr: 20080013
[ 687.358871] sp : ce86de18 ip : ffffe000 fp : 00000000
[ 687.370358] r10: 00000000 r9 : cceb2d40 r8 : ccce3a2c
[ 687.375587] r7 : ce050640 r6 : 00000003 r5 : ce050640 r4 : ccce3a88
[ 687.382120] r3 : 02d00500 r2 : 00000000 r1 : 00000000 r0 : ccce3a88
[ 687.388654] Flags: nzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
[ 687.395796] Control: 30c5383d Table: 0e0d74c0 DAC: ffdf4a7e
[ 687.401546] Process dvbnet (pid: 1820, stack limit = 0xce86c210)
[ 687.407557] Stack: (0xce86de18 to 0xce86e000)
[ 687.411917] de00: ce86c000 ccce3a88
[ 687.420104] de20: ce050640 00000003 ccce3a88 ccce3a2c cceb2d40 ccff8100 c049dcf0 c066a6b8
[ 687.428290] de40: 00000000 00000000 ce163d10 ce5a2198 cccd2bb8 c0066f34 ce86de90 00000003
[ 687.436477] de60: ccce3a88 ccce3a2c cceb2d40 c049dd1c c0066f34 00000006 00000003 00000000
[ 687.444663] de80: beb8eaa0 ce86de90 ccff8100 c04918f4 00001f40 ffee0000 c092051c ce86dfb0
[ 687.452849] dea0: ccf593c0 80000207 b6e93f7c 00000002 ce163d10 ce721ee0 ccf593fc c001e7e0
[ 687.461035] dec0: 00000001 ce86df74 00000001 ffffff9c ceb94000 c0010244 ce86c000 00000000
[ 687.469222] dee0: 00022084 c00f0dc4 00000041 c0925344 ce163d10 ce721ee0 b41790de 00000004
[ 687.477408] df00: ceb94022 beb8ec34 00000000 ce475880 cccd25f8 beb8eaa0 cccd25f8 00000003
[ 687.485594] df20: c0066f34 ccff8100 00000003 00000000 00022084 c00f3174 00000000 00000000
[ 687.493781] df40: 00000002 00000003 ccff8100 ceb94000 00000003 ccff8100 ceb94000 00000020
[ 687.501967] df60: cccd25f8 c00e1b1c 00000000 00000000 ccff8100 ccff8100 00000003 c0066f34
[ 687.510154] df80: beb8eaa0 ce86c000 00000000 c00f34cc 00022084 00022078 00022070 00000036
[ 687.518341] dfa0: c0010244 c00100c0 00022084 00022078 00000003 c0066f34 beb8eaa0 00000000
[ 687.526527] dfc0: 00022084 00022078 00022070 00000036 00000003 00022070 beb8ec34 00022084
[ 687.534714] dfe0: b6f05150 beb8ea9c b6f79120 b6f0515c 60080010 00000003 b845797d 6180ad02
[ 687.542911] [<c005a8e0>] (mutex_optimistic_spin) from [<c066a6b8>] (__mutex_lock_interruptible_slowpath+0x28/0x190)
[ 687.553364] [<c066a6b8>] (__mutex_lock_interruptible_slowpath) from [<c049dd1c>] (dvb_net_do_ioctl+0x2c/0x204)
[ 687.563380] [<c049dd1c>] (dvb_net_do_ioctl) from [<c04918f4>] (dvb_usercopy+0x40/0x18c)
[ 687.571398] [<c04918f4>] (dvb_usercopy) from [<c00f3174>] (do_vfs_ioctl+0x2c4/0x5e8)
[ 687.579152] [<c00f3174>] (do_vfs_ioctl) from [<c00f34cc>] (SyS_ioctl+0x34/0x60)
[ 687.586472] [<c00f34cc>] (SyS_ioctl) from [<c00100c0>] (ret_fast_syscall+0x0/0x3c)
[ 687.594050] Code: e593700c e5903010 e3530000 0a00000e (e5933018)
[ 687.600198] ---[ end trace 6a25c0b1d5f2f35a ]---
 
Pulled out my old vu+ duo, built an image for it and crossed compiled the dvbnet app with bitbake against it, still get a segmentation fault(see below).
If anyone has managed to get dvbnet to work would be grateful to here how?

Unhandled kernel unaligned access[#1]:
Cpu 1
$ 0 : 00000000 7fb3259e 0092db4b 00010000
$ 4 : 87c89bcc 0092db4b 874f5df8 8046f13c
$ 8 : 00000000 874f5dfe 00000010 fffffff8
$12 : ffffffff 779db000 00000000 779968dc
$16 : 87c89bcc ffffffff 00000001 80739a80
$20 : 00010000 875b9730 0092db4b ffffffff
$24 : 00000010 778fee3c
$28 : 874f4000 874f5d48 00410000 80608c4c
Hi : 000002c9
Lo : 00001c1d
epc : 80054fec mutex_spin_on_owner+0x18/0x68
Tainted: P O
ra : 80608c4c __mutex_lock_interruptible_slowpath+0x58/0x30c
Status: 10008b03 KERNEL EXL IE
Cause : 00800010
BadVA : 0092db63
PrId : 0002a044 (Brcm4380)
Modules linked in: ipv6 xfs libcrc32c brcmfb(O) dvb_bcm7335(PO) procmk(O)
Process dvbnet (pid: 901, threadinfo=874f4000, task=875b9730, tls=779e35d0)
Stack : 8841d590 800e89b8 874f5e28 00000002 874f5e20 87503e00 00000000 874f5f00
87c89bcc ffffffff 87c89bcc 87c89b70 868ebd00 00000000 87503e00 ffffffff
00410000 80608f94 874f5e78 87fc3022 874f5e90 800d3aec 77874000 c0066f34
874f5df8 8046f184 00000026 880a7910 00000000 00000000 00000000 80730000
8841d590 00000006 c0066f34 874f5df8 00000006 7fb32598 00000000 804629ac
...
Call Trace:
[<80054fec>] mutex_spin_on_owner+0x18/0x68
[<80608c4c>] __mutex_lock_interruptible_slowpath+0x58/0x30c
[<80608f94>] mutex_lock_interruptible+0x94/0xa4
[<8046f184>] dvb_net_do_ioctl+0x48/0x228
[<804629ac>] dvb_usercopy+0x68/0x1bc
[<800dab08>] do_vfs_ioctl+0x3d8/0x5fc
[<800dad7c>] sys_ioctl+0x50/0xb4
[<8000d388>] stack_done+0x20/0x44


Code: 8c820010 03e00008 2c420001 <8ca20018> 1040fffb 00000000 8f820008 00021082 30420001
---[ end trace b142d85a72f353f8 ]---
 
You could try downloading the Debian build for ARM* and run it through a front-end script to set LD_LIBRARY_PATH appropriately.

However, when I do this on my (mipsel) system it is looking for /dev/dvb/adapter0/net0, which doesn't exist.
What are you trying to do with dvbnet?

* see:
Code:
https://packages.debian.org/stretch/dvb-apps
 
Never used this myself, but I built these dvbnet apps and tested on mips stb. Seems ok to me?

Code:
dvbnet -l

DVB Network Interface Manager
Copyright (C) 2003, TV Files S.p.A

Query DVB network interfaces:
-----------------------------
-----------------------------
Found 0 interface(s).

Code:
dvbnet -p 8000

DVB Network Interface Manager
Copyright (C) 2003, TV Files S.p.A

Status: device dvb0_0 for pid 8000 created successfully.

Code:
dvbnet -l

DVB Network Interface Manager
Copyright (C) 2003, TV Files S.p.A

Query DVB network interfaces:
-----------------------------
Found device 0: interface dvb0_0, listening on PID 8000, encapsulation MPE
-----------------------------
Found 1 interface(s).

Code:
dvbnet -d 0

DVB Network Interface Manager
Copyright (C) 2003, TV Files S.p.A

Status: device 0 removed successfully.

Code:
dvbnet -l

DVB Network Interface Manager
Copyright (C) 2003, TV Files S.p.A

Query DVB network interfaces:
-----------------------------
-----------------------------
Found 0 interface(s).
 

Attachments

Thanks LraiZer, will take a look at patching it.
btw, your not aware of any other way of creating a DVB network adapter?
There is dvbnetctrl source code in the old tuxbox-git that creates this also ;)
Code:
github.com/UkCvs/commando/tree/16.0/apps/dvb/tools/dvbnetctrl
 
@Abu, the dvbapps build was reinstated just several months ago on openpli-oe-core, just update oe-a with the required patches and your bb to mirror those.
Code:
https://github.com/OpenPLi/openpli-oe-core/tree/47bb7337994aaab77f6cc01e99fc83d54124ea79/meta-openpli/recipes-multimedia/dvb-apps
 
Just in case anyone is waiting for a response from the "someone" abu baniaz asked about this:
"Someone" has no idea.

"Someone" added this bb back for a completely different purpose/sub-package.

Gesendet von meinem SM-N950F mit Tapatalk
 
Thanks LraiZer, will check out dvbnetctrl.

Also thanks for the attachments, I tried them on my vuduo build but still get a segmentation fault,
no idea why?

Birdman, looking to perform some small file delivery via multicast to the STB.

abu baniaz, thanks for updating, I've pull down the new updates in the 4.2 branch however am getting
some patching file reference errors, see below for 0001-Fix-generate-keynames.patch :

ERROR: dvb-apps-1.1.1-r0 do_patch: Command Error: 'quilt --quiltrc /home/openvixbuilder/openvix/build-enviroment/builds/openvix/release/vuduo/tmp/work/mips32el-oe-linux/dvb-apps/dvb-apps-1.1.1-r0/recipe-sysroot-native/etc/quiltrc push' exited with 0 Output:
Applying patch 0001-Fix-generate-keynames.patch
can't find file to patch at input line 13
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Fix generate-keynames.sh script for cross-compilation
|
|generate-keynames.sh reads /usr/include/linux to find the keyname
|symbols. However, when cross-compiling, the include path points
|somewhere else. Allow the user to pass CROSS_ROOT to point to the
|root of the cross-compilation environment.
|
|Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <[email protected]>
|---
|diff -rup dvb-apps-83c746462ccb.orig/util/av7110_loadkeys/generate-keynames.sh dvb-apps-83c746462ccb/util/av7110_loadkeys/generate-keynames.sh
|--- dvb-apps-83c746462ccb.orig/util/av7110_loadkeys/generate-keynames.sh 2012-12-06 10:38:07.000000000 +0100
|+++ dvb-apps-83c746462ccb/util/av7110_loadkeys/generate-keynames.sh 2013-08-29 21:47:09.717991439 +0200
--------------------------
No file to patch. Skipping patch.
2 out of 2 hunks ignored
Patch 0001-Fix-generate-keynames.patch does not apply (enforce with -f)
ERROR: dvb-apps-1.1.1-r0 do_patch: Function failed: patch_do_patch
ERROR: Logfile of failure stored in: /home/openvixbuilder/openvix/build-enviroment/builds/openvix/release/vuduo/tmp/work/mips32el-oe-linux/dvb-apps/dvb-apps-1.1.1-r0/temp/log.do_patch.17389
ERROR: Task (/home/openvixbuilder/openvix/build-enviroment/meta-oe-alliance/meta-oe/recipes-multimedia/dvb-apps/dvb-apps_1.1.1.bb:do_patch) failed with exit code '1'

It also complains about the license file if I remove all the patching files from the bb file.
 
The files will be transmit via the satellite, could be some cases where there is no LAN.
 
Never used this myself, but I built these dvbnet apps and tested on mips stb. Seems ok to me?
[/CODE]

LraiZer did you install any other base components or libraries?

Interestingly I installed the latest openpli build which you mentioned reinstated dvb-apps, and installed the dvb-apps package from the openpli repo. Running dvbnet -l for the very first time
it initially showed some interfaces listening on PID 0(which I didn't create as I never ran dvbnet -p) then ended with a segmentation fault, see below:

root@vuduo:~#
root@vuduo:~# opkg update
Downloading http://downloads.openpli.org/feeds/openpli-7-release/3rd-party/Packages.gz.
Updated source 'openpli-3rd-party'.
Downloading http://downloads.openpli.org/feeds/openpli-7-release/3rd-party-mips32el/Packages.gz.
Updated source 'openpli-3rd-party-mips32el'.
Downloading http://downloads.openpli.org/feeds/openpli-7-release/3rd-party-vuduo/Packages.gz.
Updated source 'openpli-3rd-party-vuduo'.
Downloading http://downloads.openpli.org/feeds/openpli-7-release/all/Packages.gz.
Updated source 'openpli-all'.
Downloading http://downloads.openpli.org/feeds/openpli-7-release/mips32el/Packages.gz.
Updated source 'openpli-mips32el'.
Downloading http://downloads.openpli.org/feeds/openpli-7-release/picons/Packages.gz.
Updated source 'openpli-picons'.
Downloading http://downloads.openpli.org/feeds/openpli-7-release/vuduo/Packages.gz.
Updated source 'openpli-vuduo'.
root@vuduo:~#
root@vuduo:~#
root@vuduo:~#
root@vuduo:~# opkg install dvb-apps
Installing libdvbapi (1.1.1) on root
Downloading http://downloads.openpli.org/feeds/openpli-7-release/mips32el/libdvbapi_1.1.1-r0.0_mips32el.ipk.
Installing libdvben50221 (1.1.1) on root
Downloading http://downloads.openpli.org/feeds/openpli-7-release/mips32el/libdvben50221_1.1.1-r0.0_mips32el.ipk.
Installing libucsi (1.1.1) on root
Downloading http://downloads.openpli.org/feeds/openpli-7-release/mips32el/libucsi_1.1.1-r0.0_mips32el.ipk.
Installing libdvbsec (1.1.1) on root
Downloading http://downloads.openpli.org/feeds/openpli-7-release/mips32el/libdvbsec_1.1.1-r0.0_mips32el.ipk.
Installing libdvbcfg (1.1.1) on root
Downloading http://downloads.openpli.org/feeds/openpli-7-release/mips32el/libdvbcfg_1.1.1-r0.0_mips32el.ipk.
Installing dvb-apps (1.1.1) on root
Downloading http://downloads.openpli.org/feeds/openpli-7-release/mips32el/dvb-apps_1.1.1-r0.0_mips32el.ipk.
Configuring libdvbapi.
Configuring libdvben50221.
Configuring libucsi.
Configuring libdvbcfg.
Configuring libdvbsec.
Configuring dvb-apps.
root@vuduo:~#
root@vuduo:~#
root@vuduo:~#
root@vuduo:~# opkg install dvbnet
Installing dvbnet (1.1.1) on root
Downloading http://downloads.openpli.org/feeds/openpli-7-release/mips32el/dvbnet_1.1.1-r0.0_mips32el.ipk.
Configuring dvbnet.
root@vuduo:~#
root@vuduo:~#
root@vuduo:~#
root@vuduo:~# dvbnet

DVB Network Interface Manager
Copyright (C) 2003, TV Files S.p.A

Usage: dvbnet [options]
Where options are:
-a AD : Adapter card (default 0)
-n DD : Demux (default 0)
-p PID : Add interface listening on PID
-d NUM : Remove interface NUM
-l : List currently available interfaces
-U : use ULE framing (default: MPE)
-v : Print current version

root@vuduo:~#
root@vuduo:~#
root@vuduo:~#
root@vuduo:~# dvbnet -l

DVB Network Interface Manager
Copyright (C) 2003, TV Files S.p.A

Query DVB network interfaces:
-----------------------------
Found device 0: interface dvb0_0, listening on PID 0, encapsulation MPE
Found device 1: interface dvb0_1, listening on PID 0, encapsulation MPE
Found device 2: interface dvb0_2, listening on PID 0, encapsulation MPE
Segmentation fault
root@vuduo:~#
root@vuduo:~#
root@vuduo:~#
root@vuduo:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:1D:EC:01:DB:06
inet addr:192.168.147.198 Bcast:192.168.147.255 Mask:255.255.255.0
inet6 addr: fe80::21d:ecff:fe01:db06/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4030 errors:0 dropped:249 overruns:0 frame:0
TX packets:2371 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3996504 (3.8 MiB) TX bytes:214217 (209.1 KiB)
Interrupt:16

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:2 errors:0 dropped:0 overruns:0 frame:0
TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:140 (140.0 B) TX bytes:140 (140.0 B)


#### Perform reboot ####

root@vuduo:~#
root@vuduo:~#
root@vuduo:~#
root@vuduo:~#
root@vuduo:~#
root@vuduo:~# dvbnet -l

DVB Network Interface Manager
Copyright (C) 2003, TV Files S.p.A

Query DVB network interfaces:
-----------------------------
Segmentation fault
root@vuduo:~#
 
I built it twice, for different architectures, there were no errors.

IIRC, segmentation faults are usually driver related. I'll try use the application later.
 

OpenViX Feeds Status

Back
Top