Advertisement
Guest User

term

a guest
Sep 18th, 2014
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.71 KB | None | 0 0
  1. root@android:/ # dd if=/dev/zero of=/dev/b
  2. binder block/ bthid
  3. /block/platform/msm_sdcc.1/by-name/boot <
  4. /dev/block/platform/msm_sdcc.1/by-name/boot: write error: No space left on device
  5. 24577+0 records in
  6. 24576+0 records out
  7. 12582912 bytes transferred in 2.890 secs (4353948 bytes/sec)
  8. 1|root@android:/ # reboot
  9. root@jacob-System-Product-Name:/home/jacob/Desktop/cyan/device/lge/l1v# fsboot
  10. fsboot: command not found
  11. root@jacob-System-Product-Name:/home/jacob/Desktop/cyan/device/lge/l1v# fastboot devices
  12. The program 'fastboot' is currently not installed. You can install it by typing:
  13. apt-get install android-tools-fastboot
  14. root@jacob-System-Product-Name:/home/jacob/Desktop/cyan/device/lge/l1v# apt-get install android-tools-fastboot
  15. Reading package lists... Done
  16. Building dependency tree
  17. Reading state information... Done
  18. The following NEW packages will be installed:
  19. android-tools-fastboot
  20. 0 upgraded, 1 newly installed, 0 to remove and 4 not upgraded.
  21. Need to get 46.6 kB of archives.
  22. After this operation, 158 kB of additional disk space will be used.
  23. Get:1 http://us.archive.ubuntu.com/ubuntu/ trusty/universe android-tools-fastboot amd64 4.2.2+git20130218-3ubuntu23 [46.6 kB]
  24. Fetched 46.6 kB in 0s (131 kB/s)
  25. Selecting previously unselected package android-tools-fastboot.
  26. (Reading database ... 162820 files and directories currently installed.)
  27. Preparing to unpack .../android-tools-fastboot_4.2.2+git20130218-3ubuntu23_amd64.deb ...
  28. Unpacking android-tools-fastboot (4.2.2+git20130218-3ubuntu23) ...
  29. Setting up android-tools-fastboot (4.2.2+git20130218-3ubuntu23) ...
  30. root@jacob-System-Product-Name:/home/jacob/Desktop/cyan/device/lge/l1v# fastboot devices
  31. ???????????? fastboot
  32. root@jacob-System-Product-Name:/home/jacob/Desktop/cyan/device/lge/l1v# cd ../../../out/target/product/l1v/
  33. root@jacob-System-Product-Name:/home/jacob/Desktop/cyan/out/target/product/l1v# ls
  34. clean_steps.mk external META-INF previous_build_config.mk ramdisk-recovery.cpio recovery res sbin system
  35. etc kernel obj ramdisk.img ramdisk-recovery.img recovery.img root symbols utilities
  36. root@jacob-System-Product-Name:/home/jacob/Desktop/cyan/out/target/product/l1v# cp recovery.img ../../../../../
  37. root@jacob-System-Product-Name:/home/jacob/Desktop/cyan/out/target/product/l1v# cd ../../../../../
  38. root@jacob-System-Product-Name:/home/jacob/Desktop# ls
  39. android arm-eabi-4.4.3.tar.gz bin include info.zip l1vbackup l1vnew.zip l1v.zip lib libexec loki man recovery.img sys
  40. arm-eabi bimg.zip cyan info kernelsource l1vnew l1vprebuilt launcher.jar lib32 Linux main.mk mel.txt share tools and parts
  41. root@jacob-System-Product-Name:/home/jacob/Desktop# mv recovery.img loki/
  42. root@jacob-System-Product-Name:/home/jacob/Desktop# cd loki
  43. root@jacob-System-Product-Name:/home/jacob/Desktop/loki# ls
  44. in.lok loki loki_tool out.img recovery.img
  45. root@jacob-System-Product-Name:/home/jacob/Desktop/loki# ./loki_tool
  46. Loki tool v2.1
  47. Usage
  48. > Patch partition file image:
  49. ./loki_tool [patch] [boot|recovery] [aboot.img] [in.img] [out.lok]
  50.  
  51. > Flash loki image to boot|recovery:
  52. ./loki_tool [flash] [boot|recovery] [in.lok]
  53.  
  54. > Find offset from aboot image:
  55. ./loki_tool [find] [aboot.img]
  56.  
  57. > Revert Loki patching:
  58. ./loki_tool [unlok] [in.lok] [out.img]
  59.  
  60. root@jacob-System-Product-Name:/home/jacob/Desktop/loki# cd ..
  61. root@jacob-System-Product-Name:/home/jacob/Desktop# cd tools\ and\ parts/
  62. root@jacob-System-Product-Name:/home/jacob/Desktop/tools and parts# ls
  63. 0-PrimaryGPT.img 2-sbl1.img 5652rgb 6-rpm.img 7-boot.img boot kernel recovery simg2img unpack
  64. 10-system.img 3-sbl2.img 5-aboot.img 70-cache.img 8-tz.img boot.img Miscallaneous_VS870_Partitions.zip recovery.img split_boot unpack_ramdisk
  65. 1-modem.img 4-sbl3.img 69-persist.img 79-BackupGPT.img 9-misc.img boot_info mkbootimg repack_ramdisk umkbootimg unpack.save
  66. root@jacob-System-Product-Name:/home/jacob/Desktop/tools and parts# cp 5-aboot.img ../loki/
  67. root@jacob-System-Product-Name:/home/jacob/Desktop/tools and parts# cd ../loki/
  68. root@jacob-System-Product-Name:/home/jacob/Desktop/loki# ls
  69. 5-aboot.img in.lok loki loki_tool out.img recovery.img
  70. root@jacob-System-Product-Name:/home/jacob/Desktop/loki# ./loki_tool
  71. Loki tool v2.1
  72. Usage
  73. > Patch partition file image:
  74. ./loki_tool [patch] [boot|recovery] [aboot.img] [in.img] [out.lok]
  75.  
  76. > Flash loki image to boot|recovery:
  77. ./loki_tool [flash] [boot|recovery] [in.lok]
  78.  
  79. > Find offset from aboot image:
  80. ./loki_tool [find] [aboot.img]
  81.  
  82. > Revert Loki patching:
  83. ./loki_tool [unlok] [in.lok] [out.img]
  84.  
  85. root@jacob-System-Product-Name:/home/jacob/Desktop/loki# ./loki_tool patch recovery aboot.img recovery.img out.lok
  86. Loki tool v2.1
  87. [-] Failed to open aboot.img for reading.
  88. root@jacob-System-Product-Name:/home/jacob/Desktop/loki# ls
  89. 5-aboot.img in.lok loki loki_tool out.img recovery.img
  90. root@jacob-System-Product-Name:/home/jacob/Desktop/loki# mv 5-aboot.img aboot.img
  91. root@jacob-System-Product-Name:/home/jacob/Desktop/loki# ./loki_tool patch recovery aboot.img recovery.img out.lok
  92. Loki tool v2.1
  93. [+] Detected target Verizon LG Lucid 2 build VS87010B_12
  94. [+] Original kernel address: 80208000
  95. [+] Original ramdisk address: 81200000
  96. [+] Output file written to out.lok
  97. root@jacob-System-Product-Name:/home/jacob/Desktop/loki# ls
  98. aboot.img in.lok loki loki_tool out.img out.lok recovery.img
  99. root@jacob-System-Product-Name:/home/jacob/Desktop/loki# fastboot flash recovery out.lok
  100. sending 'recovery' (9248 KB)...
  101. OKAY [ 0.723s]
  102. writing 'recovery'...
  103. OKAY [ 2.126s]
  104. finished. total time: 2.849s
  105. root@jacob-System-Product-Name:/home/jacob/Desktop/loki# fastboot reboot recovery
  106. usage: fastboot [ <option> ] <command>
  107.  
  108. commands:
  109. update <filename> reflash device from update.zip
  110. flashall flash boot + recovery + system
  111. flash <partition> [ <filename> ] write a file to a flash partition
  112. erase <partition> erase a flash partition
  113. format <partition> format a flash partition
  114. getvar <variable> display a bootloader variable
  115. boot <kernel> [ <ramdisk> ] download and boot kernel
  116. flash:raw boot <kernel> [ <ramdisk> ] create bootimage and flash it
  117. devices list all connected devices
  118. continue continue with autoboot
  119. reboot reboot device normally
  120. reboot-bootloader reboot device into bootloader
  121. help show this help message
  122.  
  123. options:
  124. -w erase userdata and cache (and format
  125. if supported by partition type)
  126. -u do not first erase partition before
  127. formatting
  128. -s <specific device> specify device serial number
  129. or path to device port
  130. -l with "devices", lists device paths
  131. -p <product> specify product name
  132. -c <cmdline> override kernel commandline
  133. -i <vendor id> specify a custom USB vendor id
  134. -b <base_addr> specify a custom kernel base address
  135. -n <page size> specify the nand page size. default: 2048
  136. -S <size>[K|M|G] automatically sparse files greater than
  137. size. 0 to disable
  138. root@jacob-System-Product-Name:/home/jacob/Desktop/loki# fastboot boot out.lok
  139. downloading 'boot.img'...
  140. OKAY [ 0.723s]
  141. booting...
  142. OKAY [ 0.025s]
  143. finished. total time: 0.748s
  144. root@jacob-System-Product-Name:/home/jacob/Desktop/loki# fastboot devices
  145. root@jacob-System-Product-Name:/home/jacob/Desktop/loki# fastboot devices
  146. root@jacob-System-Product-Name:/home/jacob/Desktop/loki# fastboot devices
  147. ???????????? fastboot
  148. root@jacob-System-Product-Name:/home/jacob/Desktop/loki# fastboot boot recovery.img
  149. downloading 'boot.img'...
  150. OKAY [ 0.723s]
  151. booting...
  152. OKAY [ 0.026s]
  153. finished. total time: 0.749s
  154. root@jacob-System-Product-Name:/home/jacob/Desktop/loki# ls
  155. aboot.img in.lok loki loki_tool out.img out.lok recovery.img
  156. root@jacob-System-Product-Name:/home/jacob/Desktop/loki# cd ../android/
  157. root@jacob-System-Product-Name:/home/jacob/Desktop/android# ls
  158. Lucidian_4-9-2014 Lucidian_4-9-2014.zip readme README VS VS870(Lucid2)_Android_JB_4.1.2_r1_US_Verizon_Opensource_VS87011A.zip
  159. root@jacob-System-Product-Name:/home/jacob/Desktop/android# cd Lucidian_4-9-2014
  160. root@jacob-System-Product-Name:/home/jacob/Desktop/android/Lucidian_4-9-2014# ls
  161. GT.lok LucidDreamTest4.zip LucidDreamTest5.zip META-INF
  162. root@jacob-System-Product-Name:/home/jacob/Desktop/android/Lucidian_4-9-2014# fastboot boot GT.lok
  163. downloading 'boot.img'...
  164. OKAY [ 0.700s]
  165. booting...
  166. OKAY [ 0.025s]
  167. finished. total time: 0.725s
  168. root@jacob-System-Product-Name:/home/jacob/Desktop/android/Lucidian_4-9-2014# fastboot flash boot GT.lok
  169. sending 'boot' (8948 KB)...
  170. OKAY [ 0.701s]
  171. writing 'boot'...
  172. OKAY [ 2.642s]
  173. finished. total time: 3.343s
  174. root@jacob-System-Product-Name:/home/jacob/Desktop/android/Lucidian_4-9-2014# fastboot reboot
  175. rebooting...
  176.  
  177. finished. total time: 0.001s
  178. root@jacob-System-Product-Name:/home/jacob/Desktop/android/Lucidian_4-9-2014#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement