Re: HOWTO for Agere 11C11040 Modem on HDA cards. (Roan, menedas, & others)

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

 



Hi Roan,
What happens if you try just 'make modules' and skip the config part?
Otherwise you will need to try 'sudo make yesconfig' and then do 'make modules' etc. but then copy ONLY the snd-hda-intel.ko module, none of the others.
Bjorn.


roan wrote:
i've downloaded linux-source-2.6.24.tar.bz2 to /usr/src/
then
tar jxvf linux-source-2.6.24.tar.bz2
cd /usr/src/linux-source-2.6.24
then edited hda_codec.c
sudo gedit sound/pci/hda/hda_codec.c
saved it
after that i tryed to do 'make cloneconfig' in /usr/src/linux-source-2.6.24 dir
and there was an error:

/usr/src/linux-source-2.6.24$ make cloneconfig
HOSTCC scripts/basic/fixdep
scripts/basic/fixdep.c:399: fatal error: opening dependency file scripts/basic/.fixdep.d: Permission denied
compilation terminated.
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2

or then with sudo

/usr/src/linux-source-2.6.24$ sudo -s
/usr/src/linux-source-2.6.24# make cloneconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/docproc
make[1]: *** No rule to make target `cloneconfig'. Stop.
make: *** [cloneconfig] Error 2

:(

On Fri, 25 Jul 2008 12:32:36 -0400 (EDT)
Bjorn Wielens <uniacke1@xxxxxxxx> wrote:
Hi Roan,
Sorry this is taking longer than expected, but thanks
for bearing with me... we will get this modem working
in the end.

The version differences between Aplay and the version
file are disturbing... It means things will be more
difficult to figure out for me :)

Anyway, since you have the ALSA _modules_ 1.0.16, the
following should work. (assuming you have kernel
sources installed):

'cd /usr/src/linux'.
MANUALLY edit the file sound/pci/hda/hda_codec.c (or
pci/hda/hda_codec.c if the former is not there) to
have the following two lines. (Put them after the list
of '#includes' at the beginning of the file):

EXPORT_SYMBOL(snd_hda_codec_read);
EXPORT_SYMBOL(snd_hda_codec_write);

Then, in the /usr/src/linux dir, do the following
'make cloneconfig'
'make clean'
'make modules'
'make modules-install'. This will install the fixed
sound modules.
The modem driver for ALSA modules 1.0.16 and newer is
in this tarball:
http://linmodems.technion.ac.il/packages/ltmodem/11c11040/agrsm-HDA-20080721.tar.bz2

extract, and in the dir, do 'make module'. Then copy
the two .ko files to /lib/modules/(kernel
version)/extra and run 'sudo depmod -ae' You should then be able to modprobe the files and the
/dev/ttyAGS3 modem port will be usable.
Hope this helps,
Bjorn.




--- roan <roan@xxxxxxxx> wrote:

hi
nothing is helping or i'm doing smth wrong. if you'd
be so kind please help me to solve the problem step by
step.
i installed fresh new ubuntu 8.04.1 with english
locale and downloaded all upgrades.
and installed build-essential package.

'cat /proc/asound/version' says this:

--------------
$ cat /proc/asound/version
Advanced Linux Sound Architecture Driver Version
1.0.16.
Compiled on Jun 18 2008 for kernel 2.6.24-19-generic

(SMP).
--------------

but 'aplay --version':

--------------
$ aplay --version
aplay: version 1.0.15 by Jaroslav Kysela
<perex@xxxxxxxx>
--------------

then using apt-get i downloaded alsa-source package
and untar it to my home folder.
then downloaded hda_symbols.patch and put it to that

folder with alsa driver source.
applied patch:

--------------
$ patch -p1 < hda_symbols.patch
patching file alsa-kernel/pci/hda/hda_codec.c
Hunk #1 succeeded at 132 (offset 30 lines).
Hunk #2 succeeded at 158 (offset 30 lines).
patching file sound/pci/hda/hda_codec.c
Reversed (or previously applied) patch detected! Assume -R? [n] N
Apply anyway? [n] N
Skipping patch.
patch unexpectedly ends in middle of line
2 out of 2 hunks ignored -- saving rejects to file sound/pci/hda/hda_codec.c.rej
--------------

then i tried to do 'make' (as it goes in first
manual you send) in the same folder but i got an error (look
the attached file)

please tell me what next should i do?
---
Professional hosting for everyone -
http://www.host.ru
> --------------
$make
make all-deps
make[1]: Entering directory
`/home/roan/Desktop/TESTING/modules/alsa-driver'
utils/mod-deps --basedir

/home/roan/Desktop/TESTING/modules/alsa-driver/alsa-kernel
--hiddendir
/home/roan/Desktop/TESTING/modules/alsa-driver
--versiondep

/home/roan/Desktop/TESTING/modules/alsa-driver/kconfig-vers
--makeconf > toplevel.config.in
utils/mod-deps: 1: ELF: not found
utils/mod-deps: 1: @8: not found
utils/mod-deps: 2: @: not found
utils/mod-deps: 3: !
: not found
utils/mod-deps: 4: ��: not found
utils/mod-deps: 1: Syntax error: word unexpected
(expecting ")")
make[1]: *** [toplevel.config.in] Error 2
make[1]: Leaving directory
`/home/roan/Desktop/TESTING/modules/alsa-driver'
make: *** [dummy1] Error 2
--------------




__________________________________________________________________
Looking for the perfect gift? Give the gift of Flickr!
http://www.flickr.com/gift/

---
Professional hosting for everyone - http://www.host.ru



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

  Powered by Linux