Difference between revisions of "Testing LunaCE"

From WebOS-Ports
Jump to: navigation, search
(Installing a LunaSysMgr pre-alpha test binary)
(Installing a LunaSysMgr pre-alpha test binary)
Line 48: Line 48:
 
#Connect your TouchPad via USB to your computer.
 
#Connect your TouchPad via USB to your computer.
 
#From your TouchPad, when the connection is detected, just tap 'Close' in the notification window.
 
#From your TouchPad, when the connection is detected, just tap 'Close' in the notification window.
#Go back to the terminal window on your computer and type:<br>% '''novacom run -- file:///sbin/stop LunaSysMgr'''<br>% '''novacom run file://bin/mount -- -o remount,rw /'''<br>% '''novacom put file:///usr/bin/LunaSysMgr < ~/Downloads/LunaSysMgr'''<br>% '''novacom run file://bin/mount -- -o remount,ro /'''<br>% '''novacom run -- file:///sbin/reboot'''<br>This will stop the LunaSysMgr currently on the TouchPad, make the root filesystem writeable, copy over the test LunaSysMgr, make the root filesystem read only again and reboot the TouchPad.
+
#Go back to the terminal window on your computer and type:<br>% '''novacom run -- file:///sbin/stop LunaSysMgr'''<br>% '''novacom run file://bin/mount -- -o remount,rw /'''<br>% '''novacom put file:///usr/bin/LunaSysMgr < ~/Downloads/LunaSysMgr'''<br>% '''novacom run file://bin/mount -- -o remount,ro /'''<br>% '''novacom run -- file:///sbin/reboot'''<br>This will stop the LunaSysMgr that is currently installed on the TouchPad, make the root filesystem writeable, copy over the test LunaSysMgr, make the root filesystem read only again and reboot the TouchPad.
  
 
Have fun testing :)
 
Have fun testing :)

Revision as of 21:58, 19 August 2012

Notes and Assumptions (in no particular order)

  • You have at least skimmed WebOS Internals' Basic Linux Use page.
  • You are using your browser to download files to your default download directory, ~/Downloads.
  • "~" is Unix/Linux shorthand for the location of your home directory.
  • "%" represents the command prompt in your terminal window.
  • The commands you are to cut and paste are in bold.
  • Unless you're intending to try being a developer yourself, you don't need to install VirtualBox.

Requirements

  • Computer running Ubuntu Linux or Mac OS X
  • 'Developer Mode' enabled on your TouchPad (How To Enable Developer Mode)
  • Install the appropriate versions of the Palm SDK-PDK (you will need this if you have to recover) and novacom on your computer (the novacom install is on the SDK-PDK install page).
  • Install Save/Restore from Preware on your TouchPad and set it to back up your app data daily.
  • Check that the Palm Backup app backups are "on" and that your data is being backed up to their servers daily.
  • Donate to webos-internals. Yes, right now. We'll wait :)

How to Recover

  1. Download the stock Palm LunaSysMgr 3.0.5-3 to your computer. This is the same recovery package that you can install with Preware, but if something goes really wrong, you won't be able to run Preware.
  2. Open a terminal window (Linux) or Terminal.app (OS X).
  3. Using that window, go to your downloads directory and check the MD5 fingerprint of the ipkg, which should match this string: 20501828cc5b29200a0a3feaf8535dd4
    • for Linux type
      % md5sum ~/Downloads/org.webosports.palm-lunasysmgr_3.0.5-3_arm.ipk
    • for OS X type
      % md5 ~/Downloads/org.webosports.palm-lunasysmgr_3.0.5-3_arm.ipk
  4. If the fingerprint strings do not match, something may have gone wrong. Delete the file you just downloaded and download another copy. If they still don't match, let the developer you're working with know and/or send a PM via the webOS Nation forums to member lagoldste.
  5. If it's not still connected from doing the install, connect your TouchPad via USB to your computer
  6. From your TouchPad, when the connection is detected, just tap 'Close' in the notification window.
  7. Go back to the terminal window on your computer and type:
    % /usr/local/bin/palm-install ~/Downloads/org.webosports.palm-lunasysmgr_3.0.5-3_arm.ipk
    % novacom run -- file:///sbin/reboot
    This will install the stock ipkg and reboot your TouchPad.
  • If your TouchPad is still borked, it's probably time for the webOS Doctor.

Installing a LunaSysMgr pre-alpha test binary

  • Before you do anything else:
    • Run a Save/Restore backup.
    • Run a Palm Backup app backup.
    • Connect your TouchPad via USB to your computer, put it in USB mode, and copy the entire USB drive folder to your computer.
    • Eject your TouchPad and disconnect it from your computer to take it out of USB mode.

NOW you're ready to test.

  1. Work out with the developer you're helping where you're downloading the test LunaSysMgr binary from and what its MD5sum fingerprint is.
  2. Download it to ~/Downloads.
  3. Open a terminal window (Linux) or Terminal.app (OS X).
  4. Using that window, go to your downloads directory and check the MD5 fingerprint of the binary, which should match the fingerprint the developer gave you.
    • for Linux type
      % md5sum ~/Downloads/LunaSysMgr
    • for OS X type
      % md5 ~/Downloads/LunaSysMgr
  5. If the fingerprint strings do not match, discuss it with the developer. It could be a one time problem, or you may have to work out a different way to obtain a copy of the binary.
  6. Connect your TouchPad via USB to your computer.
  7. From your TouchPad, when the connection is detected, just tap 'Close' in the notification window.
  8. Go back to the terminal window on your computer and type:
    % novacom run -- file:///sbin/stop LunaSysMgr
    % novacom run file://bin/mount -- -o remount,rw /
    % novacom put file:///usr/bin/LunaSysMgr < ~/Downloads/LunaSysMgr
    % novacom run file://bin/mount -- -o remount,ro /
    % novacom run -- file:///sbin/reboot
    This will stop the LunaSysMgr that is currently installed on the TouchPad, make the root filesystem writeable, copy over the test LunaSysMgr, make the root filesystem read only again and reboot the TouchPad.

Have fun testing :)