ARM KVM (Kernel Virtual Machine) enabled Kernel for Samsung Galaxy S8 - Samsung Galaxy S8 Questions and Answers

Hi. Can someone that compiles kernels for this phone compile one with KVM enabled and make it available to download? It should not be too hard. This would really make these machines appealing if you could spin up VMs on them especially considering how much RAM they have. There aren't many ARM devices this powerful to test with KVM.
This was already done for the Intel x86 based Zenfone 2 and as a result, it can run x86 Windows 10 64-bit edition, Mac OS X, BSD and any Linux distro full speed in a VM.
I'd like to see how well the new ARM Windows 10 performs on these Galaxy phones. It would be a great alternative to running Windows 98 in QEMU slowly. Windows 10 ARM runs Office 2016 and PhotoShop at decent speeds on some of the latest SoCs.
Please reply if you are interested in this feature.

I'm really interested in this too, I have a .iso of Windows 10 ARM ready for testing, but it's useless without KVM. But it's always going to be useless since I have Snapdragon.

TFGBD said:
Hi. Can someone that compiles kernels for this phone compile one with KVM enabled and make it available to download? It should not be too hard. This would really make these machines appealing if you could spin up VMs on them especially considering how much RAM they have. There aren't many ARM devices this powerful to test with KVM.
This was already done for the Intel x86 based Zenfone 2 and as a result, it can run x86 Windows 10 64-bit edition, Mac OS X, BSD and any Linux distro full speed in a VM.
I'd like to see how well the new ARM Windows 10 performs on these Galaxy phones. It would be a great alternative to running Windows 98 in QEMU slowly. Windows 10 ARM runs Office 2016 and PhotoShop at decent speeds on some of the latest SoCs.
Please reply if you are interested in this feature.
Click to expand...
Click to collapse
Im reeeally interested in that feature too, bump!

I don't even own the Galaxy S8 but I thought I could interest some kernel developers in testing this on a popular device. I'd like to see this magic the Zenfone 2 has offered to some other devices. I recently got a Raspberry Pi 3 and installed OpenSUSE (this has a KVM enabled kernel already) to try to spin up VMs but I haven't had much luck even with debian. I'm not sure if something isn't working right or I'm passing the wrong machine or cpu flags to QEMU. Has anyone tried booting the ARM Windows 10 .ISO using emulation only in QEMU?

TFGBD said:
I don't even own the Galaxy S8 but I thought I could interest some kernel developers in testing this on a popular device. I'd like to see this magic the Zenfone 2 has offered to some other devices. I recently got a Raspberry Pi 3 and installed OpenSUSE (this has a KVM enabled kernel already) to try to spin up VMs but I haven't had much luck even with debian. I'm not sure if something isn't working right or I'm passing the wrong machine or cpu flags to QEMU. Has anyone tried booting the ARM Windows 10 .ISO using emulation only in QEMU?
Click to expand...
Click to collapse
How do you know Pi 3 has KVM enabled? Does "KVM" appear in /dev? What does kvm-ok report or virt-manager?
Windows 10 Arm can boot up on some hosts using this method (changing cpu from 57 to 53 might help):
(I cannot post links so Google windows 10 arm qemu rafael)
If anyone can get KVM enabled on modern smart phones running Linux via Linux Deploy or on Pi 3s or on the new HP, ASUS, Lenovo laptops then the above should, presumably, work with this additional flag:
-enable-kvm

gilius2k15 said:
How do you know Pi 3 has KVM enabled? Does "KVM" appear in /dev? What does kvm-ok report or virt-manager?
Windows 10 Arm can boot up on some hosts using this method (changing cpu from 57 to 53 might help):
(I cannot post links so Google windows 10 arm qemu rafael)
If anyone can get KVM enabled on modern smart phones running Linux via Linux Deploy or on Pi 3s or on the new HP, ASUS, Lenovo laptops then the above should, presumably, work with this additional flag:
-enable-kvm
Click to expand...
Click to collapse
This article claims the Pi 3 OpenSUSE image has KVM enabled but the article writer never actually takes a screenshot of an OS booting in it:
https://medium.com/@valdiz777/setti...pensuse-pi3-leap-42-2-xfce-image-22faddf02f48
And yes, I do see /dev/kvm listed when I check. Where do I find the kvm-ok command?

