yashsingh1/xdaforums huggingface dataset:
[ZenFone 2 Original Android Development] ycavan:
I added CONFIG_NTFS_FS=m ( you could set to that y ) and CONFIG_NTFS_RW=y in /{working directory}/device/asus/moorefield/fhd/mofd_fhd_diffconfig

when you make the kernel, it's going to ***** about the config files not matching; follow the directions and manually update all of the other config files and it will finally compile.

Building for Android is a pita. :))
[ZenFone 2 Original Android Development] TheSSJ:
Well, then here come the disappointing news (I discovered that when I wanted to include NTFS USB-OTG support directly by the kernel for my TWRP and it didn't mount it as R/W):

CONFIG_NTFS_RW is just a partial write support. It won't create files or folders, it can only overwrite existing files and only by the size they currently have :(

Only possibility available is to include ntfs-3g driver using fuse
[ZenFone 2 Original Android Development] ycavan:
Yeah, that is a bit of a downer. Now to figure out why nobody finished the NTFS kernel module.
[ZenFone 2 Original Android Development] TheSSJ:
Please keep me posted, I'd like to remove the dependency of ntfs-3g in recovery. I fear there actually is no native support of NTFS (googling was not helpful unfortunately) ;)
[ZenFone 2 Original Android Development] sorg:
1) modify module loading function to ignore module version/magic strings.

2) compile the kernel with toolchain used by ASUS (or close to it)

3) use pre-compiled tntfs.ko from original boot.img

I don't have right now the patch for module loading procedure. Need to check old Galaxy S3/S4 custom kernels source (but it's should be easy to patch by finding error string). In time when exFat module source wasn't available, this trick was very common in samsung custom kernels for exFat support.
[ZenFone 2 Original Android Development] whynottoday:
Thanks
[ZenFone 2 Original Android Development] LUCKYSHOT52:
Wait wait wait. Did I read that correctly? Full speed windows? On the zenfone? I think I just died. Does this mean windows 8/10 or windows xp and below?
[ZenFone 2 Original Android Development] FajarMF28:
I know a bit about android kernel, and i'm thinking about buying this device. Well, i'm going to try to build a kernel for this device as soon as i got this device. One thing you should know is, android is an open-source, so before you uploading your compiled kernel, make sure you have already uploaded the sources :)
[ZenFone 2 Original Android Development] sorg:
It's only in theory.

In reality, there is no Z35xx support in windows, and i doubt anyone will write drivers by himself (windows isn't opensource). Officially Z35xx is Android-only SoC.
[ZenFone 2 Original Android Development] ycavan:
The source is already available, so no worries there, since this is source that Asus released. :)
[ZenFone 2 Original Android Development] ycavan:
For all of the brave folks out there, I was finally able to create a bootable image of the latest 2.19.20 kernel. Anyone brave enough can find it in the OP. :)

I flashed it and my phone booted up, so that's a bonus. ;)
[ZenFone 2 Original Android Development] cangcan:
is there extra features such as other governor or i/o scheduler?
[ZenFone 2 Original Android Development] ycavan:
To be honest? I can't remember since my main focus was getting kvm compiled in.

I've attached my .config for the 20150707 build ( in the boot image ).

I've also attached a screenshot of Windoze 7 being installed.

Commandline for Arch Linux x86_64 to start qemu-kvm to install windoze:

qemu-system-x86_64 -display none -vnc :1,password -monitor stdio -m 1G -smp 4 -enable-kvm -drive file=/mnt/0/machine1.img,format=raw -cpu host -cdrom /mnt/MicroSD/Vcd/en_windows_7.iso -boot menu=on --usbdevice tablet

breakdown of the command line:

-display none = no display, I did this to test the virtual machine. normally, you would probably use -display sdl w/ XServer-XSDL running

-vnc :1,password, This says to set up a vnc server with normal port + 1 ( 5901 ) and you expect a password to be set later

