raspiduino / a6lte-kvm

Kernel with ARM/KVM for SM-A600G (Samsung Galaxy A6) with Exynos7870 SoC
Other
18 stars 2 forks source link
aarch64 android arm armv8a exynos7870 kernel kvm linux linux-kernel qemu qemu-kvm samsung samsung-galaxy samsung-galaxy-a6

Kernel source for SM-A600G (Samsung Galaxy A6 with exynos7870) with KVM support.

Warning: Super long text ahead, be careful not to mess up your brain :))

The FIRST thing to do BEFORE doing ANYTHING is to backup your data!

DISCLAIMER

Your warranty is now void. It might be vaild again if you flash stock firmware from Samsung Smart Switch or firmware from [samfw.com](https://samfw.com/), but I am NOT sure.

I am not responsible for bricked devices, dead SD cards,
thermonuclear war, or you getting fired because the alarm app failed. Please
do some research if you have any concerns about features included in this
kernel before flashing it! YOU are choosing to make these modifications, and if
you point the finger at me for messing up your device, I will laugh at you.

Disclaimer template credit: XDA forum :)

Status

It worked!
KVM!
I will soon update a new screenshot.

What is this?

This is the stock kernel source for SM-A600G, originally from Samsung Opensource page with the file SM-A600G_SEA_PP_Opensource.zip, and the source has been patched for KVM support (so you can run VMs on your phone with qemu-kvm).

Why?

For running VMs on your phone, probably Windows 10/11 ARM :) , but we need to patch the guess OS first. See XDA thread.

How?

Originally from @sleirsgoevy 's patch for SM-A600FN here
The XDA discussion can be found here

Download

In case you don't want to build it yourself, I have built one for you in release
Trust me, there are absolutely no virus here :). Why should one insert a virus into an opensource project?

Known bugs

UPDATE

Building

You can use the precompiled and patched img file at release to skip Building :)

Or all in one line to build but not patch :). I will include the build script later...

git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9 && cd aarch64-linux-android-4.9 && git checkout ndk-release-r19 && sudo apt install bc && cd .. && git clone https://github.com/raspiduino/a6lte-kvm && cd a6lte-kvm && export CROSS_COMPILE=../aarch64-linux-android-4.9/bin/aarch64-linux-android- ANDROID_MAJOR_VERSION=p ARCH=arm64 && make exynos7870-a6lte_defconfig && make menuconfig && make Image -j8

Installing

After get the patched img file, it's now time for installing.

Remember: If you can get into Download mode in your Samsung phone, it will NEVER brick :) . I have reflashed my Samsung phone with stock rom 3 times when trying this :) so don't be panic, it WON'T help :)

Booting OSes on KVM

This instruction will be updated later, so don't worry :)

Why root?

License

See Linux's License here.

Looking for original Linux kernel readme file? See it here