TFGBD said:
This article claims the Pi 3 OpenSUSE image has KVM enabled but the article writer never actually takes a screenshot of an OS booting in it:
And yes, I do see /dev/kvm listed when I check. Where do I find the kvm-ok command?
Click to expand...
Click to collapse
When you install Qemu (comes with KVM modules) and libvirt-bin you can then run a command sudo kvm-ok (Ubuntu/Debian). And this will tell you if KVM is enabled. You could also run this:
qemu-system-aarch64 -M virt -enable-kvm
That will also tell you if it can detect KVM. And the other way that I know is through virt-manager:
sudo apt-get install qemu-kvm libvirt-bin bridge-utils virt-manager
sudo apt-get install qemu-efi
sudo adduser name libvirtd
*restart*
sudo service libvirt-bin start
sudo service virtlogd start
You can then open virt-manager from the GUI (or sudo virt-manager) and it will tell you if KVM is detected or not.
All the other KVM commands I found only tell us about Intel/AMD virtualization - not ARM64.
Incidentally, the version of Qemu on majority of Linux distros is out of date by a couple of years, so I had to update mine after downloading download.qemu.org/qemu-2.12.0-rc2.tar.xz
sudo apt-get install libglib2.0-dev
sudo apt-get install libpixman-1-dev
sudo apt-get install libpixman-1-0
sudo apt-get install libsdl2-dev
sudo apt-get install autoconf
make a new subdirectory named build and cd to that dir
../configure --disable-vnc --enable-sdl --with-sdlabi=2.0
sudo make
sudo make install

TFGBD said:
It should not be too hard.
Click to expand...
Click to collapse
Just a personal opinion that you shouldn't undermine other people's effort when you are asking them for something, they are usually more willing to help that way.

Kvm samsung j7 2016
Hello every body!! I can't find kernel for J7 2016 kvm support.

Well it looks like our prayers are answered and our dreams came true. Thanks to the folks at limboemulator.weebly.com, there is now an ARM KVM enabled kernel available for the Snapdragon based Samsung Galaxy S8 and S8+
The latest Limbo PC Emulator even has KVM support even with the ARM builds.
Get it here:
https://limboemulator.weebly.com/android-arm-kvm---kernels.html

Confirmed working?
TFGBD said:
Well it looks like our prayers are answered and our dreams came true. Thanks to the folks at <url clipped>, there is now an ARM KVM enabled kernel available for the Snapdragon based Samsung Galaxy S8 and S8+
The latest Limbo PC Emulator even has KVM support even with the ARM builds.
Get it here:
<url clipped>
Click to expand...
Click to collapse
Has anyone been able to confirm if this works? Site says it hasn't yet been tested on real hardware. I'm concerned the bootloader may be an issue.
edit: sorry for clipped urls, but newbie so can't include them. please see previous post for the urls.

TFGBD said:
Well it looks like our prayers are answered and our dreams came true. Thanks to the folks at limboemulator.weebly.com, there is now an ARM KVM enabled kernel available for the Snapdragon based Samsung Galaxy S8 and S8+
The latest Limbo PC Emulator even has KVM support even with the ARM builds.
Get it here:
https://limboemulator.weebly.com/android-arm-kvm---kernels.html
Click to expand...
Click to collapse
Where does it say snapdragon i only see f model Exy
dd the following lines to file: arch/arm64/configs/​exynos8895-dreamlte_defconfig
CONFIG_VIRTUALIZATION=y
CONFIG_KVM=y
CONFIG_KVM_MMIO=y
CONFIG_KVM_ARM_HOST=y
#from the command line type:
make clean
make mrproper
make ​exynos8895-dreamlte_defconfig

TheMadScientist said:
Where does it say snapdragon i only see f model Exy
dd the following lines to file: arch/arm64/configs/​exynos8895-dreamlte_defconfig
CONFIG_VIRTUALIZATION=y
CONFIG_KVM=y
CONFIG_KVM_MMIO=y
CONFIG_KVM_ARM_HOST=y
#from the command line type:
make clean
make mrproper
make ​exynos8895-dreamlte_defconfig
Click to expand...
Click to collapse
Didn't notice the Snapdragon part of that message, thought it was in reference to the Exynos variant. The Snapdragon variant definitely won't work as it's forced into EL1 on boot at the firmware level so not even a bootloader change could start the kernel in EL2. Very interested if it will work for the Exynos variant though.

I'm testing this now on real Exynos hardware, but there's no /dev/kvm appearing in the android kernel despite the options being ticked. The same thing happened when I compiled a Snapdragon 660 kernel. Perhaps the hypervisor is not accessible under any android device due to the trust/EL2 problem I keep hearing about? Nevertheless, I will test in Linux Deploy to see if I can get a /dev/kvm appear in a container instead, but it's not looking promising...

TFGBD said:
Well it looks like our prayers are answered and our dreams came true. Thanks to the folks at limboemulator.weebly.com, there is now an ARM KVM enabled kernel available for the Snapdragon based Samsung Galaxy S8 and S8+
The latest Limbo PC Emulator even has KVM support even with the ARM builds.
Get it here:
https://limboemulator.weebly.com/android-arm-kvm---kernels.html
Click to expand...
Click to collapse
please new link im search new link kvm kernel link

Got any luck with that in the end?
Currently trying with an sdm845, but with not much luck

year 2021 im new phone s10 plus im search kvm pfffffffffffffffff

im trying to get it working on galaxy s7

Related

[Q] Does Acer Iconia A501 run dual boot Win7/8 & ICS?

Hi all,
I want to buy a Iconia A501, so does it run dual boot win7/8 & ICS?
Thanks 4 replying
No
A500/A501 runs on Android with possibility to dual boot to Linux in the future (there are some Work-In-Progress projects right now).
W500/W501 runs on Windows 7 and I don't know if anyone even tried to boot another system on it.
yaworski said:
No
A500/A501 runs on Android with possibility to dual boot to Linux in the future (there are some Work-In-Progress projects right now).
W500/W501 runs on Windows 7 and I don't know if anyone even tried to boot another system on it.
Click to expand...
Click to collapse
Thanks 4 ur reply, bcoz i saw Model W500/W501 run dual boot win8 & Android, so i think that A501 also do that.
Iconia W50x has an x86 based CPU. That's why it can run Windows 7. I didn't know that it can already boot Android.
Iconia A50x has an ARM based CPU (Tegra2). There is no Windows 7 version that can run on ARM (actually Win7 can only be run on x86/x64 architecture).
Windows 8 will have an ARM supporting version but there is almost no chance that it could work on any Tegra2 based tablet.
The W50X has been able to run Android but the A50X series can't run windows - any version of windows....

Slight clarification for DEV's trying to port CM

THIS IS NOT A ARM DEVICE ! This is x86. Porting CM to this device would be an incredibly complex task as alot of CM code is ARM dependent. You are going about this the wrong way , these are two completely unrelated CPU architectures , you need to look at the Android X86 projects that are out there which I will link too at the end of the post.
ARM is vastly different from x86 and you can't run code designed for one on the other.
NO ROM for ARM will work on this , meaning no CM , no AOKP , no MiUi , and not even AOSP etc.
You need to work with the Android x86 sources provided by either Intel or the community x86 port.
Links :
http://www.android-x86.org
https://01.org/projects/android-intel-architecture
http://androvm.org/blog/
All these projects are FORKS of android highly modified to work on x86 !
lgstoian said:
THIS IS NOT A ARM DEVICE ! This is x86. Porting CM to this device would be an incredibly complex task as alot of CM code is ARM dependent. You are going about this the wrong way , these are two completely unrelated CPU architectures , you need to look at the Android X86 projects that are out there which I will link too at the end of the post.
ARM is vastly different from x86 and you can't run code designed for one on the other.
NO ROM for ARM will work on this , meaning no CM , no AOKP , no MiUi , and not even AOSP etc.
You need to work with the Android x86 sources provided by either Intel or the community x86 port.
Links :
http://www.android-x86.org
https://01.org/projects/android-intel-architecture
http://androvm.org/blog/
All these projects are FORKS of android highly modified to work on x86 !
Click to expand...
Click to collapse
What about use a base of stock roms and make the things work??? I know Cm its for armv, but all its adaptable,
Enviado desde mi XT890 usando Tapatalk 2
as for MIUI (there already is a MIUI port on the razr i, not complet I think, but it exist). MIUI is mostly a framework mod.. this is platerform independant AFAIK.
I don't think CM & Cie are so dependant of the SoC architecture. There's lot of différences between some ARM SoC .. maybe more than you can imagine. If CM can be adapt to so many device with so many ARM SoC witch a so différent, why not for a x86 Soc ?
I think you're a little bit pessimist here...
I didn't say it's impossible but it's more complex then a normal port for an ARM device. The issue is it requires more knowledge on the issue and will eat far more time. A CM port to x86 is a very unlikely goal for a single dev , and I'm saying this because a few months ago I discussed this issue with the people behind Android x86.
So a talented DEV will be able to achieve this but it will take time and a bigger struggle , that's why to start of developing for this device it would be more reasonable to look at Android code already ported to x86.
lgstoian said:
THIS IS NOT A ARM DEVICE ! This is x86. Porting CM to this device would be an incredibly complex task as alot of CM code is ARM dependent. You are going about this the wrong way , these are two completely unrelated CPU architectures , you need to look at the Android X86 projects that are out there which I will link too at the end of the post.
ARM is vastly different from x86 and you can't run code designed for one on the other.
NO ROM for ARM will work on this , meaning no CM , no AOKP , no MiUi , and not even AOSP etc.
You need to work with the Android x86 sources provided by either Intel or the community x86 port.
Links :
http://www.android-x86.org
https://01.org/projects/android-intel-architecture
http://androvm.org/blog/
All these projects are FORKS of android highly modified to work on x86 !
Click to expand...
Click to collapse
Sure there is some ARM dependent code in the repos but most of android doesn't really depend on the arch (like apps using the sdk dont need to be recompiled for working on the I, see play store apps). I have worked with o1 and android-x86 and there isn't really that much change from CM and android-x86, just some extra optimizations for x86 which can be added in later.
There are plenty of device on where even custom rom seems to be impossible. mostly because of a locked bootloader.
Look at the Motorola Defy. At the beginning, the development of a custom rom like CM was pretty impossible.... but they did it. They did it so far that the Defy became one of must used device with Cyanogenmod. And you now the most astonishing? It's thanks to only 2 devs.
I think bypassing a locked bootloader like the Moto one is far more tricky than adapting a CM ROM to a x86 SoC (while the device is natively unlocked).
AFAIK, android-x86 project is not so close to the Android we have on our phone.
When you develop a custom rom you can either take the AOSP source and try to put it on your phone : the tricky way. Mainly when you don't have access to the source of the drivers (ARM or x86 .. same fight)
Or you can take the official rom and mod it to reach the AOSP/CM/MUI/etc level. And I think on most device it's the way to go (unless the manufacturer release all the source code of the device.... something that never appends).
lgstoian said:
THIS IS NOT A ARM DEVICE ! This is x86. Porting CM to this device would be an incredibly complex task as alot of CM code is ARM dependent. You are going about this the wrong way , these are two completely unrelated CPU architectures , you need to look at the Android X86 projects that are out there which I will link too at the end of the post.
ARM is vastly different from x86 and you can't run code designed for one on the other.
NO ROM for ARM will work on this , meaning no CM , no AOKP , no MiUi , and not even AOSP etc.
You need to work with the Android x86 sources provided by either Intel or the community x86 port.
Links :
http://www.android-x86.org
https://01.org/projects/android-intel-architecture
http://androvm.org/blog/
All these projects are FORKS of android highly modified to work on x86 !
Click to expand...
Click to collapse
You really know what you are talking about? As others already mentioned above CM is in most a framework - porting android to x86 seems to be not such a big gap as motorola did it already and for sure you can run android on your pc - do you own an arm pc (in this case i think an rasperry pi...). The toolchain remains the same so why you make such a story out of it? Are you a razr i owner or do you just want to frighten all razr i devs and owners awaiting a CM port??
ARM architecture is different in some points but most of the work will do the compiler and to be honest i think there will be some more x86 phones in the future, intel never developed it for one or two phones....
So what is your intention with this topic??
kind regards.
lord0815 said:
So what is your intention with this topic??
Click to expand...
Click to collapse
That's what I'm wondering. Any dev that's taking on this task obviously knows it's going to take a bit of extra work. It would have been different had the OP offered some help and advice, but he just posted the obvious while making it seem like a bigger deal than it is (at least I'm guessing it's not as big a deal as he makes it seem, considering the other posts in this thread). Nothing but fear mongering and pessimism at this point. Sure, we will have to wait a bit for the devs to figure things out, but I know enough of them picked up this phone that something will eventually come. Plus, there seems to be a bit of dev interest in the Intel Yolo as well.
I don't know much about porting or developing and getting cm to run with all the necesary source and drivers is probably not easy but I do know that one of the basic options when running the build/make command for AOSP and CM is an x86 build for emulation. So basic x86 infrastructure exists does that ensure compatibility with this phone maybe not but it might help and certainly it would still require SOC and device optimization drivers but its probably the better place to start then tackling trying to port ARM based code and drivers.
However in the meantime my thinking is maybe a CM style rom could be achieved by first stripping down the rom making it "blurless" and then porting CM features especially since the latest Moto ROM's are comparatively closer to stock then sense or touchwiz. Of course I don't have the phone yet its in England waiting to be brought to me.

