Re: can you try this coredrv.c ?

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

 



Dear Tapan,

I was rereading your today's mail below. The fact that on the third time
       $ stty -F /dev/modem -a
correctly answers with what I expect from the 537EP driver does really
sound hopeful. Now we have together to guess a mean so that it correctly
answers the very first time WITHOUT any kernel oops.

You indeed should download the latest driver if you haven't done it
already from http://vouters.dyndns.org:8080/Intel/ and rebuild and
reinstall. This is what you apparently seemed to neglect, wrongly
thinking the driver's code is only adequate for a 2.6.30 kernel. I can
grant you it should also fit your 2.6.29 kernel.

Along with the suggested 8050.nr_uarts=1 to your kernel boot options to
enable you to keep a console device (ttyS0), I am somehow hopeful we'll
together find an acceptable solution to your raised problem. According
to what I feel, it ought to just be a matter of intelligence as well as
method and tenacity.

Along with 8050.nr_uarts=1, my real hope is that the 8250_pci.c
interfering code will NOT initialize your board's chips but will only
pci_enable_device which will show up in your /var/log/messages as a PCI
entry enabling the IRQ for your board as per the lspci -vvv output. When
the 537 driver unregisters the serial driver, the 8250_pci.c code will
pci_disable_device, therefore freeing the board's IRQ.

My deepest hope and real bet is that the
     "Status = afe_init(device_ids);"
routine call in coredrv/afedsp_int.c will at last return zero in Status
indicating a success in the initialization of your Silicon 537 modem
board.

If afe_init returns zero in Status, you would no longer notice in
your /var/log/messages a string like:
"Can't initialize modem h/w" but you would rather see a informational
message such as: "537: Loaded".

To tell you my real difficulty with afe_init, it happens Intel provided
the code in binary form only. It is all included in 537core.lib, this
binary file doing all the actual modem hardware operations.

Awaiting for news from you.
-  
http://vouters.dyndns.org:8080/
Philippe Vouters (Fontainebleau/France)
  
> Philippe,
> 
> the same old problem now. 1st time
> $ stty -F /dev/modem -a
> stty: /dev/modem bad address
> 
> second time
> 
> $stty -F /dev/modem -a
> segmentation fault
> 
> Kernel failure message 1:
> ------------[ cut here ]------------
> kernel BUG at mm/slub.c:2754!
> invalid opcode: 0000 [#1] SMP 
> last sysfs file: /sys/devices/virtual/tty/537ep0/dev
> Modules linked in: Intel537 fuse ipt_MASQUERADE iptable_nat nf_nat sco
> bridge stp llc bnep l2cap bluetooth sunrpc ip6t_REJECT
> nf_conntrack_ipv6 ip6table_filter ip6_tables ipv6 dm_multipath uinput
> snd_hda_codec_idt snd_hda_intel snd_hda_codec e100 snd_hwdep snd_pcm
> ppdev iTCO_wdt iTCO_vendor_support snd_timer parport_pc mii snd
> parport i2c_i801 soundcore pcspkr snd_page_alloc ata_generic pata_acpi
> i915 drm i2c_algo_bit i2c_core video output [last unloaded: Intel537]
> 
> Pid: 4294, comm: stty Not tainted (2.6.29.5-191.fc11.i686.PAE
> #1)         
> EIP: 0060:[<c04a2851>] EFLAGS: 00210246 CPU: 1
> EIP is at kfree+0x40/0xe4
> EAX: 40000000 EBX: ffffffff ECX: cb584000 EDX: 00000000
> ESI: c10d15c0 EDI: c68ae000 EBP: eb77de04 ESP: eb77ddf0
>  DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068
> Process stty (pid: 4294, ti=eb77c000 task=c20a1940 task.ti=eb77c000)
> Stack:
>  fd99162b 00200286 ffffffff 00000000 eb760f80 eb77de30 fd991637
> fdc6cd04
>  00000000 fdc68ce6 00000000 00003052 00001543 30001543 ffffffff
> 000000ff
>  eb77de4c fd98db9b eb562000 eb562000 eb760f80 eb562000 eb562000
> eb77de58
> Call Trace:
>  [<fd99162b>] ? modem_init+0x23b/0x250 [Intel537]
>  [<fd991637>] ? modem_init+0x247/0x250 [Intel537]
>  [<fd98db9b>] ? open+0xcb/0x1b0 [Intel537]
>  [<fd990ae1>] ? softserial_open+0x141/0x160 [Intel537]
>  [<c05cabe5>] ? tty_open+0x281/0x3a0
>  [<c04aaaf1>] ? chrdev_open+0x11e/0x135
>  [<c04a6d43>] ? __dentry_open+0x116/0x1f9
>  [<c04a6ece>] ? nameidata_to_filp+0x32/0x47
>  [<c04aa9d3>] ? chrdev_open+0x0/0x135
>  [<c04b0ea6>] ? do_filp_open+0x34c/0x5e9
>  [<c0494460>] ? __vma_link_file+0x53/0x55
>  [<c0494b86>] ? vma_link+0x79/0x85
>  [<c0495de8>] ? mmap_region+0x30d/0x3d9
>  [<c05682a1>] ? strncpy_from_user+0x38/0x54
>  [<c04b8e23>] ? alloc_fd+0xd0/0xdc
>  [<c04a6b4a>] ? do_sys_open+0x47/0xbc
>  [<c04a6c0b>] ? sys_open+0x23/0x2b
>  [<c040945f>] ? sysenter_do_call+0x12/0x34
> Code: c3 00 00 00 8d b0 00 00 00 40 c1 ee 0c c1 e6 05 03 35 80 80 a0
> c0 8b 06 f6 c4 40 74 03 8b 76 0c 8b 06 84 c0 78 15 f6 c4 60 75 04 <0f>
> 0b eb fe 89 f0 e8 a0 3f fe ff e9 8c 00 00 00 8b 5e 0c 8b 55 
> EIP: [<c04a2851>] kfree+0x40/0xe4 SS:ESP 0068:eb77ddf0
> ---[ end trace ee17d45643f1ff3a ]---
> 
> 
> 3rd time
> 
> $ stty -F /dev/modem -a
> 
> speed 115200 baud; rows 0; columns 0; line = 0;
> intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;
> eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z;
> rprnt = ^R;
> werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0;
> -parenb -parodd cs8 hupcl -cstopb cread clocal -crtscts
> -ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl
> ixon -ixoff
> -iuclc -ixany -imaxbel -iutf8
> opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0
> bs0 vt0 ff0
> isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop
> -echoprt
> echoctl echoke
> 
> Also i noticed a new thing while make install
> 
> $ sudo make install
> make[1]: Entering directory `/home/tapan/Packages/intel-536-537'
> rm -f /usr/sbin/hamregistry.bin
> bash 537_inst
> running kernel 2.6.29.5-191.fc11.i686.PAE
> installing hamregistry, used for persistant storage
> installing usrsound, a soft buzzer
> installing 537 module
> install REDHAT 537 boot script and links
> starting module and utilities
> WARNING: Deprecated config file /etc/modprobe.conf, all config files
> belong into /etc/modprobe.d/.
> done
> make[1]: Leaving directory `/home/tapan/Packages/intel-536-537'
> 



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

  Powered by Linux