Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check some changes / WIP in my tree #6

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

plntyk
Copy link

@plntyk plntyk commented Mar 14, 2021

Hi - I was doing some light vdr changes this weekend - some packages (and vdr) compile fine - see my changes

I am using a dvb.mk in package/kernel/module location instead of your solution atm

my other patches are here: https://github.com/plntyk/misc/tree/master/2021-03_vdr/openwrt-vdr
there are some other patches of linux distros there - some plugins , some fixes - as vdr heavily uses custom patches

vdr 2.4.6 and some plugins compile fine - some plugins / vdr programs like w_scan_cpp require more work because they always want to link against the original vdr sources / header files that probably should be installed via InstallDev

the Make files of VDR / plugins are also not that portable / cross-build friendly

Signed-off-by: Dirk Neukirchen <[email protected]>
Signed-off-by: Dirk Neukirchen <[email protected]>
Signed-off-by: Dirk Neukirchen <[email protected]>
Signed-off-by: Dirk Neukirchen <[email protected]>
Signed-off-by: Dirk Neukirchen <[email protected]>
Signed-off-by: Dirk Neukirchen <[email protected]>
Signed-off-by: Dirk Neukirchen <[email protected]>
Signed-off-by: Dirk Neukirchen <[email protected]>
Signed-off-by: Dirk Neukirchen <[email protected]>
use package/kernel/modules/dvb.mk

Signed-off-by: Dirk Neukirchen <[email protected]>
@tmn505
Copy link
Owner

tmn505 commented May 14, 2021

Hi, sorry for late reply.

Hi - I was doing some light vdr changes this weekend - some packages (and vdr) compile fine - see my changes

I am using a dvb.mk in package/kernel/module location instead of your solution atm

DVB modules packaging is hard to maintain (one good is that hardly any new demodulators, bridges, etc. are added to media subsystem), You'll need well maintianed wiki page where each card will have described every module necessary to make it work. Similar is my approach, where I added meta packages in v4l-dvb/devices.mk which pull necessary dependencies for each known card. The downside is someone needs to add their devices.
BTW the upside of using v4l-dvb build system is You can build the modules with SDK, so one can use them with the release image. The upside would not matter if dvb.mk will end up in upstream.

my other patches are here: https://github.com/plntyk/misc/tree/master/2021-03_vdr/openwrt-vdr
there are some other patches of linux distros there - some plugins , some fixes - as vdr heavily uses custom patches

The VDR is nice because it's not a resource hog, but yeah, the additional patches are a drag but sometime necessary.

vdr 2.4.6 and some plugins compile fine - some plugins / vdr programs like w_scan_cpp require more work because they always want to link against the original vdr sources / header files that probably should be installed via InstallDev

It's hard to handle that in straight manner, some plugins search for headers in well known places but other still think they are built in VDR source tree, sometime small patch to Makefile is enough, sometime not.

the Make files of VDR / plugins are also not that portable / cross-build friendly

Yeah, had to patch that in few places. Still it's easier than working with autoconfig/autotools.

Good news is that VDR 2.4.7 has most of the patches included, but You still might have to incorporate some for build with musl, check this tree for latest ones: https://github.com/glenvt18/vdr/commits/vdr-2.4.6.

I plan to get back to this in summer (maybe earlier), since I have two units of PCTV Broadway which I want to port to OpenWrt. These are ramips devices with embedded USB stick for DVB reception and transcoding board. The main board is easily supportable except the transcoding board. You might get one (if interested) for cheap on eBay or some such.

For now I'll keep this PR open, until I start working on the mentioned devices.

@tmn505 tmn505 force-pushed the master branch 4 times, most recently from d1d20fc to eced42c Compare May 12, 2023 18:29
@tmn505 tmn505 force-pushed the master branch 2 times, most recently from 167404e to 40195a8 Compare May 25, 2023 21:35
@Stefan1003

This comment was marked as off-topic.

@tmn505

This comment was marked as resolved.

@zhengjun131461
Copy link