[Q] Nexus 7 and desktop Ubuntu newer than 13.04 or 12.04 LTS

Hello,
I succesfully install Ubuntu 13.04, but it's too old and donť have repositories (404 in terminal). Is there some option how get newer version? Or maybe older LTS 12.04 which still have support. But only I can install that only over Windows (I find some tutorials, but only for Ubuntu).
Or if someone have good tip some linux distro (which have still active repository) or some other OS.
I trying search some interesting option how I can more use N7, because when I bought Mi2S, then N7 was so slow.
Thanks
Hi I have that same problem about repositories. And im now trying to find any results for it but everithing is suspended from original servers and old.
But if I find something then I write to you. And sorry for my bad english
Thank you, if you send me some information
A jen tak mimochodem, můžeš pak napsat soukromou zprávu ve slovenštině, jestli město co máš souhlasí.
Unfortunately, Ubuntu desktop for Nexus 7 was discontinued when 13.04 was released. Maybe you could use the regular repos and see what happens?
If you trying repos in 13.04, then you will see 404 errors, and you can not use some newer repos because stability will decrease. Too bad, N7 is still interesting device and with linux it can be more useful, because Android is quite slow and laggy (4.4.4 and new flashed) compare to my Xiaomi Mi2S.

{Q} Custom ROMS (AOSP/CM) for Galaxy A8 (SM-A800F)? Any possibility in Future??

Hello all
I was wondering if there will be AOSP/CM ROM for this device, not a single ROM is available and no dev is interested to work on such a great device.
Such a totally crap device, still stucked on 5.1.1 since launch, no dev is interested in the development either, where android n announced already, we are still waiting for Android M update, i wasted my money on such a **** device, will never buy a sammy mid range in future, m totally fed up with this
I think because there are few developer with that phone and they can't test their work. You can port ROMs such as CM to you phone by your self. There are tons of guides and forums. All u need is a linux OS (such as ubuntu, debian and others) and sources.
DeadSquirrel01 said:
I think because there are few developer with that phone and they can't test their work. You can port ROMs such as CM to you phone by your self. There are tons of guides and forums. All u need is a linux OS (such as ubuntu, debian and others) and sources.
Click to expand...
Click to collapse
Ok i want to port Resurrection Remix on my A8, i need a simplest guide for android build environment startup, using windows 10, with no knowledge about programming languages such as C++ etc etc which is required to be used on Linux OS, can you plz help me, i will install ubuntu OS on my laptop, but i am worried can i install two different os in one machine, i.e. Windows 10 & Ubuntu
shubham540 said:
Ok i want to port Resurrection Remix on my A8, i need a simplest guide for android build environment startup, using windows 10, with no knowledge about programming languages such as C++ etc etc which is required to be used on Linux OS, can you plz help me, i will install ubuntu OS on my laptop, but i am worried can i install two different os in one machine, i.e. Windows 10 & Ubuntu
Click to expand...
Click to collapse
yep, I'm on kali and I use windows 10 to play games, so the only thing is: take care when partitioning. After you installed ubuntu there is a bootloader called "GRUB" and there you can choose if you want to boot windows or linux

How can you install a recent linux distro?

It looks like there are drivers for linux that support the GPU, according to the Nintendo Switch community.
Is there a way to install a modern Ubuntu/Debian distro on the box?
Any guide links?
Someone mentioned that an apt-get upgrade would break the OS. Is this still the case? I hope it won't brick the box ,..
Nvidia made a version of Ubuntu 14.04 available called Linux4Tegra. I haven't heard of anything newer.

Categories

Resources