Re: [debian] fso stack does not work

2011-07-05 Thread Dmitry Chistikov
Dmitry Chistikov, Jul. 05, 2011, 09:07 +0400:
 frameworkd.subsystem ERRORfactory method not successfully completed
 for module module 'odeviced.input' from
 '/usr/lib/pymodules/python2.6/framework/subsystems/odeviced/input.pyc'
 
 ...and a python call stack ending with NameError: global name 'c' is not
 defined. At the first glance I did not manage to mend it, though the
 issue is quite clear: c is a global variable initialized at the module
 level (c stands for C library). [...]

I solved this with the following code:

--- linux.py.orig   2011-07-05 15:29:11.0 +0400
+++ linux.py2011-07-05 15:26:20.0 +0400
@@ -19,12 +19,14 @@
 re = compile('^libc.so.[0-9]$')
 libs = os.listdir('/lib')
 for lib in libs:
 if re.match(lib):
 c = ctypes.cdll.LoadLibrary(lib)
 break
+else:
+c = ctypes.cdll.LoadLibrary('libc.so.6')
 
 _IOC_NRBITS = 8
 _IOC_TYPEBITS = 8
 _IOC_SIZEBITS = 14
 _IOC_DIRBITS = 2
 

The reason the original version does not work is as follows:

root@ziggy:~# ls /lib | fgrep libc.
root@ziggy:~# find /lib -name 'libc.*'
/lib/arm-linux-gnueabi/libc.so.6

Is anyone interested in fixing this packaging bug?

