本帖最後由 harrylwc 於 2016-2-27 00:22 編輯
回覆 76# bbsunny
Linux driver 要夹返kernel version
以下要駁router lan port去電腦進行及wan port 駁去modem/router總之要上到網
1.如果你想保留返gl-inet openwrt 特色(有自己修改過openwrt web介面,有android apps)
首先你要telnet 去部機睇下依家gl-inet openwrt version(登入畫面已見到),+check linux kernel verion(登入後打uname -a)
同埋要知佢有幾多位剩(登入後打df -k -h)
去下載http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe
Download 完putty.exe,double click 入ip 192.168.8.1(login 可以試下ssh or telnet如果login 唔到)
呢度好像有唔同version download http://www.gl-inet.com/downloads/
唔知出廠俾你是否 2.14 OpenWrt CC1505 version or 2.12 OpenWrt BB1407 version
睇清楚你kernel version,download BB14.07 OR CC 15.05 driver
OpenWRT 14.07(BB) driver 去
http://openwrt.jaru.eu.org/barrier_breaker/ar71xx/multimedia/
OpenWRT 15.05(BB) driver 去
http://openwrt.jaru.eu.org/chaos_calmer/ar71xx/media-3.18.23/
download 以下 ko檔
可以用wget 去download
Putty入去打以下command
cd /lib/modules/3*/
wget http://openwrt.jaru.eu.org/barri ... ltimedia/rc-core.ko
....
....
以此類推download 所有ko file(d689 需要atbm8830.ko和max2165.ko,dtv01 需要lgs8gxx.ko 和 mxl5005s.ko)
要成功load起driver, 就要執行以下command:
insmod rc-core.ko
insmod dvb-core.ko
insmod dvb-usb.ko
insmod atbm8830.ko
insmod max2165.ko
insmod lgs8gxx.ko
insmod mxl5005s.ko
insmod dibx000_common.ko
insmod dib7000p.ko
insmod dib0070.ko
insmod dvb-usb-cxusb.ko
insmod 第一个module 如出failed,要check 有没有安裝input-core.ko
執行以下command:
opkg update
opkg install kmod-input-core
insmod input-core.ko
再insmod 其它modules
成功load 起drivers. 執行 dmesg 會見到 以下內容
[286402.070000] dvb-usb: found a 'Conexant DMB-TH Stick' in warm state.
[286402.440000] dvb-usb: will pass the complete MPEG2 transport stream to the software demuxer.
[286402.450000] DVB: registering new adapter (Conexant DMB-TH Stick)
[286404.720000] usb 1-1.1: DVB: registering adapter 0 frontend 0 (Legend Silicon LGS8913/LGS8GXX DMB-TH)...
[286404.730000] MXL5005S: Attached at address 0x63
[286404.730000] dvb-usb: Conexant DMB-TH Stick successfully initialized and connected.
同時有4個devices
ls /dev/dvb/adapter0/
demux0 dvr0 frontend0 net0
到此最麻煩drivers個parts 就搞掂.下一part搞tvheadend streaming.留意router重有幾多位剩,tvheadend+config file要7MB左右
df -k -h
2.不要glinet 的openwrt version
download http://openwrt.jaru.eu.org/chaos ... quashfs-factory.bin
然後跟 https://wiki.openwrt.org/toh/gl-inet/gl-inet_64xx
installation step 4-7,step 5 用上面download openwrt-15.05-ar71xx-generic-gl-inet-6416A-v1-squashfs-factory.bin 個 image
再download kernel modules & tvheadend,不過今次是15.05 CC version
http://henry.ubddns.org:8311/tvh ... les%2btvheadend.txt
逐句複制貼入putty入就可以
===========================================================
tvheadend installation:
Putty入去打以下command
cd /tmp/
wget http://henry-home.duckdns.org:83 ... ster-4.1_ar71xx.ipk
opkg install tvheadend_master-4.1_ar71xx.ipk
rm /tmp/tvheadend_master-4.1_ar71xx.ipk
第一次啟動tvheadend
tvheadend -C -B
跟返教程setup
http://www.hkepc.com/forum/viewt ... highlight=tvheadend
here is my tvheaend screen dump
http://henry.ubddns.org:8311/tvh/tvheadend_sceen_dump.zip
setup 好會有config folder (keyboard control C to break tvheadend)
cd /root/.hts/tvheadend
可以搬去其它地方.例如 /etc
mv -R /root/.hts/tvheadend /etc
再download init script
cd /etc/init.d/
rm /etc/init.d/tvheadend
wget http://henry-home.duckdns.org:8311/tvh/tvheadend
chmod 755 /etc/init.d/tvheadend
每次router boot 起自己啟動tvheadend
/etc/init.d/tvheadend enable
command to startup tvheadend
/etc/init.d/tvheadend start
stop tvheadend
/etc/init.d/tvheadend stop
restart tvheadend
/etc/init.d/tvheadend restart
1.電腦睇的話,download vlc player https://www.videolan.org/vlc/index.zh_TW.html
http://henry-home.duckdns.org:8311/tvh/livetv.m3u
download的 m3u file 用記事簿開
http://yourloginid:yourpassword@youripaddress:9981/stream/channelnumber/2?mux=pass
id and password 參考你tvheadend 設定版面 configuration>users>access entries (如果你有set user & password的話)
channelnumber/2 個channelnumber 2, 參考你tvheadend設定版面 configuration>Channel/EPG number個欄(可以自己set好每個channel number)
.m3u edit 好儲存,指返用vlc開就可以
tvheadend 設定的screen dump,設定freq時(4.jpg)最好在電腦或者電視 睇返你所在地區freq.no.
http://henry-home.duckdns.org:8311/tvh/tvheadend_sceen_dump.zip
2.電腦用vlc htsp plugin睇,不過出唔到字幕
https://tvheadend.org/boards/4/topics/8509
3.電腦用xmbc/kodi睇
http://kodi.wiki/view/PVR/Backend/Tvheadend
4.手機平板 android 睇,去market download tvhclient + mxplayer +mxplayer 解碼包 armv7 neon
再去跟返這個方法2 http://mobile.discuss.com.hk/viewthread.php?tid=24107356 download codecs
tvhclient setting
manage connections set好router ip
video & audio parameters >media container 設定為 matroska 或pass=through
tvhclient play 的時候指返mxplayer 開就可以 |