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

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

 



Bjorn, please check

---------- Forwarded message ----------From: Hugo Leonardo Canalli <hugocanalli@xxxxxxxxxxxxxxxxxx>Date: Wed, Jul 23, 2008 at 1:02 AMSubject: Re: Fwd: HOWTO for Agere 11C11040 Modem on HDA cards. (Roan,menedas, & others)To: Marvin Stodolsky <marvin.stodolsky@xxxxxxxxx>

Newer version don't compile in my Ubuntu system:
root@hugleo-desktop:/home/hugleo/Desktop/agrsm-20080721# make modulemake -C /lib/modules/`uname -r`/build/SUBDIRS=/home/hugleo/Desktop/agrsm-20080721 modulesmake[1]: Entering directory `/usr/src/linux-headers-2.6.24-19-generic' CC [M]  /home/hugleo/Desktop/agrsm-20080721/HDA.oIn file included from /home/hugleo/Desktop/agrsm-20080721/HDA.c:22:include/sound/core.h:281: error: 'SNDRV_CARDS' undeclared here (not in afunction)/home/hugleo/Desktop/agrsm-20080721/HDA.c:216: warning: functiondeclaration isn't a prototype/home/hugleo/Desktop/agrsm-20080721/HDA.c: In function'GetHDABaseAddress':/home/hugleo/Desktop/agrsm-20080721/HDA.c:227: warning: assignment makesinteger from pointer without a cast/home/hugleo/Desktop/agrsm-20080721/HDA.c:229: warning: return makespointer from integer without a cast/home/hugleo/Desktop/agrsm-20080721/HDA.c:219: warning: unused variable'codec_temp'/home/hugleo/Desktop/agrsm-20080721/HDA.c: In function 'HDAdump':/home/hugleo/Desktop/agrsm-20080721/HDA.c:244: warning: format '%x'expects type 'unsigned int', but argument 2 has type 'void *'/home/hugleo/Desktop/agrsm-20080721/HDA.c:248: warning: format '%08X'expects type 'unsigned int', but argument 3 has type 'long unsigned int'/home/hugleo/Desktop/agrsm-20080721/HDA.c:248: warning: format '%08X'expects type 'unsigned int', but argument 4 has type 'long unsigned int'/home/hugleo/Desktop/agrsm-20080721/HDA.c:248: warning: format '%08X'expects type 'unsigned int', but argument 5 has type 'long unsigned int'/home/hugleo/Desktop/agrsm-20080721/HDA.c:248: warning: format '%08X'expects type 'unsigned int', but argument 6 has type 'long unsigned int'/home/hugleo/Desktop/agrsm-20080721/HDA.c:239: warning: unused variable'codec_temp'/home/hugleo/Desktop/agrsm-20080721/HDA.c: In function'setResumeCallBack':/home/hugleo/Desktop/agrsm-20080721/HDA.c:287: warning: assignment fromincompatible pointer type/home/hugleo/Desktop/agrsm-20080721/HDA.c:288: warning: assignment fromincompatible pointer type/home/hugleo/Desktop/agrsm-20080721/HDA.c: In function'setSuspendCallBack':/home/hugleo/Desktop/agrsm-20080721/HDA.c:293: warning: assignment fromincompatible pointer type/home/hugleo/Desktop/agrsm-20080721/HDA.c:294: warning: assignment fromincompatible pointer type/home/hugleo/Desktop/agrsm-20080721/HDA.c: At top level:/home/hugleo/Desktop/agrsm-20080721/HDA.c:298: warning: functiondeclaration isn't a prototype/home/hugleo/Desktop/agrsm-20080721/HDA.c: In function'resetResumeCallBack':/home/hugleo/Desktop/agrsm-20080721/HDA.c:299: warning: assignment fromincompatible pointer type/home/hugleo/Desktop/agrsm-20080721/HDA.c: At top level:/home/hugleo/Desktop/agrsm-20080721/HDA.c:303: warning: functiondeclaration isn't a prototype/home/hugleo/Desktop/agrsm-20080721/HDA.c: In function'resetSuspendCallBack':/home/hugleo/Desktop/agrsm-20080721/HDA.c:304: warning: assignment fromincompatible pointer typemake[2]: *** [/home/hugleo/Desktop/agrsm-20080721/HDA.o] Error 1make[1]: *** [_module_/home/hugleo/Desktop/agrsm-20080721] Error 2make[1]: Leaving directory `/usr/src/linux-headers-2.6.24-19-generic'make: *** [module] Error 2