-m 1G, 1 gig of ram

-smp 4, our VM will use 4 cores

-enable-kvm, enable Kernel support Virtual Machines

-drive file=/mnt/0/machine1.img,format=raw, my "disk" file

-cpu host, use the same cpu information

-cdrom /mnt/MicroSD/Vcd/en_windows_7.iso, my Windows 7 install cd turned into an iso

-boot menu=on, enable the boot menu ( hit F12, etc.. )

--usbdevice tablet, Qemu's Vnc server sucks at tracking mouse positions so using tablet mode keeps the mouse pointer .. well on-point
[ZenFone 2 Original Android Development] 29y6145:
Tks for share

Kernel great work

But how to install window 7 ? ?

Gửi từ ASUS_Z00AD của tôi bằng cách sử dụng Tapatalk
[ZenFone 2 Original Android Development] ycavan:
Please go to this Post http://xdaforums.com/zenfone2/general/zf2-running-windows-7-using-kvm-t3153299 for directions on running Qemu-KVM to install/run Windows
[ZenFone 2 Original Android Development] S#@DY:
This is for ze551ML, what for ze550ML users?

Can you do something for it?:crying:
[ZenFone 2 Original Android Development] ycavan:
It should be possible since Asus's source code has build targets for the 550 as well as the 551.

The problem I have is how much I underestimated the space AOSP requires... of my 50 gig partition, I'm down to 120 megs or so and that is not enough space to compile a 2nd Android target. >.<

I'll see what can be done about tar'ing up the fhd target and moving it elsewhere for now. No promises, tho! :)
[ZenFone 2 Original Android Development] aziz07:
I know its early to ask but is it possible to overclock the GPU and CPU in the future?

Is the kernel x64? If so, how is that the os only detects 3.8Gb and not full 4096Mb ; same situation as PCs.

thanks
[ZenFone 2 Original Android Development] ycavan:
The kernel itself is 64 bit, but the target is 32 bit. My guess is that the proprietary kernel modules that Asus used are 32 bit.

With this kernel, I didn't want to change too much from the base since the goal of the kernel is to provide kernel supported virtual machines.
[ZenFone 2 Original Android Development] ycavan:
I was able to compile a new hd ( ZE550 ) kernel. The kernel & modules are in the OP as well as a ( hopefully ) bootable img. Brave ZE550 users, give it a try :)
[ZenFone 2 Original Android Development] S#@DY:
Surely, waiting to use it.:highfive:

Also just to ask if unlocking bootloader is still a non reversible process for our phone?

---------- Post added at 09:55 AM ---------- Previous post was at 09:52 AM ----------

No problem buddy, we just want your efforts. And please try shifting up your 551 work to a new space for a while:p
[ZenFone 2 Original Android Development] ycavan:
As far as I know, there's no way to relock the boot loader.
[ZenFone 2 Original Android Development] S#@DY:
[emoji1] still thanks.. Will be waiting for your work for 550
[ZenFone 2 Original Android Development] ycavan:
I uploaded a new fhd ( ZE551 ) kernel with bridge that can be loaded. It must be the last module loaded up, needs other net modules to load up first.
[ZenFone 2 Original Android Development] ycavan:
I added a script to load up the kvm related modules in the 20150710 fhd kernel.

xda doesn't allow uploading sh files, so you will want to download the .txt file and change .txt to .sh

copy the file to /data or wherever and use busybox to make it executable.

ie ( as root )

#busybox +x /data/load_kvm_modules.sh ( one time thing )

then after each reboot:

#/data/load_kvm_modules.sh

will load up the modules in the proper order
[ZenFone 2 Original Android Development] ycavan:
New fhd kernel boot image in the OP.

Changes:

1. added more usb modules

2. kvm related modules should auto-load now

3. Added preliminary init support. On boot, init.aosp.rc should look for /system/bin/sysinit to execute. Was going to use this to load up the modules, but figured I'd just add them to init.common.rc :)

