WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Error compiling 4vl-dvd  (Read 7400 times)

Offline whatshisname

  • Newbie
  • *
  • Posts: 7
Error compiling 4vl-dvd
« on: June 29, 2014, 09:26:35 AM »
Trying to compile 4vl-dvd on my headless cubieboard 1 so I can run motion.

Am down to this error and am stumped:
Code: [Select]
make[2]: Leaving directory `/tmp/media_build/linux'
./scripts/make_kconfig.pl /lib/modules/3.0.42/build /lib/modules/3.0.42/build 1
Preparing to compile for kernel version 3.0.42
File not found: /lib/modules/3.0.42/build/.config at ./scripts/make_kconfig.pl line 33, <IN> line 4.
make[1]: *** [allyesconfig] Error 2
make[1]: Leaving directory `/tmp/media_build/v4l'
make: *** [allyesconfig] Error 2
can't select all drivers at ./build line 490.

Suggestions anyone?

Offline Jason W

  • Administrator
  • Hero Member
  • *****
  • Posts: 9730
Re: Error compiling 4vl-dvd
« Reply #1 on: June 29, 2014, 09:47:22 AM »
looks like you don't have your kernel source .config file,  /lib/modules/3.0.42/build is usually a symlink to the kernel source.

Offline whatshisname

  • Newbie
  • *
  • Posts: 7
Re: Error compiling 4vl-dvd
« Reply #2 on: June 29, 2014, 12:50:05 PM »
Thanks for the reply, Jason W.

Guess I'm going to need a little more hand holding here.

I've been poking around http://tinycorelinux.net/5.x/armv7/Allwinner-A10/

I have 2 related questions:

First, I've downloaded linux-sunxi-modules-3.0.42.tar.gz and uncompressed it.

I can tell from the paths therein that the contents mirror my /lib directory but I'm reluctant to overwrite what's there.

Secondly, there is nothing in my current /lib/modules/3.0.42/kernel directory but there is in the uncompressed linux-sunxi-modules-3.0.42.tar.gz.

So my main question is if I just uncompress linux-sunxi-modules-3.0.42.tar.gz into my root filesystem and have it populate the /lib directory accordingly, do I get past the error message above?

Thanks.

Offline Jason W

  • Administrator
  • Hero Member
  • *****
  • Posts: 9730
Re: Error compiling 4vl-dvd
« Reply #3 on: June 29, 2014, 01:15:15 PM »
I believe the config is the below link, copy it to .config in root of the kernel source tree once you unpack the second link:

http://tinycorelinux.net/5.x/armv7/Allwinner-A10/a10Core-kernel-3.0.42.config

The kernel source:

https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.0.42.tar.bz2

Then, make the /lib/modules/3.0.42/build symlink to point to the root directory of the unpacked source.