Qtopia on FreeRunner/ru

From Openmoko

(Difference between revisions)
Jump to: navigation, search
(Bugs)
m (language)
 
(8 intermediate revisions by 2 users not shown)
Line 45: Line 45:
 
==== Распаковка образа Qtopia Root ====
 
==== Распаковка образа Qtopia Root ====
  
Download the Qtopia FLASH image from [[Latest Images#Qtopia image from qtopia.net]] to your Linux box and extract its contents:
+
Скачиваем свежий образ Qtopia FLASH из [[Latest Images#Qtopia image from qtopia.net]] на вашу Linux машину и распаковываем его:
  
 
   tar xzf qtopia-4.3.2-gta02-flash-*.tgz
 
   tar xzf qtopia-4.3.2-gta02-flash-*.tgz
  
You should now have two files:  
+
Получаем два файла:  
 
#uImage-2.6.24+git18+9c058ff0d2641df3c36fc3300acb72078d2c41d4-r0-om-gta02.bin
 
#uImage-2.6.24+git18+9c058ff0d2641df3c36fc3300acb72078d2c41d4-r0-om-gta02.bin
 
#qtopia-4.3.2-gta02-rootfs-07172049.jffs2   
 
#qtopia-4.3.2-gta02-rootfs-07172049.jffs2   
Now, mount the root file system from the jffs2 using the commands found [[Userspace root image#Mounting the JFFS2 image on a loop back device (Block Memory MTD Emulation) |here]].
+
Далее монтируем корневую файловую систему используя команды [[Userspace root image#Mounting the JFFS2 image on a loop back device (Block Memory MTD Emulation) |отсюда]].
  
 
==== Создание архива ====
 
==== Создание архива ====
Line 62: Line 62:
 
Где ''<mountpoint>'' - точка монтирования, куда смонтирована файловая система jff2. Не забудьте пробел и точку после ''<mountpoint>''.
 
Где ''<mountpoint>'' - точка монтирования, куда смонтирована файловая система jff2. Не забудьте пробел и точку после ''<mountpoint>''.
  
==== Installing Root Filesystem ====
+
==== Установка корневой файловой системы ====
 
+
Transfer this compressed tarball to the second partition of the MicroSD that is mounted on the FreeRunner:
+
  
 +
Скопируйте полученный архив во второй раздел карточки командой:
 
   scp qtopia-4.3.2-gta02-rootfs-07172049.tar.gz root@192.168.0.202:/media/mmcblk0p2/
 
   scp qtopia-4.3.2-gta02-rootfs-07172049.tar.gz root@192.168.0.202:/media/mmcblk0p2/
  
Log in to your FreeRunner and unpack the root filesystem:
+
подключитесь к вашему FreeRunner и распакуйте файловую систему:
  
 
   cd /media/mmcblk0p2
 
   cd /media/mmcblk0p2
Line 75: Line 74:
 
   rm -f /media/mmcblk0p2/boot/*
 
   rm -f /media/mmcblk0p2/boot/*
  
'''''Note:''''' the last step removes the kernel image from the second partition. For some reason, U-Boot cannot find the uImage.bin file in the first partition if a kernel image exists in the second partition boot/ directory.
+
'''''Примечание:''''' последняя команда удалит образ ядра с второго раздела карты. Для справки, U-Boot не найдет файл uImage.bin на первом разделе если данный образ существует на втором разделе.
  
 
==== Установка ядра ====
 
==== Установка ядра ====
Line 85: Line 84:
 
   scp uImage.bin root@192.168.0.202:/media/card/
 
   scp uImage.bin root@192.168.0.202:/media/card/
  
== Option 3: updating from source ==
+
== Вариант 3: Обновление ваших данных ==
  
 
{{note|This will upgrade only opt/Qtopia directory, you should use opkg update/upgrade for the rest}}
 
{{note|This will upgrade only opt/Qtopia directory, you should use opkg update/upgrade for the rest}}
Line 109: Line 108:
 
will make a root directory into the ''build'' directory. There you can find an ''image'' that directory should be copied to /opt/Qtopia of your phone with scp. once done restart qpe or whole phone.
 
will make a root directory into the ''build'' directory. There you can find an ''image'' that directory should be copied to /opt/Qtopia of your phone with scp. once done restart qpe or whole phone.
  
== Booting into Qtopia ==
+
== Запуск Qtopia ==
  
Now shutdown the FreeRunner
+
Теперь выключим наш FreeRunner
  
 
   shutdown -h now
 
   shutdown -h now
  
Log into U-Boot in the NAND Flash to boot from the MicroSD card: (instructions from [[Booting the Neo FreeRunner]])
+
Войдем в меню U-Boot и выберем "boot from the MicroSD card": (инструкции [[Booting the Neo FreeRunner]])
  
* Press and hold Power button
+
* Нажмем кнопку питания
* Then while still pressing the Power button, press and hold AUX button for 5 to 8 seconds.  
+
* После этого нажмем и удерживаем кнопку AUX в течении 5 ... 8 секунд.  
* A boot menu will appear.  
+
* Вошли в загрузочнео меню.  
* Press the AUX button to select "[[Boot from sd card|Boot from MicroSD]]" and then press the Power button to execute.
+
* Жмем кнопку AUX пока ен выделится "[[Boot from sd card|Boot from MicroSD]]" и нажмем кнопку питания для запуска.
  
Qtopia should now boot.
+
Qtopia начнет загрузку.
 
+
'''''Note:''''' you may get a kernel panic which says that "optional features not supported".  If this is the case, boot back into 2007.2 and run
+
  
 +
'''''Прмечание:''''' вы можете получить сообщение "kernel panic" которое сообщит вам что "optional features not supported".  Для решения этой проблемы загрузитесь в 2007/2008 и выполните там команды
 
   umount /dev/mmcblk0p2
 
   umount /dev/mmcblk0p2
 
   fsck.ext3.e2fsprogs /dev/mmcblk0p2
 
   fsck.ext3.e2fsprogs /dev/mmcblk0p2
  
This will clean up the file system and clear recovery flags in ext3 that ext2 does not support, then try booting from the MicroSD again.
+
Это очистит флаги в файловых системах и можете попробовать загрузку еще раз.
  
== Internationalization ==
+
== Интернационализация ==
  
Qtopia comes with support for German and American English, and users from other countries will find that Qtopia's predictive keyboard makes writing in another language near impossible. One way to disable the predictive keyboard is to simply replace /opt/Qtopia/etc/dict/en_US/common.dawg and words.dawg with empty files (after backing them up). Qtopia normally looks in these files for words to suggest, and if it doesn't find any words that fit, it simply shows what you actually wrote.
+
Qtopia подждерживает в данный момент только немецкий и американский английский, и пользователи из других стран нашли в Qtopia что они могут печатать на других языках. One way to disable the predictive keyboard is to simply replace /opt/Qtopia/etc/dict/en_US/common.dawg and words.dawg with empty files (after backing them up). Qtopia normally looks in these files for words to suggest, and if it doesn't find any words that fit, it simply shows what you actually wrote.
  
Adding characters to the keyboard requires modifications to the source code, as described [http://www.qtopia.net/modules/newbb_plus/viewtopic.php?topic_id=512&forum=16 here].
+
Для добавления символов необходимо править исходный код, который [http://www.qtopia.net/modules/newbb_plus/viewtopic.php?topic_id=512&forum=16 здесь].
 
+
[[Category:Qtopia]]
+
  
 
== Suspend /Resume ==
 
== Suspend /Resume ==
Line 151: Line 147:
  
 
* Голосовые заметки не работают, только пишут в файл размером 44 байта (заголовок только), голоса не содержит
 
* Голосовые заметки не работают, только пишут в файл размером 44 байта (заголовок только), голоса не содержит
 +
 +
[[Category:Qt/ru]]

Latest revision as of 13:43, 9 October 2009


Эта страница содержит инструкцию по установки Qtopia (proper, not the ASU или QtopiaOnX11 efforts) на телефон GTA02 (FreeRunner). Это семинар поQtopia on Neo1973.

Contents

[edit] Текущий статус

On 29 August 2008, Trolltech опубликовал Qtopia образ для FIC Neo FreeRunner (gta02) содержащий релиз Qtopia 4.3.2 (Версия: 4.3.2-290808) (GPL version). Смотри Заметки по релизу

Этот образ удачно поддерживает звонки и прием/отправку текстовых сообщений. Реализовано чтение контактов с SIM карты(which the updated 2007.2 does not appear to be able to do). It contains apps that appear to be more stable than the ones found in the 2007.2 image. It has multiple input methods that appear to be more mature. It does not, however, have a web browser or a GPS application. Другие приложения для GPS здесь

Второго сентября 2008 Trolltech выпустила 4.3.3-snapshot который исправил несколько ошибок (sms сообщения не retrieved after resume; Qtopia getting confused between two calls; Make default call volume down and mic up; Added echo fix.)

Вы можете найти все образы Qtopia здесь

[edit] Опция 1: Прошивка Qtopia в FreeRunner

Скачать образ и инструкции здесь: Flashing the Neo FreeRunner

[edit] Опция 2: Двойная загрузка Qtopia и 2007.2 (Qtopia грузится с карточки MicroSD)

Необходимо для установки:

  1. SSH доступ к 2007.2 FreeRunner через USB интерфейс или WLAN.
  2. Десктоп с линуксом (для распаковки образа .jffs2 , Я использую Ubuntu под VMWare)


[edit] Подготовка карточки SD

Смотри Preparing the SD Card секцию в Booting from SD страницу с инструкциями по подготовки и форматировании карты. После удачного шага "Форматирования SD Card", возвращаемся и выполняем следующие команды -создаем разделы на карточке:

 mount /dev/mmcblk0p1 /media/card
 mkdir /media/card/boot
 mkdir /media/mmcblk0p2
 mount /dev/mmcblk0p2 /media/mmcblk0p2

This will set you up properly for the installation of the root filesystem and the kernel in the steps below.

[edit] Установка Qtopia

[edit] Распаковка образа Qtopia Root

Скачиваем свежий образ Qtopia FLASH из Latest Images#Qtopia image from qtopia.net на вашу Linux машину и распаковываем его:

 tar xzf qtopia-4.3.2-gta02-flash-*.tgz

Получаем два файла:

  1. uImage-2.6.24+git18+9c058ff0d2641df3c36fc3300acb72078d2c41d4-r0-om-gta02.bin
  2. qtopia-4.3.2-gta02-rootfs-07172049.jffs2

Далее монтируем корневую файловую систему используя команды отсюда.

[edit] Создание архива

Далее, tar корневую файловую систему:

 # tar czf qtopia-4.3.2-gta02-rootfs-07172049.tar.gz -C <mountpoint> .

Где <mountpoint> - точка монтирования, куда смонтирована файловая система jff2. Не забудьте пробел и точку после <mountpoint>.

[edit] Установка корневой файловой системы

Скопируйте полученный архив во второй раздел карточки командой:

 scp qtopia-4.3.2-gta02-rootfs-07172049.tar.gz root@192.168.0.202:/media/mmcblk0p2/

подключитесь к вашему FreeRunner и распакуйте файловую систему:

 cd /media/mmcblk0p2
 tar xzf qtopia-4.3.2-gta02-rootfs-07172049.tar.gz
 rm qtopia-4.3.2-gta02-rootfs-07172049.tar.gz
 rm -f /media/mmcblk0p2/boot/*

Примечание: последняя команда удалит образ ядра с второго раздела карты. Для справки, U-Boot не найдет файл uImage.bin на первом разделе если данный образ существует на втором разделе.

[edit] Установка ядра

С основного компьютера переименуйте uImage-2.6.24+git18+9c058ff0d2641df3c36fc3300acb72078d2c41d4-r0-om-gta02.bin в uImage.bin и скопируйте в папку boot первого раздела MicroSD карты. В зависимости от версии U-Boot которая у вас стоит, это может не сработать. Может понадобится скопировать в /media/card тоже. Для верности, скопируйте в корневую папку и папку boot первого раздела MicroSD карты файл uImage.bin.

 mv uImage-2.6.24+git18+9c058ff0d2641df3c36fc3300acb72078d2c41d4-r0-om-gta02.bin uImage.bin
 scp uImage.bin root@192.168.0.202:/media/card/boot/
 scp uImage.bin root@192.168.0.202:/media/card/

[edit] Вариант 3: Обновление ваших данных

NOTE: This will upgrade only opt/Qtopia directory, you should use opkg update/upgrade for the rest


Original Qtopia images (the distribution released by Trolltech, not ASU) are rarely released as a rootfs image, but the source code is often updated. If you want to reflash your OM with the latest version of Qtopia you might build it from sources. This has been explained in this thread of the community mailing list. Summing up:

 cd /
 wget http://qtopia.net/downloads/neo/arm920t-eabi-ficgta01-toolchain.tgz
 tar xvzf arm920t-eabi-ficgta01-toolchain.tgz
  tar xvzf qtopia-opensource-src-4.3.2-snapshot-20080806.tar.gz
  • make a "build" dir
  mkdir build
  cd build
  • configure and make:
  ../qtopia-opensource-src-4.3.2-snapshot-20080806/configure -device ficgta01
  make 

This will take some time (couple hours). Note that the option "-device ficgta01" should work for both neo and freerunner. Then:

 make install

will make a root directory into the build directory. There you can find an image that directory should be copied to /opt/Qtopia of your phone with scp. once done restart qpe or whole phone.

[edit] Запуск Qtopia

Теперь выключим наш FreeRunner

 shutdown -h now

Войдем в меню U-Boot и выберем "boot from the MicroSD card": (инструкции Booting the Neo FreeRunner)

  • Нажмем кнопку питания
  • После этого нажмем и удерживаем кнопку AUX в течении 5 ... 8 секунд.
  • Вошли в загрузочнео меню.
  • Жмем кнопку AUX пока ен выделится "Boot from MicroSD" и нажмем кнопку питания для запуска.

Qtopia начнет загрузку.

Прмечание: вы можете получить сообщение "kernel panic" которое сообщит вам что "optional features not supported". Для решения этой проблемы загрузитесь в 2007/2008 и выполните там команды

 umount /dev/mmcblk0p2
 fsck.ext3.e2fsprogs /dev/mmcblk0p2

Это очистит флаги в файловых системах и можете попробовать загрузку еще раз.

[edit] Интернационализация

Qtopia подждерживает в данный момент только немецкий и американский английский, и пользователи из других стран нашли в Qtopia что они могут печатать на других языках. One way to disable the predictive keyboard is to simply replace /opt/Qtopia/etc/dict/en_US/common.dawg and words.dawg with empty files (after backing them up). Qtopia normally looks in these files for words to suggest, and if it doesn't find any words that fit, it simply shows what you actually wrote.

Для добавления символов необходимо править исходный код, который здесь.

[edit] Suspend /Resume

It seems that suspend/resume only works when the FreeRunner has been connected to a powersource (only a few seconds if sufficient). If you boot from battery, it will never suspend until you have plugged it in at least for a couple of seconds.

[edit] Ошибки

Смотри Trolltech's тракер.

Найденные ошибки посылайте по почте на qt-bugs@trolltech.com.

[edit] В релизе 4.3.2

  • Голосовые заметки не работают, только пишут в файл размером 44 байта (заголовок только), голоса не содержит
Personal tools


Эта страница содержит инструкцию по установки Qtopia (proper, not the ASU или QtopiaOnX11 efforts) на телефон GTA02 (FreeRunner). Это семинар поQtopia on Neo1973.

Contents

Текущий статус

On 29 August 2008, Trolltech опубликовал Qtopia образ для FIC Neo FreeRunner (gta02) содержащий релиз Qtopia 4.3.2 (Версия: 4.3.2-290808) (GPL version). Смотри Заметки по релизу

Этот образ удачно поддерживает звонки и прием/отправку текстовых сообщений. Реализовано чтение контактов с SIM карты(which the updated 2007.2 does not appear to be able to do). It contains apps that appear to be more stable than the ones found in the 2007.2 image. It has multiple input methods that appear to be more mature. It does not, however, have a web browser or a GPS application. Другие приложения для GPS здесь

Второго сентября 2008 Trolltech выпустила 4.3.3-snapshot который исправил несколько ошибок (sms сообщения не retrieved after resume; Qtopia getting confused between two calls; Make default call volume down and mic up; Added echo fix.)

Вы можете найти все образы Qtopia здесь

Опция 1: Прошивка Qtopia в FreeRunner

Скачать образ и инструкции здесь: Flashing the Neo FreeRunner

Опция 2: Двойная загрузка Qtopia и 2007.2 (Qtopia грузится с карточки MicroSD)

Необходимо для установки:

  1. SSH доступ к 2007.2 FreeRunner через USB интерфейс или WLAN.
  2. Десктоп с линуксом (для распаковки образа .jffs2 , Я использую Ubuntu под VMWare)


Подготовка карточки SD

Смотри Preparing the SD Card секцию в Booting from SD страницу с инструкциями по подготовки и форматировании карты. После удачного шага "Форматирования SD Card", возвращаемся и выполняем следующие команды -создаем разделы на карточке:

 mount /dev/mmcblk0p1 /media/card
 mkdir /media/card/boot
 mkdir /media/mmcblk0p2
 mount /dev/mmcblk0p2 /media/mmcblk0p2

This will set you up properly for the installation of the root filesystem and the kernel in the steps below.

Установка Qtopia

Распаковка образа Qtopia Root

Download the Qtopia FLASH image from Latest Images#Qtopia image from qtopia.net to your Linux box and extract its contents:

 tar xzf qtopia-4.3.2-gta02-flash-*.tgz

You should now have two files:

  1. uImage-2.6.24+git18+9c058ff0d2641df3c36fc3300acb72078d2c41d4-r0-om-gta02.bin
  2. qtopia-4.3.2-gta02-rootfs-07172049.jffs2

Now, mount the root file system from the jffs2 using the commands found here.

Создание архива

Далее, tar корневую файловую систему:

 # tar czf qtopia-4.3.2-gta02-rootfs-07172049.tar.gz -C <mountpoint> .

Где <mountpoint> - точка монтирования, куда смонтирована файловая система jff2. Не забудьте пробел и точку после <mountpoint>.

Installing Root Filesystem

Transfer this compressed tarball to the second partition of the MicroSD that is mounted on the FreeRunner:

 scp qtopia-4.3.2-gta02-rootfs-07172049.tar.gz root@192.168.0.202:/media/mmcblk0p2/

Log in to your FreeRunner and unpack the root filesystem:

 cd /media/mmcblk0p2
 tar xzf qtopia-4.3.2-gta02-rootfs-07172049.tar.gz
 rm qtopia-4.3.2-gta02-rootfs-07172049.tar.gz
 rm -f /media/mmcblk0p2/boot/*

Note: the last step removes the kernel image from the second partition. For some reason, U-Boot cannot find the uImage.bin file in the first partition if a kernel image exists in the second partition boot/ directory.

Установка ядра

С основного компьютера переименуйте uImage-2.6.24+git18+9c058ff0d2641df3c36fc3300acb72078d2c41d4-r0-om-gta02.bin в uImage.bin и скопируйте в папку boot первого раздела MicroSD карты. В зависимости от версии U-Boot которая у вас стоит, это может не сработать. Может понадобится скопировать в /media/card тоже. Для верности, скопируйте в корневую папку и папку boot первого раздела MicroSD карты файл uImage.bin.

 mv uImage-2.6.24+git18+9c058ff0d2641df3c36fc3300acb72078d2c41d4-r0-om-gta02.bin uImage.bin
 scp uImage.bin root@192.168.0.202:/media/card/boot/
 scp uImage.bin root@192.168.0.202:/media/card/

Option 3: updating from source

NOTE: This will upgrade only opt/Qtopia directory, you should use opkg update/upgrade for the rest


Original Qtopia images (the distribution released by Trolltech, not ASU) are rarely released as a rootfs image, but the source code is often updated. If you want to reflash your OM with the latest version of Qtopia you might build it from sources. This has been explained in this thread of the community mailing list. Summing up:

 cd /
 wget http://qtopia.net/downloads/neo/arm920t-eabi-ficgta01-toolchain.tgz
 tar xvzf arm920t-eabi-ficgta01-toolchain.tgz
  tar xvzf qtopia-opensource-src-4.3.2-snapshot-20080806.tar.gz
  • make a "build" dir
  mkdir build
  cd build
  • configure and make:
  ../qtopia-opensource-src-4.3.2-snapshot-20080806/configure -device ficgta01
  make 

This will take some time (couple hours). Note that the option "-device ficgta01" should work for both neo and freerunner. Then:

 make install

will make a root directory into the build directory. There you can find an image that directory should be copied to /opt/Qtopia of your phone with scp. once done restart qpe or whole phone.

Booting into Qtopia

Now shutdown the FreeRunner

 shutdown -h now

Log into U-Boot in the NAND Flash to boot from the MicroSD card: (instructions from Booting the Neo FreeRunner)

  • Press and hold Power button
  • Then while still pressing the Power button, press and hold AUX button for 5 to 8 seconds.
  • A boot menu will appear.
  • Press the AUX button to select "Boot from MicroSD" and then press the Power button to execute.

Qtopia should now boot.

Note: you may get a kernel panic which says that "optional features not supported". If this is the case, boot back into 2007.2 and run

 umount /dev/mmcblk0p2
 fsck.ext3.e2fsprogs /dev/mmcblk0p2

This will clean up the file system and clear recovery flags in ext3 that ext2 does not support, then try booting from the MicroSD again.

Internationalization

Qtopia comes with support for German and American English, and users from other countries will find that Qtopia's predictive keyboard makes writing in another language near impossible. One way to disable the predictive keyboard is to simply replace /opt/Qtopia/etc/dict/en_US/common.dawg and words.dawg with empty files (after backing them up). Qtopia normally looks in these files for words to suggest, and if it doesn't find any words that fit, it simply shows what you actually wrote.

Adding characters to the keyboard requires modifications to the source code, as described here.

Suspend /Resume

It seems that suspend/resume only works when the FreeRunner has been connected to a powersource (only a few seconds if sufficient). If you boot from battery, it will never suspend until you have plugged it in at least for a couple of seconds.

Ошибки

Смотри Trolltech's тракер.

Найденные ошибки посылайте по почте на qt-bugs@trolltech.com.

В релизе 4.3.2

  • Голосовые заметки не работают, только пишут в файл размером 44 байта (заголовок только), голоса не содержит