Send commitlog mailing list submissions to
        commitlog@lists.openmoko.org

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.openmoko.org/mailman/listinfo/commitlog
or, via email, send a message with subject or body 'help' to
        [EMAIL PROTECTED]

You can reach the person managing the list at
        [EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of commitlog digest..."
Today's Topics:

   1. r4144 - branches/src/target/kernel/2.6.24.x/patches
      ([EMAIL PROTECTED])
   2. r4145 - in developers/tick: . Test_env_script_GTA02A5
      ([EMAIL PROTECTED])
   3. r4146 - developers/tick/Test_env_script_GTA02A5
      ([EMAIL PROTECTED])
   4. r4147 - in
      trunk/src/target/OM-2007.2/applications/openmoko-dialer2: .
      src/phone-kit ([EMAIL PROTECTED])
--- Begin Message ---
Author: werner
Date: 2008-03-02 15:04:17 +0100 (Sun, 02 Mar 2008)
New Revision: 4144

Modified:
   branches/src/target/kernel/2.6.24.x/patches/gta01-pcf50606.patch
Log:
gta01-pcf50606.patch:
- drivers/i2c/chips/pcf50606.c (pcf50606_detect): create a sysfs symlink from
  gta01-pm-gps.0 to neo1973-pm-gps.0, for gllin compatibility



Modified: branches/src/target/kernel/2.6.24.x/patches/gta01-pcf50606.patch
===================================================================
--- branches/src/target/kernel/2.6.24.x/patches/gta01-pcf50606.patch    
2008-03-01 02:24:32 UTC (rev 4143)
+++ branches/src/target/kernel/2.6.24.x/patches/gta01-pcf50606.patch    
2008-03-02 14:04:17 UTC (rev 4144)
@@ -8,7 +8,7 @@
 ===================================================================
 --- /dev/null
 +++ linux-2.6.24/drivers/i2c/chips/pcf50606.c
-@@ -0,0 +1,1939 @@
+@@ -0,0 +1,1945 @@
 +/* Philips/NXP PCF50606 Power Management Unit (PMU) driver
 + *
 + * (C) 2006-2007 by OpenMoko, Inc.
@@ -1721,6 +1721,12 @@
 +                      break;
 +              }
 +              platform_device_register(&gta01_pm_gps_dev);
++              /* a link for gllin compatibility */
++              err = sysfs_create_link(&platform_bus_type.devices.kobj,
++                  &gta01_pm_gps_dev.dev.kobj, "gta01-pm-gps.0");
++              if (err)
++                      printk(KERN_ERR
++                          "sysfs_create_link (gta01-pm-gps.0): %d\n", err);
 +      }
 +#endif
 +
@@ -2259,7 +2265,7 @@
 ===================================================================
 --- linux-2.6.24.orig/drivers/i2c/chips/Kconfig
 +++ linux-2.6.24/drivers/i2c/chips/Kconfig
-@@ -51,6 +51,17 @@
+@@ -51,6 +51,17 @@ config SENSORS_EEPROM
          This driver can also be built as a module.  If so, the module
          will be called eeprom.
  
@@ -2281,7 +2287,7 @@
 ===================================================================
 --- linux-2.6.24.orig/drivers/i2c/chips/Makefile
 +++ linux-2.6.24/drivers/i2c/chips/Makefile
-@@ -9,6 +9,7 @@
+@@ -9,6 +9,7 @@ obj-$(CONFIG_SENSORS_EEPROM)   += eeprom.o
  obj-$(CONFIG_SENSORS_MAX6875) += max6875.o
  obj-$(CONFIG_SENSORS_M41T00)  += m41t00.o
  obj-$(CONFIG_SENSORS_PCA9539) += pca9539.o




--- End Message ---
--- Begin Message ---
Author: tick
Date: 2008-03-03 09:02:11 +0100 (Mon, 03 Mar 2008)
New Revision: 4145

