spylex Posted February 23, 2013 Share Posted February 23, 2013 Why instead of building a whole new kernel image to replace unraid one you don't just provide a package to install media tree modules (and firmwares) and then do something like a 'depmod -a' and 'udevadm trigger' to load driver? I'm not sure if it will work for any kind of dvb cards but I did tried it with my two usb dvb-t adapters (e3c ec168 and af9015) and it works fine. This is an interesting approach. I wouldn't even know where to start with this, do you think you can share your knowledge with us? How did you install the media tree and firmware with unRAID running? Quote Link to comment
nars Posted February 23, 2013 Share Posted February 23, 2013 There is no big trick on it... what I did was just compile kernel matching unraid kernel version but with media tree added (as modules, there are instructions for that on the forum...) and then, instead of use the newly created kernel image to replace unraid one, just do something like the instructions below to create a package with just media tree module files, ready to be installed on running unraid: ...being on /usr/src/linux as current dir, i.e. after doing 'make' to build kernel... mkdir ~/modules mkdir ~/newpkg make modules_install INSTALL_MOD_PATH=~/modules cd ~/modules/ cp -r --parents lib/modules/`uname -r | cut -d"-" -f1`-unRAID/kernel/drivers/media ~/newpkg cd ~/newpkg/ mkdir lib/firmware ...add firmware files to ~/newpkg/lib/firmware... mkdir install echo 'depmod -a' > install/doinst.sh echo 'udevadm trigger' >> install/doinst.sh makepkg /boot/nars/mediatree.tgz then when we installpkg this new package it will copy module and firmware files to the right paths and 'udevadm trigger' should 'force' udev to load driver for already connected devices... and surely tvheadend will need to be executed only after this package is installed. Btw as I said I don't know why no one else is apparently doing this... I don't know if it will work with every card or if there is any disadvantage on doing this... but from my tests it seems to work just fine. Quote Link to comment
spylex Posted February 23, 2013 Share Posted February 23, 2013 Ok i think i understand, the reason nobody does it is because of all the dependencies that are required to even get to that point (rebuild kernel). It would just take too long and having a preconfigured image just makes sense. Quote Link to comment
nars Posted February 23, 2013 Share Posted February 23, 2013 But such compiled modules (package with them) should be usable by anyone, it can be shared, no need each user compile them - similar to the kernel image. Quote Link to comment
Mettbrot Posted February 26, 2013 Share Posted February 26, 2013 Any idea guys why tvheadend keeps preventing my array from stoping? It started a couple of days ago when unraid got stuck with Stop SMB...Spinning up all drives...Sync filesystems...Unmounting disks...Retry unmounting disk share(s)...Unmounting disks...Retry unmounting disk share(s)...Unmounting disks...Retry unmounting disk share(s)...Unmounting disks...Retry unmounting disk share(s)................ Isn't tvheadend supposed to turn off when I stop the array? I used the tuturial on github to install it, no plg file... Quote Link to comment
CHBMB Posted February 26, 2013 Share Posted February 26, 2013 Can't help you, but mine shuts down with no problems, and I set mine up from github and didn't use the plg either, not particularly experienced with Linux but pretty sure there's a way via telnet to bring up processes to help debug why the array can't unmistakable disks. I'll have a quick google... Sent from my iPad using Tapatalk HD Quote Link to comment
CHBMB Posted February 26, 2013 Share Posted February 26, 2013 Found this is another thread if it's any help. All drives in the arry say stopped. The Cache drive still says Unmounting and the status says Stopping. Sooo... I can't add a device. Not sure what to do at this point. Reboot from the command line? If I do that it will kicj off a parity check, and I will have to wait for that to finish before trying to stop the array again. Type lsof /mnt/cache and fuser -mv /mnt/cache and see what process is keeping the disk from being un-mounted. Then, type kill PID where PID is the process ID number. The disk should then un-mount (as unRAID is continually trying to un-mount it) Joe L. Sent from my iPad using Tapatalk HD Quote Link to comment
Mettbrot Posted February 26, 2013 Share Posted February 26, 2013 Thanks for your help, but I already figured out that it is the tvheadend process: http://lime-technology.com/forum/index.php?topic=26202.0 Don't know why it isn't stopping tvheadend anymore :-( Quote Link to comment
Kryspy Posted February 26, 2013 Share Posted February 26, 2013 Do you have Subsonic installed by chance? I found Subsonic caused the array to hang during shutdown and didn't play well with others. Kryspy Quote Link to comment
CHBMB Posted February 26, 2013 Share Posted February 26, 2013 Thanks for your help, but I already figured out that it is the tvheadend process: http://lime-technology.com/forum/index.php?topic=26202.0 Don't know why it isn't stopping tvheadend anymore :-( Sorry mate, If it helps my config is 5.0 RC11 the plugins I have are SABNZB, Sickbeard, APC UPS and TVHeadend, all exept my APC UPS are running off my Cache drive. No problems here, although because of my UPS it means that the plugin installs a powerdown script of some description but I don't think it's used during normal operation. Good Luck though. Sent from my iPad using Tapatalk HD Quote Link to comment
Kryspy Posted February 27, 2013 Share Posted February 27, 2013 Restarting unraid before you stop the array will force a parity check upon reboot. Kryspy Quote Link to comment
thebluevoice Posted February 27, 2013 Share Posted February 27, 2013 Hi, I have a usb dvb-t stick based on RealTek RTL2832U / elonics e4000. How would I go about adding support for this? Is there a step by step guide on how to recompile with the required drivers somewhere? Or failing that, has someone already done this? Thanks! Quote Link to comment
spylex Posted February 27, 2013 Share Posted February 27, 2013 But such compiled modules (package with them) should be usable by anyone, it can be shared, no need each user compile them - similar to the kernel image. This is an interesting proposition. I wonder if we can make a working model? Quote Link to comment
piotrasd Posted February 28, 2013 Share Posted February 28, 2013 Hi My friend working on VDR package for Unraid ... but have normal work family and dont have time If you want accelerate progress please make donation for him Im already make myself donation This is like "Thanks" from me for this guy https://www.paypal.com/us/cgi-bin/webscr?cmd=_flow&SESSION=tTj7GJKhHY1Mgm_QxDNkExcFf9s8PSDmpIgv6ltFvhITuMHBSccVkQCc6BC&dispatch=5885d80a13c0db1f8e263663d3faee8dd75b1e1ec3ad97b7af62835dd81d5d52 And maybe on days we will be can use VDR on unraid Quote Link to comment
mvpittman Posted March 2, 2013 Share Posted March 2, 2013 I have a couple of Avermedia A180 cards. Figured it'd be better to have the tuner in the unRAID server than running a separate machine. http://www.linuxtv.org/wiki/index.php/AVerMedia_AVerTVHD_MCE_A180 I grabbed the updated kernel for RC11 and copied them to my flash drive, rebooted I installed the tvheadend-3.3.git.d262726-i686-1PTr.txz file I followed the instructions on the spylex github site I had to install the libidn and curl packages to get tvheadend to start I modified my go script so that tvheadend would start on reboot I started tvheadend and visited the web page, I could see the tuners, but I couldn't add any DVB networks. None showed up. Yeah, a plugin would be nice, I had to read the whole thread just to decipher how to do this. Guess I wanted tuners in my server really bad. I didn't see the file in /lib/firmware that my cards need "dvb-fe-nxt2004.fw". I'm guessing it just wasn't included. Is that available for download? It appears that usually, you have to download it with a perl script or grab it from kernel sources or something. I too am a Schedules Direct subscriber. I'm glad to pay for guide data, but I don't want to import it from another machine. I'm more interested in live TV, but it'd be nice to schedule some recordings too. Appreciate any help with the firmware. I'd be indebted to anyone who figures out how to get the perl/xmltv/guide thing working. Otherwise I'll probably just put a tuner (and a hard disk) in an XBMC "frontend" machine. Quote Link to comment
piotrasd Posted March 3, 2013 Share Posted March 3, 2013 please send me all forget Firmware on PW, some link etc. (im use in my build package from openelec ...) Quote Link to comment
mvpittman Posted March 4, 2013 Share Posted March 4, 2013 I just downloaded the firmware from this blog site: http://pyther.net/tag/dvb/ The guy had a hard time finding it, and just posted it. Apparently Debian (and Ubuntu) have a package for non-free firmware that includes the nxt20004 demodulator that is necessary for the saa7134 kernel module. Files: dvb-fe-nxt2004.fw linux-firmware-nonfree_1.11_all.deb To Install: wget http://pyther.net/files/firmware/nxt2004/dvb-fe-nxt2004.fw cp dvb-fe-nxt2004.fw /lib/firmware reload appropriate module or reboot check out dmesg to confirm firmware was loaded Quote Link to comment
Mettbrot Posted March 4, 2013 Share Posted March 4, 2013 Maybe you can take a look at https://pikacode.com/liplianin/s2-liplianin-v35/ There is support for many cards in this repository, maybe you can include it in your next build just to support as much cards as possible :-) Quote Link to comment
piotrasd Posted March 5, 2013 Share Posted March 5, 2013 yes but this is no easy ...usually driver for one tuner (and other from kernel) is the patched soure of media three, i very hard and difficult connect few drivers in one media three, even openelec had some probles and russian guys release alwayes 3 version of openelec, generic (from kernel only drivers), TBS (for TBS drivers) and s2-liplianin for better and more supports tuners BTW. im successfully run VDR on unraid but this early stage, still need some fixes, anyway for 2 days testing - working - no crashes and much more better working with XBMC Quote Link to comment
JM2005 Posted March 5, 2013 Share Posted March 5, 2013 Speaking of openelec which i like very much, i wished there was an vmware image i could run on my ESI 5.1 server running on unRaid. Quote Link to comment
Mettbrot Posted March 5, 2013 Share Posted March 5, 2013 Unlike unRaid where I spent several days trying (and failing) to get it to work on vmware, openelec should install nice on a vmware, I saw some code optimizations directly for this purpose... Quote Link to comment
JM2005 Posted March 5, 2013 Share Posted March 5, 2013 Unlike unRaid where I spent several days trying (and failing) to get it to work on vmware, openelec should install nice on a vmware, I saw some code optimizations directly for this purpose... If you happened to find the code please let me know. I really want to get it openelec going on a vm. Thanks Quote Link to comment
Mettbrot Posted March 5, 2013 Share Posted March 5, 2013 I meant there were specific changes to the openelec code. You have to build your own openelec 'Virtual' Image: http://wiki.openelec.tv/index.php?title=Installing_OpenELEC_on_VMware You are lucky, because there are already some images over here: http://sources.openelec.tv/tmp/image/ (rather old) Quote Link to comment
JM2005 Posted March 5, 2013 Share Posted March 5, 2013 I meant there were specific changes to the openelec code. You have to build your own openelec 'Virtual' Image: http://wiki.openelec.tv/index.php?title=Installing_OpenELEC_on_VMware You are lucky, because there are already some images over here: http://sources.openelec.tv/tmp/image/ (rather old) I had forgotten about that link! Thanks so much. Quote Link to comment
mercraus Posted March 7, 2013 Share Posted March 7, 2013 Here is the new bzroot/bzimage files with the hdhomerun and r8169 drivers installed. https://www.dropbox.com/s/3zzz7c3g14g848g/unraid5.0rc11_hdhomerun.zip I just tested it with a Realtek NIC I had sitting around and it seems to be working. Let me know if anyone has any problems. I've booted up with this bzroot/bzimage and used the most recent tvheadend tzx in this thread however I can't see my DVB-S2 card (TBS 6921) in the adapters list in tvheadend. I do not use the original plg file at all. Is there something I am missing or can run to see if the appropriate drivers are loaded? Thanks for the new files, my Realtek NIC is working now. I'm having the same problem as PsyVision now, except I have a HDHomerun that isn't showing up in the adapters list. Any suggestions? Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.