Re: 11c11040, was Re: kernel-2.6.25 and kernel-2.6.26 issues

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

 



Hi Bjorn,
I've done as you said and wrote down everything so you can more easily follow every single step I've taken up until the kernel panic:

Contrary to what I had assumed, I did not have the tarball for kernel 2.6.25 on my hard drive so I spent a few hours downloading it today. I used that opportunity to also download "patch-2.6.25.11" so that both our kernels have the same version which may facilitate the process of finding the cause of my problem. I patched the kernel and subsequently modified the hda_codec.c source file. This is what "head -n 45 /usr/src/linux-2.6.25.11/sound/pci/hda/hda_codec.c | tail -n 25" says about the file in question after I've modified it:

Parseh linux-2.6.25.11 # head -n 45 ./sound/pci/hda/hda_codec.c | tail -n 25

#include <linux/init.h>
#include <linux/delay.h>
#include <linux/slab.h>
#include <linux/pci.h>
#include <linux/mutex.h>
#include <sound/core.h>
#include "hda_codec.h"
#include <sound/asoundef.h>
#include <sound/tlv.h>
#include <sound/initval.h>
#include "hda_local.h"
#include <sound/hda_hwdep.h>

EXPORT_SYMBOL(snd_hda_codec_write);
EXPORT_SYMBOL(snd_hda_codec_read);

#ifdef CONFIG_SND_HDA_POWER_SAVE
/* define this option here to hide as static */
static int power_save = CONFIG_SND_HDA_POWER_SAVE_DEFAULT;
module_param(power_save, int, 0644);
MODULE_PARM_DESC(power_save, "Automatic power-saving timeout "
                "(in second, 0 = disable).");
#endif

After this I copied over the .config file from my gentoo kernel and issued the neccessary commands to build the kernel: Parseh linux-2.6.25.11 # cp ../linux-2.6.25-gentoo-r6/.config . && make oldconfig && make

After the successfull compilation of the kernel, I copied it over to the boot directory and also installed the modules: Parseh linux-2.6.25.11 # cp arch/i386/boot/bzImage /boot/linux-2.6.25.11 && make modules_install

I then rebooted with the new kernel by changing into edit mode in grub and setting the path to the new kernel! After booting this is what uname -r gives me as an output:
momesana@Parseh ~ $ uname  -r
2.6.25.11

Now, on to compiling the neccessary modules for the modem ...
I first checked the version of alsa shipped with the kernel:
momesana@Parseh ~ $ cat /proc/asound/version
Advanced Linux Sound Architecture Driver Version 1.0.16rc2 (Thu Jan 31 16:40:16 2008 UTC).

