I just downloaded the latest source code and compiled it from scratch on two different machines. I apply the resulting “update.img” on my Vim2 v1.2 hardware using USB Burning Tool v2.1.2. Everything appears to be fine and normal. When I reboot, the Vim2 is stuck on the “KHADAS” bootup bitmap image. It’s stuck here and doesn’t go on to the bootanimation.zip process.
If I download the firmware from your website, everything works fine. What am I missing?
you also need (I think, so I always do) to build U-boot before main build.
Also you don’t need windows to flash, just copy kvim2-ota-{date}.zip to usb stick (fat32 formated) or micro sdcard if you have it and flash it over recovery console.
Thanks everyone!! I truly appreciate your help!!! It would appear I followed the directions to the LETTER (which was the wrong thing to do )
First, did I understand this correctly:
lunch kvim-userdebug-64 needs to be lunch kvim2-userdebug-64?
Next, I definitely built the u-boot first. However, I’m starting to doubt that I did that correctly now. Here is what I typed:
make CROSS_COMPILE=aarch64-linux-gnu- kvim_defconfig
make CROSS_COMPILE=aarch64-linux-gnu-
Sounds like this should have been this?
$ make CROSS_COMPILE=aarch64-linux-gnu- kvim2_defconfig
$ make CROSS_COMPILE=aarch64-linux-gnu-
Correct?
BTW - thanks ssehovic for the tip regarding the OTA package. I’m so familiar with modifying the firmware images that I’ve downloaded that I forget there’s an easier way. As you can tell, I’m new to compiling the source code. But, I’m reading and learning.
Finally, I hooked up a serial interface and captured the log. It looks like everything goes pear shape after the Kernel starts “Unpacking initramfs…”. I compared my log to a working firmware log.
I will try all new suggestions now and let you guys know my progress.
Your’e not lazy … you’re working smarter, not harder!!
I’ve followed your script’s instructions. I’m not able to compile the source code now. It fails every time I’ve tried to compile it on two different machines. The latest error:
ERROR: /home/epitirodev/proj/vim2/frameworks/support/compat/kitkat/android/support/v4/os/EnvironmentCompatKitKat.java:0: The type android.view.View cannot be found in source files, imported jack libs or the classpath
[ 6% 2352/38220] target C++: libicui18n <= external/icu/icu4c/source/i18n/valueformatter.cpp
ninja: build stopped: subcommand failed.
make: *** [ninja_wrapper] Error 1
Previously, I was using -j8 and -j12 (which worked for me before).
I’m not sure what’s going on. It appears that the make process for the VIM2 is extremely particular and brittle. Thoughts on something else I could have been doing wrong?
Maybe you must use older python on your build machine.
As you can see from my screenshoot I am using virtual environment with python 2.7something as with latest python 3 I can’t build.