Преглед на файлове

0076: Install LineageOS on Ouya

i12bretro преди 4 години
родител
ревизия
16e88161cb
променени са 1 файла, в които са добавени 182 реда и са изтрити 0 реда
  1. 182 0
      0076.html

+ 182 - 0
0076.html

@@ -0,0 +1,182 @@
+    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+    <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
+      <head>
+        <title>Install LineageOS on Ouya</title>
+        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+								<script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
+				        <script type="text/javascript">
+          $(function(){
+            $('textarea').each(function(i,e){
+              theTextarea = $(this);
+              theTextarea.height((theTextarea[0].scrollHeight-5) +'px');
+            });
+
+            $('li').each(function(i,e){
+              var uuid = 'li_' + Math.floor(Math.random() * Math.floor(1000000)).toString() + '_' + i.toString();
+              $(this).contents().wrap('<span id="'+ uuid +'"><label for="cb_'+ uuid +'"></label></span>');
+              $(this).prepend('<input type="checkbox" class="completeBox" id="cb_' + uuid +'" rel="'+ uuid +'" />')
+            });
+
+            $('code,div.codeBlock,textarea.codeBlock').each(function(i,e){
+              theElement = $(this);
+              var lines = theElement.html().split("\n");
+              theElement.empty();
+              for(l=0;l<lines.length;l++){
+                if($.trim(lines[l]) != '' && $.trim(lines[l]).substr(0,1) != '#' && $.trim(lines[l]).indexOf(' #') == -1 && lines[l].substr(0, 4).toUpperCase() != 'REM '){
+									                  theElement.append('<input type="image" src="images/clipboard.png" value="" class="copy-text" rel="copy_'+ i +'_'+ l +'" data-clipboard-text="'+ lines[l].replace(/"/g, '&quot;') +'" /><span id="copy_'+ i +'_'+ l +'">'+ lines[l] +'</span>');
+									                } else {
+                  theElement.append(lines[l]);
+                }
+              }
+            });
+
+            $(document).on('click','input.copy-text',function(){
+              theButton = $(this);
+														$('input.copy-text').attr('src','images/clipboard.png');
+							              $('span.copy-animation').removeClass('copy-animation');
+              try {
+                $('#'+ theButton.attr('rel')).addClass('copy-animation');
+                navigator.clipboard.writeText(theButton.data('clipboard-text').replace(/<[^>]*>?/gm, ''));
+																theButton.attr('src','images/clipboard_active.png');
+								              } catch(err) {
+              }
+              return false;
+            });
+
+            $(document).on('click','input.completeBox',function(){
+              theBox = $(this);
+              $('#'+ theBox.attr('rel')).addClass('strikethrough');
+              theBox.prop('disabled',true);
+              theBox.parent('li').prevAll().each(function(i,e){
+                theLI = $(this);
+                if(theLI.find('input[type=checkbox]').not(':checked')){
+                  $('#'+ theLI.find('input[type=checkbox]').attr('rel')).addClass('strikethrough');
+                  theLI.find('input[type=checkbox]').prop('checked',true).prop('disabled',true);
+                }
+              });
+            });
+
+            if(window.self !== window.top){
+              window.parent.$('iframe.stepsFrame').height((this['scrollingElement']['scrollHeight']+20) +'px');
+            }
+          });
+        </script>
+        <link href="css/steps.css" rel="stylesheet" type="text/css" />
+      </head>
+      <body>
+        <div id="gridContainer">
+          <div class="topMargin"></div>
+          <div id="listName" class="topMargin">
+            <h1>Install LineageOS on Ouya</h1>
+          </div>
+          <div></div>
+          <div id="content">
+          <h2>Things You Will Need</h2>
+
+<ul>
+	<li>A USB flash drive, at least 4 GB of free space</li>
+	<li>A USB hub, preferably with external power</li>
+	<li>A USB keyboard</li>
+</ul>
+
+<h2>Prerequisites and Downloads</h2>
+
+<ol>
+	<li>Download i12bretro_OUYA_commands.zip <a href="https://drive.google.com/open?id=1OgeEgZ9M4-Ym7Ldwz0bnpy0b0ZZ_vxlA" target="_blank">Download</a></li>
+	<li>Download i12bretro_OUYA_LineageOS_image.zip <a href="https://drive.google.com/open?id=1dR2Kxzi7YYirfcvsXO7t0Rb5jQvE_QHW">Download</a></li>
+	<li>Format the USB flash drive to FAT32
+	<ol start="1" style="list-style-type: lower-alpha;">
+		<li>Right Click Start &gt; File Explorer</li>
+		<li>Right Click the USB flash drive &gt; Format...</li>
+		<li>Select FAT32 from the File System dropdown</li>
+		<li>Make sure Quick Format is checked</li>
+		<li>Click Start</li>
+	</ol>
+	</li>
+</ol>
+
+<ol start="4">
+	<li>Extract the downloaded i12bretro_OUYA_LineageOS_image.zip file to the root of the USB flash drive</li>
+	<li>Extract the downloaded i12bretro_OUYA_commands.zip</li>
+	<li>Safely remove the flash drive and set aside for later</li>
+</ol>
+
+<h2>Installing Ouya USB Drivers</h2>
+
+<ol>
+	<li>Right click Start &gt; Command Prompt (Admin)</li>
+	<li>Paste the following commands to disable driving signing checks temporarily
+	<div class="codeBlock">bcdedit -set loadoptions DISABLE_INTEGRITY_CHECKS<br />
+	bcdedit -set TESTSIGNING ON<br />
+	shutdown /r</div>
+	</li>
+	<li>Your PC will reboot</li>
+	<li>Connect a USB cable from the micro USB port on the back of the Ouya to your PC</li>
+	<li>Connect the USB hub to the USB port on the Ouya &gt; Plug in the USB keyboard and prepared USB flash drive</li>
+	<li>Make sure the Ouya is connected to a display via HDMI</li>
+	<li>Power on the Ouya</li>
+	<li>After a few seconds you should hear Windows chime that a new device has been detected</li>
+	<li>Right click Start &gt; Device Manager</li>
+	<li>Expand Other Devices and you should see OUYA listed</li>
+	<li>Right click OUYA &gt; Update Driver</li>
+	<li>Select Browse my computer for driver software</li>
+	<li>Click the Browse... button</li>
+	<li>Navigate to the extracted i12bretro_OUYA_commands\files\driver</li>
+	<li>Click OK</li>
+	<li>Make sure &quot;Include subfolders&quot; is checked, click Next</li>
+	<li>Windows should find the correct driver for the Ouya and install it</li>
+	<li>Navigate to the i12bretro_OUYA_commands in windows explorer</li>
+	<li>Right click i12bretro_OUYA_commands.bat &gt; Run as administrator</li>
+	<li>The script uses the Android Debug Bridge (ADB) to boot the Ouya into CyanogenMod recovery</li>
+	<li>When the command prompts to &quot;--&nbsp; Setup the fastboot driver&quot;, go back to Device Manager expand Android Device</li>
+	<li>Right click Android Bootloader Device &gt; Update Driver</li>
+	<li>Select Browse my computer for driver software</li>
+	<li>Click the Browse... button</li>
+	<li>Navigate to the extracted i12bretro_OUYA_commands\files\driver</li>
+	<li>Click OK</li>
+	<li>Make sure &quot;Include subfolders&quot; is checked, click Next</li>
+	<li>Windows should find the correct driver for the Ouya and install it</li>
+	<li>Press Enter at the command prompt once the driver is installed to continue booting the Ouya to CyanogenMod recovery</li>
+</ol>
+
+<h2>Restore i12bretro LineageOS Image via CyanogenMod Recovery</h2>
+
+<ol>
+	<li>With the OUYA in CyanogenMod Recovery:</li>
+	<li>Select Backup/Restore &gt; Restore from USB disk</li>
+	<li>Navigate to and select the extracted LineageOS image from the USB disk clockworkmod\backup\2020-05-18.00.42.15</li>
+	<li>Select Yes to confirm restoring the backup</li>
+	<li>Wait several minutes for the various partitions of the image to be copied to the Ouya</li>
+	<li>From the main menu select wipe cache partition</li>
+	<li>Select Yes to confirm wiping the cache</li>
+	<li>From the main menu select advanced &gt; wipe dalvik cache partition</li>
+	<li>Select Yes to confirm wiping the dalvik cache</li>
+	<li>From the main menu select Install zip &gt; Install zip from USB disk</li>
+	<li>Select recovery-clockwork-6.0.4.8-ouya.zip</li>
+	<li>Select Yes to confirm installing recovery</li>
+	<li>From the main menu select Install zip &gt; Install zip from USB disk</li>
+	<li>Select ouyabootmenu-mql-v2.0.4.zip</li>
+	<li>Select Yes to confirm installing Ouya boot menu</li>
+	<li>From the main menu select reboot device</li>
+	<li>After a few moments the device will boot into LineageOS running Android 4.4.2</li>
+</ol>
+
+<h2>Cleaning Up</h2>
+
+<ol>
+	<li>After successfully flashing the image to your Ouya, do the following</li>
+	<li>Right click Start &gt; Command Prompt (Admin)</li>
+	<li>Paste the following commands to re-enable driving signing checks
+	<div class="codeBlock">bcdedit -set loadoptions ENABLE_INTEGRITY_CHECKS<br />
+	bcdedit -set TESTSIGNING OFF<br />
+	shutdown /r</div>
+	</li>
+	<li>Your PC will reboot</li>
+</ol>
+
+<p>Special thanks to <a href="https://www.s-config.com/section-3-method-2-adb-push-lineage-from-raspberry-pi-to-ouya/" target="_blank">https://www.s-config.com/section-3-method-2-adb-push-lineage-from-raspberry-pi-to-ouya/</a> for helping to keep the Ouya alive</p>
+          </div>
+        </div>
+      </body>
+    </html>
+