Project

General

Profile

OpenMoko » History » Revision 7

Revision 6 (gnutoo, 02/19/2016 10:48 PM) → Revision 7/9 (gnutoo, 02/19/2016 10:49 PM)

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


 h2. 

 == How to load osmocom-bb from the phone Application CPU: 

 == 
 Osmocom can be run directly on the phone. The communication flow is: 

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

 For details see [[osmocon]] [wiki:osmocon] and [[HardwareCalypsoRomloader]]. [wiki:Hardware/CalypsoRomloader]. IP networking between the host and the phone must be set up. 


 h3. 

 === On the phone: 


 === 

  * disable ogsmd, ousaged, ophoned via /etc/frameworkd.conf 
 
  * prevent fsogsmd from accessing modem by commenting following variables in /etc/freesmartphone/conf/GTA02/fsogsmd.conf: 
 *** 
    * device_port 
 *** 
    * modem_access 
 
  * re-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 L2 socket externally available via socat: 
 <pre> 
 {{{ 
 socat -v -x tcp-l:16661,reuseaddr,fork unix-connect:/tmp/osmocom_l2 
 </pre> 
 }}} 
  * in the second terminal, run osmocon: 
 <pre> 
 {{{ 
 ./osmocon -i 13 -m romload -p /dev/ttySAC0 layer1.highram.bin 
 </pre> 
 }}} 
  * in the third terminal, turn power off/on: 
 <pre> 
 {{{ 
 echo 0 >/sys/bus/platform/devices/gta02-pm-gsm.0/power_on && echo 1 >/sys/bus/platform/devices/gta02-pm-gsm.0/power_on 
 </pre> 


 h3. }}} 

 === on the host machine 


 === 

  * Connect the socket: 
 <pre> 
 {{{ 
 socat -v -x unix-l:/var/tmp/l2,fork    tcp:192.168.7.2:16661,fork 
 </pre> 
 }}} 
 Note: 192.168.7.2 is default address of the device when you use shr-core linux distribution. 

 After this you can run various tools on host machine, for example: 
 <pre> 
 {{{ 
 ./cell_log -s /var/tmp/l2 -l /var/tmp/osmocom.log 
 </pre> 


 h2. }}} 

 == How to load osmocom-bb from a computer 

 == 
 Alternatively you can also load a firmware on the openmoko modem from your computer, without needing to cross compile or install something on the phone CPU running GNU/Linux. 

 

  * like with the previous explanations be sure that nothing access the modem. 
 
  * Then run the following command on the phone: 
 <pre> 
 {{{ 
 echo 1 > /sys/bus/platform/devices/gta02-pm-gsm.0/download 
 </pre> 
 }}} 
 That will connect the second serial port of the modem(named IRDA) to the audio jack. 
 
  * Then connect a 3.3V serial cable(a normal serial port will probably kill your modem because of the higher voltage) to the audio jack(for the pins you can refer to the schematics of the phone that are freely available) 
 Then on a computer do(replace /dev/ttyUSB0 by your computer serial port): 
 <pre> 
 {{{ 
 ./osmocon -i 13 -m romload -p /dev/ttyUSB0 layer1.highram.bin 
 </pre> 
 }}} 
 And back on the phone do: 
 <pre> 
 {{{ 
 echo 0 >/sys/bus/platform/devices/gta02-pm-gsm.0/power_on && echo 1 >/sys/bus/platform/devices/gta02-pm-gsm.0/power_on 
 </pre> 
 }}} 
 That will load the firmware, and you will be able to interact with it from your computer like if it was a regular supported(by osmocom-bb) feature phone.
Add picture from clipboard (Maximum size: 48.8 MB)