Difference between revisions of "Application:MetaDoctor-DE"

From WebOS Internals
Jump to navigation Jump to search
Line 55: Line 55:
 
Falls eine Fehlermeldung "unknown filename" erscheint, überprüfe den Dateinamen im vorhergehenden Schritt 8.
 
Falls eine Fehlermeldung "unknown filename" erscheint, überprüfe den Dateinamen im vorhergehenden Schritt 8.
  
=== If the build fails ===
+
=== Fehler in Kompilierung ===
 
+
Falls der "make"-Befehl fehlschlägt, kannst du <pre>make clobber</pre> benutzen um den "build"-Ordner zu säubern um danach "make" erneuert auszuführen.
If the make command fails, you can use <pre>make clobber</pre> to clean up the build directory. After this you can re-run the command.
 
  
 
== Mac OS X 10.6 ==
 
== Mac OS X 10.6 ==

Revision as of 22:54, 26 February 2011

This page is currently available in (almost) three languages:

Australia.png USA.png Application:MetaDoctor
France.png Application:MetaDoctor-FR

this page is still to be translated

Was ist der Meta Doctor?

Der WebOS Internals Meta Doctor ist eine Makefile, die eine Kopie des HP WebOS Doctors modifizieren kann um die "First Use" Anwendung zu übergehen und somit das Telefon zum Laufen zu bringen, ohne dass es über ein Funknetzwerk aktiviert werden muss. Dies wird dadurch erreicht, indem in der von HP veröffentlichten JAR Datei des Doctors Veränderungen vorgenommen werden. Außer dass verhindert wird dass die "First Use" App startet, können dadurch auch zusätzlich noch weitere Verbesserungen am Beitriebsystem vorgenommen werden.

Die Dokumentation der Funktionen des MetaDoctors, befindet sich zu Beginn des Makefile (wo diese sich befindet seht ihr gleich noch).

Schritt 1: Einrichten des Meta-Doctors

Unter Linux

Installieren der benötigten Software

  1. Terminal öffnen. (Bei Verwendung der Cygwin Methode: Go to Start>Programs>Cygwin>Cygwin Bash Shell und weiter mit Punkt 3)
  2. Wenn git bereits installiert ist, diesen Punkt überspringen, wenn nicht dann:
    sudo apt-get install git-core
    eingeben und den Anweisungen folgen.
  3. Jetzt
    git clone git://git.webos-internals.org/tools/meta-doctor.git
    eingeben
  4. Wenn patch noch nicht installiert ist:
    sudo apt-get install patch
    (bei Verwendung von Cygwin: diesen Punkt überspringen und weiter mit Punkt 7)
  5. Falls Java aus irgend einem Grunde noch nicht installiert sein sollte, so ist jetzt der beste Zeitpunkt es zu tun. Im Ubuntu Software Center suchen lassen nach java 6 runtime und den Anweisungen folgen.
  6. Runterladen und Installieren der Palm Novacom Software von http://developer.palm.com. Die Ubuntu Version verwenden here. (Wenn Sie stattdessen die ganze SDK in der 64-bit Version von Ubuntu 9.x installieren wollen, werden Sie Schwierigkeiten bei der Installation haben. Die Anweisungen auf der Download-Seite sind falsch. Hilfe finden Sie hier und hier.)
  7. Terminalfenster öffnen und in das Verzeichnis wechseln, in dem sich der MedaDoctor seit Punkt 3 befindet. (Cygwin: Terminal sollte bereits geöffnet sein, also einfach nur Verzeichnis wechseln) Tipp:
    cd meta-doctor
  8. Sichergehen, dass sich dort ein Download Ordner befindet. Wenn nein, muss er mit
    mkdir downloads
    erzeugt werden
  9. Neueste webosdoctor Datei runterladen unter Webos Doctor Versions. Die WR (= World Ready) Version ist die GSM Version für DE, FR, IRL, ESP und UK. Beispiel für einen Download Befehl:
    cd downloads
    wget http://palm.cdnetworks.net/rom/pre/p1351r0d01082010/sr1ntp1351rod/webosdoctorp100ewwsprint.jar
  10. Datei umbenennen, damit später auch weiss, welche Doctor-Version es ist (Bsp: webosdoctorp100ewwsprint-1.3.5.1.jar, webosdoctorp100eww-wr-1.1.3.jar, or webosdoctorp100ewwbellmo-1.2.1.jar). Beispiel zum Umbenennen via Terminal:
    mv webosdoctorp100ewwbellmo.jar webosdoctorp100ewwbellmo-1.3.5.1.jar

Meta-Doctor ausführen

  1. Ins Meta-Doctor Verzeichnis wechseln
  2. Wenn du willst, dass der MetaDoctor zusätzlich Patches installiert, die zusätzliche Funktionen zum Auslieferungszustand hinzufügen, musst du das Makefile mit einem Texteditor deiner Wahl öffnen und die Zeilen entkommentieren, die du gerne installiert hättest (entkommentieren bedeutet hier einfach, das "#" am Zeilenanfang zu entfernen)
  3. Wähle eins der folgenden:
    make DEVICE=pre all-wr
    make DEVICE=preplus all-wr
    make DEVICE=pixiplus all-wr
    make DEVICE=pre all-sprint
    make DEVICE=pixi all-sprint
    make DEVICE=pre all-bellmo
    make DEVICE=pre all-telcel
    make DEVICE=preplus all-verizonwireless
    make DEVICE=pixiplus all-verizonwireless
    make DEVICE=preplus all-att
    make DEVICE=pixiplus all-att
    depending on the carrier in question.

Hinweis : verwende make DEVICE=palm_smartphone_type all-wr für O2 Germany, UK and Ireland / Movistar Spain / SFR France

Der Build Prozess sollte nach ca. 10 Minuten abgeschlossen sein

Fehlermeldungen

Falls eine Fehlermeldung "unknown filename" erscheint, überprüfe den Dateinamen im vorhergehenden Schritt 8.

Fehler in Kompilierung

Falls der "make"-Befehl fehlschlägt, kannst du

make clobber

benutzen um den "build"-Ordner zu säubern um danach "make" erneuert auszuführen.

Mac OS X 10.6

  1. Install MacPorts first, which will allow us to easily install the necessary packages for MetaDoctor. [1]. Please note that MacPorts requires Apple's Xcode Developer Tools (version 3.2.1 or later for Snow Leopard, 3.1.4 or later for Leopard, or 2.5 for Tiger), found at the Apple Developer Connection site or on your Mac OS X installation CDs/DVD.
  2. Install md5sum:
    sudo port install md5sha1sum
  3. Install gnutar:
    sudo port install gnutar
  4. Install git:
    sudo port install git-core
  5. Now type:
    git clone git://git.webos-internals.org/tools/meta-doctor.git
  6. Install patch:
    sudo port install gpatch
  7. If you do not have Java installed, do so. To install Java, click on the "Apple" icon and select "Software Update." This will automatically update you to the latest version of Java if necessary, as Apple supplies their own version of Java. Further instructions can be found here.
  8. Download and install the Palm Novacom software from http://developer.palm.com. The Mac OS X SDK is located here.
  9. Open a terminal and navigate to the meta-doctor directory where the meta-doctor was copied to in step 3 above.
    cd meta-doctor
  10. Ensure that there is a downloads directory. If there is not one, create one using
    mkdir downloads
  11. Download the latest webosdoctor file using the download paths found at Webos Doctor Versions .The wr version is the French,German,Irish,Spanish and UK GSM version. An example download command would be:
    cd downloads
    wget http://palm.cdnetworks.net/rom/pre/p1351r0d01082010/sr1ntp1351rod/webosdoctorp100ewwsprint.jar
  12. Rename the file that you download to include the version number for future reference (examples: webosdoctorp100ewwsprint-1.3.5.1.jar, webosdoctorp100eww-wr-1.1.3.jar, or webosdoctorp100ewwbellmo-1.2.1.jar). An example command to do that would be:
    mv webosdoctorp100ewwbellmo.jar webosdoctorp100ewwbellmo-1.3.5.1.jar
  13. See "Running MetaDoctor" above.

