Re: Philippe Belgium kernel 2.6.27-9-generic

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

 



However,
   There is still a problem during loading.
$ sudo modprobe   ungrab-serial
is OK.

 But then:
$ sudo modprobe   v8250
 Jan 25 23:44:25 marvlap kernel: [ 6774.072119] Serial: virtual
8250/16550 driver 8 ports
Jan 25 23:44:25 marvlap kernel: [ 6774.073285] proc_dir_entry
'driver/serial' already registered
Jan 25 23:44:25 marvlap kernel: [ 6774.073295] Pid: 8900, comm:
modprobe Tainted: P          2.6.27-9-generic #1
Jan 25 23:44:25 marvlap kernel: [ 6774.073300]  [<c037c4b6>] ? printk+0x1d/0x1f
Jan 25 23:44:25 marvlap kernel: [ 6774.073310]  [<c01f3eb2>]
proc_register+0x1a2/0x1d0
Jan 25 23:44:25 marvlap kernel: [ 6774.073335]  [<c01f3fe9>]
create_proc_entry+0x59/0xa0
Jan 25 23:44:25 marvlap kernel: [ 6774.073340]  [<c01f5b4d>]
proc_tty_register_driver+0x3d/0x70
Jan 25 23:44:25 marvlap kernel: [ 6774.073345]  [<c02a1002>]
tty_register_driver+0x122/0x200
Jan 25 23:44:25 marvlap kernel: [ 6774.073357]  [<c02bacb7>]
uart_register_driver+0x167/0x190
Jan 25 23:44:25 marvlap kernel: [ 6774.073367]  [<de85a0b7>]
serial8250_init+0xb7/0xbe [v8250]
Jan 25 23:44:25 marvlap kernel: [ 6774.073378]  [<de85a000>] ?
serial8250_init+0x0/0xbe [v8250]
Jan 25 23:44:25 marvlap kernel: [ 6774.073383]  [<c0101120>] _stext+0x30/0x160
Jan 25 23:44:25 marvlap kernel: [ 6774.073398]  [<c014c604>] ?
__blocking_notifier_call_chain+0x14/0x70
Jan 25 23:44:25 marvlap kernel: [ 6774.073417]  [<c015c208>]
sys_init_module+0x88/0x1b0
Jan 25 23:44:25 marvlap kernel: [ 6774.073424]  [<c0103f7b>]
sysenter_do_call+0x12/0x2f
Jan 25 23:44:25 marvlap kernel: [ 6774.073429]

$ sudo modprobe ltmodem
did load:

$ lsmod
Module                  Size  Used by
ltmodem               568304  0
v8250                  19488  1 ltmodem
ungrab_serial      10112  1 ltmodem

I can't functilnally test without the modem hardware.
 But with the errors during v8250 loading,
it is doubtful that there would be function.

 Philippe
Note that the install went ERRONIOUSLY to  the 2.6.27.2 modules tree.
This is due to an error in the linux-headers packages which I have reported.

$ ls -l /lib/modules/2.6.27.2/extra
total 600
-rw-r--r-- 1 root root 568974 2009-01-25 23:13 ltmodem.ko
-rw-r--r-- 1 root root  12324 2009-01-25 23:13 ungrab-serial.ko
-rw-r--r-- 1 root root  23116 2009-01-25 23:13 v8250.ko

Correct this problem with:
 sudo mv /lib/modules/2.6.27.2/extra/*.ko  /lib/modules/2.6.27-9-generic/extra/

After which:
ls -lh /lib/modules/2.6.27-9-generic/extra/*.ko
-rw-r--r-- 1 root root 556K 2009-01-25 23:13
/lib/modules/2.6.27-9-generic/extra/ltmodem.ko
-rw-r--r-- 1 root root  13K 2009-01-25 23:13
/lib/modules/2.6.27-9-generic/extra/ungrab-serial.ko
-rw-r--r-- 1 root root  23K 2009-01-25 23:13
/lib/modules/2.6.27-9-generic/extra/v8250.ko

$ sudo  depmod -a
After which there are the loading errors reported above.

MarvS



On Sun, Jan 25, 2009 at 11:04 PM, Marvin Stodolsky
<marvin.stodolsky@xxxxxxxxx> wrote:
> Joshua & Bjorn
>
> Thanks, found it,  Changing  in v8250.c    line 181
> from
> struct tty_struct *tty = up->port.info->tty;
> to
> struct tty_struct *tty = up->port.info->port.tty;
> enables the compile, though I lack the hardware for a functional test.
>
> MarvS
>
>
> On Sun, Jan 25, 2009 at 8:57 PM, Joshua Gordon Crawford
> <jgcrawford@xxxxxxxxx> wrote:
>> 2009/1/25 Marvin Stodolsky <marvin.stodolsky@xxxxxxxxx>:
>>>
>>> /usr/src/modules/ltmodem$ make modules
>>> make -C /lib/modules/2.6.27-9-generic/build
>>> M="/usr/src/modules/ltmodem"  modules
>>> make[1]: Entering directory `/usr/src/linux-headers-2.6.27-9-generic'
>>>  CC [M]  /usr/src/modules/ltmodem/v8250.o
>>> /usr/src/modules/ltmodem/v8250.c: In function 'receive_chars':
>>> /usr/src/modules/ltmodem/v8250.c:181: error: 'struct uart_info' has no
>>> member named 'tty'
>>> make[2]: *** [/usr/src/modules/ltmodem/v8250.o] Error 1
>>> make[1]: *** [_module_/usr/src/modules/ltmodem] Error 2
>>> make[1]: Leaving directory `/usr/src/linux-headers-2.6.27-9-generic'
>>> make: *** [modules] Error 2
>>
>> Marv, this is the same as the problem I reported for agrsm-20080203.
>> The struct uart_info has changed slightly with linux 2.6.27.  Take a
>> look at line 181 in v8250.c, and you'll see a reference like "->tty".
>> Just change that to "->port.tty" and it should compile just fine.
>> --
>> Joshua Crawford ... http://geocities.com/mortarn
>>
>> http://www.rewardscentral.com.au/Join/Default.aspx?refer=mortarn
>> Be rewarded! Join RewardsCentral today!
>>
>

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

  Powered by Linux