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

Version problem with latest version of Android SDK Tools #2

Open
TheDaChicken opened this issue Apr 29, 2017 · 12 comments
Open

Version problem with latest version of Android SDK Tools #2

TheDaChicken opened this issue Apr 29, 2017 · 12 comments

Comments

@TheDaChicken
Copy link

TheDaChicken commented Apr 29, 2017

If I try using the goldfish kernel I get this:
"ERROR: New emulator backend requires minimum kernel version 3.10+ (currently got lower)"
Is there any way this can be updated somehow?

@TheDaChicken TheDaChicken changed the title [VERSION [VERSION] ERROR Apr 29, 2017
@Dees-Troy
Copy link
Member

I have had more difficulty finding an ARM based emulator kernel that compiles correctly. Lately I have been using the twrpx86 emulator which is both significantly faster and doesn't require a custom kernel to work with a partitioned SD card image.

@aps1210
Copy link

aps1210 commented Dec 10, 2017

Gf

@kengraWin
Copy link

go

@TheDaChicken
Copy link
Author

What?

@charger
Copy link

charger commented Aug 30, 2019

Hi. Where I can find goldfish_3.10_kernel ?

@dadreamer
Copy link

In case if someone is having troubles to run TWRP in emulator like me, here's what worked in my case. Modern Android SDK Tools reject 3.4.0 goldfish kernel for various reasons or don't load correctly (e.g., a device's screen is completely black and nothing happens). So I tried Revision 24.4.1 tools from here and they more or less worked.
Here are the links if that blog goes down:
tools_r24.4.1-windows.zip
tools_r24.4.1-linux.zip
tools_r24.4.1-macosx.zip
I placed those old tools to C:\Users\Admin\AppData\Local\Android\Sdk (as I'm on Windows) and launched the following cmd:
.\emulator-old\emulator.exe -verbose @Nexus5 -ramdisk .\twrp-2.8.0.1-twrp.img -kernel .\goldfish_3.4_kernel-twrp -show-kernel -gpu off
Here emulator-old is a folder with the tools, Nexus5 is my AVD configured for arm platform, twrp-2.8.0.1-twrp.img is TWRP from here and goldfish_3.4_kernel-twrp is a goldfish 3.4 kernel from here.
Higher versions of TWRP didn't work for me and produced errors like this:

RAMDISK: Couldn't find valid RAM disk image starting at 0.
VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
Please append a correct "root=" boot option; here are the available partitions:
1f00 563200 mtdblock0 (driver?)
1f01 819200 mtdblock1 (driver?)
1f02 65536 mtdblock2 (driver?)
b300 512000 mmcblk0 driver: mmcblk
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[] (unwind_backtrace+0x0/0xdc) from [] (panic+0x78/0x1a0)
[] (panic+0x78/0x1a0) from [] (mount_block_root+0x22c/0x264)
[] (mount_block_root+0x22c/0x264) from [] (prepare_namespace+0x158/0x1ac)
[] (prepare_namespace+0x158/0x1ac) from [] (kernel_init+0x16c/0x1a8)
[] (kernel_init+0x16c/0x1a8) from [] (kernel_thread_exit+0x0/0x8)

twrp-2.5.0.0-twrp.img works but there's something w/ the graphics as the visible area is very small. In fact twrp-2.8.0.1-twrp.img also has such problem, but the area is larger enough to read the texts and to manipulate the controls (the fonts are distorted but readable). -gpu off flag is necessary because when it's on, the emulator's window is black and no graphics is displayed. I also want to emphasize that if you configure your AVD for x86 platform, then emulator's window also will be black on the run.

Now this is how it goes for me.
2020-04-19_0-29-19
2020-04-19_0-29-43

ADB is working, so I can have some fun on testing now.

@HemanthJabalpuri
Copy link

HemanthJabalpuri commented Jan 18, 2021

Sir, @Dees-Troy

I have had more difficulty finding an ARM based emulator kernel that compiles correctly. Lately I have been using the twrpx86 emulator which is both significantly faster and doesn't require a custom kernel to work with a partitioned SD card image.

With which kernel you tested and made commit 9322cbf for fixing booting issue?

Can you please share that kernel. Or can you please build twrp ramdisk images for twrp86 and twrp8664.

Thanks

@HemanthJabalpuri
Copy link

HemanthJabalpuri commented Jan 20, 2021

@dadreamer
Thanks for the hint to use older version of SDK Tools(24.4.1). With it I can also to boot TWRP 3.0.2-0, 3.1.0-0(both unpacked img and gzipped ramdisk.cpio manually) but not higher versions in android-6.0(23) armeabi-v7a.
Screenshot from 2021-01-20 18-50-37

@TheDaChicken TheDaChicken changed the title [VERSION] ERROR Version problem with latest version of Build Tools Jan 28, 2021
@TheDaChicken TheDaChicken changed the title Version problem with latest version of Build Tools Version problem with latest version of Android SDK Tools Jan 30, 2021
@pmagixc
Copy link

pmagixc commented Jun 21, 2023

Could someone help me with this error?
qemu: linux kernel too old to load a ram disk .\goldfish_3.4_kernel, .\twrp-2.5.0.0-twrp.img, qemu.gles=0 qemu=1 console=ttyS0 android.qemud=ttyS1 androidboot.hardware=goldfish clocksource=pit android.checkjni=1 ndns=2
emulator: User-config was not changed.

@MrDiagnose
Copy link

it already says it in there that the linux kernel is too old

@pmagixc
Copy link

pmagixc commented Jul 9, 2023

it already says it in there that the linux kernel is too old

I have already figured out how to still run it

@HaHmada
Copy link

HaHmada commented May 9, 2024

How to Solve This Problem?
PANIC: HOME is defined but could not find Nexus5.ini file in $HOME.android\avd
(Note: avd is searched in the order of $ANDROID_AVD_HOME,$ANDROID_SDK_HOME.android\avd and $HOME.android\avd)

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

10 participants