Difference between revisions of "Template:Install LuneOS from Recovery"

From WebOS-Ports
Jump to navigation Jump to search
 
(20 intermediate revisions by 5 users not shown)
Line 3: Line 3:
 
|heading=DO NOT EDIT!
 
|heading=DO NOT EDIT!
 
|warning=THIS PAGE IS NOT A REGULAR WIKI PAGE.  IT IS A WIKI *TEMPLATE* AUTO-INCLUDED INTO POTENTIALLY HUNDREDS OF OTHER PAGES.  ANY CHANGE MADE HERE WILL AFFECT ALL THESE PAGES SIMULTANEOUSLY, INCLUDING PAGES DEALING WITH MANY TYPES OF DEVICES.  SO DO NOT EDIT THIS PAGE UNLESS YOU KNOW '''EXACTLY''' WHAT YOU ARE DOING.  THANKS!}}
 
|warning=THIS PAGE IS NOT A REGULAR WIKI PAGE.  IT IS A WIKI *TEMPLATE* AUTO-INCLUDED INTO POTENTIALLY HUNDREDS OF OTHER PAGES.  ANY CHANGE MADE HERE WILL AFFECT ALL THESE PAGES SIMULTANEOUSLY, INCLUDING PAGES DEALING WITH MANY TYPES OF DEVICES.  SO DO NOT EDIT THIS PAGE UNLESS YOU KNOW '''EXACTLY''' WHAT YOU ARE DOING.  THANKS!}}
</noinclude>== Installing WOP from recovery ==
+
</noinclude>== Installing/Updating LuneOS from recovery ==
  
 
{{note|note=Some devices do not have removable SD cards. Regardless, there should still be a partition on the device named "<code>/sdcard</code>" that can be used for flashing purposes, even though the contents of <code>/sdcard</code> may actually be in internal storage.}}
 
{{note|note=Some devices do not have removable SD cards. Regardless, there should still be a partition on the device named "<code>/sdcard</code>" that can be used for flashing purposes, even though the contents of <code>/sdcard</code> may actually be in internal storage.}}
Line 9: Line 9:
 
# Your {{{device_name}}} should still be booted to ClockworkMod from the last step
 
# Your {{{device_name}}} should still be booted to ClockworkMod from the last step
 
# If neither statement is currently true, please reboot to ClockworkMod. If you do not have CWM loaded, follow the steps outlined above.
 
# If neither statement is currently true, please reboot to ClockworkMod. If you do not have CWM loaded, follow the steps outlined above.
# Download the [http://build.webos-ports.org/webos-ports-staging/wip/images/{{{device_codename}}}/webos-ports-package-grouper.zip latest webOS-Ports image]
+
# Download the [http://build.webos-ports.org/releases/{{lc:{{{device_last_wop_branch_supported}}}}}/images/{{lc:{{{device_codename}}}}}/luneos-dev-package-{{lc:{{{device_codename}}}}}.zip latest stable LuneOS Dev-image] or [http://build.webos-ports.org/luneos-testing/images/{{lc:{{{device_codename}}}}}/luneos-dev-package-{{lc:{{{device_codename}}}}}.zip latest nightly LuneOS Dev-image]
# Additionally, download the [http://build.webos-ports.org/webos-ports-staging/wip/images/{{{device_codename}}}/zImage-{{{device_codename}}}.fastboot latest kernel image]
+
# Use the Volume Up and Volume Down keys on your {{{device_name}}} to select ""install zip" and next "install zip from sideload" and now you should have the following text on your device screen :<br /><code>ClockworkMod Recovery v6.0.4.3<br /><br />Sideload started ...<br />Now send the package you want to apply<br />to the device with "adb sideload <filename>" ...<br /></code>
# Use the Vol. Up and Vol. Down keys on your {{{device_name}}} to select "install zip from sideload"
+
# From your PC, execute the following command:<br /><code>adb devices</code><br /> and if you have the following output <br /><code>List of devices attached</code><br /><code> ????????????    no permissions</code><br /> then follow the commands to restart the adb server [http://wiki.cyanogenmod.org/w/UDEV (here in the Troobleshooting part)] or if you can not wait (with the root account) : <br /> <code> # adb kill-server</code><br /> <code> # adb start-server</code><br /> <code> * daemon not running. starting it now on port 5037 *</code><br /> <code> * daemon started successfully *</code><br /> check now if all works fine : <br /><code> # adb devices</code><br /> <code> List of devices attached</code><br /> <code> your_nexus_serial_number        recovery</code><br /> 
# From your PC, execute the following command:<br /><code>adb sideload webos-ports-package-{{{device_codename}}}.zip</code><br />
+
# From your PC, execute the following command:<br /><code>adb sideload luneos-dev-package-{{lc:{{{device_codename}}}}}.zip</code><br />
# The image will now install.
+
# The image will now install. It will installs both the kernel and the rootfs and now you should have the following text on your device screen :<br /><code>Restarting adbd...<br />Finding update package...<br />Opening update package...<br />Installing update...<br /><br />Welcome to the LuneOS RootFS Updater<br /><br />Mounting system and userdata partitions...<br />Copying the LuneOS rootfs tarball...<br />Deploying LuneOS...<br />Flashing kernel ...</code><br />
# Reboot back to the bootloader (Power off; {{{device_recovery_boot_steps}}})
+
<!-- # Reboot back to the bootloader (Power off, {{{device_recovery_boot_steps}}} )
# Next, flash the kernel image. <br /><code>fastboot flash boot zImage-{{{device_codename}}}.fastboot</code><br />
+
# Next, flash the kernel image. <br /><code>fastboot flash boot zImage-{{lc:{{{device_codename}}}}}.fastboot</code><br />-->
# Once completed, reboot the {{{device_name}}}. (Try: <code> fastboot reboot</code>)
+
# Once completed, reboot the {{{device_name}}} (In ClockworkMode, use the following entries in the menu: Go Back -> reboot system now ->  Go back).  (If ClockworkMode asks if you want to 'root device', answer no.)
# Your system should now boot directly into webOS
+
# Your system should now boot directly into LuneOS
 
 
<!--
 
#Download the prebuilt [http://webos-ports.org/?device={{{device_codename}}} release] of WOP you wish to install.  (Or if you've built WOP yourself, look in the <code>$OUT</code> directory for the <code>.zip</code>.)
 
#:''Optional:'' Download any supplemental 3rd-party applications packages for the device you wish to use.
 
#Place the WOP rom <code>.zip</code> file on the root of the SD card using [[Doc:_adb_intro|adb]]:
 
#*Transfer your file(s): <code>adb push YOURROMZIP.zip /sdcard/</code>
 
#**If you boot directly to recovery and have an internal sdcard, you may need to run <code>adb shell mount /data</code> or mount data through the recovery menu before transferring.
 
#**If you see "error: device not found" there is likely a driver issue on the PC.
 
#**On some devices, the zip file can be copied to the device using standard USB Mass Storage or MTP support.
 
#:''Optional:'' Place any supplemental packages (eg [http://goo.im/gapps Google Apps] or kernel) <code>.zip</code> file(s) on the root of the SD card.
 
#Boot to recovery mode on the device {{#if:{{{device_recovery_boot_steps|}}}| by holding {{{device_recovery_boot_steps}}}}}.
 
#Once the device boots into the {{#ifeq:{{{device_recovery_twrp|}}}|true|Team Win Recovery Project|ClockworkMod Recovery}}, {{#ifeq:{{{device_recovery_twrp|}}}|true|use your finger to select your choices by tapping on the appropriately labeled button.|use the physical volume buttons to move up and down.  On most devices, the '''power button''' is used to confirm your selection, although for some devices the power button is used as a "back" button to go up one level, in which case the '''home''' button is used to confirm the selection.}}
 
#:''Optional/Recommended:'' {{#ifeq:{{{device_recovery_twrp|}}}|true|Select the '''Backup''' button|Select '''backup and restore'''}} to create a backup of the current installation on the device.
 
#{{#ifeq:{{{device_recovery_twrp|}}}|true|Select the '''Wipe''' and the '''Factory Reset''' buttons.|Select the option to '''wipe data/factory reset'''.}}
 
#{{#ifeq:{{{device_recovery_twrp|}}}|true|Select the '''Install''' button.|Select '''install zip from sdcard'''.}}
 
#{{#ifeq:{{{device_recovery_twrp|}}}|true|Navigate to the location of the installation zip.|Select '''choose zip from sdcard'''.}}
 
#Select the WOP file you placed on the sdcard.  You will then need to then confirm that you do wish to flash this file.
 
#:''Optional:'' Install any additional packages you wish using the same method.
 
#Once the installation has finished, return back to the main menu, and select {{#ifeq:{{{device_recovery_twrp|}}}|true|the '''Reboot System''' option.|the '''reboot system now''' option.}}  The device should now boot into CyanogenMod.
 
{{#if:{{{device_htcunlocklegacy|}}}|{{note|note=This device, if unlocked with HTC Dev Unlock, '''MUST''' have its kernel flashed via fastboot! Extract the boot.img from the rom zip and flash using <code>fastboot flash boot boot.img</code>}}}}-->
 

Latest revision as of 18:07, 28 October 2016


WARNING: DO NOT EDIT!

THIS PAGE IS NOT A REGULAR WIKI PAGE. IT IS A WIKI *TEMPLATE* AUTO-INCLUDED INTO POTENTIALLY HUNDREDS OF OTHER PAGES. ANY CHANGE MADE HERE WILL AFFECT ALL THESE PAGES SIMULTANEOUSLY, INCLUDING PAGES DEALING WITH MANY TYPES OF DEVICES. SO DO NOT EDIT THIS PAGE UNLESS YOU KNOW EXACTLY WHAT YOU ARE DOING. THANKS!

Installing/Updating LuneOS from recovery

Note:

Some devices do not have removable SD cards. Regardless, there should still be a partition on the device named "/sdcard" that can be used for flashing purposes, even though the contents of /sdcard may actually be in internal storage.

  1. Your {{{device_name}}} should still be connected to your PC via USB from the last step
  2. Your {{{device_name}}} should still be booted to ClockworkMod from the last step
  3. If neither statement is currently true, please reboot to ClockworkMod. If you do not have CWM loaded, follow the steps outlined above.
  4. Download the latest stable LuneOS Dev-image or latest nightly LuneOS Dev-image
  5. Use the Volume Up and Volume Down keys on your {{{device_name}}} to select ""install zip" and next "install zip from sideload" and now you should have the following text on your device screen :
    ClockworkMod Recovery v6.0.4.3

    Sideload started ...
    Now send the package you want to apply
    to the device with "adb sideload <filename>" ...
  6. From your PC, execute the following command:
    adb devices
    and if you have the following output
    List of devices attached
     ???????????? no permissions
    then follow the commands to restart the adb server (here in the Troobleshooting part) or if you can not wait (with the root account) :
    # adb kill-server
    # adb start-server
    * daemon not running. starting it now on port 5037 *
    * daemon started successfully *
    check now if all works fine :
    # adb devices
    List of devices attached
    your_nexus_serial_number recovery
  7. From your PC, execute the following command:
    adb sideload luneos-dev-package-{{{device_codename}}}.zip
  8. The image will now install. It will installs both the kernel and the rootfs and now you should have the following text on your device screen :
    Restarting adbd...
    Finding update package...
    Opening update package...
    Installing update...

    Welcome to the LuneOS RootFS Updater

    Mounting system and userdata partitions...
    Copying the LuneOS rootfs tarball...
    Deploying LuneOS...
    Flashing kernel ...

  9. Once completed, reboot the {{{device_name}}} (In ClockworkMode, use the following entries in the menu: Go Back -> reboot system now -> Go back). (If ClockworkMode asks if you want to 'root device', answer no.)
  10. Your system should now boot directly into LuneOS