I then went on to compile the agrsm-HDA-20080721.tar.bz2 version of the driver: tar xvfj agrsm-HDA-20080721.tar.bz2 && cd agrsm-20080721 && make module && mkdir -p /lib/modules/2.6.25.11/extras && cp *.ko /lib/modules/2.6.25.11/extras && echo "success" || echo "failure"
agrsm-20080721/
agrsm-20080721/Makefile
agrsm-20080721/agrinst
agrsm-20080721/8250.h
agrsm-20080721/.agrserial.ko.cmd
agrsm-20080721/agr_auxinst
agrsm-20080721/hda_codec.h
agrsm-20080721/HDA.c
agrsm-20080721/.agrmodem.o.cmd
agrsm-20080721/.agrmodem.mod.o.cmd
agrsm-20080721/Module.symvers
agrsm-20080721/modules.order
agrsm-20080721/README
agrsm-20080721/.tmp_versions/
agrsm-20080721/.tmp_versions/agrserial.mod
agrsm-20080721/.tmp_versions/agrmodem.mod
agrsm-20080721/LICENSE
agrsm-20080721/serial26.c
agrsm-20080721/.agrserial.o.cmd
agrsm-20080721/.HDA.o.cmd
agrsm-20080721/agrmodemlib.o
agrsm-20080721/linuxif.h
agrsm-20080721/.agrserial.mod.o.cmd
agrsm-20080721/config.h
agrsm-20080721/agr_softmodem
agrsm-20080721/.agrmodem.ko.cmd
agrsm-20080721/agruninst
agrsm-20080721/AgereMdmDaemon
agrsm-20080721/agrmodem.h
agrsm-20080721/.agrsoftmodem.o.cmd
agrsm-20080721/.serial26.o.cmd
agrsm-20080721/agrsoftmodem.c
make -C /lib/modules/`uname -r`/build/ SUBDIRS=/home/momesana/Modem/agrsm-20080721 modules
make[1]: Entering directory `/usr/src/linux-2.6.25.11'
 CC [M]  /home/momesana/Modem/agrsm-20080721/agrsoftmodem.o
/home/momesana/Modem/agrsm-20080721/agrsoftmodem.c: In function 'agr_pci_find_device': /home/momesana/Modem/agrsm-20080721/agrsoftmodem.c:366: warning: 'pci_find_device' is deprecated (declared at include/linux/pci.h:504) /home/momesana/Modem/agrsm-20080721/agrsoftmodem.c:369: warning: 'pci_find_device' is deprecated (declared at include/linux/pci.h:504) /home/momesana/Modem/agrsm-20080721/agrsoftmodem.c:368: warning: ignoring return value of 'pci_enable_device', declared with attribute warn_unused_result /home/momesana/Modem/agrsm-20080721/agrsoftmodem.c: In function 'agr_pci_get_irq': /home/momesana/Modem/agrsm-20080721/agrsoftmodem.c:383: warning: 'pci_find_device' is deprecated (declared at include/linux/pci.h:504) /home/momesana/Modem/agrsm-20080721/agrsoftmodem.c: In function 'x_pcibios_read_config_byte': /home/momesana/Modem/agrsm-20080721/agrsoftmodem.c:394: warning: 'pci_find_slot' is deprecated (declared at include/linux/pci.h:507) /home/momesana/Modem/agrsm-20080721/agrsoftmodem.c: In function 'x_pcibios_read_config_word': /home/momesana/Modem/agrsm-20080721/agrsoftmodem.c:397: warning: 'pci_find_slot' is deprecated (declared at include/linux/pci.h:507) /home/momesana/Modem/agrsm-20080721/agrsoftmodem.c: In function 'x_pcibios_read_config_dword': /home/momesana/Modem/agrsm-20080721/agrsoftmodem.c:400: warning: 'pci_find_slot' is deprecated (declared at include/linux/pci.h:507) /home/momesana/Modem/agrsm-20080721/agrsoftmodem.c: In function 'x_pcibios_write_config_byte': /home/momesana/Modem/agrsm-20080721/agrsoftmodem.c:403: warning: 'pci_find_slot' is deprecated (declared at include/linux/pci.h:507) /home/momesana/Modem/agrsm-20080721/agrsoftmodem.c: In function 'x_pcibios_write_config_word': /home/momesana/Modem/agrsm-20080721/agrsoftmodem.c:406: warning: 'pci_find_slot' is deprecated (declared at include/linux/pci.h:507) /home/momesana/Modem/agrsm-20080721/agrsoftmodem.c: In function 'x_pcibios_write_config_dword': /home/momesana/Modem/agrsm-20080721/agrsoftmodem.c:409: warning: 'pci_find_slot' is deprecated (declared at include/linux/pci.h:507) /home/momesana/Modem/agrsm-20080721/agrsoftmodem.c: In function 'x_task_queue_init': /home/momesana/Modem/agrsm-20080721/agrsoftmodem.c:448: warning: assignment from incompatible pointer type /home/momesana/Modem/agrsm-20080721/agrsoftmodem.c: In function 'x_task_queue_init_usb': /home/momesana/Modem/agrsm-20080721/agrsoftmodem.c:460: warning: assignment from incompatible pointer type
/home/momesana/Modem/agrsm-20080721/agrsoftmodem.c: At top level:
/home/momesana/Modem/agrsm-20080721/agrsoftmodem.c:487: warning: function declaration isn't a prototype /home/momesana/Modem/agrsm-20080721/agrsoftmodem.c:513: warning: function declaration isn't a prototype /home/momesana/Modem/agrsm-20080721/agrsoftmodem.c:523: warning: function declaration isn't a prototype /home/momesana/Modem/agrsm-20080721/agrsoftmodem.c:528: warning: function declaration isn't a prototype /home/momesana/Modem/agrsm-20080721/agrsoftmodem.c: In function 'x_usb_buffer_alloc_kernel': /home/momesana/Modem/agrsm-20080721/agrsoftmodem.c:623: warning: control reaches end of non-void function /home/momesana/Modem/agrsm-20080721/agrsoftmodem.c: In function 'x_usb_buffer_alloc_atomic': /home/momesana/Modem/agrsm-20080721/agrsoftmodem.c:617: warning: control reaches end of non-void function /home/momesana/Modem/agrsm-20080721/agrsoftmodem.c: In function 'x_usb_get_dev': /home/momesana/Modem/agrsm-20080721/agrsoftmodem.c:577: warning: control reaches end of non-void function /home/momesana/Modem/agrsm-20080721/agrsoftmodem.c: In function 'x_usb_alloc_urb_atomic': /home/momesana/Modem/agrsm-20080721/agrsoftmodem.c:532: warning: control reaches end of non-void function /home/momesana/Modem/agrsm-20080721/agrsoftmodem.c: In function 'x_usb_alloc_urb_kernel': /home/momesana/Modem/agrsm-20080721/agrsoftmodem.c:527: warning: control reaches end of non-void function
/home/momesana/Modem/agrsm-20080721/agrsoftmodem.c: At top level:
/home/momesana/Modem/agrsm-20080721/agrsoftmodem.c:133: warning: 'uss_driver' defined but not used
 CC [M]  /home/momesana/Modem/agrsm-20080721/HDA.o
/home/momesana/Modem/agrsm-20080721/HDA.c:216: warning: function declaration isn't a prototype
/home/momesana/Modem/agrsm-20080721/HDA.c: In function 'GetHDABaseAddress':
/home/momesana/Modem/agrsm-20080721/HDA.c:227: warning: assignment makes integer from pointer without a cast /home/momesana/Modem/agrsm-20080721/HDA.c:229: warning: return makes pointer from integer without a cast /home/momesana/Modem/agrsm-20080721/HDA.c:219: warning: unused variable 'codec_temp'
/home/momesana/Modem/agrsm-20080721/HDA.c: In function 'HDAdump':
/home/momesana/Modem/agrsm-20080721/HDA.c:244: warning: format '%x' expects type 'unsigned int', but argument 2 has type 'void *' /home/momesana/Modem/agrsm-20080721/HDA.c:248: warning: format '%08X' expects type 'unsigned int', but argument 3 has type 'long unsigned int' /home/momesana/Modem/agrsm-20080721/HDA.c:248: warning: format '%08X' expects type 'unsigned int', but argument 4 has type 'long unsigned int' /home/momesana/Modem/agrsm-20080721/HDA.c:248: warning: format '%08X' expects type 'unsigned int', but argument 5 has type 'long unsigned int' /home/momesana/Modem/agrsm-20080721/HDA.c:248: warning: format '%08X' expects type 'unsigned int', but argument 6 has type 'long unsigned int' /home/momesana/Modem/agrsm-20080721/HDA.c:239: warning: unused variable 'codec_temp'
/home/momesana/Modem/agrsm-20080721/HDA.c: In function 'setResumeCallBack':
/home/momesana/Modem/agrsm-20080721/HDA.c:287: warning: assignment from incompatible pointer type /home/momesana/Modem/agrsm-20080721/HDA.c:288: warning: assignment from incompatible pointer type
/home/momesana/Modem/agrsm-20080721/HDA.c: In function 'setSuspendCallBack':
/home/momesana/Modem/agrsm-20080721/HDA.c:293: warning: assignment from incompatible pointer type /home/momesana/Modem/agrsm-20080721/HDA.c:294: warning: assignment from incompatible pointer type
/home/momesana/Modem/agrsm-20080721/HDA.c: At top level:
/home/momesana/Modem/agrsm-20080721/HDA.c:298: warning: function declaration isn't a prototype /home/momesana/Modem/agrsm-20080721/HDA.c: In function 'resetResumeCallBack': /home/momesana/Modem/agrsm-20080721/HDA.c:299: warning: assignment from incompatible pointer type
/home/momesana/Modem/agrsm-20080721/HDA.c: At top level:
/home/momesana/Modem/agrsm-20080721/HDA.c:303: warning: function declaration isn't a prototype /home/momesana/Modem/agrsm-20080721/HDA.c: In function 'resetSuspendCallBack': /home/momesana/Modem/agrsm-20080721/HDA.c:304: warning: assignment from incompatible pointer type
/home/momesana/Modem/agrsm-20080721/HDA.c: In function 'findHDACodec':
/home/momesana/Modem/agrsm-20080721/HDA.c:278: warning: control reaches end of non-void function
 CC [M]  /home/momesana/Modem/agrsm-20080721/serial26.o
 LD [M]  /home/momesana/Modem/agrsm-20080721/agrmodem.o
 LD [M]  /home/momesana/Modem/agrsm-20080721/agrserial.o
 Building modules, stage 2.
 MODPOST 2 modules
 CC      /home/momesana/Modem/agrsm-20080721/agrmodem.mod.o
 LD [M]  /home/momesana/Modem/agrsm-20080721/agrmodem.ko
 CC      /home/momesana/Modem/agrsm-20080721/agrserial.mod.o
 LD [M]  /home/momesana/Modem/agrsm-20080721/agrserial.ko
make[1]: Leaving directory `/usr/src/linux-2.6.25.11'
success
Parseh agrsm-20080721 #

