Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ISSUE]Cannot boot 3.4.0-0 in AVD #9

Open
HemanthJabalpuri opened this issue Jan 18, 2021 · 4 comments
Open

[ISSUE]Cannot boot 3.4.0-0 in AVD #9

HemanthJabalpuri opened this issue Jan 18, 2021 · 4 comments

Comments

@HemanthJabalpuri
Copy link

HemanthJabalpuri commented Jan 18, 2021

@Dees-Troy

I have installed Android 4.4.2 armeabi-v7a with SDK Tools 24.2.0 with Galaxy Nexus as Target, Skin HVGA and 1500MiB as SDCARD.

TWRP 3.4.0-0 (and all 3.x) version(s) are not booting at all with above said AVD configuration. Last version booting is 2.8.5.0 in my AVD with 3.4 goldfish kernel from android-4.4 branch.

All the images above 2.7.0.1 except 2.8.0.1 are Android boot.img format, that is the reason TWRP may not boot. We have to unpack it and pack ramdisk.cpio as gzip(?).
2.6.3.0 is working fine with all skins available.
2.8.5.0 is working fine with all skins but not 2.8.0.0.

I don't know if we have to use it in specific android avd or not.

As @dadreamer said here, we have to use it in arm architecture AVD only!(?)

Please correct me if I am wrong. Since there is no simple guide which explains all these things, I am not sure how to choose which version of Android AVD, which version of kernel to choose and lastly which version of TWRP to use.

More instructions like answering above small questions at https://twrp.me/twrp/androidemulator.html will help people like me.

Thanks

@HemanthJabalpuri
Copy link
Author

HemanthJabalpuri commented Jan 18, 2021

Just found that we have to use twrpx86(_64) for x86(_64) architecture AVDs from https://github.com/TeamWin/android_device_emulator_twrpx86 and https://github.com/TeamWin/android_device_emulator_twrpx8664

But there is no precompiled ramdisk img is there like goldfish kernel and twrp.img😥. I am not a developer and don't have the knowledge to compile recovery.

@HemanthJabalpuri
Copy link
Author

HemanthJabalpuri commented Jan 19, 2021

  • Upto 2.7.0.1 TWRP images are built with 'emmc' branch.(check difference in etc/recovery.fstab)
  • 2.8.x versions are built with 'android-4.4' branch.(check difference in etc/recovery.fstab)
  • 3.x versions are built with 'android-6.0' branch.(presence of init.recovery.goldfish.rc with 'seclabel u:r:recovery:s0' line)

Download Link:- https://dl.twrp.me/twrp/

So, it is better use 2.8.x.y versions in android-4.4.2(19) and 3.x.y-z(upto 3.4.0-0 as of now) versions in android-6.0(23) AVDs.

@HemanthJabalpuri
Copy link
Author

HemanthJabalpuri commented Jan 19, 2021

Update

With above references, I have set AVD with below configuaration

  • SDK Tools 24.4.1
  • Android 6.0 armeabi-v7a
  • Target as Galaxy Nexus
  • Skin 'Skin with dynamic hardware controls'
  • Internal Storage 2000MiB
  • SDCARD 2000MiB
  • TWRP 3.4.0-0(unpacked img and gzipped ramdisk.cpio manually)
  • goldfish_3.4_kernel from android-6.0 branch.

Result is black screen only.

But 3.0.2-0, 3.1.0-0(both unpacked img and gzipped ramdisk.cpio manually) are booting fine with above configuration.

Below configuaration works fine for me

  • SDK Tools 24.2.0
  • Android 4.4.2 armeabi-v7a
  • Target - Galaxy Nexus
  • Skin 'Skin with dynamic hardware controls'
  • Internal Storage 500MiB
  • SDCARD 1500MiB
  • TWRP 2.8.5.0(unpacked img and gzipped ramdisk.cpio)
  • goldfish_3.4_kernel from android-4.4 branch.

@MrDiagnose
Copy link

never version of emulator requires newer goldfish kernel 3.10+

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants