LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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

Reply
 
Search this Thread
Old 08-23-2013, 08:32 PM   #1
drobin
LQ Newbie
 
Registered: Mar 2009
Location: australia
Distribution: mint 15 x64
Posts: 8

Rep: Reputation: 0
Question 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.
 
Old 08-23-2013, 09:13 PM   #2
flyinggeorge
Member
 
Registered: Feb 2012
Location: United States
Distribution: Slackware 14.0
Posts: 159

Rep: Reputation: 3
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.
 
Old 08-24-2013, 05:30 AM   #3
drobin
LQ Newbie
 
Registered: Mar 2009
Location: australia
Distribution: mint 15 x64
Posts: 8

Original Poster
Rep: Reputation: 0
Unhappy

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.
 
Old 08-24-2013, 11:26 AM   #4
flyinggeorge
Member
 
Registered: Feb 2012
Location: United States
Distribution: Slackware 14.0
Posts: 159

Rep: Reputation: 3
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.
 
Old 08-24-2013, 05:10 PM   #5
drobin
LQ Newbie
 
Registered: Mar 2009
Location: australia
Distribution: mint 15 x64
Posts: 8

Original Poster
Rep: Reputation: 0
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.
 
Old 08-25-2013, 01:14 AM   #6
flyinggeorge
Member
 
Registered: Feb 2012
Location: United States
Distribution: Slackware 14.0
Posts: 159

Rep: Reputation: 3
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.
 
Old 08-27-2013, 07:15 AM   #7
drobin
LQ Newbie
 
Registered: Mar 2009
Location: australia
Distribution: mint 15 x64
Posts: 8

Original Poster
Rep: Reputation: 0
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?
 
Old 08-27-2013, 12:34 PM   #8
flyinggeorge
Member
 
Registered: Feb 2012
Location: United States
Distribution: Slackware 14.0
Posts: 159

Rep: Reputation: 3
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.
 
Old 09-04-2013, 04:20 AM   #9
drobin
LQ Newbie
 
Registered: Mar 2009
Location: australia
Distribution: mint 15 x64
Posts: 8

Original Poster
Rep: Reputation: 0
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] "Insert" & "Delete" key returns "~" in a terminal. sharky Linux - General 15 04-26-2011 08:36 AM
ns:"error when calling class OldSim"&tclsh:"invalid command+child process exits abn." shojaru Linux - Newbie 0 03-05-2009 04:23 AM
Command "mail" returns "panic: temporary file seek" kenneho Linux - Software 5 12-23-2008 03:27 AM
Standard commands give "-bash: open: command not found" even in "su -" and "su root" mibo12 Linux - General 4 11-11-2007 10:18 PM
executing a loaded module returns "command not found" error neelay1 Linux - Software 1 05-08-2006 02:25 PM


All times are GMT -5. The time now is 05:20 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration