User:Khiraly

From Openmoko

(Difference between revisions)
Jump to: navigation, search
(Useful SHR links)
(FSO daemons and interface names)
Line 117: Line 117:
  
 
Two concurrent implementation: frameworkd (python), and cornucopia (vala)
 
Two concurrent implementation: frameworkd (python), and cornucopia (vala)
 +
 +
 +
Currently(20090906) on shr unstable are running the following daemons:
 +
* fso-gpsd
 +
* python /usr/bin/frameworkd
 +
* /usr/bin/fsousaged
 +
* fso-abyss

Revision as of 11:59, 6 September 2009

This is my personal page.

Contents

First time installation

I installed a second Freerunner, and I collect here the necessary steps, to install a distro on it.

  1. Installing Qi
  2. Installing SHR to NAND
  3. Checking if I have the latest GSM firmware (calypso firmware: moko11)
  4. Installing SHR/OM2009 to the SD card

Installing Qi

The best to use openmoko experimental for qi. I used qi-s3c2442-1.0.2+gitr243+36bb5c03756268ff15b2d95a043ffb39a919ce5c.udfu as of 2009-08-30.

Installation Please refer to Qi page, if you want to digg more.

  1. Check if 'dfu-util' is installed on your computer, if not install it. (I use ubuntu here)
 apt-get install dfu-util
  1. Connect an USB cable and turn off the Neo Freerunner
  2. Turn on the Neo by pressing AUX and POWER button at the same time until NOR uboot menu does not appear.
NOTE: if you dont press AUX for 30 sec, the Freerunner will automatically switch off (repower it the with the same method)


  1. Issue the following command as root:
 sudo bash
 dfu-util -a u-boot -R -D qi-s3c2442-1.0.2+gitr243+36bb5c03756268ff15b2d95a043ffb39a919ce5c.udfu 

the output is something like:

root@lamagep:~/Asztal/down/openmoko/qi# dfu-util -a u-boot -R -D  qi-s3c2442-1.0.2+gitr243+36bb5c03756268ff15b2d95a043ffb39a919ce5c.udfu 
dfu-util - (C) 2007-2008 by OpenMoko Inc.
This program is Free Software and has ABSOLUTELY NO WARRANTY
.
Opening USB Device 0x0000:0x0000...
Claiming USB DFU Runtime Interface...
Determining device status: state = appIDLE, status = 0
Device really in Runtime Mode, send DFU detach request...
Resetting USB...
Opening USB Device...
Found Runtime: [0x1d50:0x5119] devnum=20, cfg=0, intf=0, alt=1, name="u-boot"
Claiming USB DFU Interface...
Setting Alternate Setting ...
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
Transfer Size = 0x1000
bytes_per_hash=571
Starting download: [##################################################] finished!
state(2) = dfuIDLE, status(0) = No error condition is present
Done!
Resetting USB to switch back to runtime mode
root@lamagep:~/Asztal/down/openmoko/qi#

Installing SHR to NAND

Having a working distrib in the NAND means, that you can use your freerunner as a uSD card reader, and install the newest distribs to uSD card.

NOTE: Using you phone from NAND is not as fast as booting directly from uSD card. So I recommend to use your phone from uSD card on daily basis


  1. Get the relevant sources
    1. kernel uImage (NAND): http://build.shr-project.org/shr-unstable/images/om-gta02/uImage-2.6.29-oe11+gitr119838+2d158aae9d8d36f575504f59884ed8e80802efe2-r3.5-om-gta02.bin
    2. root fs for NAND: http://shr.bearstech.com/shr-unstable/images/om-gta02/shr-lite-glibc-ipk--20090808-om-gta02.rootfs.jffs2
    3. root fs for uSD(uSD does not require uImage...bin): http://build.shr-project.org/shr-unstable/images/om-gta02/shr-lite-glibc-ipk--20090808-om-gta02.rootfs.tar.gz
  1. Turn on the Freerunner with uBoot NOR (press and hold AUX button and press and hold POWER button until the boot screen does not come up. The same steps as above when we flashed qi)
  1. Flash kernel and rootfs for NAND:
sudo dfu-util -a rootfs -R -D shr-lite-glibc-ipk--20090808-om-gta02.rootfs.jffs2 
sudo dfu-util -a kernel -R -D uImage-2.6.29-oe11+gitr119838+2d158aae9d8d36f575504f59884ed8e80802efe2-r3.5-om-gta02.bin
  1. Reboot.

Checking GSM firmware version

  1. launch shr
  2. launch terminal application, and after:
  > mickeyterm
  > AT+CGMR
    +CGMR: "GSM: gsm_ac_gp_fd_pu_em_cph_ds_vc_cal35_ri_36_amd8_ts0-Moko11"
  1. quit

Installing SHR to uSD

Partition tip

  1. Max 4 partition is permitted (additional partitions requires heavy tweakings)
  1. Here is a small partition tip for uSD. I prefer to partition into 3 the uSD card.

One for current distrib, one for newer distrib (to try out), one for the /home dir, for easy upgrading.

  1. In case of 512MB(only one distrib): 256MB for distrib, 256MB for /home
  2. In case of 4GB: 512MB for distrib1, 512MB for distrib2, 3GB for /home

Elementary related

Paroli related

These are some paroli related links.

Useful SHR links

distutils.bb class: http://cgit.openembedded.net/cgit.cgi/openembedded/tree/classes/distutils.bbclass?h=shr/import&id=17ffe51af5ec968a21760875aa1b521c516ddd24

patchwork: http://patchwork.dev.bearstech.com/project/SHR/list/

latest paroli recipe: http://cgit.openembedded.net/cgit.cgi/openembedded/tree/recipes/openmoko-projects/paroli_git.bb?h=shr/import

old paroli recipe: http://cgit.openembedded.net/cgit.cgi/openembedded/tree/recipes/openmoko-projects/paroli_git.bb


FSO daemons and interface names

Two concurrent implementation: frameworkd (python), and cornucopia (vala)


Currently(20090906) on shr unstable are running the following daemons:

  • fso-gpsd
  • python /usr/bin/frameworkd
  • /usr/bin/fsousaged
  • fso-abyss
Personal tools

This is my personal page.

First time installation

I installed a second Freerunner, and I collect here the necessary steps, to install a distro on it.

  1. Installing Qi
  2. Installing SHR to NAND
  3. Checking if I have the latest GSM firmware (calypso firmware: moko11)
  4. Installing SHR/OM2009 to the SD card

Installing Qi

The best to use openmoko experimental for qi. I used qi-s3c2442-1.0.2+gitr243+36bb5c03756268ff15b2d95a043ffb39a919ce5c.udfu as of 2009-08-30.

Installation Please refer to Qi page, if you want to digg more.

  1. Check if 'dfu-util' is installed on your computer, if not install it. (I use ubuntu here)
 apt-get install dfu-util
  1. Connect an USB cable and turn off the Neo Freerunner
  2. Turn on the Neo by pressing AUX and POWER button at the same time until NOR uboot menu does not appear.
NOTE: if you dont press AUX for 30 sec, the Freerunner will automatically switch off (repower it the with the same method)


  1. Issue the following command as root:
 sudo bash
 dfu-util -a u-boot -R -D qi-s3c2442-1.0.2+gitr243+36bb5c03756268ff15b2d95a043ffb39a919ce5c.udfu 

the output is something like:

root@lamagep:~/Asztal/down/openmoko/qi# dfu-util -a u-boot -R -D  qi-s3c2442-1.0.2+gitr243+36bb5c03756268ff15b2d95a043ffb39a919ce5c.udfu 
dfu-util - (C) 2007-2008 by OpenMoko Inc.
This program is Free Software and has ABSOLUTELY NO WARRANTY
.
Opening USB Device 0x0000:0x0000...
Claiming USB DFU Runtime Interface...
Determining device status: state = appIDLE, status = 0
Device really in Runtime Mode, send DFU detach request...
Resetting USB...
Opening USB Device...
Found Runtime: [0x1d50:0x5119] devnum=20, cfg=0, intf=0, alt=1, name="u-boot"
Claiming USB DFU Interface...
Setting Alternate Setting ...
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
Transfer Size = 0x1000
bytes_per_hash=571
Starting download: [##################################################] finished!
state(2) = dfuIDLE, status(0) = No error condition is present
Done!
Resetting USB to switch back to runtime mode
root@lamagep:~/Asztal/down/openmoko/qi#

Installing SHR to NAND

Having a working distrib in the NAND means, that you can use your freerunner as a uSD card reader, and install the newest distribs to uSD card.

NOTE: Using you phone from NAND is not as fast as booting directly from uSD card. So I recommend to use your phone from uSD card on daily basis


  1. Get the relevant sources
    1. kernel uImage (NAND): http://build.shr-project.org/shr-unstable/images/om-gta02/uImage-2.6.29-oe11+gitr119838+2d158aae9d8d36f575504f59884ed8e80802efe2-r3.5-om-gta02.bin
    2. root fs for NAND: http://shr.bearstech.com/shr-unstable/images/om-gta02/shr-lite-glibc-ipk--20090808-om-gta02.rootfs.jffs2
    3. root fs for uSD(uSD does not require uImage...bin): http://build.shr-project.org/shr-unstable/images/om-gta02/shr-lite-glibc-ipk--20090808-om-gta02.rootfs.tar.gz
  1. Turn on the Freerunner with uBoot NOR (press and hold AUX button and press and hold POWER button until the boot screen does not come up. The same steps as above when we flashed qi)
  1. Flash kernel and rootfs for NAND:
sudo dfu-util -a rootfs -R -D shr-lite-glibc-ipk--20090808-om-gta02.rootfs.jffs2 
sudo dfu-util -a kernel -R -D uImage-2.6.29-oe11+gitr119838+2d158aae9d8d36f575504f59884ed8e80802efe2-r3.5-om-gta02.bin
  1. Reboot.

Checking GSM firmware version

  1. launch shr
  2. launch terminal application, and after:
  > mickeyterm
  > AT+CGMR
    +CGMR: "GSM: gsm_ac_gp_fd_pu_em_cph_ds_vc_cal35_ri_36_amd8_ts0-Moko11"
  1. quit

Installing SHR to uSD

Partition tip

  1. Max 4 partition is permitted (additional partitions requires heavy tweakings)
  1. Here is a small partition tip for uSD. I prefer to partition into 3 the uSD card.

One for current distrib, one for newer distrib (to try out), one for the /home dir, for easy upgrading.

  1. In case of 512MB(only one distrib): 256MB for distrib, 256MB for /home
  2. In case of 4GB: 512MB for distrib1, 512MB for distrib2, 3GB for /home

Elementary related

Paroli related

These are some paroli related links.

Useful SHR links

distutils.bb class: http://cgit.openembedded.net/cgit.cgi/openembedded/tree/classes/distutils.bbclass?h=shr/import&id=17ffe51af5ec968a21760875aa1b521c516ddd24

patchwork: http://patchwork.dev.bearstech.com/project/SHR/list/

latest paroli recipe: http://cgit.openembedded.net/cgit.cgi/openembedded/tree/recipes/openmoko-projects/paroli_git.bb?h=shr/import

old paroli recipe: http://cgit.openembedded.net/cgit.cgi/openembedded/tree/recipes/openmoko-projects/paroli_git.bb


FSO daemons and interface names

Two concurrent implementation: frameworkd (python), and cornucopia (vala)


Currently(20090906) on shr unstable are running the following daemons:

  • fso-gpsd
  • python /usr/bin/frameworkd
  • /usr/bin/fsousaged
  • fso-abyss