Emulator Kernel Version Missing (Pic Provided) - General Questions and Answers

Trying to build my own AOSP ROM and I keep getting stuck on emulator unable to find the kernel version, though the file is there.
I am using Hyper-V VM with Ubuntu V20 installed and the VHD is exactly that, a .vhd file extension for the virtual hard drive.
I just can not seem to resolve the problem on the missing kernel, also have supplied a pic showing exactly what it says after the build is finished and then I try and run emulator.
Any help or info, links on the matter would be much appreciated and thank you for taking the time to help out.
I have also noticed I can not use "emulator -list-avds" nothing happens. Just exits and terminal is ready for user input again.
So far I did a repo sync again and then a m -checkbuild and just waiting for it to finish to try emulator again
Update: Decided to start from scratch
Changes that I have made.
Using Ubuntu 18.04 for O.S
Switched from M.S Hyper-V to Oracle Virtual-Box (V.B has more features then Hyper-V and is better in performance because of it.).
Virtual HDD is set to .VHD but is on Sata and not IDE now (Virtual-Box only allows it).
Made the VHD a fixed drive instead of dynamic for better performance (Max size of 512GB)
Dedicated 32GB of ram to VM.
Allowed up to 6 cores on a 12 core processor.
might experiment getting Oracle JDK installed instead of using openjdk, due to having issues with it.
UPDATE_1
Fresh build on 18.04 same issues as old build. emulator, avd and android. all not working.
I might have missed a package to download or something or maybe java still is not working. Using openjdk 11 at the moment. I am running out of ideas as to why i can not get it working.
Update_2
Looks like the reason emulator is not working is due to me not installing SDK, I am not using the IDE so I think I need the command-line & Platform tools installed. got to work out how to install it now.
UPDATE_3
SDK from what I know is installed. Now I am getting an output file is missing, but build completed with no issues. Please help, new image also supplied.

Related

VMWare image of the source building environment

Hi all, I'm sorry if this has already been asked, i looked for it using Google and the search forum option and while i found this http://forum.xda-developers.com/showthread.php?t=396782&page=145, (using this: http://www.google.com/cse?cx=000825...ource&sa=Search&cof=FORID:0&ie=utf-8&oe=utf-8) it didnt really help me because it's not exactly what i'm looking for
I want to be able to change some bits of code on the os and see how that affects the device (for example, i'd like to change the order of options in the menus and stuff like that) just to get to know the development environment better.
however, I'm using Microsoft windows (vista x64) and cannot build it on this env (according to: http://source.android.com/download --> "To build the Android source files, you will need to use Linux or Mac OS. Building under Windows is not currently supported.").
therefore i was wondering, did anybody make a vmware image that is ready to use that contains the environment and the sources that will only need a source update and can be built immediately after for noobs like me?
I'm sure I'm not the only one running a windows machine and so i guess somebody has already made one for himself, I'm asking if you could maybe share it somehow...
Thanks
E.
Clarification: I'm not talking about the SDK building but rather the actual OS source code so that i can re-build and put on my phone
note: tried this: http://www.koushikdutta.com/2008/12/building-android-source-and-deploying.html, didn't work, but it gives an idea of what I'm looking for...
did u try running a virtualbox with linux? or maybe a macOS off a usb?
vista x64
for windows, have you tried cygwin?
I've installed it just fine in ubuntu in vmware.
I'd about 8 gb. quite hard to make an image out of it.

Can uinput be compiled for the g1 debain build? to connect a Wiimote?

Hey everyone,
I've been trying to connect my wiimote in debian. Im new to linux, im kinda putting all the pieces together as i go. wminput and all its corresponding packages seemed to install just fine with 'apt-get install wminput'.
But when I run wminput I get the error "unable to open uinput"
so googled, and managed to find uinput.ko and some general instructions on installing it.
I loaded it into /lib/modules/2.6.29.6-cm41/ and ran 'insmod uinput.ko' and i get the error 'Invalid module format' which im assuming is because it was compiled for an x86 system. modprobe displays a similar error.
I also dont understand the "cm41" in the path /lib/modules/2.6.29.6-cm41/, is that short for CyanogenMod, am I placing this module in my android Filesystem?
Are there any linux guru's around that could compile uinput.c for the g1 debian build? Or simply tell me that im way off track and there are bigger problems involved with getting this to work.
Also, if wminput did function. Does anyone know if it would send button presses to android while running in the background?
uinput.c
http://abstrakraft.org/cwiid/browser/trunk/wminput/uinput.c?format=txt
wminput
http://packages.debian.org/lenny/wminput
wmgui which i believe uses the same library as wminput has been made to work through ssh
http://www.lukedupin.com/projects/show?project=g1_wii -
There is also WMD for connecting to wiimotes but it requires uinput as well (i think).
http://www.circuitdb.com/articles/7/3 -
Ive been reading http://www.saurik.com/id/10 and it seems that this modules really needs to be installed to Android? And then I will be able to access this module from debian which is running on top on android? Can anyone confirm that?
I extracted the config file from my phone at /proc/config.gz and it has the line # CONFIG_INPUT_UINPUT is not set. some googling brings me here http://lxr.linux.no/#linux+v2.6.31/drivers/input/misc/Kconfig
206 config INPUT_UINPUT
207 tristate "User level driver support"
208 help
209 Say Y here if you want to support user level drivers for input
210 subsystem accessible under char device 10:223 - /dev/input/uinput.
211
212 To compile this driver as a module, choose M here: the
213 module will be called uinput.
This all leads me to believe that this module will work on the G1. Will Any Devs PLEASE compile this for me. If you think it would work properly that is.
I just dont have the skills to compile it myself yet. Ive been reading alot on how to compile the kernel and kernel modules for the G1, I setup Ubuntu, and setup my environment and installed the android source code. I was working off this link http://andblogs.net/2008/12/compiling-your-own-g1-kernel-modules/ but i dont understand how i get the kernel source . I have sooo much reading todo before I get all this. Any recommended links?

[Q] sdk tools for xp

is there a way to install the sdk phone tools on xp? I have the 6.1v and visual studios 2010. But when i try to install it says i have to have win7 or vista, and i cant put win7 on machine cause it only has 128m ram. I have a patch file that is suppose to let ya install but haven figured out how to yet.
There are ways to get it installed but the emulator requires Directx 10 so that's not going to work. Without the emulator all you can do is write and compile code but not test to see if it works or not. Not very useful.
XP barely runs on 128mb of RAM so I imagine Visual Studio would be absolutely miserable to use if usable at all.
If you wanna develop for WP7 I guess its safe to say it time for an upgrade.
i would say so as well. even a netbook has more capabilities than that
Im not much of a developer in some ways so as for now all im wanting to do is use the toms installer or the reg sdk deployment tool witch i have but when i try to launch program i get this error:
Could not load file 'Microsoft Smart Device.Connectivity,10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its
dependencies. The system cannot find the file specified.
Then when i try to install the Microsoft XNA Game Studio 4.0 windows phone from the WPDT_RTM_en_iso
i get this error: Microsoft xna game studio4.0 phone ex require visual 2010 or WPDT. install the required app and then relaunch setup. " witch i have the visual studio 2010 installed"
and i have a win7 netbook but have managed to have a kid that spilled tea on it so am trying to figure out the way to do this untill
i can afford to get another netbook.
Thanks for the help and replies guys, very appriciated!!
Ok so I got the xna game studio 4 to install but still getting the phone device connectivity error, is there something I can download to get by this and use the deployment
guess no solution huh
i don't believe so. the way i did it was to use a virtual machine so i could get the phone emulator working on an xp machine (virtual machine has windows 7 on it). but you don't have enough ram for that. you need at least 1.5gb dedicated to the virtual machine alone.
You can try this solution here http://forum.xda-developers.com/showpost.php?p=9618980&postcount=81. I just couldn't get it to install still as I kept getting an error saying could not install the following component .NET Framework 4 Multi-Targeting Pack.
i finally found a iso file and downloaded it then opened up the baseline.dat file and edited it according to the patch settings and everything works just like it does on win7 netbook, just wanted to see if it was possible and it is!
Thanks for the replies.
Could you share that info? Ive been dying to get SDK tools on my XP... Thanks
jasontac said:
i finally found a iso file and downloaded it then opened up the baseline.dat file and edited it according to the patch settings and everything works just like it does on win7 netbook, just wanted to see if it was possible and it is!
Thanks for the replies.
Click to expand...
Click to collapse
Can you please share that? I have 4 XP computers at home and neither of them can run it. It would be great as I need the SDK to run Chevron unlocker! Thanks!
Link pleaseee
I so desperately need this also
for those that want the tools on windows xp, here you go: http://blogs.msdn.com/b/astebner/archive/2010/05/02/10005980.aspx
I finally got it to install on XP!
Here's what I did,
Download the .iso file (it's at the bottom of the page) :
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=04704acf-a63a-4f97-952c-8b51b34b00ce
After, make a new folder on your desktop and extract the ".iso" file into the folder.
Next, I grabbed the ".zip" file from here, : http://forum.xda-developers.com/showpost.php?p=9618980&postcount=81
Take the baseline.dat from the .zip file and replace it in the one with the extracted .iso files. Then just run setup.exe from the file. It should work! But make sure you have about 3 gb free from your hard drive. And emulator doesn't work, but I'm sure its fine if your not a developer.
Remember to hit the thanks button if it worked for you!

Android Kitchen thread CLOSED

I just went to the android kitchen thread to see if there have been any updates to accommodate java 7 and the dev has closed the thread
Any one know how to get the kitchen to recognize java 7, it still is looking for java in the jre6 folder and that isn't there anymore. I have even done a fresh install of cygwin after installing java 7 and it still didn't automatically recognize the new version.
Hopefully dsixda doesn't take too long a break but I am sure it is well deserved, it is a priceless tool.
You can have more than one version of java installed on your system you know. Java 7 isn't going to just magically improve anything for you really unless you're a developer.
True but didn't know if it was an fairly easy change to a script or something to get it to check/recognize the new location. Before it would let me get to the "building a rom from working folder" portion before it would give me a message about java, now it won't even start the kitchen saying it can't find java version.
I wouldn't consider myself a dev by any means but I build roms for my own use and to just try different things out to see how things work/change things, basically to learn what does what.
Between this issue and fact that I can't get pc to recognize my phone as a storage device anymore...I am lost.
Symlink java7 to the old location for java6.
adrynalyne said:
Symlink java7 to the old location for java6.
Click to expand...
Click to collapse
Just to add to what adrynalyne said (since it's the easiest way), that would be using the "ln" command on linux/unix/cygwin or mklink on windows.
Thanks for idea, tried mklink but in process realized I had x86 version of java6 and x64 of java7. So I tried just installing x86 version of java7 and opened up kitchen and was able to create output .zip from my current working folder
Now if I could just get pc to recognize phone properly... then maybe I think I will avoid updates of software for awhile.

[Resolved] [Q] How to connect android device to Oracle VM?

Hi,
After having had a gazillion of frustrations while attempting to add Ubuntu 12.04 to my PC, I had enough of the endless chain of problems to reach the point of installing the requirements for ADT.
So I thought I might be able to go with a virtual machine. I have my environment (Ubuntu 12.04, ADT and its requirements) installed and working on Oracle VM (with extensions installed).
Whatever I try with the USB settings, I'm unable to get either my Nexus 7 or my Asus TF300T to work on the VM.
I tried adding a USB filter with the correct IDs, but that didn't add either device to my VM.
I ran out of ideas to try. I really want to learn more about developing for Android, but it seems I can't get the devices to work.
Rhian said:
Hi,
After having had a gazillion of frustrations while attempting to add Ubuntu 12.04 to my PC, I had enough of the endless chain of problems to reach the point of installing the requirements for ADT.
So I thought I might be able to go with a virtual machine. I have my environment (Ubuntu 12.04, ADT and its requirements) installed and working on Oracle VM (with extensions installed).
Whatever I try with the USB settings, I'm unable to get either my Nexus 7 or my Asus TF300T to work on the VM.
I tried adding a USB filter with the correct IDs, but that didn't add either device to my VM.
I ran out of ideas to try. I really want to learn more about developing for Android, but it seems I can't get the devices to work.
Click to expand...
Click to collapse
Well i had this problem before search on google how to add adb device to vm and you will find a guide frogot wich site i will do sone search and report back
Sent from my GT-I9500 using xda premium
S.a.M.e.R_d said:
how to add adb device to vm and you will find a guide
Click to expand...
Click to collapse
Thanks, with some trial and error I got it working.
In short:
On the host run adb devices to start the deamon, it listens on port 5037, so with FreeSSHd on my windows host I could enable an ssh connection from my VM client using:
autossh -M5037 -N -f -R 5037:localhost:5037 10.0.2.2
Then my adb devices lists my hosted device.
On to the next challenges...

Categories

Resources