Afterwards I updated the module dependecies:
depmod -ae

In order to make sure the modules can be found and to check the versions I made use of modinfo:
Parseh agrsm-20080721 # modinfo agrmodem
filename:       /lib/modules/2.6.25.11/extras/agrmodem.ko
license:        Proprietary
description:    Agere Modem Controller driver
author:         Agere Systems Inc
alias:          usb:v047Ep2892d*dc*dsc*dp*ic*isc*ip*
alias:          usb:v047Ep2828d*dc*dsc*dp*ic*isc*ip*
depends:        snd-hda-intel,snd
vermagic:       2.6.25.11 SMP mod_unload CORE2 4KSTACKS
Parseh agrsm-20080721 # modinfo agrserial
filename:       /lib/modules/2.6.25.11/extras/agrserial.ko
license:        GPL
description:    Agere Modem Interface driver
author:         Agere Systems Inc
depends:
vermagic:       2.6.25.11 SMP mod_unload CORE2 4KSTACKS

Now since we are paranoid we will reboot the system once again, thought it's not really neccessary (reminds me of windows :-P ).

After checking the modinfo and uname -r stuff again I decided to finally load the drivers and connect to the internet:
Parseh momesana # modprobe argserial
Parseh momesana # modprobe agrserial

That's what the log said:
Sep 26 05:19:47 [kernel] agrmodem: module license 'Proprietary' taints kernel.
Sep 26 05:19:47 [kernel] * Hello Agere Driver **
Sep 26 05:19:47 [kernel] Loading module Agere Modem Controller driver version 2.1.80 (2007-10-1)
Sep 26 05:19:54 [kernel] ttyAGS3 at I/O 0x4 (irq = 17) is a AgereModem
Sep 26 05:19:54 [kernel] Loading module Agere Modem Interface driver version 2.1.80.0 (2007-10-01)

Now the final part:
Parseh ~ # wvdial --config wvtest
--> WvDial: Internet dialer version 1.60
--> Initializing modem.
--> Sending: ATZ
--> Sending: ATQ0
--> Re-Sending: ATZ
--> Modem not responding.

Parseh agrsm-20080721 # This is the content of wvtest if you are courious:
Parseh momesana # cat /root/wvtest
[Dialer Defaults]
Init2 = ATQ0 V1 E1 S0=0 &D2 +FCLASS=0
Modem Type = Analog Modem
Phone = 9718100
ISDN = 0
Username = myusername
Init1 = ATZ
Password = mypassword
Modem = /dev/ttyAGS3
Baud = 57600

The log says this:
...
Sep 26 05:53:18 [kernel] agrmodem: module license 'Proprietary' taints kernel.
Sep 26 05:53:18 [kernel] * Hello Agere Driver **
Sep 26 05:53:18 [kernel] Loading module Agere Modem Controller driver version 2.1.80 (2007-10-1)
Sep 26 05:53:22 [kernel] ttyAGS3 at I/O 0x4 (irq = 17) is a AgereModem
Sep 26 05:53:22 [kernel] Loading module Agere Modem Interface driver version 2.1.80.0 (2007-10-01)
Sep 26 05:55:02 [kernel] ==> codecType = 0x32
Sep 26 05:55:02 [kernel] AGR_azx_assign_device    no stream
...

Reminds of this paragraph from the howto:
If you receive a 'modem not responding' type error when dialling, check the output of dmesg | tail. If there is a 'No stream' error, you likely have the wrong version of the driver.