Added:
   developers/tick/Test_env_script_GTA02A5/
   developers/tick/Test_env_script_GTA02A5/README
   developers/tick/Test_env_script_GTA02A5/gta02.conf
   developers/tick/Test_env_script_GTA02A5/resolv.conf
   developers/tick/Test_env_script_GTA02A5/setneo
   developers/tick/Test_env_script_GTA02A5/setup_at_neo_assassin.script
   developers/tick/Test_env_script_GTA02A5/setupenv
Log:
Adding some script for personal testing


Added: developers/tick/Test_env_script_GTA02A5/README
===================================================================
--- developers/tick/Test_env_script_GTA02A5/README      2008-03-02 14:04:17 UTC 
(rev 4144)
+++ developers/tick/Test_env_script_GTA02A5/README      2008-03-03 08:02:11 UTC 
(rev 4145)
@@ -0,0 +1,9 @@
+License: GPL
+Composor: Tick
+
+Notice: Assassin is not availiable on public yet, coming soon. 
+
+Please Run the ./setupenv and choose your option. 
+If you get any problem from that, please e-mail to [EMAIL PROTECTED]
+
+Enjoy it. 

Added: developers/tick/Test_env_script_GTA02A5/gta02.conf
===================================================================
--- developers/tick/Test_env_script_GTA02A5/gta02.conf  2008-03-02 14:04:17 UTC 
(rev 4144)
+++ developers/tick/Test_env_script_GTA02A5/gta02.conf  2008-03-03 08:02:11 UTC 
(rev 4145)
@@ -0,0 +1,14 @@
+arch any 6
+arch noarch 11
+arch arm 16
+arch armv4t 21
+src oe-armv4t 
http://buildhost.openmoko.org/daily/neo1973/deploy/glibc/ipk/armv4t/
+arch neo1973 26
+src neo1973 
http://buildhost.openmoko.org/daily/neo1973/deploy/glibc/ipk/neo1973/
+arch fic-gta02 31
+src fic-gta02 
http://buildhost.openmoko.org/daily/neo1973/deploy/glibc/ipk/fic-gta02/
+arch all 36
+src all http://buildhost.openmoko.org/daily/neo1973/deploy/glibc/ipk/all/
+arch fic-gta01 41
+src fic-gta01 
http://buildhost.openmoko.org/daily/neo1973/deploy/glibc/ipk/fic-gta01/
+

Added: developers/tick/Test_env_script_GTA02A5/resolv.conf
===================================================================
--- developers/tick/Test_env_script_GTA02A5/resolv.conf 2008-03-02 14:04:17 UTC 
(rev 4144)
+++ developers/tick/Test_env_script_GTA02A5/resolv.conf 2008-03-03 08:02:11 UTC 
(rev 4145)
@@ -0,0 +1,6 @@
+search tw.openmoko.com
+nameserver 172.16.23.13
+nameserver 168.95.1.1
+
+
+nameserver 192.168.0.200

Added: developers/tick/Test_env_script_GTA02A5/setneo
===================================================================
--- developers/tick/Test_env_script_GTA02A5/setneo      2008-03-02 14:04:17 UTC 
(rev 4144)
+++ developers/tick/Test_env_script_GTA02A5/setneo      2008-03-03 08:02:11 UTC 
(rev 4145)
@@ -0,0 +1,10 @@
+#!/bin/bash 
+if (( $UID==0 ));then
+       ifconfig usb0 192.168.0.200
+       if (( `cat /proc/sys/net/ipv4/ip_forward` == 0 )); then
+               echo 1 >  /proc/sys/net/ipv4/ip_forward
+               iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -j MASQUERADE
+       fi
+else
+       echo "Please run this script as a root!!"
+fi


Property changes on: developers/tick/Test_env_script_GTA02A5/setneo
___________________________________________________________________
Name: svn:executable
   + *

Added: developers/tick/Test_env_script_GTA02A5/setup_at_neo_assassin.script
===================================================================
--- developers/tick/Test_env_script_GTA02A5/setup_at_neo_assassin.script        
2008-03-02 14:04:17 UTC (rev 4144)
+++ developers/tick/Test_env_script_GTA02A5/setup_at_neo_assassin.script        
2008-03-03 08:02:11 UTC (rev 4145)
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+# name server stuff
+cp resolv.conf /etc/
+
+cd /etc/ipkg
+rm -rf *
+cd ~
+cp gta02.conf /etc/ipkg
+cd /etc
+ln -sf ipkg opkg
+cd /var/lib/ipkg
+rm -rf 
+cd ~/
+ipkg update
+sleep 5
+ipkg -force-overwrite install opkg
+sleep 5
+ipkg install assassin
+sleep 5
+ipkg install e-wm
+sleep 5
+cd /usr/bin/
+ln -sf opkg-cl opkg
+opkg update
+
+

Added: developers/tick/Test_env_script_GTA02A5/setupenv
===================================================================
--- developers/tick/Test_env_script_GTA02A5/setupenv    2008-03-02 14:04:17 UTC 
(rev 4144)
+++ developers/tick/Test_env_script_GTA02A5/setupenv    2008-03-03 08:02:11 UTC 
(rev 4145)
@@ -0,0 +1,149 @@
+#!/bin/bash
+
+IMAGE_DIR="images.storage"
+NEEDDOWNLOAD=1;
+ASSASSINTESTENV=1;
+
+get_date() {
+       YEAR=`date +%Y`
+       MONTH=`date +%m`
+       DAY=`date +%d`
+       return
+}
+get_days_of_month() {
+       if (( $MONTH == 1 )) || (( $MONTH == 3 )) || (( $MONTH == 5 ))  ||(( 
$MONTH == 7 )) || (( $MONTH == 8 ))  || (( $MONTH == 10 )) || (( $MONTH == 0 
)); then
+                DAY=31
+        elif (( $MONTH == 2 ));then
+                DAY=28  # forget about 2/29 here :-P
+        else
+                DAY=30
+        fi
+        return
+}
+get_date_sub1 () {
+       let DAY=$DAY-1
+       if (( $DAY == 0 ));then 
+               let MONTH=$MONTH-1
+               get_days_of_month
+       fi
+       if (( $MONTH == 0 ));then
+               MONTH=12;
+               let YEAR=$YEAR-1
+       fi
+}
+
+setup_env() 
+{
+       echo "Want do you want to do?"
+       echo "  1. Reflash images cached only."
+       echo "  2. Reflash images cached and setup Assassin Testing 
enviornment."
+       echo "  3. Download Images from buildhost, and reflashing them only."
+       echo "  4. Download Images from buildhostm and setup Assassin Testing 
environment."
+       echo -n "choice >"
+       read ANS
+       echo ""
+       if (( ${ANS} == 1 )) ;then 
+               NEEDDOWNLOAD=0;
+               ASSASSINTESTENV=0;
+       elif ((  ${ANS} == 2 ));then
+               NEEDDOWNLOAD=0;
+               ASSASSINTESTENV=1;
+       elif ((  ${ANS} == 3 ));then
+               NEEDDOWNLOAD=1;
+               ASSASSINTESTENV=0;
+       elif ((  ${ANS} == 4 ));then
+               NEEDDOWNLOAD=1;
+               ASSASSINTESTENV=1;
+       else 
+               setup_env
+       fi
+return
+}
+
+if ! [ -e setupenv ];then
+       echo Please run the script at where it is!!
+       exit 0
+fi
+setup_env
+
+if ! [ -e ${IMAGE_DIR} ];then
+       mkdir ${IMAGE_DIR}
+       NEEDDOWNLOAD=1
+fi
+
+if ! [ -f "dfu-util" ] ;then
+       wget 
http://buildhost.openmoko.org/daily/neo1973/deploy/glibc/images/neo1973/dfu-util
+       chmod 755 dfu-util
+fi
+
+if  (( ${NEEDDOWNLOAD} > 0 ));then 
+       pushd ${IMAGE_DIR}
+               rm -rf *
+               
UBOOT=http://buildhost.openmoko.org/daily/neo1973/deploy/glibc/images/neo1973/uboot-gta02v5-latest.bin
+               wget ${UBOOT}
+               
KERNEL=http://buildhost.openmoko.org/daily/neo1973/deploy/glibc/images/neo1973/uImage-neo1973-latest.bin
+               wget ${KERNEL}
+               get_date        
+               
ROOTFS=http://buildhost.openmoko.org/daily/neo1973/deploy/glibc/images/neo1973/OpenMoko-openmoko-devel-image-glibc-ipk-P1-Snapshot-${YEAR}${MONTH}${DAY}-fic-gta02.rootfs.jffs2
+               echo Try to get ${ROOTFS}
+               while ! ( wget ${ROOTFS} );do
+                       get_date_sub1
+                       
ROOTFS=http://buildhost.openmoko.org/daily/neo1973/deploy/glibc/images/neo1973/OpenMoko-openmoko-devel-image-glibc-ipk-P1-Snapshot-${YEAR}${MONTH}${DAY}-fic-gta02.rootfs.jffs2
+                       echo Try to get ${ROOTFS}
+               done
+       popd
+fi
+
+if ! [ -e /dev/ttyACM0 ];then
+       echo Try to get root!!
+       sudo ls > /dev/null
+       echo Please restart Neo with USB cable NOW
+fi
+LALA=0;
+while (( `./dfu-util -l | awk '/^Found Runtime:/ 
{ans=substr($3,2,length($3)-2);print ans}' | grep "0x5119" | wc -l` == 0 ));do 
+       echo Waiting~~~;
+       let LALA=$LALA+1
+       if (( $LALA == 5 ));then
+               echo Please restart Neo with USB cable NOW...
+       fi
+       if (( $LALA > 10 ));then
+               echo I am waiting for you... Come on~~
+               LALA=0;
+       fi
+       sleep 1;
+done
+
+ID=`./dfu-util -l | awk '/^Found Runtime:/ 
{ans=substr($3,2,length($3)-2);print ans}' | grep "0x5119"`
+
+echo Scan device OK!!
+
+pushd ${IMAGE_DIR}
+       sleep 1
+       sudo ../dfu-util -d ${ID} -a kernel -R -D ./uImage-neo1973-latest.bin
+       sleep 3
+       sudo ../dfu-util -d ${ID} -a rootfs -R -D 
./OpenMoko-openmoko-devel-image-glibc-ipk-P1-Snapshot-*-fic-gta02.rootfs.jffs2
+       sleep 5
+       sudo ../dfu-util -d ${ID} -a u-boot -R -D ./uboot-gta02v5-latest.bin
+       sleep 15
+popd
+
+echo Now remove battery and then remove USB calbel from the Device
+while [ -e /dev/ttyACM0 ];do
+       sleep 1
+done
+echo Ok plug battery and USB cable back NOW...
+while ! [ -e /dev/ttyACM0 ];do
+       sleep 1
+done
+echo Neo detected~
+echo Ok please wait for system booting....
+sleep 60
+sudo ./setneo
+rm -rf ~/.ssh/known_hosts
+sleep 100
+
+if (( ${ASSASSINTESTENV}== 1));then
+       scp gta02.conf  resolv.conf setup_at_neo_assassin.script [EMAIL 
PROTECTED]:~/
+       ssh [EMAIL PROTECTED] "chmod 755 
./setup_at_neo_assassin.script;./setup_at_neo_assassin.script"
+fi
+echo "Ok!! Now the Neo is all yours. Enjoy Hacking || Testing..."


Property changes on: developers/tick/Test_env_script_GTA02A5/setupenv
___________________________________________________________________
Name: svn:executable
   + *




--- End Message ---
--- Begin Message ---
Author: tick
Date: 2008-03-03 09:03:54 +0100 (Mon, 03 Mar 2008)
New Revision: 4146

Modified:
   developers/tick/Test_env_script_GTA02A5/setupenv
Log:
adding "without any warranty but with best wishes"


Modified: developers/tick/Test_env_script_GTA02A5/setupenv
===================================================================
--- developers/tick/Test_env_script_GTA02A5/setupenv    2008-03-03 08:02:11 UTC 
(rev 4145)
+++ developers/tick/Test_env_script_GTA02A5/setupenv    2008-03-03 08:03:54 UTC 
(rev 4146)
@@ -34,6 +34,7 @@
 
 setup_env() 
 {
+       echo "Use it without any warranty but with best wishes!!"
        echo "Want do you want to do?"
        echo "  1. Reflash images cached only."
        echo "  2. Reflash images cached and setup Assassin Testing 
enviornment."




--- End Message ---
--- Begin Message ---
Author: chris
Date: 2008-03-03 11:58:03 +0100 (Mon, 03 Mar 2008)
New Revision: 4147

Modified:
   trunk/src/target/OM-2007.2/applications/openmoko-dialer2/ChangeLog
   
trunk/src/target/OM-2007.2/applications/openmoko-dialer2/src/phone-kit/moko-sms.c
Log:
        * src/phone-kit/moko-sms.c: (on_incoming_sms):
        Move g_utf16_to_utf8 outside of the for loop - error inserted by
        myself while integrating previous patch


Modified: trunk/src/target/OM-2007.2/applications/openmoko-dialer2/ChangeLog
===================================================================
--- trunk/src/target/OM-2007.2/applications/openmoko-dialer2/ChangeLog  
2008-03-03 08:03:54 UTC (rev 4146)
+++ trunk/src/target/OM-2007.2/applications/openmoko-dialer2/ChangeLog  
2008-03-03 10:58:03 UTC (rev 4147)
@@ -1,3 +1,9 @@
+2008-03-03  Chris Lord  <[EMAIL PROTECTED]>
+
+       * src/phone-kit/moko-sms.c: (on_incoming_sms):
+       Move g_utf16_to_utf8 outside of the for loop - error inserted by
+       myself while integrating previous patch
+
 2008-02-29  Chris Lord  <[EMAIL PROTECTED]>
 
        * src/phone-kit/moko-sms.c: (on_incoming_sms):

Modified: 
trunk/src/target/OM-2007.2/applications/openmoko-dialer2/src/phone-kit/moko-sms.c
===================================================================
--- 
trunk/src/target/OM-2007.2/applications/openmoko-dialer2/src/phone-kit/moko-sms.c
   2008-03-03 08:03:54 UTC (rev 4146)
+++ 
trunk/src/target/OM-2007.2/applications/openmoko-dialer2/src/phone-kit/moko-sms.c
   2008-03-03 10:58:03 UTC (rev 4147)
@@ -300,17 +300,16 @@
   case ALPHABET_UCS2 :
     {
       gint i;
-      gunichar2 *ucs2 = sms->payload.data;
+      gunichar2 *ucs2 = (gunichar2 *)sms->payload.data;
 
       g_debug ("Decoding UCS-2 message");
 
-      for (i = 0; i < sms->payload.length / 2; i++) {
+      for (i = 0; i < sms->payload.length / 2; i++)
         ucs2[i] = GUINT16_FROM_BE(ucs2[i]);
 
-        message = g_utf16_to_utf8 ((const gunichar2 *)sms->payload.data,
-                                   sms->payload.length, NULL, NULL, NULL);
-      }
-
+      message = g_utf16_to_utf8 (ucs2,
+                                 sms->payload.length, NULL, NULL, NULL);
+      
       break;
     }
   }




--- End Message ---
_______________________________________________
commitlog mailing list
commitlog@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/commitlog

Reply via email to