Re: Fwd: Vincent Lefevre, France kernel 2.6.30-1-amd64

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Vincent,

There is a quick fix you can try.  I expect that a Ubuntu 2.6.28
linux-image package would install on your Debian system, such as my
$ uname -r
2.6.28-13-generic
available through
http://packages.ubuntu.com/jaunty/linux-image-2.6.28-11-generic

Then you could use the precompied driver package from Linuxant.com,
until Jonathan has time to work through a permanant Debian fix with
you.

Incidentally, my kluge within scanModem for effectively picking out
gcc version info is:

## GCC analysis
# sed replace s (  and ) with spaces
GCC_INPUT=$(cat /proc/version |  sed -e 's/)/ /g' | sed -e 's/(/ /g')
# Picks our version # following gcc
if test -z "$GCC123" ; then
  GCC123=$(for i in $GCC_INPUT ; do echo $i ; done | grep -A2 gcc |
grep -A1 ersion | grep -v  ersion)
fi
# last cut for rare names like: MyCompiler-3.3.5
GCC12=$(echo $GCC123 | cut -d. -f1-2 | cut -d- -f2)
GCC1=$(echo $GCC12 | cut -d. -f1)
GCC2=$(echo $GCC12 | cut -d. -f2)

Ugly, but it works.

MarvS

On Thu, Jul 9, 2009 at 10:26 PM, Vincent Lefevre<vincent@xxxxxxxxxx> wrote:
> On 2009-07-10 02:50:45 +0200, Vincent Lefevre wrote:
>> According to the INSTALL file of alsa-driver-linuxant (which one
>> doesn't see when using cnxtinstall.run), one needs "full configured
>> source".
>
> This is not sufficient. As the log said:
>
>  ERROR: Kernel configuration is invalid.
>         include/linux/autoconf.h or include/config/auto.conf are missing.
>         Run 'make oldconfig && make prepare' on kernel src to fix it.
>
> I've done the following:
>
> # apt-get install linux-source-2.6.30
> $ cd /usr/src
> $ atool -eqx linux-source-2.6.30.tar.bz2
> $ cd linux-source-2.6.30
> $ make oldconfig && make prepare
>
> But cnxtinstall.run still fails because it runs the command
> "make -C /lib/modules/2.6.30-1-amd64/source ...", whereas
> /lib/modules/2.6.30-1-amd64/source is a symbolic link to
> /usr/src/linux-headers-2.6.30-1-common, which is *not* the
> source of the kernel!
>
> The INSTALL file of alsa-driver-linuxant says:
>
>  * Kernel Source Tree
>   On 2.4/2.6 kernels, the location of the kernel source tree is
>   parsed automatilly from the running kernel.
>   If it's not in the standard place, specify the path via
>   --with-kernel=<kernel_directory>.
>   On 2.6 kernels, the build directory has to be given via
>   --with-build=<kernel_build_dir> option additionally, too.
>
> But even if I provide these options, I get an error:
>
> # cd /usr/lib/alsa-driver-linuxant
> # ./configure --with-kernel=/usr/src/linux-source-2.6.30 --with-build=/usr/src/linux-kbuild-2.6.30
> # make
> make dep
> make[1]: Entering directory `/usr/lib/alsa-driver-linuxant'
> #@for d in acore i2c drivers isa synth pci aoa soc usb pcmcia misc; do if ! make -C $d prepare; then exit 1; fi; done
> make[1]: Leaving directory `/usr/lib/alsa-driver-linuxant'
> make -C /usr/src/linux-source-2.6.30 SUBDIRS=/usr/lib/alsa-driver-linuxant  CPP="gcc -E" CC="gcc" modules
> make[1]: Entering directory `/usr/src/linux-source-2.6.30'
>
>  WARNING: Symbol version dump /usr/src/linux-source-2.6.30/Module.symvers
>           is missing; modules will have no dependencies and modversions.
>
>  CC [M]  /usr/lib/alsa-driver-linuxant/acore/hrtimer.o
>  CC [M]  /usr/lib/alsa-driver-linuxant/acore/hwdep.o
> /bin/sh: scripts/genksyms/genksyms: No such file or directory
> make[3]: *** [/usr/lib/alsa-driver-linuxant/acore/hwdep.o] Error 1
> make[2]: *** [/usr/lib/alsa-driver-linuxant/acore] Error 2
> make[1]: *** [_module_/usr/lib/alsa-driver-linuxant] Error 2
> make[1]: Leaving directory `/usr/src/linux-source-2.6.30'
> make: *** [compile] Error 2
>
> There's a problem here: scripts/genksyms/genksyms is in
> /usr/src/linux-kbuild-2.6.30 as expected. I don't know what is
> the right fix, but if I modify Makefile.conf to have a GENKSYMS
> line here
>
> ifdef NEW_KBUILD
> CC              = $(CROSS_COMPILE)gcc
> CPP             = $(CROSS_COMPILE)gcc -E
> GENKSYMS        = /usr/src/linux-kbuild-2.6.30/scripts/genksyms/genksyms
>
> this problem is solved. But I get the following error:
>
> [...]
>  CC [M]  /usr/lib/alsa-driver-linuxant/usb/usx2y/usx2yhwdeppcm.o
>  LD [M]  /usr/lib/alsa-driver-linuxant/usb/usx2y/snd-usb-usx2y.o
>  LD [M]  /usr/lib/alsa-driver-linuxant/usb/usx2y/snd-usb-us122l.o
>  Building modules, stage 2.
>  MODPOST 130 modules
> /bin/sh: scripts/mod/modpost: No such file or directory
>
> Again, this script is in /usr/src/linux-kbuild-2.6.30 (build directory).
> But I don't know what to do here.
>
> --
> Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <http://www.vinc17.org/>
> 100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
> Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)
>


[Index of Archives]     [Linux Media Development]     [Asterisk]     [DCCP]     [Netdev]     [X.org]     [Xfree86]     [Fedora Women]     [Linux USB]

  Powered by Linux