Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
08-23-2013, 08:32 PM
|
#1
|
LQ Newbie
Registered: Mar 2009
Location: australia
Distribution: mint 15 x64
Posts: 8
Rep:
|
gigabyte U7300 "edit Makefile" command returns "error"
Following
http://www.linuxtv.org/wiki/index.php/Gigabyte_U7300
,I am trying to install drivers for my dvb-t usb stick. All went well untill I got to the line;
default@aspwest2mint ~/DVB-Realtek-RTL2832U-2.2.2-10tuner-mod_kernel-3.0.0/RTL2832-2.2.2_kernel-3.0.0 $ edit Makefile, option INCLUDE_EXTRA_DVB (comment out line "INCLUDE_EXTRA_DVB := include-300", delete comment in front of "INCLUDE_EXTRA_DVB := include-320")
bash: syntax error near unexpected token `('
The instructions given were to 'copy and paste' which I did, but the whole command is incomprehensible to me anyway, so I am dumbfounded!
This is the first distro which is really working for me, but not being able to install this, is the break for me.
I am the IT administrator of my school (just an ordinary teacher with no training!), so although on unfamiliar territory, I am not completely illeterate. But definetly a first starter!
Help (with explanations, so that I can learn from this) will be greatly appreciated.
|
|
|
08-23-2013, 09:13 PM
|
#2
|
Member
Registered: Feb 2012
Location: United States
Distribution: Slackware 14.0
Posts: 159
Rep:
|
Code:
edit Makefile, option INCLUDE_EXTRA_DVB (comment out line "INCLUDE_EXTRA_DVB := include-300", delete comment in front of "INCLUDE_EXTRA_DVB := include-320")
Are you sure this was given to copy and paste? This is not bash syntax at all. Nor is 'edit' a shell command.
If I am reading the wiki correctly, you are supposed to be copying and pasting from this link:
https://github.com/ambrosa/DVB-Realt...d_kernel-3.0.0
The wiki is just an overview. Try reading the information provided on github. It's the same stuff, just expanded on a little. If you have any trouble, please post back.
Edit: I just read the github link and it doesn't explain how to edit the kernel makefile. When you are in the source directory, try typing 'make xconfig' or 'make menuconfig'.
Out of curiosity, what version of Mint do you use which runs the 3.0 kernel?
Last edited by flyinggeorge; 08-23-2013 at 09:22 PM.
|
|
|
08-24-2013, 05:30 AM
|
#3
|
LQ Newbie
Registered: Mar 2009
Location: australia
Distribution: mint 15 x64
Posts: 8
Original Poster
Rep:
|
I figured how to get the info! Sharp learning curve from W7, got lazy ..don't use command line (er terminal) unless I have to!
So;
default@aspwest2mint ~ $ uname -r
3.8.0-19-generic
Not what I expected, I thought my version was 3.2.0. Could be why things are strange!
However what is source dir? That is, from where?
default@aspwest2mint ~/DVB-Realtek-RTL2832U-2.2.2-10tuner-mod_kernel-3.0.0/RTL2832-2.2.2_kernel-3.0.0 $ make xconfig
make: *** No rule to make target `xconfig'. Stop.
Out of my depth again, I need to learn the linguo if I am to stay with it... In the meantime I am in your debt.
|
|
|
08-24-2013, 11:26 AM
|
#4
|
Member
Registered: Feb 2012
Location: United States
Distribution: Slackware 14.0
Posts: 159
Rep:
|
The source drive should be:
Code:
# cd /usr/src/linux-$(uname -r)
From this directory you should be able to run 'make xconfig' and then find the module you need.
|
|
|
08-24-2013, 05:10 PM
|
#5
|
LQ Newbie
Registered: Mar 2009
Location: australia
Distribution: mint 15 x64
Posts: 8
Original Poster
Rep:
|
I get:
default@aspwest2mint ~ $ # cd /usr/src/linux-$(uname -r)
default@aspwest2mint ~ $ make xconfig
make: *** No rule to make target `xconfig'. Stop.
I do have in my home folder;
/home/default/DVB-Realtek-RTL2832U-2.2.2-10tuner-mod_kernel-3.0.0
Does this help?
edit; I looked into this file, found the titbits and I had a look into Linuxtv.org. Well, what a group of dedicated people! But so confusing to me. I still can't find "rtl2832u_linux_driver" and don't yet know where to find them (they may have been replaced by more up to date ones?).
Under;
http://git.linuxtv.org/media_tree.git
I have the second part "v4l-dvb", or at least I think I can do it. Running out of time, I'll try again later.
Last edited by drobin; 08-24-2013 at 06:02 PM.
|
|
|
08-25-2013, 01:14 AM
|
#6
|
Member
Registered: Feb 2012
Location: United States
Distribution: Slackware 14.0
Posts: 159
Rep:
|
That was totally my fault. For some reason, I thought you were trying to recompile your kernel to add a new module.
Okay, so when you cd to ~/default/DVB-Realtek-RTL2832U-2.2.2-10turner-mod_kernel-3.0.0 there should be a file called "Makefile" in that directory. To edit this file, use a text editor such as nano (command line) or whatever editor you use normally. I use geany, but geany needs to be installed separately. If you prefer you can use vim, but nano is easier to use as far as command line text editors go. Not better, but easier.
So do something like this:
Code:
nano Makefile
OR
geany Makefile
Replace 'geany' with your text editor of choice. (kwite, gedit, or what have you). Once you have opened the Makefile, look for a line that says: INCLUDE_EXTRA_DVB
I don't really know what option you will need to set that line to. Hopefully there will be some explanation. Sorry for confusing you above.
|
|
|
08-27-2013, 07:15 AM
|
#7
|
LQ Newbie
Registered: Mar 2009
Location: australia
Distribution: mint 15 x64
Posts: 8
Original Poster
Rep:
|
Thank you for that, it is becoming clearer now.
However here is the itch, as I was afraid early on. I thought my core was 2.2.0. It isn't, so I have no guarantee it will work, unless you know something I do not know!
Here are the instructions, spelling error et all;
# License: GPL
# RTL2832U Driver
# Choose here wich include file to use: from kernel 3.0.0 (good for 3.1.0) or from kernel 3.2.0
# kernel 3.0.0 / 3.1.0
INCLUDE_EXTRA_DVB := include-300
# kernel 3.2.0
#INCLUDE_EXTRA_DVB := include-320
On the bright side, this is the line;
-I$(SOURCEDIR)/$(INCLUDE_EXTRA_DVB)
Should I carry on with ":=-320", and do I risk stuffing up my OS if I do so (ie a good freeze 'a la' bad windoes 95????
Do you have any other ideas? do I enclose the whole argument in Brackets as in; "$(INCLUDE_EXTRA_DVB:=320)".
What do you think?
|
|
|
08-27-2013, 12:34 PM
|
#8
|
Member
Registered: Feb 2012
Location: United States
Distribution: Slackware 14.0
Posts: 159
Rep:
|
Well I don't think there is a very large risk of stuffing up your OS. You're just compiling a module for your kernel, you can always make uninstall or manually remove any existing *.ko files. Following what would appear to be the trend listed above, I would GUESS -- notice that I don't know for sure. But following what would appear to be the trend here, try to set the INCLUDE_EXTRA_DVB := include-380 then try to compile. Worst case scenario, the module just won't work and I will have to look a little harder into a solution.
Again, no guarantees here, but if it does compile, try to modprobe the module you have just built and see if it works.
Code:
- edit Makefile, option INCLUDE_EXTRA_DVB (choose which include file set)
- compile code
make clean
make
- install module
sudo make install
- insert module (or reboot)
modprobe dvb_usb_rtl2832u
*EDIT
It looks like if you install the 'media_build' script from here:
http://git.linuxtv.org/media_build.git
You can then install the patch that this guy wrote here:
http://openpli.org/forums/topic/2089...70#entry329670
Worth a shot at least.
Last edited by flyinggeorge; 08-27-2013 at 12:42 PM.
|
|
|
09-04-2013, 04:20 AM
|
#9
|
LQ Newbie
Registered: Mar 2009
Location: australia
Distribution: mint 15 x64
Posts: 8
Original Poster
Rep:
|
I did post a quick reply, but somehow it is not showing!! very strange.
I did say that I had a look in those packages, and it looks like what I need.
So I did get to;
default@aspwest2mint ~/media_build $ ./build
Checking if the needed tools for Linux Mint 15 Olivia are available
ERROR: please install "Proc::ProcessTable", otherwise, build won't work.
I don't know distro Linux Mint 15 Olivia. So, I can't provide you a hint with the package names.
Be welcome to contribute with a patch for media-build, by submitting a distro-specific hint
to linux-media@vger.kernel.org
Build can't procceed as 1 dependency is missing at ./build line 266.
I can see the line from which this comment came about, but I am buggered if I know what to do next!
Do I just drop "dvb-usb-rtl2832.patch" into "media_build" folder, but then how do I point to it. My expertise in things linux is at the zero point. There is not much in term of explanations, unless I missed something!
Where to from there,
Daniel
|
|
|
All times are GMT -5. The time now is 11:19 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|