alxscott Posted August 30, 2013 Share Posted August 30, 2013 Compiling a kernel is easy pops. Here are some instructions that might help you... You'll need to download this .tar file (courtesy of ddeeds) and put it on your cache drive. Bear in mind if you choose another location you'll need amend the commands accordingly. https://drive.google.com/uc?id=0B396mkxPBhWrQmRoSjU3UFhyT00&export=download The hardest part is the make menuconfig part, just press ' / ' for search and look for TBS or whatever... Easy. How to compile and unRAID in minutes # Put the unRAID-dev.tar in /mnt/cache so you can cut and paste below. cd /mnt/cache tar xvf unRAID-dev.tar # Install all the Development Packages needed to compile a Linux Kernel cd /mnt/cache/.unraid-dev/dev-packages installpkg *.t*z # Move default linux-3.9.6p-unRAID out of the way so we can create a new one. mv /usr/src/linux-3.9.6p-unRAID/ /usr/src/linux-3.9.6p-unRAID_orginal tar -C /usr/src/ -zxvf /mnt/cache/.unraid-dev/dev-packages/linux-kernel-3.9.6/linux-3.9.6.tar.gz ln -sf /usr/src/linux-3.9.6 /usr/src/linux-3.9.6p-unRAID # Copy over the all the unRAID stuff into our new Linux Kernel cp -rf /usr/src/linux-3.9.6p-unRAID_orginal/* /usr/src/linux-3.9.6p-unRAID cp -f /usr/src/linux-3.9.6p-unRAID_orginal/.config /usr/src/linux-3.9.6p-unRAID/ # Install Kernel Headers for our new Linux Kernel installpkg /mnt/cache/.unraid-dev/dev-packages/linux-kernel-3.9.6/kernel-headers-2.6.33.4_smp-x86-1.txz # Select the Linux Kernel Options you want compiled in the kernel or as modules cd /usr/src/linux-3.9.6p-unRAID make menuconfig <--- This is where you select what you want in the kernel or not. * = Compile into the kernel M = Module # Compile Linux Kernel, Modules and install Modules into new Linux Kernel make -j4 bzImage <--- Set -j to the number of processors you have make -j4 modules <--- Set -j to the number of processors you have make modules_install # Compile new Linux Kernel to the new-bzfiles folder cp arch/x86/boot/bzImage /mnt/cache/.unraid-dev/new-bzfiles/bzimage # Preperation for new bzroot rm -r /mnt/cache/.unraid-dev/bz-mod <--- Just in case, remove old directory mkdir /mnt/cache/.unraid-dev/bz-mod cd /mnt/cache/.unraid-dev/bz-mod # unzip stock unRAID-5.0-rc16c bzroot into bz-mod folder xzcat ../unRAID-5.0-rc16c/bzroot | cpio -i -d -H newc --no-absolute-filenames # Copy any new modules you created into our new bzroot folder rsync -av --delete /lib/modules/3.9.6p-unRAID/ /mnt/cache/.unraid-dev/bz-mod/lib/modules/3.9.6p-unRAID/ # zip bz-mod folder into bzroot and copy to new-bzfiles folder find . | cpio -o -H newc | xz --format=lzma > /mnt/cache/.unraid-dev/new-bzfiles/bzroot I must admit; it's very intimidating first time and will take a few attempts to get right but with practice comes confidence! One advantage of using the "/" search feature is it also explains any additional modules you will need to enable for thise specific to your hardware! Alex Quote Link to comment
ironicbadger Posted August 30, 2013 Share Posted August 30, 2013 Another advantage is you can up the timer from stock 100mhz to 1000mhz. In simple terms, means your unRAID goes faster innit. Quote Link to comment
piotrasd Posted August 30, 2013 Share Posted August 30, 2013 @ironicbadger in guide you miss patch for reiserfs you should copy files from /usr/src/linux-3.9.6p-unRAID_orginal/fs/reiserfs to /usr/src/linux-3.9.6p-unRAID/fs/reiserfs (overwrite) cp -rf /usr/src/linux-3.9.6p-unRAID_orginal/fs/reiserfs /usr/src/linux-3.9.6p-unRAID/fs/reiserfs Quote Link to comment
peter_sm Posted August 30, 2013 Share Posted August 30, 2013 I'm in to update a new kernel with iptables, but was in the benifit to use this commands make -j4 bzImage <--- Set -j to the number of processors you have make -j4 modules <--- Set -j to the number of processors you have //Peter Quote Link to comment
piotrasd Posted August 30, 2013 Share Posted August 30, 2013 I'm in to update a new kernel with iptables, but was in the benifit to use this commands make -j4 bzImage <--- Set -j to the number of processors you have make -j4 modules <--- Set -j to the number of processors you have //Peter Compiling for 4 cores - just faster Quote Link to comment
nars Posted August 30, 2013 Share Posted August 30, 2013 @ironicbadger in guide you miss patch for reiserfs you should copy files from /usr/src/linux-3.9.6p-unRAID_orginal/fs/reiserfs to /usr/src/linux-3.9.6p-unRAID/fs/reiserfs (overwrite) cp -R usr/src/linux-3.9.6p-unRAID_orginal/fs/reiserfs /usr/src/linux-3.9.6p-unRAID/fs/ He already haves a cp -rf that should already copy them. Quote Link to comment
peter_sm Posted August 30, 2013 Share Posted August 30, 2013 @ironicbadger in guide you miss patch for reiserfs you should copy files from /usr/src/linux-3.9.6p-unRAID_orginal/fs/reiserfs to /usr/src/linux-3.9.6p-unRAID/fs/reiserfs (overwrite) cp -R usr/src/linux-3.9.6p-unRAID_orginal/fs/reiserfs /usr/src/linux-3.9.6p-unRAID/fs/ He already haves a cp -rf that should already copy them. missing a initial / in fron t of usr cp -R usr/src/linux-3.9.6p-unRAID_orginal/fs/reiserfs /usr/src/linux-3.9.6p-unRAID/fs/ Quote Link to comment
ironicbadger Posted August 30, 2013 Share Posted August 30, 2013 What's the patch for re: reiserfs? I have been using my kernel from that guide for 2 weeks, no issues. Just curious. Hope the guide helps someone. Quote Link to comment
nars Posted August 30, 2013 Share Posted August 30, 2013 What's the patch for re: reiserfs? It's Tom's patch to solve reiserfs problem with last kernels, avoid periodic writes after 'sync' and still ensure data is committed/flushed to hdds to avoid problems if system not properly shutdown. See the two topics "copy files, wait 30min, hard reboot = data loss" at issues forum if you want details. Anyway if you followed that guide above you should have the patch as that 'cp -rf' line on these steps will copy all Tom's patched files, md and reiserfs ones... Quote Link to comment
ironicbadger Posted August 30, 2013 Share Posted August 30, 2013 What's the patch for re: reiserfs? It's Tom's patch to solve reiserfs problem with last kernels, avoid periodic writes after 'sync' and still ensure data is committed/flushed to hdds to avoid problems if system not properly shutdown. See the two topics "copy files, wait 30min, hard reboot = data loss" at issues forum if you want details. Anyway if you followed that guide above you should have the patch as that 'cp -rf' line on these steps will copy all Tom's patched files, md and reiserfs ones... Sounds rather important then. Could someone make sure my instructions include this patch for sure please. I'll update if required but I was happy with them until you guys tore it to pieces!!! Posted with my S4 on Tapatalk. Quote Link to comment
nars Posted August 30, 2013 Share Posted August 30, 2013 Tom's patched reiserfs files are located at: /usr/src/linux-3.9.6p-unRAID/fs/reiserfs/ you move linux-3.9.6p-unRAID to linux-3.9.6p-unRAID_orginal ... and later: cp -rf /usr/src/linux-3.9.6p-unRAID_orginal/* /usr/src/linux-3.9.6p-unRAID that will copy ALL files inside linux-3.9.6p-unRAID_orginal incl all subdirs, then it will surely include them... only "hidden" files (starting by '.') will not be included that's why you also 'manually' copy .config as well... despite you could actually even copy them all incl. any hidden ones in one single command like: cp -rf /usr/src/linux-3.9.6p-unRAID_orginal/. /usr/src/linux-3.9.6p-unRAID/ Anyway... if you are still afraid of some mistake you may just do a 'sync' and look if writes increase every 5 seconds on webgui main page. Quote Link to comment
piotrasd Posted August 31, 2013 Share Posted August 31, 2013 @nars yeep you have right Latest VDR 2.1.1 with plugins https://truck.it/p/4gWk9_OIYh Latest Tvheadend (without transcoding) https://dl.dumptruck.goldenfrog.com/p/YzpxfDHHyi/tvheadend-20130831-i686-1PTr.txz Latest OSCAM https://dl.dumptruck.goldenfrog.com/p/w8qpBPVZi8/oscam-1.20-unstable_svn8886-i486-slackware-linux (all full compatible with unraid 5.0) Quote Link to comment
CHBMB Posted August 31, 2013 Share Posted August 31, 2013 @nars yeep you have right Latest VDR 2.1.1 with plugins https://truck.it/p/4gWk9_OIYh Latest Tvheadend (without transcoding) https://dl.dumptruck.goldenfrog.com/p/YzpxfDHHyi/tvheadend-20130831-i686-1PTr.txz Latest OSCAM https://dl.dumptruck.goldenfrog.com/p/w8qpBPVZi8/oscam-1.20-unstable_svn8886-i486-slackware-linux (all full compatible with unraid 5.0) Any chance of some instructions on how to install and use VDR? Interested to try it out. Quote Link to comment
piotrasd Posted September 3, 2013 Share Posted September 3, 2013 unRAID 5.0 (final) - with latest TBS driver and media tree - added all possible Firmwares which I've found https://truck.it/p/ybRX086vww Linux Driver is updated to v130901, which has below updating: * Add DVB-C driver for TBS 6221, 6281, 6285, 5220, 5881 * Finalize DVB-T/T2 driver for TBS 6221, 6281, 6285, 5220, 5881 * Improve software compatibility for all DVB-C products * Improve software compatibility for all DVB-T/T2 products * Make power control for TBS 6984 more reliable I have also DVBsky build if someone will be want Quote Link to comment
CHBMB Posted September 4, 2013 Share Posted September 4, 2013 unRAID 5.0 (final) - with latest TBS driver and media tree - added all possible Firmwares which I've found https://truck.it/p/ybRX086vww Linux Driver is updated to v130901, which has below updating: * Add DVB-C driver for TBS 6221, 6281, 6285, 5220, 5881 * Finalize DVB-T/T2 driver for TBS 6221, 6281, 6285, 5220, 5881 * Improve software compatibility for all DVB-C products * Improve software compatibility for all DVB-T/T2 products * Make power control for TBS 6984 more reliable I have also DVBsky build if someone will be want Thank you sir, you're a gentleman and a scholar, just woke up and have got my first day off for eight days and this was on my list of things to do, you've just made my day! Quote Link to comment
Alexandro Posted September 4, 2013 Share Posted September 4, 2013 Dear piotrasd, Do you have a build for Skystar USB HD? Thank you for your hard work. Quote Link to comment
piotrasd Posted September 4, 2013 Share Posted September 4, 2013 @Alexandro Skystar USB HD - Drivers are included in Linux Mainline since 2.6.39 (or earlier) So should work on my build Quote Link to comment
Alexandro Posted September 4, 2013 Share Posted September 4, 2013 Thank you for the explanation. BR Quote Link to comment
spylex Posted September 4, 2013 Share Posted September 4, 2013 unRAID 5.0 (final) - with latest TBS driver and media tree - added all possible Firmwares which I've found https://truck.it/p/ybRX086vww Linux Driver is updated to v130901, which has below updating: * Add DVB-C driver for TBS 6221, 6281, 6285, 5220, 5881 * Finalize DVB-T/T2 driver for TBS 6221, 6281, 6285, 5220, 5881 * Improve software compatibility for all DVB-C products * Improve software compatibility for all DVB-T/T2 products * Make power control for TBS 6984 more reliable I have also DVBsky build if someone will be want Piotr, thanks for your efforts! I recently bought a DVBSky S960 so i'd like to try and see if it works on unRAID, could i possibly try your DVBSky build? Any chance you can throw that fixed r8169 driver in there too? I'm not sure if it works on v5.0 yet (haven't tried). Quote Link to comment
piotrasd Posted September 4, 2013 Share Posted September 4, 2013 r8169 is fixed in my build And this is link to DVBSky build https://truck.it/p/ZrfaCqT7Za (minimal just DVBsky modules) From latest news about TBS and problem of driver im loose my trust http://tvheadend.wordpress.com/2013/07/11/tbs-6981-debacle/ Im use almost year DVBsky and i have 100% stability without any problems Quote Link to comment
cableboy Posted September 5, 2013 Share Posted September 5, 2013 Thanks for the build. Is this version with drivers for hdhomerun? Peter Quote Link to comment
Reginald Posted September 5, 2013 Share Posted September 5, 2013 Thanks for the build. Is this version with drivers for hdhomerun? Peter Not yet, you will have to wait for Mack or compile it yourself. I foolishly did a clean install and now I am having issues with my Services not having a name... Quote Link to comment
rymalco Posted September 6, 2013 Share Posted September 6, 2013 For a complete noob, how much of http://lime-technology.com/wiki/index.php/Installing_Tvheadend_in_unRAID is now relevant? I see that the new bzimage/root is taken care of: unRAID 5.0 (final) - with latest TBS driver and media tree - added all possible Firmwares which I've found https://truck.it/p/ybRX086vww and tvheadend: Latest Tvheadend (without transcoding) https://dl.dumptruck.goldenfrog.com/p/YzpxfDHHyi/tvheadend-20130831-i686-1PTr.txz but I'm pretty clueless on the others...any help would be greatly appreciated! Quote Link to comment
rymalco Posted September 6, 2013 Share Posted September 6, 2013 OK - I've trawled through the full length of this thread and still not entirely clear. I want to keep my apps installed in "/boot/config/plugins/" I want to keep app data directories installed in "/mnt/disk1/apps/" I have a USB AVerTV Volar HD PRO that I want to use (looks like it is compatible:http://linuxtv.org/wiki/index.php/DVB-T_USB_Devices) So...my understanding derived from spylex's github instructions https://github.com/spylex/tvheadend_unraid: [*]I need to copy piotrasd's bzroot/image files into "/boot" (overwriting backed up originals) http://lime-technology.com/forum/index.php?topic=20782.msg261549#msg261549 [*]I need to copy piotrads's tvheadend installer to "/boot/config/plugins/" http://lime-technology.com/forum/index.php?topic=20782.msg260824#msg260824 [*]I need to install tvheadend to "/boot/config/plugins/tvheadend" [*]I make my "/mnt/disk1/apps/tvheadend" data directory [*]I need to make data directory have full permisions for 'nobody' [*]I need to create admin user and set password [*]I need to start tvheadend L3-7 can be covered off with the following: installpkg /boot/config/plugins/tvheadend/tvheadend-20130831-i686-1PTr.txz mkdir -p /mnt/disk1/apps/tvheadend chown -R nobody:users /mnt/disk1/apps/tvheadend echo "{ \"username\": \"admin\", \"password\": \"admin\" }" > /mnt/disk1/apps/tvheadend/superuser sudo -u root tvheadend -c /mnt/disk1/apps/tvheadend -u root -g video -f 2>&1 >/dev/null The above seemed to work to the point that I can access tvheadend through "tower/9981" however it is not finding any TV Adapters in the Configuration<DVB Inputs<TV Adapters menu. Can anyone let me know if I have missed a step out along the way? Any help much appreciated! (I'll leave the go file update query for a later post...!) Quote Link to comment
Reginald Posted September 6, 2013 Share Posted September 6, 2013 OK - I've trawled through the full length of this thread and still not entirely clear. I want to keep my apps installed in "/boot/config/plugins/" I want to keep app data directories installed in "/mnt/disk1/apps/" I have a USB AVerTV Volar HD PRO that I want to use (looks like it is compatible:http://linuxtv.org/wiki/index.php/DVB-T_USB_Devices) So...my understanding derived from spylex's github instructions https://github.com/spylex/tvheadend_unraid: [*]I need to copy piotrasd's bzroot/image files into "/boot" (overwriting backed up originals) http://lime-technology.com/forum/index.php?topic=20782.msg261549#msg261549 [*]I need to copy piotrads's tvheadend installer to "/boot/config/plugins/" http://lime-technology.com/forum/index.php?topic=20782.msg260824#msg260824 [*]I need to install tvheadend to "/boot/config/plugins/tvheadend" [*]I make my "/mnt/disk1/apps/tvheadend" data directory [*]I need to make data directory have full permisions for 'nobody' [*]I need to create admin user and set password [*]I need to start tvheadend L3-7 can be covered off with the following: installpkg /boot/config/plugins/tvheadend/tvheadend-20130831-i686-1PTr.txz mkdir -p /mnt/disk1/apps/tvheadend chown -R nobody:users /mnt/disk1/apps/tvheadend echo "{ \"username\": \"admin\", \"password\": \"admin\" }" > /mnt/disk1/apps/tvheadend/superuser sudo -u root tvheadend -c /mnt/disk1/apps/tvheadend -u root -g video -f 2>&1 >/dev/null The above seemed to work to the point that I can access tvheadend through "tower/9981" however it is not finding any TV Adapters in the Configuration<DVB Inputs<TV Adapters menu. Can anyone let me know if I have missed a step out along the way? Any help much appreciated! (I'll leave the go file update query for a later post...!) I would think you need to do a modprob (I am using Macks build with a HDHomeRun) to install the driver prior to launching tvheadend. You can look and make sure the driver is installed by issuing the command lsmod, you should see a dvb driver of some sort. You can also do a dmesg, it will show you if your card was detected when the driver was installed. Are you just entering the code below? Some of that will need to be added to the go file: installpkg /boot/config/plugins/tvheadend/tvheadend-20130831-i686-1PTr.txz sudo -u root tvheadend -c /mnt/disk1/apps/tvheadend -u root -g video -f 2>&1 >/dev/null Again, I am not 100% sure because I have a different type of card and use a different build. I hope some of that is helpful! 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.