Someone asked about how to flash a boot image, so here goes:

**** IMPORTANT ******

YOU MUST HAVE AN UNLOCKED BOOTLOADER

************************

1. Search for adb & fastboot ( someone on xda has a windows installer for this; look in the stickied post in General :) )

2. download the proper fhd ( ZE551 ) or hd ( ZE550 ) kernel boot image. They end in .img.tar

3. un-tar the boot image

4. Shut down your phone

5. Hold the UP VOLUME and POWER buttons

6. When the phone shakes, let up on the power button and you should enter FASTBOOT

7. Plug in a usb cable from your pc to the phone

8. from your adb/fastboot directory: fastboot flash boot <name of the boot image>.img

9. After the file gets copied over, type: fastboot reboot

10. disconnect your phone & pray that it boots up :)
[ZenFone 2 Original Android Development] TheSSJ:
[MENTION=684728]ycavan[/MENTION]: would you mind sharing your current config? I saw the config from beginning of July, but maybe I am missing an important piece, which hinders my kernel to boot.

Thanks!
[ZenFone 2 Original Android Development] ycavan:
Here's the .config from my latest build ( 2015-07-17 ).
[ZenFone 2 Original Android Development] aziz07:
Great progress, one question though, is it likely that 3D GPU acceleration will be enabled in KVM?

If yes, that would mean we won't need to run windows or linux native; keeping Android intact.
[ZenFone 2 Original Android Development] ycavan:
that's a tricky question to answer...

right now, without an Android port of qemu-kvm, we're relying on linux w/o hardware acceleration.

Most of the linux executables now, like mesa ( opengl ), rely on llvm to provide proper low level support ( like processor instructions, ie sse 4.1 ); but llvm states that our cpu is unknown; which it is. I'm trying to patch llvm to make it accept model 90 ( our cpu ) as a Silvermont model. The issue I'm facing is that my distro ( arch linux x86_64 ) is giving me grief w/ the GOLD linker; which means it also needs to be rebuilt... but that's a part of the original binutils.

After getting llvm to respond correctly, I'm going to be looking into getting libhybris working. Libhybris is a library that can access/use Android libraries. If THAT works, then we could possibly have linux w/ full access to our hardware via the closed-source Android drivers. If you search for sailfish, you'll see that someone has Wayland ( an alternative to X that runs on OpenGL ES ) running on Android hardware. Right now, I think I may have to create a 32 bit chroot since our Android drivers are 32 bit.

Once that works, I think we can look into the current development of the Qemu KVM Virtio 3d driver to supply hardware 3d acceleration to the guest OS... namely Windoze.

Anyway, that's what I've been working on & why I've been so quiet. Between work and constant recompiling, there's not much to report.
[ZenFone 2 Original Android Development] aziz07:
Thanks, I knew about Sailfish os but Android is much better imho I know how to use linux not programming though but I just started reading books in my free time about embedded, kernel and programming interface for linux and android ;)

An Asus representative said here that they are working on a fully x64 Android version, not only the kernel: [MENTION=438582]Tuanies[/MENTION] The OS is on 32-bit for now. We are working on updating it to x86-64 in the future. I do not have a timeline yet, unfortunately.

http://xdaforums.com/zenfone2/help/x64-native-support-3-8gb-limit-t3154052
[ZenFone 2 Original Android Development] Devhux:
Uh oh, I don't know what I've done, but my microSD card is no longer detected.

I flashed the	boot_fhd_2.19_kvm_bridge_20150717.img.tar file using the fastboot flash boot command, and it seemed to work. I then proceeded to install a Linux distro using Linux Deploy, but soon afterwards realized the microSD card wasn't showing up anymore. I'm guessing it was related to flashing the boot image and not something I did in Linux Deploy (AFAIK I didn't do anything there that would point to the SD card).

Hopefully it's just something simple I'm missing........

(EDIT: Fixed......card was formatted as exFAT which I'm guessing was the issue. Formatted as NTFS on my computer and then the phone was able to detect it and format it the way it wanted. Hopefully that's all I need to do.)
[ZenFone 2 Original Android Development] Devhux:
Hmm, getting a lot of proc_auxv. #### files in my Internal Storage folder.... Not sure what's up with that.

Sent from my Golden Zenfone 2
[ZenFone 2 Original Android Development] ycavan:
Odd. Are you installing this kernel over another distro or have any other mods?
[ZenFone 2 Original Android Development] Devhux:
I think that L speed mod was still installed. Uninstalled it, wiped cache, and haven't seen any more files overnight.

Sent from my Golden Zenfone 2
[ZenFone 2 Original Android Development] chyrla:
Hi, it still works ? can i use it with cyanogen mod ? (this one http://xdaforums.com/zenfone2/orig-development/rom-unofficial-cyanogenmod-12-1-nightly-t3164144) or i need back stock ?

---------- Post added at 01:27 PM ---------- Previous post was at 01:09 PM ----------

and can you do it with last source ? 2.22 i think no ?
[ZenFone 2 Original Android Development] ycavan:
Re: cyanogenmod

I don't use cm on my phone, so you would want to ask whomever is supporting cm to add the kvm modules to their build.

Re: latest ota

I haven't seen the kernel source being released yet, so no, I hadn't compiled a new kernel for it.
[ZenFone 2 Original Android Development] ycavan:
Asus finally put out the kernel source for 2.20, so there's a new kernel build now :)

fhd: http://xdaforums.com/attachment.php?attachmentid=3445695&d=1440084732

hd: http://xdaforums.com/attachment.php?attachmentid=3445884&d=1440096710

^-- also in the OP
[ZenFone 2 Original Android Development] theodric:
I was getting error messages flashing the 20150820 fhd kernel to my 551ML with fastboot, so I packaged it up for TWRP. Tested and working, available here if anyone wants it: https://github.com/theodric/zenfone2/blob/master/fhd_20aug.zip?raw=true
[ZenFone 2 Original Android Development] samteeee:
Thanks a lot bro.
[ZenFone 2 Original Android Development] TenchiMasaki:
Is the source code for your modified kernel posted somewhere?
[ZenFone 2 Original Android Development] ycavan:
If you want to compile your own kernel, it's pretty easy. :) it just takes a long time to sync the google android source. follow the Asus readme :)

Here's the .config file that I used: http://xdaforums.com/attachment.php?attachmentid=3414666&d=1437570205

generally, what you'll want to do when new source comes out is to run a quick diff on the .config file here and the generated .config file. Then you can make changes to the generated .config file.

You will also want to make sure you untar the first kernel source, Asus left out components in later kernel source so they won't compile unless you untar them over the first one.
[ZenFone 2 Original Android Development] JuanMnz93:
Can someone help to set good setting in order to reduce the time which my phone open apps and to avoid that the phone close apps when I use another one. For example, I use WhatsApp and Chrome, when I open Bbm and the camera (for example), chrome is closed by the system.
[ZenFone 2 Original Android Development] ycavan:
I compiled the dorimanx/exfat-nofuse module for the latest 2.20 kernel, so if anyone wants to try it out it's in the OP:

http://xdaforums.com/attachment.php?attachmentid=3512184&stc=1&d=1445282789

basically:

1. copy to your phone

2. start a terminal as root

2a. start terminal

2b. su

3. insmod exfat.ko

Let me know if it works for you guys since I primarily use fat32 sd cards.
[ZenFone 2 Original Android Development] MajinkenSword:
Hi [MENTION=684728]ycavan[/MENTION], would it be possible to request kvm as an addon to TheSSJ's kernel?

It would be great if that was possible since I would like to have the benefits of both your kernels.

Thanks for rading this!
[ZenFone 2 Original Android Development] ycavan:
You will need to ask TheSSJ to compile in KVM since it's his kernel :).

I know he did have a version with KVM before, but some of his kernel users complained of a performance hit so he removed it.
[ZenFone 2 Original Android Development] MajinkenSword:
Got it! Thank you ?
[ZenFone 2 Original Android Development] 111gopher:
ext/extfat

Hi,

I tried to install modul exfat.ko via command:

insmod exfat.ko but system notified me about:

insmod: init_module 'exfat.ko' failed (Exec format error) so I cannot use exfat file system.

When I tried partition SD card with ext2/ext4 file system first partion was FAT32 (mmcblk1p1) and second was ext2, ext4 (mmcblk1p2) I cannot mount to linux this file system.

Could somebody help me?

Many thanks.
[ZenFone 2 Original Android Development] shayan4shayan:
HD kernel has FHD dpi!!!

how to fix????
[ZenFone 2 Original Android Development] ShadyGame:
Still working on this?
[ZenFone 2 Original Android Development] thesilence1:
exfat.ko install error

I get the same as gopher. In recovery I get kernel doesn't support requested operation.
[ZenFone 2 Original Android Development] shubhamsinghcool4:
Can i install it on custom ROM?

Please tell me.Is it safe to install it on custom ROM?:confused:
[ZenFone 2 Original Android Development] harpreet.s:
Hi All,

has anybody successfully used framebuffer with linux deploy. If yes please let me know the procedure. Thanks.
[ZenFone 2 Original Android Development] ycavan:
Hey guys, I just wanted to drop in & say that I've been on a hiatus while my wife & I sell our house. All of my development equipment is in storage and honestly? Asus hasn't done anything that's helping us get much further. I was hoping that Asus would bring out the 256 GB units that were announced in Brazil last year & that would have allowed me to completely move development over to the phone since Google made Android development a huge pain in the butt w/ the 40+ GB library downloads.

I have been keeping tabs on some major improvements in the Virtualization arena, tho. :) Firstly, it looks like Qemu 2.5 has taken a major step forward in supporting 3d in their VMs. There's a "gotcha" though & that requires the new 3d virtio display device that exists in Kernel version 4.4.

Our Zenfone 2's are using Kernel 3.10 right now, so it will require backporting what the ZF2 needs from the 3.10 kernel -> 4.4 kernel as well as a prayer or 2 that the proprietary drivers from 3.10 work w/ 4.4. So if anyone is adventurous enough, I say git'r dun! It will probably be a very very long time before I can get my development gear out of storage since we're living with family until we find the right house.
[ZenFone 2 Original Android Development] marobo:
Is there a chance of a KVM enabled kernel for the new official Android 6 version (v4.21.40.134) for the ZE551ML?

I'm very much interested in updating my phone but I don't want to loose the capability of using Windows 7/8.1/10 on the ZE551ML.
[ZenFone 2 Original Android Development] gargwlas:
works with Beanstalk 6.18 ???
[ZenFone 2 Original Android Development] krasCGQ:
Only works with stock based ROMs...
[ZenFone 2 Original Android Development] android_intuitive:
As long as the kernel has the kvm modules built in,it should works
[ZenFone 2 Original Android Development] sfrsh:
ycavan're dead
[ZenFone 2 Original Android Development] seemabakhter13:
Request

Sir, please make this kernel for moto power e3 dual sim or coolpad note 3
[ZenFone 2 Original Android Development] mannos86:
So, anyone tried this on zx551ML? How would i go about trying this? Has anyone made it work (if yes how)?
[ZenFone 2 Original Android Development] Hungarian888:
Have you tried? I'm curious too. :D
[ZenFone 2 Original Android Development] Sever00:
[MENTION=318577]Asus[/MENTION]_Z00D u0_a139:/ $ SU

ASUS_Z00D root@:/ # insmod /lib/modules/KVM.not

insmod: function init_module '/LB/Module/KVM.Ko failed (file exists)

255 / root@ASUS_Z00D:/ # ?????????
[ZenFone 2 Original Android Development] shangqiandashen:
Have you tried? I'm want too.

---------- Post added at 04:56 PM ---------- Previous post was at 04:50 PM ----------

Sir, please make this kernel forAsus ZenFone Zoom,They are all based on z3580.
[Verizon Samsung Galaxy S 4] klabit87:
I have been looking for the dev edition OC1 kernel.

Has anybody gotten the OC1 upgrade on dev edition?

If so could you share the upgrade package with me or at least the kernel.

If you are running OC1 but do not have the package download or link, pm me and I can provide instructions to copy it from the device.

Thanks.
[Verizon Samsung Galaxy S 4] klabit87:
Nobody has it?

I'm still looking.

I believe the firmware package should be I545OYUGOC1 or along those lines.

Doesn't seem to be availabile anywhere.

I will be emailing Samsung soon to request it from them also.
[7" Kindle Fire HD Q&A, Help & Troubleshooting] witneyl@yahoo.com:
Hello,

I hope someone can help me resolve the issue i face with my kindle fire hd 7

The device was not rooted, and no parental password was set. The only protection was set is screen pin

The device was unused for several months, so the battery got completely discharged. Now I charged the device and booted it. And all I get is a big lock on the screen, a line where i can put the code, and it says "Enter your boot password", and the keyboard below it.

Needless to say I do not have a boot password. I tried resolving the issue following Amazon instructions to get to factory reset by entering the code 5 times, but i do not get a factory reset prompt.

Tried to get into factory reset boot by pressing Volume Down and Power buttons, it did not work at first. But at the end I got a screen with an triangle and exclamation mark in it, and a message saying the device is unable to boot. There were two options: Reboot device, and reset to factory settings. I selected the reset to factory settings, and the device gave me a second screen with bunch of No and one Yes

I selected Yes, and pressed Power button. So the device was rebooting with a message KindleFire and a line under it for about 5 minutes, and at the end it went back to the huge Lock screen with the prompt to enter boot password.

Amazon support were completely helpless. I spoke with 3 tech people there, neither know what to do. They keeps saying Kindle does not have boot password. So I am quite lost here and will appreciate any help

Thanks
[7" Kindle Fire HD Q&A, Help & Troubleshooting] witneyl@yahoo.com:
I spoke with Amazon again, now they are claiming my Kindle is rooted, and that it is asking for boot password because a different BIOS was installed. I don't see how it is possible, there were only a few books on that kindle and it was not even connected to the network. I get the feeling Amazon has no clue what is going on and just want to get rid of me and my pesky issue.

I'd like to entertain the possibility of the device being rooted. Is it possible to overload a default Kindle version somehow?
[7" Kindle Fire HD Q&A, Help & Troubleshooting] alecsr:
In order for your device to work, you must perform a factory reset from recovery mode. It is a little bit tricky, but it will work. So, let's get started:

In order to get into recovery mode, you need to do the following keys combinations:

Push Power button + volume down key until you see the kindle logo. As soon as it appears, take your hand of the power butoon and quickly push twice the volume down button. After that, hold the volume down button pushed and your device will boot in recovery mode. Please take notice, that you need to do these steps fairly quickly in order for it to work. Then you need to select factory reset and yes. That's all.
[7" Kindle Fire HD Q&A, Help & Troubleshooting] ronnieronnie:
Didn't work for me, still asking for boot password.

XT1585
[7" Kindle Fire HD Q&A, Help & Troubleshooting] kamcel:
any luck?

has anyone managed to fix this issue as i have a kindle fire 7 hd 2013 soho with the same issue, have a fastboot cable but havent had any joy fixing it, have tried firerooter and a few other commands.