The main problem still persists, though =(

-- 
Dmitry Chistikov

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: [debian] fso stack does not work

2011-07-04 Thread Dmitry Chistikov
Timo Jyrinki, Jul. 02, 2011, 08:51 +0300:
 You can try to use stable repositories instead by modifying the
 install.sh script [...]

Thank you for your advice. I managed to install from wheezy branch
instead of sid. I got tslib with Timo Juhani Lindfors' patch from
http://lindi.iki.fi/lindi/tslib/ and your kernel
linux-image-2.6.34-openmoko-gta02_20101212.git049b71de-2 from
http://pkg-fso.alioth.debian.org/incoming/ . Touchscreen now works
(thanks to both of you!).

Unfortunately, I was not able to get the FSO stack to work. When I start
fso-frameworkd service and invoke zhone, the latter reports gsm ok:
Interface ... implementing 'org.freesmartphone.GSM.Network' at
0x4059aa90, but then stucks with Requesting resource GSM (full log
attached). fsousage log says:

Resource GSM can't be enabled: Did not receive a reply. Possible causes
include: the remote application did not send a reply, the message bus
security policy blocked the reply, the reply timeout expired, or the
network connection was broken.. Trying to disable instead.

frameworkd contains several errors, including two python-related ones.
While googleing reveals that the absence of pyrtc (python-rtc) is not
fatal (is that correct?), there is more sinister-looking one:

frameworkd.subsystem ERRORfactory method not successfully completed
for module module 'odeviced.input' from
'/usr/lib/pymodules/python2.6/framework/subsystems/odeviced/input.pyc'

...and a python call stack ending with NameError: global name 'c' is not
defined. At the first glance I did not manage to mend it, though the
issue is quite clear: c is a global variable initialized at the module
level (c stands for C library). The log ends with a long sequence
of messages from ogsmd continuously trying (unsuccessfully) to open
channels MISC, UNSOL, CALL.

FSO package versions are included in a separate attachment.
Zhone is 0-git20110224+6bcb7fc4-1.

Has anyone encountered the same issue? Am I missing something? or is it
that Debian FSO packages are broken at the moment?

-- 
Dmitry Chistikov
fso-config-gta02 20100210
fso-frameworkd 0.9.5.9+git20100131-4
fso-gpsd 0.8-3.1
fso-gsm0710muxd 0.9.3.1-3
fso-sounds-yue-base 20081031-2
fso-usaged 0.9.1.1+git20100507-1
fso-utils 0.git20090919.1
libfso-glib0 2010.05.11.2-1.2
libfsobasics0 0.9.0+git20100509-2
libfsoframework0 0.2.4+git20100501-1
2011-07-04 19:47:55,605 WARNING could not load illume interface module
2011-07-04 19:47:56,344 DEBUG GUI init
2011-07-04 19:47:59,434 DEBUG GUI init done
2011-07-04 19:47:59,444 DEBUG entering mainloop
2011-07-04 19:47:59,643 DEBUG dbus_objectInit...
2011-07-04 19:47:59,696 INFO cached proxy for 
org.freesmartphone.frameworkd:/org/freesmartphone/Framework
2011-07-04 19:47:59,745 INFO cached proxy for 
org.freesmartphone.ousaged:/org/freesmartphone/Usage
2011-07-04 19:47:59,798 DEBUG usage ok: Interface ProxyObject wrapping 
dbus._dbus.SystemBus (system) at 0x40550390 :1.104 /org/freesmartphone/Usage 
at 0x4053dc30 implementing 'org.freesmartphone.Usage' at 0x4053dd10
2011-07-04 19:47:59,818 INFO cached proxy for 
org.freesmartphone.ogpsd:/org/freedesktop/Gypsy
2011-07-04 19:48:00,020 DEBUG gps ok: Interface ProxyObject wrapping 
dbus._dbus.SystemBus (system) at 0x40550390 :1.96 /org/freedesktop/Gypsy at 
0x4053df10 implementing 'org.freedesktop.Gypsy.Accuracy' at 0x4059a110, 
Interface ProxyObject wrapping dbus._dbus.SystemBus (system) at 0x40550390 
:1.96 /org/freedesktop/Gypsy at 0x4053df10 implementing 
'org.freedesktop.Gypsy.Position' at 0x4059a390, Interface ProxyObject 
wrapping dbus._dbus.SystemBus (system) at 0x40550390 :1.96 
/org/freedesktop/Gypsy at 0x4053df10 implementing 
'org.freedesktop.Gypsy.Satellite' at 0x4059a4d0
2011-07-04 19:48:00,048 INFO cached proxy for 
org.freesmartphone.ogsmd:/org/freesmartphone/GSM/Device
2011-07-04 19:48:00,088 INFO cached proxy for 
org.freesmartphone.ogsmd:/org/freesmartphone/GSM/Server
2011-07-04 19:48:00,283 DEBUG gsm ok: Interface ProxyObject wrapping 
dbus._dbus.SystemBus (system) at 0x40550390 :1.97 
/org/freesmartphone/GSM/Device at 0x4059a8b0 implementing 
'org.freesmartphone.GSM.Network' at 0x4059aa90
2011-07-04 19:48:00,326 INFO cached proxy for 
org.freesmartphone.odeviced:/org/freesmartphone/Device
2011-07-04 19:48:00,364 INFO cached proxy for 
org.freesmartphone.odeviced:/org/freesmartphone/Device/IdleNotifier/0
2011-07-04 19:48:00,463 DEBUG device ok: Interface ProxyObject wrapping 
dbus._dbus.SystemBus (system) at 0x40550390 :1.94 /org/freesmartphone/Device 
at 0x405a00d0 implementing 'org.freesmartphone.Device' at 0x405a0190
2011-07-04 19:48:00,483 INFO cached proxy for 
org.freesmartphone.opreferencesd:/org/freesmartphone/Preferences
2011-07-04 19:48:00,503 DEBUG preferences ok: Interface ProxyObject wrapping 
dbus._dbus.SystemBus (system) at 0x40550390 :1.101 
/org/freesmartphone/Preferences at 0x405a05b0 implementing 
'org.freesmartphone.Preferences' at 0x405a0690
2011-07-04 19:48:00,521 DEBUG failcount = 0
2011-07-04 19:48:00,532 DEBUG