Re: Another Patch will be needed for kernel version 2.6.25

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

 



Sorry I did not read INSTALL correcty.  On 64 bit computers, one has
to compile in 32 bit mode, how does one do that?

BTW, I will attach ModemData.txt in case it is relevant or needed.

Regards,

Antonio


On Thu, May 22, 2008 at 8:19 PM, Antonio Olivares
<olivares14031@xxxxxxxxx> wrote:
> I have removed all instances of fastcall and FASTCALL() in kmodule
> directory and I still see errors:
>
> [olivares@localhost martian-full-20080407]$ make all
> make -C kmodule/ modules
> make[1]: Entering directory
> `/home/olivares/Download/martian-full-20080407/kmodule'
> make -C /lib/modules/2.6.25.3-18.fc9.x86_64/build
> M="/home/olivares/Download/martian-full-20080407/kmodule"  modules
> make[2]: Entering directory `/usr/src/kernels/2.6.25.3-18.fc9.x86_64'
>  CC [M]  /home/olivares/Download/martian-full-20080407/kmodule/martian.o
> In file included from
> /home/olivares/Download/martian-full-20080407/kmodule/kmartian.h:13,
>                 from
> /home/olivares/Download/martian-full-20080407/kmodule/martian.c:63:
> /home/olivares/Download/martian-full-20080407/kmodule/mfifo.h:21:
> error: expected declaration specifiers or '...' before '(' token
> /home/olivares/Download/martian-full-20080407/kmodule/mfifo.h:21:
> warning: function declaration isn't a prototype
> /home/olivares/Download/martian-full-20080407/kmodule/mfifo.h:21:
> error: field 'FASTCALL' declared as a function
> /home/olivares/Download/martian-full-20080407/kmodule/mfifo.h:22:
> error: expected declaration specifiers or '...' before '(' token
> /home/olivares/Download/martian-full-20080407/kmodule/mfifo.h:22:
> warning: function declaration isn't a prototype
> /home/olivares/Download/martian-full-20080407/kmodule/mfifo.h:22:
> error: field 'FASTCALL' declared as a function
> /home/olivares/Download/martian-full-20080407/kmodule/mfifo.h:22:
> error: duplicate member 'FASTCALL'
> /home/olivares/Download/martian-full-20080407/kmodule/mfifo.h: In
> function 'mfifo_next':
> /home/olivares/Download/martian-full-20080407/kmodule/mfifo.h:45:
> error: 'struct mfifo_ops' has no member named 'wrap'
> /home/olivares/Download/martian-full-20080407/kmodule/mfifo.h: In
> function 'mfifo_put':
> /home/olivares/Download/martian-full-20080407/kmodule/mfifo.h:54:
> error: 'struct mfifo_ops' has no member named 'wrap'
> /home/olivares/Download/martian-full-20080407/kmodule/mfifo.h: In
> function 'mfifo_full':
> /home/olivares/Download/martian-full-20080407/kmodule/mfifo.h:62:
> error: 'struct mfifo_ops' has no member named 'space'
> /home/olivares/Download/martian-full-20080407/kmodule/mfifo.h: In
> function 'mfifo_get':
> /home/olivares/Download/martian-full-20080407/kmodule/mfifo.h:81:
> error: 'struct mfifo_ops' has no member named 'wrap'
> /home/olivares/Download/martian-full-20080407/kmodule/mfifo.h: In
> function 'mfifo_lastwr':
> /home/olivares/Download/martian-full-20080407/kmodule/mfifo.h:87:
> error: 'struct mfifo_ops' has no member named 'wrap'
> In file included from
> /home/olivares/Download/martian-full-20080407/kmodule/martian.c:65:
> /home/olivares/Download/martian-full-20080407/kmodule/marsio.h: At top level:
> /home/olivares/Download/martian-full-20080407/kmodule/marsio.h:8:
> error: expected ')' before '(' token
> /home/olivares/Download/martian-full-20080407/kmodule/marsio.h:9:
> error: expected ')' before '(' token
> /home/olivares/Download/martian-full-20080407/kmodule/marsio.h:10:
> error: expected ')' before '(' token
> /home/olivares/Download/martian-full-20080407/kmodule/marsio.h:11:
> error: expected ')' before '(' token
> /home/olivares/Download/martian-full-20080407/kmodule/martian.c: In
> function 'martian_isr':
> /home/olivares/Download/martian-full-20080407/kmodule/martian.c:119:
> error: implicit declaration of function 'mars_read_register'
> /home/olivares/Download/martian-full-20080407/kmodule/martian.c:131:
> error: implicit declaration of function 'mars_write_register'
> /home/olivares/Download/martian-full-20080407/kmodule/martian.c:139:
> error: implicit declaration of function 'mars_write_word'
> /home/olivares/Download/martian-full-20080407/kmodule/martian.c:160:
> error: implicit declaration of function 'process_stream'
> /home/olivares/Download/martian-full-20080407/kmodule/martian.c:160:
> warning: value computed is not used
> /home/olivares/Download/martian-full-20080407/kmodule/martian.c: In
> function 'martian_add':
> /home/olivares/Download/martian-full-20080407/kmodule/martian.c:664:
> warning: passing argument 2 of 'request_irq' from incompatible pointer
> type
> make[3]: *** [/home/olivares/Download/martian-full-20080407/kmodule/martian.o]
> Error 1
> make[2]: *** [_module_/home/olivares/Download/martian-full-20080407/kmodule]
> Error 2
> make[2]: Leaving directory `/usr/src/kernels/2.6.25.3-18.fc9.x86_64'
> make[1]: *** [modules] Error 2
> make[1]: Leaving directory
> `/home/olivares/Download/martian-full-20080407/kmodule'
> make: *** [all] Error 2
> [olivares@localhost martian-full-20080407]$
>
> Thanks,
>
> Antonio
>
> On Wed, May 21, 2008 at 4:55 PM, HotblackDesiato <mls@xxxxxxxxxxxxxx> wrote:
>>
>> Stefan,
>>
>> in kernels >= 2.6.25 fastcall/FASTCALL() has been removed, see
>> http://lwn.net/Articles/269595.
>>
>> Just remove all occurrences of "fastcall" and all "FASTCALL()" macro calls
>> in each and every *.c and *.h file in the kmodule directory and have fun ;-)
>>
>> root@stefan2:/etc# uname -a
>> Linux stefan2 2.6.25.1-20080502-686 #3 Sat May 3 22:14:24 CEST 2008 i686
>> GNU/Linux
>> root@stefan2:/etc# lsmod | grep martian
>> martian_dev            18196  0
>>
>> HBD
>>
>>
>> Stefan Puch-3 wrote:
>>>
>>> Hello everyone,
>>>
>>> kernel 2.6.25 is released a few weeks and the martian sourcecode will need
>>> another patch to compile again.
>>> ...
>>>
>>> @Alex
>>> Are you still improving / maintaining  your source code or do you have any
>>> time
>>> to fix it (or did you already buy a new laptop with another modem
>>> chipset)?
>>>
>>> Best regards
>>>
>>> Stefan Puch
>>>
>>
>> --
>> View this message in context: http://www.nabble.com/Another-Patch-will-be-needed-for-kernel-version-2.6.25-tp17021760p17378435.html
>> Sent from the Linux Winmodem Support - Discussion mailing list archive at Nabble.com.
>>
>>
>
 Only plain text email is forwarded by the  Discuss@xxxxxxxxxxxxx List Server,
 as HTML can contain viruses. Use as the email Subject Line:
           YourName, YourCountry Fedora release 9 (Sulphur)