On Tue, 2008-07-22 at 07:53 -0400, Marvin Stodolsky wrote:> Hugo>> The attached should also work with the 11c1:0620 modems and has more> recent code.> the hda_symbols.patch is likely not relevant for  11c1:0620>> Please test and report back to the List.>> MarvS>>> ---------- Forwarded message ----------> From: Bjorn Wielens <Uniacke1@xxxxxxxx>> Date: Mon, Jul 21, 2008 at 5:41 PM> Subject: Re: HOWTO for Agere 11C11040 Modem on HDA cards. (Roan,> menedas, & others)> To: Bjorn Wielens <uniacke1@xxxxxxxx>> Cc: roan@xxxxxxxx, kraisor@xxxxxxxxxxx, gnichols@xxxxxxxxxx,> menedas@xxxxxxxx, discuss@xxxxxxxxxxxxx, marvin.stodolsky@xxxxxxxxx,> linfix@xxxxxxxxxxxxxx, jacques.goldberg@xxxxxxxxx>>> Okay, I hope I've CCed this to all the right people.> First off, to Marv, and Jaques (everyone else, you don't need this info):> the patch file applied needs to be applied to the alsa source to> export the symbols. (previous version tried to patch the same file> twice-- sound/ is a link to alsa-kernel/)> the agrsm tarball is the driver for the modem, modified to work with> new alsa versions (thanks to José) and with my fixes to remove the> GPL-only symbols in agrsoftmodem.c.> This was done with some use of #ifdef NONGPL, so that if the NONGPL> flag is defined (comments at beginning of file), these symbols are> re-inserted.> This allows the modules to be built and loaded on newer kernels> without the need to change the module licence from Proprietary to GPL> and violating the GPL. (So we can now put it on the linmodems site)> These USB symbols are NOT needed for functioning of the 11c11040> modem. (and those with USB modems are better off using other drivers> anyway).> ------------------> To everyone else:> Once you have installed ALSA version 1.0.16 or greater, and verified it works,> Please follow these steps to continue:> 1. Put the hda_symbols.patch file in your alsa-driver source directory.> 2. Run the command 'patch -p1 < hda_symbols.patch' to patch the ALSA> source. (Patched file is ./alsa-kernel/pci/hda/hda_codec.c)> 3. Build the patched ALSA modules. ('make')> 4. Copy the file modules/snd_hda_intel.ko to /lib/modules/<your kernel> version>/kernel/sound/pci/hda/snd-hda-intel.ko> (overwrites old module, rename it if you want)> 5. run 'depmod -ae'.> 6. You should now have the patched module installed. Reboot to activate.> ---> 7. Extract the attached e-mail tarball: 'tar -jxvf agrsm-HDA-20080721.tar.bz2'> 8. Change to the new dir: 'cd agrsm-20080721/'> 9. Build the modules. ('make module')> 10. Make a directory for the newly created agere modem modules:> 'sudo mkdir /lib/modules/<your kernel version>/extra/'> 11. Now copy the modules here: 'sudo cp *.ko /lib/modules/<your kernel> version>/extra/'> 12. run 'depmod -ae'> 13. Load the new modules: 'modprobe agrmodem' followed by 'modprobe> agrserial' IN THAT ORDER!> (If you get a complaint about unknown symbols, check the last few> lines of 'dmesg' and let me know what symbol)> You should now have device node /dev/ttyAGS3. This is now your modem port.> You can use it with wvdial etc.>> If you have any problems, please let me know and I'll do what I can to help.>> Bjorn.>>>>>> Bjorn Wielens wrote:> >> > Okay, we seem to be gathering a following with this> > HOWTO for the 11c11040 modem.> >> > The current stage we're at is having built and> > installed either ALSA modules 1.0.16 or 1.0.17, and> > verifying that /proc/asound/card0/codec#1 contains> > correct info.> >> > I've received success reports from Roan and Menedas.> > If anyone needs help getting to this point, let me> > know soon. I plan to continue with the howto later> > today when I have access to the machine with the> > needed tarballs on it.> >> > I will publish a HOWTO html document for later use> > after we've gotten everyone up and running.> > Bjorn.> >> >> > --- roan <roan@xxxxxxxx> wrote:> >> >> >>> >> hi> >> i actualy have installed ALSA 1.0.17 already.> >> the cat /proc/asound/card0/codec#1 says this:> >>> >> ----> >> $ cat /proc/asound/card0/codec#1> >> Codec: Generic 11c1 ID 1040> >> Address: 1> >> Vendor Id: 0x11c11040> >> Subsystem Id: 0x11c10001> >> Revision Id: 0x100200> >> Modem Function Group: 0x1> >> ----> >>> >>> >> On Sun, 20 Jul 2008 08:22:38 -0300> >>  Bjorn Wielens <Uniacke1@xxxxxxxx> wrote:> >>> >>>> >>> Hi Everyone,> >>> Marv has asked me to help you with the Agere> >>>> >>> >> 11C11040> >>>> >>> modem that is causing plenty of grief.> >>> If you have one, and can't get it working, I'm> >>>> >>> >> going to> >>>> >>> do my best to help you below.> >>> (Lets try to do this in one thread, to keep list> >>>> >>> >> clutter> >>>> >>> down.)> >>>> >>> First off, please make sure you have the latest> >>>> >>> >> version> >>>> >>> of ALSA drivers installed.> >>> You can get this from the ALSA site, http://www.alsa-project.org/> >>> The file is called alsa-driver-1.0.17.tar.bz2.> >>> Once you've downloaded it, change to the directory> >>>> >>> >> its> >>>> >>> in and do the following:> >>>> >>>>> >>>> tar -jxvf alsa-driver-1.0.17.tar.bz2> >>>> cd alsa-driver-1.0.17/> >>>> ./configure> >>>> make> >>>> sudo make install> >>>>> >>>> >>> at this point the drivers should be installed.> >>> Now, reboot your machine to load the new drivers> >>>> >>> >> (or you> >>>> >>> can manually use modprobe to add/remove, after> >>>> >>> >> switching> >>>> >>> to runlevel 3)> >>> After reboot, open a terminal, and 'cat /proc/asound/card0/codec#1'> >>> Your output should be as follows:> >>>> >>> Codec: LSI ID 1040> >>> Address : 1> >>> Vendor ID: 11c11040> >>> Subsystem ID <your subsystem>> >>> Revision Id: your revision> >>> Modem Function Group: 0x1> >>>> >>> Let me know if you have any problems getting to> >>>> >>> >> this> >>>> >>> stage, and I'll do my best to help you. Once we've> >>>> >>> >> gotten> >>>> >>> everyone to this point, we'll continue.> >>> Bjorn.> >>>> >>>> >>> Marvin Stodolsky wrote:> >>>> >>>>> >>>> Bjorn,> >>>>> >>>> Would you please work with both> >>>> Menedas having Ubuntu Linux version> >>>>> >>> >> 2.6.24-19-generic> >>>>> >>>> with a 11c11040> >>>> Roan, having a 11c11040 and 2.6.24-19-generic or> >>>>> >>> >> later.> >>> >>>>> >>>> Concerning the License issue for 2.6.25 and later> >>>>        kernels,> >>>>  I have found that with the  Proprietary Lincense> >>>>        retained,> >>>>  changing in agrsoftmodem.c the line> >>>> #define USB_MODEM 1> >>>> to> >>>> /*  #define USB_MODEM 1 */> >>>> blocks the usage of the USB code section, the agrmodem.ko compile  is successful> >>>>> >>>> However the 2nd stage agrserial.ko still fails> >>>>> >>> >> because> >>>>> >>>> of License problems.> >>>>> >>>> MarvS> >>>>> >>>>> >>>>> >>>> --- agrsoftmodem.c      2008-07-09 22:47:16.000000000> >>>>> >>> >> -0400> >>> >>>>> >>>> +++ agrsoftmodem.c.orig 2008-07-09> >>>>> >>> >> 22:13:07.000000000> >>>>> >>>> -0400> >>>> @@ -17,7 +17,7 @@> >>>>  #ifndef AGERE_SOFT_MODEM> >>>>  #define AGERE_SOFT_MODEM> >>>>  #endif> >>>> -/*  #define USB_MODEM 1 */> >>>> +#define USB_MODEM 1> >>>>> >>>>  //bala-dbg> >>>>  //#include <linux/config.h>> >>>>> >>>>> >>>>> >>>> if the terminal USB section of agrsoftmodem.c  is> >>>>        deleted,> >>>> the compile into  agrsoftmodem.o> >>>>> >>>> However, the> >>>>> >>>> On Sat, Jul 19, 2008 at 6:35 PM, Antonio Olivares> >>>> <olivares14031@xxxxxxxxx> wrote:> >>>>> >>>>>> >>>>> Download the files:> >>>>>> >>>>>> >> > http://linmodems.technion.ac.il/packages/ltmodem/11c11040/agere_modem.tar.gz> >  http://linmodems.technion.ac.il/packages/ltmodem/11c11040/hda_symbols.patch> >> >>>>>> >>>>> read the file> >>>>>> >>>>>> >> > http://linmodems.technion.ac.il/packages/ltmodem/11c11040/11c11040.txt> >> >>>>>> >>>>> Getting the modem to work is a hard feat, Jose> >>>>>> >>> >> has> >>>>>> >>>>> succeeded, Bjorn has succeeded and others have> >>>>>> >>> >> not tried> >>>>>> >>>>> anymore.> >>>>>> >>>>> Take a look at the thread> >>>>>> >>>>>> >>>>>> >> > http://www.nabble.com/Agere-11c11040-success-with-ALSA-1.0.17-to18484945.html> >> >>>>>> >>>>> It will hopefully guide you to success.> >>>>>> >>>>> Regards,> >>>>>> >>>>> Antonio> >>>>>> >>>>>> >>>>> --- On Sat, 7/19/08, menedas <menedas@xxxxxxxx>> >>>>>> >>> >> wrote:> >>> >>>>>> >>>>>> >>>>>>> >>>>>> From: menedas <menedas@xxxxxxxx>> >>>>>> Subject: How to run the modem?> >>>>>> To: discuss@xxxxxxxxxxxxx> >>>>>> Date: Saturday, July 19, 2008, 2:47 PM> >>>>>> Hallo,> >>>>>> can you help me to run my modem under Ubuntu> >>>>>>> >>> >> 8.04? I> >>>>>>> >>>>>> have> >>>>>> tried with no success the Linuxant driver and> >>>>>>> >>> >> the> >>> >>>>>>> >>>>>> sl-modem-daemon package. In Windows its name is> >>>>>>> >>> >> "Agere> >>> >>>>>>> >>>>>> Systems HDA Modem".> >>>>>>> >>>>>> Here is the line from the Hardware Info from> >>>>>>> >>> >> Windows:> >>> >> > HDAUDIO\FUNC_02&VEN_11C1&DEV_1040&SUBSYS_2118144D&REV_1002\4&2DF9E19E&0&0101> >> >>>>>>> >>>>>> The modem is in the Samsung R60plus notebook.> >>>>>>> >>>>>> Thank you very much for your help.> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >> > __________________________________________________________> >> >>>>>>> >>>>>> Gesendet von Yahoo! Mail.> >>>>>> Dem pfiffigeren Posteingang.> >>>>>> http://de.overview.mail.yahoo.com> >>>>>>> >>>>>> >>>>>> >>>>> >>>>> >>> >> ---> >> Professional hosting for everyone -> >> http://www.host.ru> >>> >>> >> >> >> >      __________________________________________________________________> > Reclaim your name @ymail.com or @rocketmail.com. Get your new email address now! Go to http://ca.promos.yahoo.com/jacko/> >> >

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

  Powered by Linux