I decided to try out the 1.15er version to see if I have more luck there:
Parseh Modem # rmmod agrserial
Parseh Modem # rmmod agrmodem
Parseh agrsm-HDA-20080721-ALSA15 # lsmod | grep agr # returned nothing
Parseh agrsm-HDA-20080721-ALSA15 # rm /lib/modules/2.6.25.11/extras/agr*
Parseh agrsm-HDA-20080721-ALSA15 # depmod -ae
Parseh agrsm-HDA-20080721-ALSA15 # modinfo argmodem
modinfo: could not find module argmodem
Parseh agrsm-HDA-20080721-ALSA15 # modinfo agrmodem
modinfo: could not find module agrmodem
Parseh agrsm-HDA-20080721-ALSA15 # modinfo agrserial
modinfo: could not find module agrserial

I then rebooted the system and went on compiling the 1.15er version of the driver: Parseh Modem # tar xvfj agrsm-HDA-20080721-ALSA15.tar.bz2 && cd agrsm-HDA-20080721-ALSA15 && make module && mkdir -p /lib/modules/2.6.25.11/extras && cp *.ko /lib/modules/2.6.25.11/extras && echo "success" || echo "failure"
agrsm-HDA-20080721-ALSA15/
agrsm-HDA-20080721-ALSA15/serial26.c.old
agrsm-HDA-20080721-ALSA15/Makefile
agrsm-HDA-20080721-ALSA15/agrinst
agrsm-HDA-20080721-ALSA15/8250.h
agrsm-HDA-20080721-ALSA15/.agrserial.ko.cmd
agrsm-HDA-20080721-ALSA15/agr_auxinst
agrsm-HDA-20080721-ALSA15/hda_codec.h
agrsm-HDA-20080721-ALSA15/HDA.c
agrsm-HDA-20080721-ALSA15/.agrmodem.o.cmd
agrsm-HDA-20080721-ALSA15/.agrmodem.mod.o.cmd
agrsm-HDA-20080721-ALSA15/Module.symvers
agrsm-HDA-20080721-ALSA15/modules.order
agrsm-HDA-20080721-ALSA15/README
agrsm-HDA-20080721-ALSA15/.tmp_versions/
agrsm-HDA-20080721-ALSA15/.tmp_versions/agrserial.mod
agrsm-HDA-20080721-ALSA15/.tmp_versions/agrmodem.mod
agrsm-HDA-20080721-ALSA15/LICENSE
agrsm-HDA-20080721-ALSA15/serial26.c
agrsm-HDA-20080721-ALSA15/.agrserial.o.cmd
agrsm-HDA-20080721-ALSA15/.HDA.o.cmd
agrsm-HDA-20080721-ALSA15/agrmodemlib.o
agrsm-HDA-20080721-ALSA15/linuxif.h
agrsm-HDA-20080721-ALSA15/.agrserial.mod.o.cmd
agrsm-HDA-20080721-ALSA15/config.h
agrsm-HDA-20080721-ALSA15/agr_softmodem
agrsm-HDA-20080721-ALSA15/.agrmodem.ko.cmd
agrsm-HDA-20080721-ALSA15/agruninst
agrsm-HDA-20080721-ALSA15/AgereMdmDaemon
agrsm-HDA-20080721-ALSA15/agrmodem.h
agrsm-HDA-20080721-ALSA15/.agrsoftmodem.o.cmd
agrsm-HDA-20080721-ALSA15/.serial26.o.cmd
agrsm-HDA-20080721-ALSA15/agrsoftmodem.c
make -C /lib/modules/`uname -r`/build/ SUBDIRS=/home/momesana/Modem/agrsm-HDA-20080721-ALSA15 modules
make[1]: Entering directory `/usr/src/linux-2.6.25.11'
 CC [M]  /home/momesana/Modem/agrsm-HDA-20080721-ALSA15/agrsoftmodem.o
/home/momesana/Modem/agrsm-HDA-20080721-ALSA15/agrsoftmodem.c: In function 'x_request_irq': /home/momesana/Modem/agrsm-HDA-20080721-ALSA15/agrsoftmodem.c:284: warning: passing argument 2 of 'request_irq' from incompatible pointer type /home/momesana/Modem/agrsm-HDA-20080721-ALSA15/agrsoftmodem.c: In function 'agr_pci_find_device': /home/momesana/Modem/agrsm-HDA-20080721-ALSA15/agrsoftmodem.c:366: warning: 'pci_find_device' is deprecated (declared at include/linux/pci.h:504) /home/momesana/Modem/agrsm-HDA-20080721-ALSA15/agrsoftmodem.c:369: warning: 'pci_find_device' is deprecated (declared at include/linux/pci.h:504) /home/momesana/Modem/agrsm-HDA-20080721-ALSA15/agrsoftmodem.c:368: warning: ignoring return value of 'pci_enable_device', declared with attribute warn_unused_result /home/momesana/Modem/agrsm-HDA-20080721-ALSA15/agrsoftmodem.c: In function 'agr_pci_get_irq': /home/momesana/Modem/agrsm-HDA-20080721-ALSA15/agrsoftmodem.c:383: warning: 'pci_find_device' is deprecated (declared at include/linux/pci.h:504) /home/momesana/Modem/agrsm-HDA-20080721-ALSA15/agrsoftmodem.c: In function 'x_pcibios_read_config_byte': /home/momesana/Modem/agrsm-HDA-20080721-ALSA15/agrsoftmodem.c:394: warning: 'pci_find_slot' is deprecated (declared at include/linux/pci.h:507) /home/momesana/Modem/agrsm-HDA-20080721-ALSA15/agrsoftmodem.c: In function 'x_pcibios_read_config_word': /home/momesana/Modem/agrsm-HDA-20080721-ALSA15/agrsoftmodem.c:397: warning: 'pci_find_slot' is deprecated (declared at include/linux/pci.h:507) /home/momesana/Modem/agrsm-HDA-20080721-ALSA15/agrsoftmodem.c: In function 'x_pcibios_read_config_dword': /home/momesana/Modem/agrsm-HDA-20080721-ALSA15/agrsoftmodem.c:400: warning: 'pci_find_slot' is deprecated (declared at include/linux/pci.h:507) /home/momesana/Modem/agrsm-HDA-20080721-ALSA15/agrsoftmodem.c: In function 'x_pcibios_write_config_byte': /home/momesana/Modem/agrsm-HDA-20080721-ALSA15/agrsoftmodem.c:403: warning: 'pci_find_slot' is deprecated (declared at include/linux/pci.h:507) /home/momesana/Modem/agrsm-HDA-20080721-ALSA15/agrsoftmodem.c: In function 'x_pcibios_write_config_word': /home/momesana/Modem/agrsm-HDA-20080721-ALSA15/agrsoftmodem.c:406: warning: 'pci_find_slot' is deprecated (declared at include/linux/pci.h:507) /home/momesana/Modem/agrsm-HDA-20080721-ALSA15/agrsoftmodem.c: In function 'x_pcibios_write_config_dword': /home/momesana/Modem/agrsm-HDA-20080721-ALSA15/agrsoftmodem.c:409: warning: 'pci_find_slot' is deprecated (declared at include/linux/pci.h:507) /home/momesana/Modem/agrsm-HDA-20080721-ALSA15/agrsoftmodem.c: In function 'x_task_queue_init': /home/momesana/Modem/agrsm-HDA-20080721-ALSA15/agrsoftmodem.c:448: warning: assignment from incompatible pointer type /home/momesana/Modem/agrsm-HDA-20080721-ALSA15/agrsoftmodem.c: In function 'x_task_queue_init_usb': /home/momesana/Modem/agrsm-HDA-20080721-ALSA15/agrsoftmodem.c:460: warning: assignment from incompatible pointer type
/home/momesana/Modem/agrsm-HDA-20080721-ALSA15/agrsoftmodem.c: At top level:
/home/momesana/Modem/agrsm-HDA-20080721-ALSA15/agrsoftmodem.c:487: warning: function declaration isn't a prototype /home/momesana/Modem/agrsm-HDA-20080721-ALSA15/agrsoftmodem.c:513: warning: function declaration isn't a prototype /home/momesana/Modem/agrsm-HDA-20080721-ALSA15/agrsoftmodem.c:523: warning: function declaration isn't a prototype /home/momesana/Modem/agrsm-HDA-20080721-ALSA15/agrsoftmodem.c:528: warning: function declaration isn't a prototype /home/momesana/Modem/agrsm-HDA-20080721-ALSA15/agrsoftmodem.c: In function 'x_usb_buffer_alloc_kernel': /home/momesana/Modem/agrsm-HDA-20080721-ALSA15/agrsoftmodem.c:623: warning: control reaches end of non-void function /home/momesana/Modem/agrsm-HDA-20080721-ALSA15/agrsoftmodem.c: In function 'x_usb_buffer_alloc_atomic': /home/momesana/Modem/agrsm-HDA-20080721-ALSA15/agrsoftmodem.c:617: warning: control reaches end of non-void function /home/momesana/Modem/agrsm-HDA-20080721-ALSA15/agrsoftmodem.c: In function 'x_usb_get_dev': /home/momesana/Modem/agrsm-HDA-20080721-ALSA15/agrsoftmodem.c:577: warning: control reaches end of non-void function /home/momesana/Modem/agrsm-HDA-20080721-ALSA15/agrsoftmodem.c: In function 'x_usb_alloc_urb_atomic': /home/momesana/Modem/agrsm-HDA-20080721-ALSA15/agrsoftmodem.c:532: warning: control reaches end of non-void function /home/momesana/Modem/agrsm-HDA-20080721-ALSA15/agrsoftmodem.c: In function 'x_usb_alloc_urb_kernel': /home/momesana/Modem/agrsm-HDA-20080721-ALSA15/agrsoftmodem.c:527: warning: control reaches end of non-void function
/home/momesana/Modem/agrsm-HDA-20080721-ALSA15/agrsoftmodem.c: At top level:
/home/momesana/Modem/agrsm-HDA-20080721-ALSA15/agrsoftmodem.c:133: warning: 'uss_driver' defined but not used
 CC [M]  /home/momesana/Modem/agrsm-HDA-20080721-ALSA15/HDA.o
In file included from /home/momesana/Modem/agrsm-HDA-20080721-ALSA15/HDA.c:13:
include/sound/driver.h:1:2: warning: #warning "This file is deprecated"
/home/momesana/Modem/agrsm-HDA-20080721-ALSA15/HDA.c:208: warning: function declaration isn't a prototype /home/momesana/Modem/agrsm-HDA-20080721-ALSA15/HDA.c: In function 'GetHDABaseAddress': /home/momesana/Modem/agrsm-HDA-20080721-ALSA15/HDA.c:219: warning: assignment makes integer from pointer without a cast /home/momesana/Modem/agrsm-HDA-20080721-ALSA15/HDA.c:221: warning: return makes pointer from integer without a cast /home/momesana/Modem/agrsm-HDA-20080721-ALSA15/HDA.c:211: warning: unused variable 'codec_temp'
/home/momesana/Modem/agrsm-HDA-20080721-ALSA15/HDA.c: In function 'HDAdump':
/home/momesana/Modem/agrsm-HDA-20080721-ALSA15/HDA.c:236: warning: format '%x' expects type 'unsigned int', but argument 2 has type 'void *' /home/momesana/Modem/agrsm-HDA-20080721-ALSA15/HDA.c:240: warning: format '%08X' expects type 'unsigned int', but argument 3 has type 'long unsigned int' /home/momesana/Modem/agrsm-HDA-20080721-ALSA15/HDA.c:240: warning: format '%08X' expects type 'unsigned int', but argument 4 has type 'long unsigned int' /home/momesana/Modem/agrsm-HDA-20080721-ALSA15/HDA.c:240: warning: format '%08X' expects type 'unsigned int', but argument 5 has type 'long unsigned int' /home/momesana/Modem/agrsm-HDA-20080721-ALSA15/HDA.c:240: warning: format '%08X' expects type 'unsigned int', but argument 6 has type 'long unsigned int' /home/momesana/Modem/agrsm-HDA-20080721-ALSA15/HDA.c:231: warning: unused variable 'codec_temp' /home/momesana/Modem/agrsm-HDA-20080721-ALSA15/HDA.c: In function 'setResumeCallBack': /home/momesana/Modem/agrsm-HDA-20080721-ALSA15/HDA.c:279: warning: assignment from incompatible pointer type /home/momesana/Modem/agrsm-HDA-20080721-ALSA15/HDA.c:280: warning: assignment from incompatible pointer type /home/momesana/Modem/agrsm-HDA-20080721-ALSA15/HDA.c: In function 'setSuspendCallBack': /home/momesana/Modem/agrsm-HDA-20080721-ALSA15/HDA.c:285: warning: assignment from incompatible pointer type /home/momesana/Modem/agrsm-HDA-20080721-ALSA15/HDA.c:286: warning: assignment from incompatible pointer type
/home/momesana/Modem/agrsm-HDA-20080721-ALSA15/HDA.c: At top level:
/home/momesana/Modem/agrsm-HDA-20080721-ALSA15/HDA.c:290: warning: function declaration isn't a prototype /home/momesana/Modem/agrsm-HDA-20080721-ALSA15/HDA.c: In function 'resetResumeCallBack': /home/momesana/Modem/agrsm-HDA-20080721-ALSA15/HDA.c:291: warning: assignment from incompatible pointer type
/home/momesana/Modem/agrsm-HDA-20080721-ALSA15/HDA.c: At top level:
/home/momesana/Modem/agrsm-HDA-20080721-ALSA15/HDA.c:295: warning: function declaration isn't a prototype /home/momesana/Modem/agrsm-HDA-20080721-ALSA15/HDA.c: In function 'resetSuspendCallBack': /home/momesana/Modem/agrsm-HDA-20080721-ALSA15/HDA.c:296: warning: assignment from incompatible pointer type /home/momesana/Modem/agrsm-HDA-20080721-ALSA15/HDA.c: In function 'LnxTransferCodecVerbs': /home/momesana/Modem/agrsm-HDA-20080721-ALSA15/HDA.c:302: warning: unused variable 'CodecAddress' /home/momesana/Modem/agrsm-HDA-20080721-ALSA15/HDA.c: In function 'LnxTransferCodecVerbsWrite': /home/momesana/Modem/agrsm-HDA-20080721-ALSA15/HDA.c:323: warning: unused variable 'CodecAddress' /home/momesana/Modem/agrsm-HDA-20080721-ALSA15/HDA.c: In function 'findHDACodec': /home/momesana/Modem/agrsm-HDA-20080721-ALSA15/HDA.c:270: warning: control reaches end of non-void function
 CC [M]  /home/momesana/Modem/agrsm-HDA-20080721-ALSA15/serial26.o
 LD [M]  /home/momesana/Modem/agrsm-HDA-20080721-ALSA15/agrmodem.o
 LD [M]  /home/momesana/Modem/agrsm-HDA-20080721-ALSA15/agrserial.o
 Building modules, stage 2.
 MODPOST 2 modules
 CC      /home/momesana/Modem/agrsm-HDA-20080721-ALSA15/agrmodem.mod.o
 LD [M]  /home/momesana/Modem/agrsm-HDA-20080721-ALSA15/agrmodem.ko
 CC      /home/momesana/Modem/agrsm-HDA-20080721-ALSA15/agrserial.mod.o
 LD [M]  /home/momesana/Modem/agrsm-HDA-20080721-ALSA15/agrserial.ko
make[1]: Leaving directory `/usr/src/linux-2.6.25.11'
success
Parseh agrsm-HDA-20080721-ALSA15 # depmod -ae