Using a Virtual Machine

If you do not have a Linux system, you will need to run the meta-doctor in a virtual machine. For windows users there are two options. For Mac users, follow option 1.

Running in VMware or VirtualBox

  1. Download Ubuntu 9.10.
  2. Download a virtual machine program, either vmware or virtualbox. A virtual machine is simply a program that allows you to piggyback a second operating system on top of your native OS without dual booting or actually having a Linux machine.
    I ended up using VirtualBox instead, because I found the VMware to be very confusing on what to actually download. The Virtual box website is very simple and straight forward. Here is a link for the virtualbox download for Windows: VirtualBox-3.0.10-54097-Win
  3. Now install virtualbox just like you would install any other application, nothing fancy here.
  4. Start up virtualbox and follow either of these instructions to install Ubuntu
    1. http://www.helpdeskgeek.com/linux-tips/how-to-install-ubuntu-in-virtualbox/
    2. http://www.psychocats.net/ubuntu/virtualbox


Using WUBI

Windows users have another option to avoid using a virtual machine. They can use the meta doctor without harming your current installation of windows using simple Ubuntu installer called WUBI. Also no need for moding any partitions or installing any boot loaders. It will just appear as program in your installed software list and when you do not want it anymore simply uninstall it while in windows through Control Panel. It is easy and there is no virtual machine headaches of trying to configure USB, Network and File sharing with host computer... To access it you just reboot and choose Ubuntu from dual boot screen.

  1. download Ubuntu 9.10
  2. burn that file to a cd or mount to virtual drive
  3. Run cd in windows (the wubi.exe file inside the disk, it also comes up in auto run)
  4. Click on Install Inside windows.
    This will install Ubuntu while running Windows without the need of making a partition I would recomand making the install image the full recommended 30 gigs if you have the hard drive space and think you are interested in actually using the Ubuntu OS, otherwise the minimum recommended by Wubi should be just fine.
  5. Restart your computer and you can dual boot to Windows or Ubuntu

The nice thing about this is that it will allow you to uninstall Ubuntu right from Windows as if it was never there and remove the dual boot, not to mention the fact you do not need to partition your drive.

If you are still wondering what Wubi is the fallowing link should explain it to you better. Wubi Guide

Note: this will only work with the cd image found at the Ubuntu Download link. The dvd image of 9.04/9.10 is a live cd/installer and does not have the option to install inside windows using Wubi

Using Cygwin

Windows users can alternatively use Cygwin to run Meta-Doctor. This can often be simpler and faster than installing a full-blown Virtual Machine.

Simply install Cygwin, and include the following additional packages:

  1. Python
  2. Make
  3. Patch
  4. Git
  5. Zip
  6. Unzip
  7. wget

(use View "Full" to find these specific packages more easily)

After you have installed these packages, you can follow the Linux instructions


I used a WinXP box with cygwin and everything worked fine, except I had to add the switch --no-same-owner in line 802 of the Makefile. That's because I'm as root in cygwin and without this switch the tar-command failed.

Code:

  mkdir -p build/${PATIENT}/webOS
  ${TAR} --no-same-owner -C build/${PATIENT}/webOS \
     -f build/${PATIENT}/resources/webOS.tar \
     -x ./${CUSTIMAGEOLD}.rootfs.tar.gz ./${INSTIMAGEOLD}.uImage ./${BOOTLOADEROLD}.bin ./${CODENAMEOLD}.xml ./installer.xml

NB: You can find the Makefile to edit in <cygwin install folder>\home\<username>\meta-doctor

For example

C:\cygwin\home\johndoe\meta-doctor

