| 5 | | This howto will help you how to install a recent SHR image on the Palm Pre device. This don't take care about the webOS which can be installed in parallel! So don't expect a usable phone after you installed SHR! Even there is currently no working multi-boot solution. |
| | 5 | == Installation and Usage of SHR on the Palm Pre == |
| | 6 | |
| | 7 | === What to expect === |
| | 8 | |
| | 9 | This howto will help you how to install a recent SHR image on the Palm Pre/Pre2 device. |
| | 10 | We try to not lose your data from WebOS which can be installed in parallel, but don't be surprised if not! Don't expect a usable phone after you installed SHR too! |
| | 11 | Even there is currently no working multi-boot solution.(That will change quickly!) |
| | 12 | You have been warned. |
| | 13 | That said, currently the installation is quite safe. Your device is backed up before doing anything, so you should be able to restore your data later. |
| | 14 | |
| 11 | | * fso-installer ( a Makefile :http://git.freesmartphone.org/?p=utilities.git;a=blob_plain;f=palmpre/fso-installer/Makefile;hb=HEAD ) |
| 12 | | * novacom (developer.palm.com) |
| 13 | | * webos doctor (see webos-internals wiki) |
| 14 | | * kernel and image (here: to come) |
| | 20 | * a computer under a linux distro |
| | 21 | * an internet connection |
| | 22 | * your device and its usb cable |
| | 23 | * a new directory to do all our stuf :) |
| | 24 | * the webos doctor corresponding to your device (see [http://www.webos-internals.org/wiki/Webos_Doctor_Versions WebOS Internals' wiki]) |
| | 25 | * novacom, [http://developer.palm.com/index.php?option=com_content&view=article&layout=page&id=1585&Itemid=55 and just novacom!] Install it of course! (<= This for the pre only. For the pre2 they have not yet published an updated version of novacom. But there ares solution. Come to our irc channel and we will see what we can so) |
| | 26 | |
| 17 | | Put all needed things in a dedicated directory, create a "downloads" directory and put in it the kernel, the image,and the webos jar. |
| 18 | | Modify the fso-installer Makefile .. |
| | 29 | |
| | 30 | Create a "downloads" directory and put in there the webos version you have downloaded, something like webosxxxxx.jar . |
| | 31 | |
| | 32 | === Step two === |
| | 33 | |
| | 34 | In our working directory (not in "downloads/" !), downloads the fso-installer ( a Makefile http://git.freesmartphone.org/?p=utilities.git;a=blob_plain;f=palmpre/fso-installer/Makefile;hb=HEAD ) |
| | 35 | |
| | 36 | === Step three === |
| | 37 | |
| | 38 | You have then to modify only two things in the Makefile : TARGET and CONFIG_WEBOS_MEDIA_TARGET_SIZE as explained at the top of the Makefile |
| | 39 | |
| | 40 | So for now you have something like this : |
| | 41 | |
| | 42 | {{{ |
| | 43 | |
| | 44 | workingdir/ |
| | 45 | =>Makefile |
| | 46 | =>downloads/ |
| | 47 | =>webosdoctorp103ueuuna-wr-2.0.0.jar |
| | 48 | }}} |
| | 49 | |
| | 50 | |
| | 51 | |
| | 52 | === Step four === |
| | 53 | ( You have not forgoten to save the Makefile I hope!) |
| | 54 | Plug your device to your computer with the usb cable. |
| | 55 | |
| | 56 | === Step five === |
| | 57 | (wouhw step four was very hard... :) ) |
| | 58 | |
| | 59 | Put your device in dev mode.(see [http://www.webos-internals.org/wiki/Getting_started#Enabling_Developer_Mode WebOS Internals' wiki]) |
| | 60 | |
| | 61 | === Step six === |
| | 62 | |
| | 63 | Open a terminal in your working directory an launch the installation with |
| | 64 | {{{ |
| | 65 | make install-all |
| | 66 | }}} |
| | 67 | |
| | 68 | |
| | 69 | === Step seven === |
| | 70 | |
| | 71 | It is time to go grab something/someone to eat/drink or kiss because from now your computer will follow the Makefile and making through all the needed things to install FSO/SHR on your precious! |
| | 72 | |
| | 73 | === Step eight === |
| | 74 | |
| | 75 | You are still there wondering exactly what it is really doing? Good! well I mean no! un-good! I told you to take care of yourself or someone else! |
| | 76 | |
| | 77 | ... |
| | 78 | |
| | 79 | Ok still here: then you can read the Makefile yourself, your old enough!! |
| | 80 | |
| | 81 | ... |
| | 82 | |
| | 83 | Ok I will definitely order your some plastic... Here is your stuff |
| | 84 | |
| | 85 | {{{ |
| | 86 | wget-stuff (kernel and image) |
| | 87 | memboot (reboot your device to be able to install all those wonderful things) |
| | 88 | backup (backup all your device into our working dir) |
| | 89 | lvm-resize (split the partition used to store your extra stuff into two partition => a new one for FSO/SHR) |
| | 90 | restore-media (restore back your data to media/internal like nothing happened) |
| | 91 | flash-image (you want an explanation? RTFM ! :) ) |
| | 92 | flash-kernel (...) |
| | 93 | setup-init (setup simlinks to boot our stuff) |
| | 94 | reboot (yeah that's right! it does it for you!!) |
| | 95 | }}} |
| | 96 | |
| | 97 | === Step nine === |
| | 98 | |
| | 99 | You come back from somewhere and your device is shining from ten miles away!! |
| | 100 | |
| | 101 | Yes you don't dream :) You have now FSO/SHR running on your precious! |
| | 102 | |
| | 103 | == How to switch OS == |
| | 104 | |
| | 105 | OK that is fun but FSO/SHR is not right the master piece you wanted (and you are right to do so! I mean expecting this master piece) for now so you want to swich from on OS to an other. |
| | 106 | |
| | 107 | Even if we do not have a multi-boot solution, that is still simple. |
| | 108 | |
| | 109 | === Step one === |
| | 110 | |
| | 111 | Plug your device to your computer with the usb cable and put it in recover mode.(see [http://www.webos-internals.org/wiki/Recover_mode WebOS Internals' wiki]) |
| | 112 | |
| | 113 | === Step two === |
| | 114 | |
| | 115 | {{{ |
| | 116 | make switch-boot |
| | 117 | }}} |
| | 118 | |
| | 119 | === Step three === |
| | 120 | |
| | 121 | {{{ |
| | 122 | make reboot |
| | 123 | }}} |
| | 124 | |
| | 125 | == How to update all your FSO/SHR == |
| | 126 | |
| | 127 | Now you want to update your FSO/SHR version, good! |
| | 128 | |
| | 129 | There is two solutions! |
| | 130 | |
| | 131 | The first one is just to update it directly from FSO/SHR |
| | 132 | |
| | 133 | {{{ |
| | 134 | opkg update |
| | 135 | opkg upgrade |
| | 136 | }}} |
| | 137 | |
| | 138 | |
| | 139 | The second one is more heavy stuff |
| | 140 | |
| | 141 | WARNING: it will remove everything of your FSO/SHR partition |
| | 142 | |
| | 143 | === Step one === |
| | 144 | |
| | 145 | Plug your device to your computer with the usb cable and put it in recover mode.(see [http://www.webos-internals.org/wiki/Recover_mode WebOS Internals' wiki]) |
| | 146 | |
| | 147 | === Step two === |
| | 148 | |
| | 149 | {{{ |
| | 150 | make update-all |
| | 151 | }}} |
| | 152 | |
| | 153 | === Step three === |
| | 154 | |
| | 155 | {{{ |
| | 156 | make reboot |
| | 157 | }}} |
| | 158 | |
| | 159 | NOTE: If you want to update just your kernel or your rootfs you have then an other step for example: |
| | 160 | |
| | 161 | {{{ |
| | 162 | make memload |
| | 163 | make update-kernel |
| | 164 | make reboot |
| | 165 | }}} |
| | 166 | |
| | 167 | That is all for tonight! |
| | 168 | |
| | 169 | == Status == |