TWRP on Khadas VIM?

You don’t need to put the file aml_autoscript into your SD Card.
Have a try.

In that case something is missing still, because having recovery.img and dtb.img on SD card still doesn’t help to load TWRP.

While on stock Marshmallow (that comes preinstalled on device) all you need is to place recovery.img and it loads as expected.

I have a feeling that something is different between uboot versions…

I tested it with our recovery.img and kvim.dtb. It booted into the recovey on SD Card.
Can you provide the TWRP recovery image for me? The below link is invalid.

You can download TWRP which I am using from here - it is exactly the same Probox2 image from the broken link.

My ROM is Vim_Marshmallow_Root_170603
I can booted into TWRP recovery mode. Maybe you need the kvim.dtb

Thing is that on stock Android ROM I can also boot TWRP and I don’t even need kvim.dtb. But on built Android I cannot achieve the same even if I place kvim.dtb - that is the problem…

Anyway, I will try with your provided kvim.dtb too.

That’s why I suspect uboot that is on GitHub might be differently configured than the one used in your ROMs…

No, still no luck even when putting this kvim.dtb and recovery.img when using built Android Nougat :frowning: Must be something with uboot…

Can you try with Nougat, e.g. Vim_Nougat_Root_170612.7z?

I am trying with built Nougat and also tried explicitly flashing this uboot: Vim_Uboot_Nougat_170512.7z - still TWRP doesn’t load… :frowning:

Tried to build u-boot from Marshmallow branch but still no luck - doesn’t load recovery.img neither from SD card nor from USB stick :frowning:

If there is no easy way to fix u-boot, maybe it is possible to unpack update.img, insert custom recovery.img and then pack again to update.img?

@Terry @Gouwa

Ok, so I come to conclusion that TWRP for Probox2 is incompatible with Nougat.

What I tried was built Android 7 from sources and packed TWRP as recovery.img into update.img using provided instruction. Then I interrupted Khadas boot via USB to serial prompt and executed

Unfortunately it stopped with exactly the same output as when I was trying to run recovery.img from SD card or USB stick.

So it is most likely not the way how TWRP is executed, but the built TWRP itself - I assume it is not compatible with Nougat.

@Gouwa @Terry @balbes150 Any ideas or tips on building TWRP for Khadas VIM Nougat? :slight_smile:

I think you can try to use the latest TWRP on Nougat


Sorry, but I don’t use TWRP. I prefer to use other tools to backup and restore.

1 Like

I tried to use TWRP for Amlogic p212 (S905X) version from FreakTab but it didn’t run from SD card :frowning:

Probably will try to build from TWRP sources for Amlogic but will most likely need some help getting it run…

Need to mention TWRP for Amlogic p212 (S905X) version works on stock Marshmallow, so again it’s something wrong with Nougat :frowning:

My VIM2 Max has arived yesterday with Android 7.1.2 :slight_smile: I tried TWRP recovery.img on it’s pre-installed ROM and no luck in the same way as I had with Android Nougat built for VIM Pro.

So it looks like Nougat’s uboot or bootloader or something else is unable to load recovery.img from SD card. Please help :neutral_face:

Hi, Gytis:
I’m not familiar with TWRP. I don’t give you more advices about it. I hope other user in forum can help to you.
But I will have a look for TWRP after the weeklong National Day Holida in China.


Would be nice to get it running.

My aim is to have clean Android Nougat ROM, but have TWRP and ZIPs of SuperSU and OpenGApps ready to be installed via TWRP.

@Terry Any news? :slight_smile:

I and other guys are still on the Chinese National Holiday, will back at Oct 9. :disappointed_relieved:

How is it that TWRP is so unsupported for the VIM2? I can not believe there is no TWRP. I am replying because I somehow pressed too many buttons on my VIM2 and it would not boot but was “on” when I put power to it. I had to flash the latest “upgrade” of 7.1.2 which wiped my data somehow. Now I have to spend the next 2 days getting it all back in order!

@Terry, any hints about adding TWRP to current Android builds from source?