Kernel  kernel 2.6.25.3-18.fc9.x86_64 
 With this Subject Line cogent experts will be alerted, and useful case names left in the Archive.
 YourCountry will enable Country specific guidance. Your contry's local Linux experts
 can be found through: http://www.linux.org/groups/index.html. 
They will know your Country's modem code, which may be essential for dialup service.
Responses from Discuss@xxxxxxxxxxxxx are sometimes blocked by an Internet Provider mail filters.
 So in a day, also check the Archived responses at http://www.linmodems.org 
--------------------------  System information ----------------------------
CPU=x86_64,  Fedora release 9 (Sulphur)
Kernel 
Linux version 2.6.25.3-18.fc9.x86_64 (mockbuild@) (gcc version 4.3.0 20080428 (Red Hat 4.3.0-8) (GCC) ) #1 SMP Tue May 13 04:54:47 EDT 2008
 scanModem update of:  2008_05_02


Some modem drivers can only be used in 32 bit modem on x86_64 systems,
while some others are competent on x86_64 Systems.  Cases are:
1) http://linmodems.technion.ac.il/bigarch/archive-seventh/msg03119.html 
for the snd-hda-intel audio+modem driver. Also applicable to AC97 modem controllers.
In both cases, 32 bit libraries must be installed to support the slmodemd helper having a precompiled 32 bit component.
2) For USB modems using the slusb.ko driver. 32 bit libraries must be installed to support the slmodemd helper having a precompiled 32 bit component
3) The hsfmodem and hcflinmodem drivers for Conexant chipsest modes are x86_64 competent.

 There are no blacklisted modem drivers in /etc/modprobe*  files 
Attached USB devices are:
 ID 1d6b:0002 Linux Foundation 2.0 root hub
 ID 1d6b:0001 Linux Foundation 1.1 root hub
 ID 1d6b:0001 Linux Foundation 1.1 root hub
 ID 413c:3200 Dell Computer Corp. Mouse
 ID 1d6b:0001 Linux Foundation 1.1 root hub
 ID 413c:2003 Dell Computer Corp. Keyboard
 ID 1d6b:0001 Linux Foundation 1.1 root hub

USB modems not recognized
For candidate card in slot 04:05.0, firmware information and bootup diagnostics are:
 PCI slot	PCI ID		SubsystemID	Name
 ----------	---------	---------	--------------
 04:05.0	11c1:044e	11c1:044c	Communication controller: Agere Systems LT WinModem 

 Modem interrupt assignment and sharing: 
 --- Bootup diagnostics for card in PCI slot 04:05.0 ----

For candidate card in slot 80:01.0, firmware information and bootup diagnostics are:
 PCI slot	PCI ID		SubsystemID	Name
 ----------	---------	---------	--------------
 80:01.0	1106:3288	1462:7253	Audio device: VIA Technologies, Inc. VIA High Definition Audio Controller 

 Modem interrupt assignment and sharing: 
 17:      18234   IO-APIC-fasteoi   HDA Intel
 --- Bootup diagnostics for card in PCI slot 80:01.0 ----
ACPI: PCI Interrupt 0000:80:01.0[A] -> GSI 17 (level, low) -> IRQ 17
PCI: Setting latency timer of device 0000:80:01.0 to 64


===== Advanced Linux Sound Architecture (ALSA) diagnostics ===== 
The ALSA packages provide audio support and also drivers for some modems.
ALSA diagnostics are written during bootup to /proc/asound/ folders.
 PCI slot 80:01.0 has a High Definition Audio Card
 ---ALSA bootup diagnostics --- 

The ALSA verion is 1.0.16
The modem cards detected by "aplay -l"  are:


The /proc/asound/pcm file reports:
-----------------------
00-02: ALC883 Analog : ALC883 Analog : capture 1
00-01: ALC883 Digital : ALC883 Digital : playback 1
00-00: ALC883 Analog : ALC883 Analog : playback 1 : capture 1

about /proc/asound/cards:
------------------------
 0 [VT82xx         ]: HDA-Intel - HDA VIA VT82xx
                      HDA VIA VT82xx at 0xbfffc000 irq 17
=== Finished firmware and bootup diagnostics, next deducing cogent software. ===

Predictive diagnostics for card in bus 04:05.0:
	Modem chipset  detected on
CLASS="Class 0780: 11c1:044e"
NAME="Communication controller: Agere Systems LT WinModem "
SUBSYS=11c1:044c
PCIDEV=11c1:044e
IRQ=11
IDENT=Agere.DSP

 For candidate modem in:  04:05.0
   Class 0780: 11c1:044e Communication controller: Agere Systems LT WinModem 
      Primary device ID:  11c1:044e
 Support type needed or chipset:	Agere.DSP
 

----------------end Softmodem section --------------

 The modem has a Lucent/Agere/LSI Mars or Apollo DSP (digital signal processing) chipset. 
Support packages for 2.6.n kernels are at:
 http://linmodems.technion.ac.il/packages/ltmodem/kernel-2.6/martian/ , with current update martian-full-20071011.tar.gz

 See AgereDSP.txt for Details.



Predictive diagnostics for card in bus 80:01.0:
	Modem chipset not detected on
CLASS="Class 0403: 1106:3288"
NAME="Audio device: VIA Technologies, Inc. VIA High Definition Audio Controller "
SUBSYS=1462:7253
PCIDEV=1106:3288
IRQ=17
HDA=1106:3288
SOFT=1106:3288.HDA


 High Definition Audio (HDA) cards MAY host a modem chip in their Subsystem, 
 and many are supported by the ALSA audio+modem driver snd-hda-intel
 A modem was not detected on HDA card 1106:3288.
 If another modem card is present, then most likely 1106:3288 does not host a modem.
 If another modem card has not been detected, then possibilities are:
	1) A Conexant modem chip is present on 1106:3288, as Conexant chips
 are frequently not detectable by ALSA diagnostics
	2) The modem may be of the older non-PCI Controller Chipset (hardware) type.
Try detection with Root permission:
	 wvdialconf  /etc/wvdial.conf

 For candidate modem in:  80:01.0
   Class 0403: 1106:3288 Audio device: VIA Technologies, Inc. VIA High Definition Audio Controller 
      Primary device ID:  1106:3288
    Subsystem PCI_id  1462:7253 
    Softmodem codec or chipset from diagnostics: 
                               from    Archives: 
                        
      

Support type needed or chipset:	

Support can likely be achieved through two mutually exclusive alternatives:
1) The hsfmodem software for Conexant chipset modems: Read Conexant.txt
The following ALSA alternative CANNOT work with Conexant modems.

2) An ALSA modem driver plus slmodemd.  Read Smartlink.txt for details, and
to test get the package SLMODEMD.gcc4.3.tar.gz from:  
	http://linmodems.technion.ac.il/packages/smartlink/

----------------end Softmodem section --------------
Writing Smartlink.txt
============ end Smartlink section =====================

 Completed candidate modem analyses.

 The base of the UDEV device file system is: /dev/.udev

 Versions adequately match for the compiler installed: 4.3.0
             and the compiler used in kernel assembly: 4.3.0


 
 Minimal compiling resources appear complete:
   make utility - /usr/bin/make
   Compiler version 4.3
   linuc_headers base folder /lib/modules/2.6.25.3-18.fc9.x86_64/build

 However some compilations and executable functions may need additional files,
 in the FileNames.h (so called kernel "h"eaders) collection installed in  /usr/include/ .
 For martian_modem, additional required packages are libc6-dev (and for Debian/Ubuntu,  linux-libc-dev). The also required headers of package libc6 are commonly installed by default. When compiling ALSA drivers, the utility "patch" will also be needed.



If a driver compilation fails, with message including some lack of some FileName.h (stdio.h for example), then
Some additional kernel-header files need installation to /usr/include. The minimal additional packages are libc6-dev
and any of its dependents, under Ubuntu linux-libc-dev

If an alternate ethernet connection is available,
$  apt-get update
$  apt-get -s install linux-kernel-devel
will install needed package
For Debian/Ubuntu related distributions, run the following command to display the needed package list:

Otherwise packages have to be found through http://packages.ubuntu.com
Once downloaded and transferred into a Linux partition,
they can be installed alltogether with:
$ sudo dpkg -i *.deb


Checking pppd properties:
	-r-xr-xr-x 1 root root 349064 2008-05-13 04:23 /usr/sbin/pppd

In case of an "error 17" "serial loopback" problem, see:
    http://linmodems.technion.ac.il/linmodems/archive-sixth/msg02637.html

To enable dialout without Root permission do:
	$ su - root  (not for Ubuntu)
         chmod a+x /usr/sbin/pppd
or under Ubuntu related Linuxes
	 chmod a+x /usr/sbin/pppd

Checking settings of:	/etc/ppp/options
lock

In case of a message like:
   Warning: Could not modify /etc/ppp/pap-secrets: Permission denied
see http://linmodems.technion.ac.il/bigarch/archive-sixth/msg04656.html

Read Modem/YourSystem.txt concerning other COMM channels: eth0
Which can interfere with Browser naviagation.

 Don't worry about the following, it is for the experts
 should trouble shooting be necessary.
==========================================================

 Checking for modem support lines:
 --------------------------------------
     /device/modem symbolic link:   
slmodemd created symbolic link /dev/ttySL0:  
     Within /etc/udev/ files:
/etc/udev/rules.d/50-udev-default.rules:KERNEL=="mwave",		NAME="modems/mwave", GROUP="uucp"
     Within /etc/modprobe.conf files:

     Within any ancient /etc/devfs files:

     Within ancient kernel 2.4.n /etc/module.conf files:

--------- end modem support lines --------


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

  Powered by Linux