loaded the modules again ... here's the kernel log:


Sep 26 05:46:43 [kernel] agrmodem: module license 'Proprietary' taints kernel.
Sep 26 05:46:43 [kernel] * Hello Agere Driver **
Sep 26 05:46:43 [kernel] Loading module Agere Modem Controller driver version 2.1.80 (2007-10-1) Sep 26 05:46:43 [kernel] Loading module Agere Modem Controller driver version 2.1.80 (2007-10-1)
Sep 26 05:46:46 [kernel] ttyAGS3 at I/O 0x4 (irq = 17) is a AgereModem
Sep 26 05:46:46 [kernel] Loading module Agere Modem Interface driver version 2.1.80.0 (2007-10-01)
Sep 26 05:47:04 [kernel] ==> codecType = 0x32

and issued the wvdial command again (while crossing the fingers) with the following result:

Parseh ~ # wvdial --config wvtest
--> WvDial: Internet dialer version 1.60
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &D2 +FCLASS=0
OK
--> Modem initialized.
--> Sending: ATDT9718100
--> Waiting for carrier.
ATDT9718100
Bad ugly system crash :'(

Any Ideas?

By the way here you can find the config file of my kernel as reported by "zcat /proc/config.gz":
http://pastebin.com/f1564c6d1

Thanks in advance
Mehdi

Bjorn Wielens wrote:
Hi, 1.16Pre would be a very early release of 1.16...
If you build the kernel from source, then make sure to modify the
hda_codec.c as described in the HOWTO you previously followed.
Then, build by 'make', 'make install','make bzImage' etc.
After you have the kernel built and running, let me know and I'll
provide further instructions.
Bjorn.


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

  Powered by Linux