[maemo-developers] installable deb package, Re: Data corruption on N770

From: Rainer Dorsch rdorsch at web.de
Date: Sun Nov 18 07:01:54 EET 2007
On Friday, 16. November 2007 05:17, Frantisek Dufka wrote:
> Frantisek Dufka wrote:
> > I am also working now on packaging this module as installable deb for
> > OS2006 users.
>
> Hello, I have created installable deb package for OS2006 and older
> hacker editions. If possible please test and report problems here.

Frantisek,

thanks for providing the package for OS2006, that is great news. I installed 
it and it did not break anything as far as I can tell. The only thing I am 
surprised is that the module is reported as cx3110x  by lsmod:

Nokia770-49:~# lsmod
Module                  Size  Used bycx3110x                51736   0
ext2                   43524   1
umac                  253316   1 cx3110x
Nokia770-49:~# dpkg -L cx3110x-hotfix-bug2006
/.
/etc
/etc/rc2.d
/etc/init.d
/etc/init.d/cx3110x-hotfix-bug2006
/usr
/usr/share
/usr/share/doc
/usr/share/doc/cx3110x-hotfix-bug2006
/usr/share/doc/cx3110x-hotfix-bug2006/changelog
/lib
/lib/modules
/lib/modules/2.6.16.27-omap1
/lib/modules/2.6.16.27-omap1/cx3110x-hotfix-bug2006.ko
/etc/rc2.d/S10cx3110x-hotfix-bug2006
Nokia770-49:~# cat /etc/init.d/cx3110x-hotfix-bug2006
#!/bin/sh
# startup script for memory corruption bugfix
# unload cx3110x module and load fixed one
# see bug "Memory corruption during WLAN use" - 
http://bugs.maemo.org/show_bug.cgi?id=2006

PATH=/sbin:/bin:/usr/sbin:/usr/bin

case "$1" in
start)
        module_name=/lib/modules/`uname -r`/cx3110x-hotfix-bug2006.ko
        if [ -f $module_name ] ; then
                rmmod cx3110x
                insmod $module_name
                chroot /mnt/initfs wlan-cal
                echo "fixed cx3110x module loaded"
        else
                echo "$module_name not found, nothing done"
        fi
        ;;
stop)
        ;;
*)
        echo "Usage: $0 {start|stop|restart|reload|force-reload}"
        exit 1
esac

exit 0
Nokia770-49:~# ls -l /lib/modules/`uname -r`/cx3110x-hotfix-bug2006.ko
-rw-r--r--    1 root     root        63220 Nov 16 
09:53 /lib/modules/2.6.16.27-omap1/cx3110x-hotfix-bug2006.ko
Nokia770-49:~# 


dmesg seems to tell that the fixed driver is loaded:

[    6.173858] CX3110x chip variant: STLC4370
[    6.293853] CX3110x: firmware version: 2.13.0.0.a.13.14
[    6.294067] Loaded CX3110x driver, version 0.8
[   14.495483] Unloaded CX3110x  driver, version 0.8
[   14.611755] CX3110x chip variant: STLC4370
[   14.776855] CX3110x: firmware version: 2.13.0.0.a.13.14
[   14.777069] Loaded CX3110x driver, version 0.8.1-bug2006-fix1

Again, many thanks for providing the package.

Rainer


> There is one more fix for omap_mcbsp_spi_master_recv_word_poll function
> writing one word past the end of data buffer.
>
> Alignment issues remain unfixed since it seems they do not cause any
> problems as the buffer seems to be properly aligned.
>
> For details see https://bugs.maemo.org/show_bug.cgi?id=2006
> Link to deb package - http://bugs.maemo.org/attachment.cgi?id=613
>
> Frantisek
> _______________________________________________
> maemo-developers mailing list
> maemo-developers at maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers

-- 
Rainer Dorsch
Lärchenstr. 6
D-72135 Dettenhausen
07157-734133
jabber: rdorsch at jabber.org
GPG Fingerprint: 5966 C54C 2B3C 42CC 1F4F  8F59 E3A8 C538 7519 141E
Full GPG key: http://pgp.mit.edu/

More information about the maemo-developers mailing list