On Fri, Aug 22, 2008 at 11:10 AM, Jelle de Jong
<[EMAIL PROTECTED]> wrote:
> Alexey Vinogradov wrote:
>> Hello, Pedro,
>>
>> Actually it is possible to build the new-empia driver for Ubuntu, but -
>> this task is not trivial. Let me describe the process.
>>
>> 1. You need the kernel headers and source for ubuntu modules of your
>> kernel (`uname -r`).
>> 2. You need the sources of new-empia driver (which you can get by "hg
>> clone http://mcentral.de/hg/~mrec/em28xx-new
>> <http://mcentral.de/hg/%7Emrec/em28xx-new>")
>> suppose that you have your LUM sources in /usr/src/ubuntu-hardy-lum, and
>> /usr/src/em28xx-new contains the sources of empia.
>> Go to empia's folder and run: "./build.sh ubuntu"
>> 3. Go to ubuntu-hardy-lum/ubuntu/media/empia and remove the folder
>> "precompiled"
>> 4. Move the whole folder - ubuntu-hardy-lum/ubuntu/media/empia to
>> ubuntu-hardy-lum/ubuntu/sound/alsa-driver
>> 5. Open ubuntu-hardy-lum/ubuntu/sound/alsa-driver/Makefile and modify
>> the line which looks like "obj-m += acore/ i2c/ drivers/ ....(etc)" (it
>> is about on the top of the file). Add "empia/" at the end of this line.
>> 6. Open ubuntu-hardy-lum/ubuntu/sound/alsa-driver/empia/Makefile and add
>> these lines in the front of it:
>>
>> ifndef SND_TOPDIR
>> SND_TOPDIR=..
>> endif
>>
>> include $(SND_TOPDIR)/toplevel.config
>> include $(SND_TOPDIR)/Makefile.conf
>>
>> EXTRA_CFLAGS += -I$(src)/sound/alsa-driver/include
>> -DCONFIG_SND_VERBOSE_PROCFS -DCONFIG_SND_PCM_OSS_MODULE
>>
>> 7. Go to /usr/src/ubuntu-hardy-lum and build your package:
>> fakeroot debian/rules binary-arch=i386 flavours="generic" (or another -
>> for example, for my Asus Eee I've made the file for 2.6.24-21-eeepc
>> kernel with the option 'flavours="eeepc"'.
>>
>> This is the simpliest way with minimal touching of the files. I've just
>> extracted the empia's *.ko modules from the resulting .deb package, and
>> then just created the new .deb package with these modules only.
>>
>> And - note - that this way you can build the module for any ubuntu
>> kernel, not only for "generic".
>
> Nice find, its better then removing the Ubuntu kernel and replacing it
> with the Debian kernels. Its still bad Ubuntu uses out of sync source
> code for there kernel and sound modules. I hope they fix this in the
> next release.
>

replacing the kernel is not nice, too much work for something that
should work within max. 15 minutes. The new build system should fix up
those problems at the beginning of next week.

Markus

_______________________________________________
Em28xx mailing list
[email protected]
http://mcentral.de/mailman/listinfo/em28xx

Reply via email to