Media:Example.ogg

= Step 2: Running the patched webOS Doctor The updated doctor version has the same name as the original, but is in a new folder: meta-doctor/build/pre-p100eww-sprint-1.3.5.1/webosdoctorp100ewwsprint-1.3.5.1.jar.

If you are running in Ubuntu or Cygwin, you can just run the new jar file now.

If you are running Ubuntu using VM, you will need to copy the new jar out of the VM into your live desktop to run the jar in your native OS.

CD to the folder where your new jar file is, and type something like:

java -jar webosdoctorp100ewwsprint-1.3.5.1.jar

If you were using a VM or some other virtual method, you will need to copy the jar file out to your main operating system before running it.


Windows host:

VirtualBox folder Sharing

VMWare folder Sharing

Mac OSX host:

VirtualBox folder Sharing


NOTE: this only applies to WUBI Users

You should be able to run the JAR as if you had Linux installed natively because in a sense you do (as long as Java is installed and you run the Jar using Java) but if you rather run it in windows

Using terminal the following command in a Wubi installation of Ubuntu will copy the JAR file to the host Windows OS :

cp /meta-doctor/build/pre-p100eww-sprint-1.2.1/webosdoctorp100ewwsprint-1.2.1.jar /host/webosdoctorp100ewwsprint-1.2.1.jar

This will place the Jar either in your Windows C:\ drive or whatever drive you installed Wubi to.

Once the Doctor is running

  1. Select your language
  2. Accept the license agreement
  3. Connect your Pre to your PC via USB and select "Next" when it becomes available

After completion the device will reboot and present you with the activation set-up.

If your PC does not recognize your Pre and you cannot go past step 3 above, try the following steps:

  1. With the USB cable connected, completely power off the Pre (hold down the power button until the option to power off appears)
  2. Hold down the Up button on the volume rocker
  3. While holding the Up button, power on the Pre
  4. "Next" should now be enabled - proceed with the recovery
{{#icon:Tux_with_Pre.png|}}

The above steps will put the Pre into bootloader recovery mode and should allow the PC to recognize your device and proceed with the restore. In this mode the screen will display a giant USB logo instead of the usual Palm startup logo.

When the process finishes, the Pre will reboot and your new modified image will have been installed.


After the doctor completes, you will need to run the "First Run" application. To do this, you will need an active internet connection. Either WiFi or Cellular. If you do not have WiFi and cannot connect to the Palm Profile servers, you might have a problem with your programming. This Meta Doctor (or webOS Doctor in general) could possibly erase the modem's programming. To resolve you will need to perform the following steps:

Note: This has only been confirmed to resolve Sprint CDMA issues, YMMV.

Note 2: You should try to update your profile first. Open the phone app, open the App Menu and select Preferences then select Update Network Settings. If you get an error, then procede with these instructions.

  • 1. Open the Phone App.
  • 2. Enter ##MSL# (MSL= 6 digit lock code. Get this from Sprint.)
  • 3. Verify your MDN and MSID are incorrect. If they are incorrect, continue. If they are correct, this is not your problem and you should not continue.
  • 4. Select Edit.
  • 5. Select the first box (MDN) and enter your 10-digit cellular number.
  • 6. Select the second box (MSID) and enter your 10-digit MSID (Get this from Sprint).
  • 7. Select Save.
  • 8. Backswipe out of the the view.
  • 9. You should now be able to open complete Note 2 above without any errors.

You should now be able to run the First Use application without any problems.

If the Doctor will not run

Go here if you have further problems connecting your Pre to the running Meta'ed Doctor.

Miscellaneous

How to change a provider's DB-entry so 3G data can be used on the Pre

This post and this thread describe various ways to adjust the provider's data base in the Pre, so the 3G datacom works on non-supported networks. webOS 1.3.1 allows setting of the providers data directly from the activation screen for providers that are present in the DB. Some report that they are not able to do that and that they cannot get 3G datacom working on 1.3.1