On 09.05.14 18:33, Robert Brown wrote:
> On 09/05/14 17:35, Erik Christiansen wrote:
> >On 08.05.14 20:49, Robert Brown wrote:
> >>BTW uname -ra shows
> >>Linux debian 3.4.67-sun4i+ #10 PREEMPT Sun Nov 24 17:13:58 EST 2013 armv7l
> >>GNU/Linux
> >>which is why I was looking for a directory include-340

> >OK, that's on the target, not the build machine, right?
> >('cos if that's the build machine, then a native compile would do, and
> >life would be much simpler. Just checkin')

> Yes that is uname from the target arm machine. That was to point out that
> the module is required for a 3.4 kernel.  Its still the case that the 'make'
> doesn't get to first base when not run from the sub-directory. 

OK, the "-C /home/user/linux-sunxi/" changes to that directory, and
since you do not specify a "-f", it'll use the makefile there. Your OP
shows it finding one in /home/user/linux-sunxi/scripts/, IIUC:

> make: Entering directory `/home/user/linux-sunxi'
> scripts/Makefile.build:44:
> /home/user/DVB-Realtek-RTL2832U-2.2.2-10tuner-mod_kernel-3.0.0-master/Makefile:
> No such file or directory

I.e. Makefile.build has apparently used the M=$PWD (Look for a $M in
Makefile.build) to partially undo the effect of your "-C". Since there
is no makefile at that $PWD, Makefile.build clearly expects you to be in
the subdirectory. Is there no "README" or "BUILD" in the top directory
to explain this requirement? (Or some release notes?)

> I have tried CROSS-COMPILEing on my laptop as well where it also falls
> over unless I cd to the sub-directory.

Ah, then many of the upthread builds were done on the target?
(Where suitable system headers ought to be available close to hand.)

> >When you run:
> >
> >$ locate dvb-usb.h
> >
> >on the target, does it show anything? (Or "find" if the target lacks
> >"locate".) If so, you have a copy of the required header, just not where
> >you need it.
> 
> You will be able to see from the following that I have had numerous attempts
> and various methods to get this going.
> The one in bold is probably the one I need?

Having over the last few decades only moved from the venerable unix
"mail" program to "mutt", I still eschew html, so can't see bold. I did
open your post in edit mode, to see if I could find something like
<bold>, but no go. Ah, I see two asterisks on the prime candidate:

> **/home/debian/linux-sunxi-pat-3.4.67/drivers/media/dvb/dvb-usb/dvb-usb.h*

> I notice that there's an include directory in
> /home/debian/linux-sunxi-pat-3.4.67/ .. Does this indicate that I have
> kernel headers (or should I say kernel sources?)?

Well the whole tree is module source, I figure, if there are .c files
in there.

...

> Really appreciate that you have taken some time to digest this.

No worries. Have to respect you for diving in the deep end without a
snorkel, and not giving up. Things are quiet on most of the other lists
I'm on, and your problem is relaxing so far, requiring only dusting off
of some memory cobwebs, and trying to read carefully. Since neither of
us knows that it can't be done, who's to say you won't succeed?

Erik

-- 
A computer is like an air conditioner, it works poorly when you open Windows.

_______________________________________________
luv-main mailing list
[email protected]
http://lists.luv.asn.au/listinfo/luv-main

Reply via email to