<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openmoko-gsmd/src, branch zecke/misc/changes</title>
<subtitle>Openmoko gsmd/libgsmd</subtitle>
<id>https://git.gnumonks.org/cgit/openmoko-gsmd/atom?h=zecke%2Fmisc%2Fchanges</id>
<link rel='self' href='https://git.gnumonks.org/cgit/openmoko-gsmd/atom?h=zecke%2Fmisc%2Fchanges'/>
<link rel='alternate' type='text/html' href='https://git.gnumonks.org/cgit/openmoko-gsmd/'/>
<updated>2013-09-19T17:41:00+00:00</updated>
<entry>
<title>hacks to make the event log</title>
<updated>2013-09-19T17:41:00+00:00</updated>
<author>
<name>Holger Hans Peter Freyther</name>
<email>holger@moiji-mobile.com</email>
</author>
<published>2013-09-19T17:41:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.gnumonks.org/cgit/openmoko-gsmd/commit/?id=8a9ecd462b818ece811450f8912c44f50deaa733'/>
<id>urn:sha1:8a9ecd462b818ece811450f8912c44f50deaa733</id>
<content type='text'>
</content>
</entry>
<entry>
<title>util: Remove shadowin of the readset parameter</title>
<updated>2013-09-17T07:07:00+00:00</updated>
<author>
<name>Holger Hans Peter Freyther</name>
<email>holger@moiji-mobile.com</email>
</author>
<published>2013-09-17T07:07:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.gnumonks.org/cgit/openmoko-gsmd/commit/?id=0b3c8902d994229f62ecbeef71440e3134ef3575'/>
<id>urn:sha1:0b3c8902d994229f62ecbeef71440e3134ef3575</id>
<content type='text'>
</content>
</entry>
<entry>
<title>HACK: re-setting a device that is using USB... is not really that great</title>
<updated>2013-09-17T06:53:02+00:00</updated>
<author>
<name>Holger Hans Peter Freyther</name>
<email>holger@moiji-mobile.com</email>
</author>
<published>2013-09-17T06:53:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.gnumonks.org/cgit/openmoko-gsmd/commit/?id=699d803aaf7a6c705fce4a41dca7f96df6bdae6a'/>
<id>urn:sha1:699d803aaf7a6c705fce4a41dca7f96df6bdae6a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>lgsm: Allow to set any user data for the gsm handle</title>
<updated>2013-09-16T21:49:13+00:00</updated>
<author>
<name>Holger Hans Peter Freyther</name>
<email>holger@moiji-mobile.com</email>
</author>
<published>2013-09-16T21:49:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.gnumonks.org/cgit/openmoko-gsmd/commit/?id=706b46c794806932bc175f64babfbd9fef537b00'/>
<id>urn:sha1:706b46c794806932bc175f64babfbd9fef537b00</id>
<content type='text'>
</content>
</entry>
<entry>
<title>cell_log: Use a custom RF-Lock handling to unlock the GSM network</title>
<updated>2013-03-17T09:40:26+00:00</updated>
<author>
<name>Holger Hans Peter Freyther</name>
<email>zecke@selfish.org</email>
</author>
<published>2012-06-13T09:17:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.gnumonks.org/cgit/openmoko-gsmd/commit/?id=de8f1175dcb07f65dde26b42a3f12f9993746c84'/>
<id>urn:sha1:de8f1175dcb07f65dde26b42a3f12f9993746c84</id>
<content type='text'>
Send a lock/unlock to the NITB application using the CTRL interface
and custom messages.
</content>
</entry>
<entry>
<title>wavecom: Fix unaligned memory access and silent stack corruption</title>
<updated>2013-03-17T09:40:26+00:00</updated>
<author>
<name>Holger Hans Peter Freyther</name>
<email>zecke@selfish.org</email>
</author>
<published>2013-03-16T21:05:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.gnumonks.org/cgit/openmoko-gsmd/commit/?id=6cdf70598ab71bad6b1aff95b9be9d972e581747'/>
<id>urn:sha1:6cdf70598ab71bad6b1aff95b9be9d972e581747</id>
<content type='text'>
The parameters were uint16_t and we asked the libc to make a
store of uint32_t. So 16bit were written to the wrong part of
the struct and on ARM this is causing unaligned memory access.

Use the %hx to make a uint16_t store and avoid the above issue.

GDB
 #0  0x4d4d0a20 in _IO_vfscanf () from /lib/libc.so.6
 (gdb) bt
 #0  0x4d4d0a20 in _IO_vfscanf () from /lib/libc.so.6
 #1  0x4d4d5d54 in __isoc99_vsscanf () from /lib/libc.so.6
 #2  0x4d4d5cd0 in __isoc99_sscanf () from /lib/libc.so.6
 #3  0x400a597c in ?? () from /usr/lib/gsmd/libgsmd-vendor_wavecom.so
 Cannot access memory at address 0x3

Clang:
vendor_wavecom.c:114:21: warning: format specifies type 'unsigned int *' but the argument has
      type 'u_int16_t *' (aka 'unsigned short *') [-Wformat]
                sscanf(tok, "%x", &amp;aux-&gt;u.cell_info.ci);
                             ~~   ^~~~~~~~~~~~~~~~~~~~
                             %hx
</content>
</entry>
<entry>
<title>cell_log: Move from LOG_INFO to LOG_NOTICE for the operator messages</title>
<updated>2013-03-16T13:43:58+00:00</updated>
<author>
<name>Holger Hans Peter Freyther</name>
<email>zecke@selfish.org</email>
</author>
<published>2013-03-16T13:42:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.gnumonks.org/cgit/openmoko-gsmd/commit/?id=68a9cd68aab77ac8f3951b1e809bb4310490db2c'/>
<id>urn:sha1:68a9cd68aab77ac8f3951b1e809bb4310490db2c</id>
<content type='text'>
We are ignoring the debug and info levels in the default configuration
of the syslog. Change it to notice to make sure it is written to the
log.
</content>
</entry>
<entry>
<title>cell_log: Fix typo in the debug log message</title>
<updated>2013-03-16T13:43:58+00:00</updated>
<author>
<name>Holger Hans Peter Freyther</name>
<email>zecke@selfish.org</email>
</author>
<published>2013-03-16T13:41:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.gnumonks.org/cgit/openmoko-gsmd/commit/?id=ee65ed386befd625a32bdd58e489d808c667e87a'/>
<id>urn:sha1:ee65ed386befd625a32bdd58e489d808c667e87a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>cell_log: power-cycle the modem on CME ERROR 515</title>
<updated>2013-03-15T10:25:30+00:00</updated>
<author>
<name>Harald Welte</name>
<email>laforge@gnumonks.org</email>
</author>
<published>2013-03-15T10:25:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.gnumonks.org/cgit/openmoko-gsmd/commit/?id=da770f8f34662a298647a75698a718705047d3dc'/>
<id>urn:sha1:da770f8f34662a298647a75698a718705047d3dc</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add run-time changing of gsmd log level via libgsm/libgsmd-tool</title>
<updated>2013-03-15T10:07:12+00:00</updated>
<author>
<name>Harald Welte</name>
<email>laforge@gnumonks.org</email>
</author>
<published>2013-03-15T10:07:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.gnumonks.org/cgit/openmoko-gsmd/commit/?id=3ec111676ff9e34058b3bf2e482a236f341c10eb'/>
<id>urn:sha1:3ec111676ff9e34058b3bf2e482a236f341c10eb</id>
<content type='text'>
</content>
</entry>
</feed>