DVB-APPS的源码下载失败,有什么办法解决吗?
make[3]: Entering directory '/home/zhengjun/openwrt-sdk-x86-64_gcc-11.3.0_musl.Linux-x86_64/package/openwrt-dvb/dvb-apps'
mkdir -p /home/zhengjun/openwrt-sdk-x86-64_gcc-11.3.0_musl.Linux-x86_64/dl
SHELL= flock /home/zhengjun/openwrt-sdk-x86-64_gcc-11.3.0_musl.Linux-x86_64/tmp/.dvb-apps-1505.tar.xz.flock -c ' /home/zhengjun/openwrt-sdk-x86-64_gcc-11.3.0_musl.Linux-x86_64/scripts/download.pl "/home/zhengjun/openwrt-sdk-x86-64_gcc-11.3.0_musl.Linux-x86_64/dl" "dvb-apps-1505.tar.xz" "36753a9a0e85a9ca051d337a4ef4e95d9b3fbcb4e567c161ef80600b93534ad8" "" || ( echo "Checking out files from the hg repository..."; mkdir -p /home/zhengjun/openwrt-sdk-x86-64_gcc-11.3.0_musl.Linux-x86_64/tmp/dl && cd /home/zhengjun/openwrt-sdk-x86-64_gcc-11.3.0_musl.Linux-x86_64/tmp/dl && rm -rf dvb-apps-1505 && [ ! -d dvb-apps-1505 ] && hg clone -r 3d43b280298c https://linuxtv.org/hg/dvb-apps dvb-apps-1505 && export TAR_TIMESTAMP=cd dvb-apps-1505 && hg log --template '\''@{date}'\'' -l 1 && find dvb-apps-1505 -name .hg | xargs rm -rf && echo "Packing checkout..." && tar --numeric-owner --owner=0 --group=0 --mode=a-s --sort=name ${TAR_TIMESTAMP:+--mtime="$TAR_TIMESTAMP"} -c dvb-apps-1505 | xz -zc -7e > /home/zhengjun/openwrt-sdk-x86-64_gcc-11.3.0_musl.Linux-x86_64/tmp/dl/dvb-apps-1505.tar.xz && mv /home/zhengjun/openwrt-sdk-x86-64_gcc-11.3.0_musl.Linux-x86_64/tmp/dl/dvb-apps-1505.tar.xz /home/zhengjun/openwrt-sdk-x86-64_gcc-11.3.0_musl.Linux-x86_64/dl/ && rm -rf dvb-apps-1505; ) '

  • curl -f --connect-timeout 20 --retry 5 --location https://sources.cdn.openwrt.org/dvb-apps-1505.tar.xz
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    0 169 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
    curl: (22) The requested URL returned error: 404
    Download failed.
  • curl -f --connect-timeout 20 --retry 5 --location https://sources.openwrt.org/dvb-apps-1505.tar.xz
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    0 169 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
    curl: (22) The requested URL returned error: 404
    Download failed.
  • curl -f --connect-timeout 20 --retry 5 --location https://mirror2.openwrt.org/sources/dvb-apps-1505.tar.xz
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    0 153 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
    curl: (22) The requested URL returned error: 404
    Download failed.
    No more mirrors to try - giving up.
    Checking out files from the hg repository...
    /bin/sh: 1: hg: not found
    make[3]: *** [Makefile:71: /home/zhengjun/openwrt-sdk-x86-64_gcc-11.3.0_musl.Linux-x86_64/dl/dvb-apps-1505.tar.xz] Error 127
    make[3]: Leaving directory '/home/zhengjun/openwrt-sdk-x86-64_gcc-11.3.0_musl.Linux-x86_64/package/openwrt-dvb/dvb-apps'
    time: package/openwrt-dvb/dvb-apps/compile#0.28#0.06#2.91
    ERROR: package/openwrt-dvb/dvb-apps failed to build.
    make[2]: *** [package/Makefile:116: package/openwrt-dvb/dvb-apps/compile] Error 1
    make[2]: Leaving directory '/home/zhengjun/openwrt-sdk-x86-64_gcc-11.3.0_musl.Linux-x86_64'
    make[1]: *** [package/Makefile:110: /home/zhengjun/openwrt-sdk-x86-64_gcc-11.3.0_musl.Linux-x86_64/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2
    make[1]: Leaving directory '/home/zhengjun/openwrt-sdk-x86-64_gcc-11.3.0_musl.Linux-x86_64'
    make: *** [/home/zhengjun/openwrt-sdk-x86-64_gcc-11.3.0_musl.Linux-x86_64/include/toplevel.mk:224:world] 错误 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants