Project

General

Profile

OpenMoko » History » Revision 2

Revision 1 (Anonymous, 02/19/2016 10:48 PM) → Revision 2/9 (Anonymous, 02/19/2016 10:48 PM)

Open source phone project: see http://wiki.openmoko.org/wiki/Main_Page for details. 

 Osmocom It can be run directly used in conjunction with pc using following scenarion: 

 on the phone. The communication flow is: 

 [[Image(osmocon-on-OpenMoko.png)]] 

 For phone run 
 {{{ 
 ./osmocon -i 13 -m romload -p /dev/ttySAC0 layer1.highram.bin 
 }}} 
 for details see [wiki:osmocon] and [wiki:CalypsoRomloader]. IP networking between the host and the phone must be set up. 

 == On the phone: == 

  * disable ogsmd, ousaged, ophoned via /etc/frameworkd.conf 
  * prevented fsogsmd from accessing modem by commenting following variables in /etc/freesmartphone/conf/GTA02/fsogsmd.conf: 
    * device_port 
    * modem_access 
  * check that nothing uses the modem: fuser /dev/ttySAC0 
  * open three SSH terminals to the phone 
  * transfer layer1.highram.bin and osmocon binary to the phone 
  * in the first terminal, make [wiki:CalypsoRomloader] 
 Make L2 socket externally available via socat: 
 {{{ 
 socat -v -x tcp-l:16661,reuseaddr,fork unix-connect:/tmp/osmocom_l2 
 }}} 
  * in the second terminal, run osmocon: 
 {{{ 
 ./osmocon -i 13 -m romload -p /dev/ttySAC0 layer1.highram.bin 
 }}} 
  * in the third terminal, turn power off/on: 
 {{{ 
 echo 0 >/sys/bus/platform/devices/gta02-pm-gsm.0/power_on && echo 1 >/sys/bus/platform/devices/gta02-pm-gsm.0/power_on 
 }}} 

 == on the host machine == 

  * Connect the socket: run 
 {{{ 
 socat -v -x unix-l:/var/tmp/l2,fork    tcp:192.168.0.202:16661,fork 
 }}} 
 in order to obtain L2 socket. 
 Note: 192.168.0.202 is default address of the device when you use shr linux distribution. 

 After this you can run various tools tool on host machine, for example: 
 {{{ 
 ./cell_log -s /var/tmp/l2 -l /var/tmp/osmocom.log 
 }}} 
Add picture from clipboard (Maximum size: 48.8 MB)