Ledger Nano X - The secure hardware wallet
SHARE
TWEET

Untitled

a guest Jan 31st, 2014 85 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. * Now talking on #multirom
  2. * Topic for #multirom is: MultiROM v16 - booting all your things | mako: http://bit.ly/GG7O4D | flo: http://bit.ly/1huZdNx | grouper: http://bit.ly/15UzSHH
  3. * Topic for #multirom set by Tassadar at Mon Oct  7 01:43:19 2013
  4. <yuga> While porting multirom to the Xperia Z, I found that TWRP was using the multirom binary from the Internal storage. I was wondering why can't it just use the binary that is already in the ramdisk>
  5. <yuga> ?
  6. * Tassadar pokes alvinmobileltd
  7. <alvinmobileltd> Why me??? :(
  8. <Tassadar> well I don't have multirom in ramdisk)
  9. <alvinmobileltd> It hurts :(
  10. <yuga> Hmm.
  11. <alvinmobileltd> Actually, I think the original one puts trampoline directly in the Android ramdisk
  12. <yuga> Because the installer zip seems to repack the ramdisk with the binary
  13. <Tassadar> yeah, of course, it's the init
  14. <alvinmobileltd> Nexus devices and most non-Xperia devices doesn't have the concept of combinedroot
  15. <alvinmobileltd> Mine using combinedroot is quite a different approach
  16. <yuga> Yup. Alvin has a different structure. What I was trying was to see if we could port Tasssadar's binary.
  17. <Tassadar> yuga: if you're using my branch and not alvinmobileltd's and by multirom binary you mean trampoline, then it's because
  18. <Tassadar> well
  19. <Tassadar> TWRP doesn't even use trampoline for anything
  20. <yuga> Oh.
  21. <Tassadar> it just installs it to the initrd, if requested
  22. <Tassadar> the multirom binary isn't in ramdisk
  23. <yuga> My bad, then
  24. <yuga> So yours just repacks the ramdisk with trampoline > init?
  25. <Tassadar> *shouldn't be, I've noticed that omnirom builds of TWRP have multirom binaries on root, but it's not intentional and who cares)
  26. <Tassadar> yeah
  27. <Tassadar> well and moves some symlinks so they point to the real init
  28. <Tassadar> *in root
  29. <yuga> ueventd?
  30. <yuga> watchdog?
  31. <yuga> That's all right?
  32. <alvinmobileltd> The recovery ramdisk is copied from the boot ramdisk and then modified
  33. <Tassadar> yeah
  34. <yuga> Ok, i'll go try this.
  35. <alvinmobileltd> So if you build multirom and then build recovery, multirom will get copied to recovery
  36. <alvinmobileltd> in Tassadar's approach.
  37. * alvinmobileltd is now known as alvinhochun-away
  38. <Tassadar> rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro
  39. <Tassadar> (just need to note that somewhere..)
  40. <Tassadar> http://www.xda-developers.com/android/boot-multiple-roms-on-the-htc-droid-dna-with-unofficial-multirom-port/ multirom's getting on all the phones these days Oo
  41. <yuga> Great news :D
  42. <Tassadar> alvinhochun-away: by the way, are you interested in that Android app I made for MultiROM? It should be pretty doable to have it working even with unofficial ports
  43. * alvinhochun-away is now known as alvinmobile
  44. <alvinmobile> hm, what does it do?
  45. <Tassadar> installs MultiROM, it's recovery and kernel, checks for updates, can rename and delete installed ROMs and boot into that ROM directly from android
  46. <Tassadar> (and also installs Ubuntu Touch, if the device supports it)
  47. <Tassadar> *its
  48. <alvinmobile> Not sure how it will work with all my changes
  49. <Tassadar> installation consists of dd'ing the recovery to the partition and flashing the ZIPs via recovery (using OpenRecoveryScript)
  50. <Tassadar> ...and I forgot you don't have recovery partition
  51. <Tassadar> never mind then
  52. <alvinmobile> For instance, the way of installing multirom itself and recovery is already not the same. I still haven't started modifying the zip
  53. <alvinmobile> And I am still rewriting some parts of multirom
  54. <alvinmobile> Also my modified multirom now only boots ext4 images, by replacing block device like I've mentioned before
  55. <Tassadar> the app doesn't care about that, the only problem is with installing the recovery (and rebooting into it), which is completely different in your version
  56. <alvinmobile> Don't know if I'll add back bind-mount or symlink since it requires changing init.rc too much
  57. <alvinmobile> How do you autoboot other rom in a secondary rom?
  58. <alvinmobile> I mean where do you store the info?
  59. <Tassadar> it runs "multirom --boot-rom=nameoftherom" in su shell, and MultiROM takes care of that - it loads ROM list as usual and either directly kexecs the required kernel or sets force-autoboot into rom X (which saves into multirom.ini) and reboots
  60. <Tassadar> it's in multirom git
  61. <Tassadar> https://github.com/Tasssadar/multirom/commit/1eb2fe13a013b033f88928d96343752b41096cf4
  62. <Tassadar> (there are some fixes for that in following commits)
  63. <alvinmobile> oh I see, it kexec directly from Android
  64. <alvinmobile> I currently place multirom in ramdisk and it is deleted before actually booting internal rom, and secondary rom's ramdisk does not have it.
  65. <Tassadar> I may have not realized how many changes you made when I suggested you use that app)
  66. <alvinmobile> Yep, a lot of changes
  67. <alvinmobile> Well, maybe in the future I can look into merging my changes back to yours tree, but if I really do this it will certainly cause breaking changes to one of the two
  68. <alvinmobile> maybe even both
  69. <alvinmobile> Perhaps with some hacky way I can make your app work with mine
  70. <Tassadar> to be honest, I don't really want to support devices with such practices like not having boot partition
  71. <alvinmobile> Will look into it when I get twrp working
  72. <Tassadar> *recovery partition
  73. <alvinmobile> Actually it's not really that bad. Have you seen what my trampoline now does?
  74. <Tassadar> eeh no
  75. <Tassadar> yeah, you replace the initrd
  76. <Tassadar> still, I simply don't get why they don't have recovery partition, it doesn't make any sense - who was like "hm, I think merging it with boot so that it has the same kernel is a good idea, let's put our programmers to make that happen instead of having them do something else"
  77. <alvinmobile> Xperia devices doesn't even have stock recovery
  78. <Tassadar> how do they do updates, via computer?
  79. <alvinmobile> 1. Via PC, with a special flash mode
  80. <alvinmobile> or, 2. There is a special partition called FOTAkernel, which I believe hosts a special recovery used to do FOTA updates
  81. <Tassadar> and that partition is too small to host an actuall recovery, I guess?
  82. <alvinmobile> It's 15MB, already too big
  83. * Tassadar realizes that actual has only one l and that he has to stop writing -ll
  84. <Tassadar> why don't you use that for recovery?
  85. <alvinmobile> Because reboot recovery doesn't boot that
  86. <Tassadar> how do you make it boot from that partition?
  87. <alvinmobile> I think it needs to be reboot oem-f
  88. <alvinmobile> I haven't tried though
  89. <Tassadar> that still seems much better than messing with it in boot
  90. <alvinmobile> It's in the kernel source so I suspect that's it
  91. <alvinmobile> Actually I can modify the kernel to make reboot recovery boot that
  92. <alvinmobile> But it seems that most Xperia devs uses the combinedroot way
  93. <alvinmobile> There're actually a lot of things I can do, but I am scared of bricking it
  94. <Tassadar> does it have fastboot?
  95. <alvinmobile> Yes it has fastboot
  96. <alvinmobile> Anyway, combinedroot is actually a nice way since there can be multiple recovery systems
  97. <Tassadar> how big is your boot?
  98. <alvinmobile> 20mb
  99. <alvinmobile> the kernel is just 6mb btw
  100. <alvinmobile> It's funny that they don't just make a recovery partition directly but made it something else
  101. <Tassadar> Dees_Troy of TWRP says that Sony will stop doing that in their future phones, according to some people he knows in Sony
  102. <alvinmobile> oh, that's better
  103. * alvinmobile has quit (Quit: Leaving)
  104. * zz_rirozizo is now known as rirozizo
  105. * Disconnected (Connection reset by peer).
  106. * yuga sets mode +i yuga
  107. -NickServ- This nickname is registered. Please choose a different nickname, or identify via /msg NickServ identify <password>.
  108. * Now talking on #multirom
  109. * Topic for #multirom is: MultiROM v16 - booting all your things | mako: http://bit.ly/GG7O4D | flo: http://bit.ly/1huZdNx | grouper: http://bit.ly/15UzSHH
  110. * Topic for #multirom set by Tassadar at Mon Oct  7 01:43:19 2013
  111. * Disconnected (Connection reset by peer).
  112. * yuga sets mode +i yuga
  113. -NickServ- This nickname is registered. Please choose a different nickname, or identify via /msg NickServ identify <password>.
  114. * Now talking on #multirom
  115. * Topic for #multirom is: MultiROM v16 - booting all your things | mako: http://bit.ly/GG7O4D | flo: http://bit.ly/1huZdNx | grouper: http://bit.ly/15UzSHH
  116. * Topic for #multirom set by Tassadar at Mon Oct  7 01:43:19 2013
  117. * Disconnected (Connection reset by peer).
  118. * yuga sets mode +i yuga
  119. -NickServ- This nickname is registered. Please choose a different nickname, or identify via /msg NickServ identify <password>.
  120. * Now talking on #multirom
  121. * Topic for #multirom is: MultiROM v16 - booting all your things | mako: http://bit.ly/GG7O4D | flo: http://bit.ly/1huZdNx | grouper: http://bit.ly/15UzSHH
  122. * Topic for #multirom set by Tassadar at Mon Oct  7 01:43:19 2013
  123. * alvinmobileltd (~asd@203.145.92.162) has joined #multirom
  124. * Disconnected (Connection reset by peer).
  125. * yuga sets mode +i yuga
  126. -NickServ- This nickname is registered. Please choose a different nickname, or identify via /msg NickServ identify <password>.
  127. * Now talking on #multirom
  128. * Topic for #multirom is: MultiROM v16 - booting all your things | mako: http://bit.ly/GG7O4D | flo: http://bit.ly/1huZdNx | grouper: http://bit.ly/15UzSHH
  129. * Topic for #multirom set by Tassadar at Mon Oct  7 01:43:19 2013
  130. * alvinhochun-away is now known as alvinmobile
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top