Android :: Kernel Compile And Test With Emulator
Nov 27, 2009
Has anyone successfully compiled the android kernel and tested it in the Android emulator, and if so is there anything that special that needs to be done? Documentation for the SDK is excellent, however documentation for compiling the kernel and setting up a custom machine in the emulator has been hard for me to find.
View 5 Replies
Oct 9, 2011
I tried to compile Android kernel. There are a lot of errors in below log. I don’t know the cause of it.
Quote:
maxim@maxim:~/WORKING_DIRECTORY$ . build/envsetup.sh
including device/htc/passion/vendorsetup.sh
including device/samsung/crespo/vendorsetup.sh
maxim@maxim:~/WORKING_DIRECTORY$ lunch full-eng
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=2.3.5
TARGET_PRODUCT=full
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=false
[code].....
I tried to change
Quote:
ifneq ($(filter $(LOCAL_MODULE_TAGS), optional),)
to
Quote:
ifneq ($(filter $(LOCAL_MODULE_TAGS), user),)
in build/core/base_rules.mk and had other errors.
Quote:
build/core/base_rules.mk:105: *** Module name: hostapd contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: hostapd_cli contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: nt_password_hash contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: hlr_auc_gw contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: Stk contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:146: user tag on app Stk at packages/apps/Stk – add your app to core.mk instead
build/core/base_rules.mk:105: *** Module name: ip contains invalid LOCAL_MODULE_TAGS
[code].....
What is LOCAL_MODULE_TAGS? Why are they invalid?
View 1 Replies
View Related
Nov 18, 2010
Can an android project in Eclipse be configured so that the built-in builders read from an alternative source directory? ie. "test/src" instead of "src"? and possibly even "test/res" instead of "res"? (It appears that setting dirs in the property files will only affect ant and not the built-in builders)
View 1 Replies
View Related
Jun 21, 2013
I am needing to make a kernel for a certain device. There aren't any source codes available for that device but there are for multiple clones out there. I am running Linux Mint Debian edition and i cant find a guide for compiling a kernel on debian.
View 1 Replies
View Related
Jul 30, 2013
I use my phone Huawei Y210 and found the kernel source provided by Huawei. compile the kernel source.This is the link kernel: URL....
View 1 Replies
View Related
Feb 25, 2012
I have built many kernels on the wildfire s for cm7 but I noticed that ksgl was not getting compiled so I added it to the build and it compiles but at the end of compiling. URL...
View 2 Replies
View Related
Jun 10, 2012
I'm trying to compile kernel for A10 Aurora i have a couple of questions.I'm using this guide for make a custom kernel.Compiled allwinner-v3.0-android-v2.Btw my laptop is running ubuntu 32 bit 2 cores 30gb hdd on VMware workstation.
I made zImage, uImage and modules without getting any errors but how to flash them to the device?Using adb? making boot.img making cwm zip how to pack them?
Code:
OBJCOPY arch/arm/boot/Image
Kernel: arch/arm/boot/Image is ready[code]....
View 4 Replies
View Related
Mar 9, 2012
Last week, I played around with getting a custom recovery built for INQ Cloud Touch..
After compiling - flashing recompiling re-flashing for almost a week and on the verge of giving up ...
I realized, searched and found flash_image ... come to find out custom compile of recovery was fine, fastboot did not like my device and wasn't flashing it properly.
So flash_image got the custom recovery working as suppose to, able to backup/restore ... Flash roms.. however there are no roms.. best i could do was try roms from devices close to this one, with no luck!
So i decided i would try my hand at making a 2.3.7 gingerbread rom. Of course stock is froyo 2.2.1 and before i can make the rom.. i need a kernel for gingerbread. So I got the cm-kernel source using this guide:
[URL] .....
[EDIT]
pulled my .config file using both
/proc/config.tgz
and the included script to pull it from the boot.img
[/EDIT]
Now, i been trying to get kernel compiled for the last 5 days.. and like i said, no lack of searching and reading... Had first error, forgot what it was now, but i got it fixed and compile went on.
Code:
LD .tmp_vmlinux1
arm-eabi-ld: no machine record defined
arm-eabi-ld: no machine record defined
arch/arm/mach-msm/built-in.o: In function `parse_tag_msm_partition':
[Code] ......
I have a notepad full of things i have enabled/disabled and restored to original trying to find what is missing or shouldn't be there!
View 5 Replies
View Related
Jul 27, 2013
I am trying to compile a kernel for LGE-P690 from CM ICS source but i don't have the device in my hand i searched all over the net for vendor files but i was unsuccessful in finding vendor files for ics but i found one for gingerbread so is there anyway i could perform ./extract-files.sh without device or can i convert gingerbread vendor files to ics if so how elaborate.
View 6 Replies
View Related
Oct 10, 2013
Can Compile the kernel for s5302 from ICS code...And Make an ICS rom for it?
View 2 Replies
View Related
Mar 29, 2014
I am following this right here [URL] .... And i keep getting command not found even though i am sure its right.
Code:
~/AlienKernel3.0-alien-4 $ export CROSS_COMPILE=/home/user/ndk/android-ndk-r9c/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/arm-linux-androideabi-
Code:
sudo make clean && sudo make mrproper
Code:
make: /home/dm47021/Android/toolchains/arm-unknown-linux-gnueabi-linaro_4.8.2-2013.08/bin/arm-unknown-linux-gnueabi-gcc: Command not found
/bin/bash: /scripts/gcc-version.sh: No such file or directory
[Code] ....
View 1 Replies
View Related
Jul 25, 2012
i'm trying to use my custom kernel on avd, when i launch
Code:
./emulator -avd sgsp40 -kernel /home/rmbq/zImage -show-kernel -verbose
the output is:
Code:
emulator: found SDK root at /home/rmbq/android-sdk-linux
emulator: Android virtual device file at: /home/rmbq/.android/avd/sgsp40.ini
emulator: virtual device content at /home/rmbq/.android/avd/sgsp40.avd
emulator: virtual device config file: /home/rmbq/.android/avd/sgsp40.avd/config.ini
emulator: using core hw config path: /home/rmbq/.android/avd/sgsp40.avd/hardware-qemu.ini
emulator: Found AVD target API level: 15
emulator: found skin 'WVGA800' in directory: /home/rmbq/android-sdk-linux/platforms/android-15/skins
emulator: autoconfig: -skin WVGA800
[code]....
there is this line:
Code:
emulator: Could not open file: (null)/system/build.prop: No such file or directory
which appear only when i use a custom kernel.
View 1 Replies
View Related
Mar 4, 2010
I want to test a compass app on the emulator. Is this possible or do i have to use a real device. Also I do not want to use gps.
View 2 Replies
View Related
Feb 10, 2010
My web application runs in localhost server. In my emulator the URL is http://localhost:8080/myaction
Is it possible to retrieve the informaion from the server?
View 1 Replies
View Related
Jan 27, 2010
Was wondering if there's any way to test Gestures (eg: Fling) on the Emulator.
I saw a project on google code that lets people simulate the accelerometer, but none of Gestures.
View 2 Replies
View Related
May 25, 2010
Is it possible to test the new Backup api in the emulator?
I wrote a simple BackupAgent, but it never seems to be called...
http://developer.android.com/reference/android/app/backup/package-sum...
View 3 Replies
View Related
Apr 15, 2012
i have: CMW recovery, Kernel source code on local computer, full repo cm source + toolchains.
How to add my device tree, kernel source code to CM source and compile CM7 ROm?
View 3 Replies
View Related
May 1, 2010
I make a simple call to Vibrator.vibrate(long time);, but in the logcat I don't see anything related to it. How can I test if the vibration works using the emulator?
View 3 Replies
View Related
Jun 9, 2009
I'm using the 1.5 SDK. I read in 1.0 that rotating the device would cause onCreate() to be called in our apps (possibly recreating the entire app?). Is there a way to test rotating the device in the emulator? I just want to see what happens, I don't have a device to test this. Will the behavior be the same for 1.5 as it was in 1.0?
View 3 Replies
View Related
Oct 7, 2010
I'm trying to use multi-touch in an Android 2.0 app. How can I simulate this with an emulator using Eclipse? I can only seem to get the mouse to do one touch at a time.
View 2 Replies
View Related
Mar 23, 2010
I am developing an application which requires to add Calendar event. I have written the code for inserting event to the calendar. But whenever i run my application, everytime i get error that "Fail to find provider info for Calendar" and it also throws me NullPointerException error. So, what it means and i found that emulator doesn't provide Calendar application in-built.I think if the Android Emulator doesn't have Calender API, so, naturally, it will not have any database URI in the emulator whereas the Contact has URI --"content://contacts/people". I also found the URI for Calendar as "content://calendar/calendars" but it doesn't work and it means that it gives me error cause of missing Calendar application.Can anybody clarify me, with suggestions regarding Calendar Event?
View 4 Replies
View Related
Oct 17, 2010
I have made a pedometer application. i wanted to know how to test this application on an emulator as i am not having an android device
View 1 Replies
View Related
Jan 17, 2010
I recently discovered that the Android 2.0 SDK supports multitouch through new functions in the MotionEvent class. You can specify a pointer index when retrieving touch properties, and in cases where multiple fingers are on the screen there should be multiple pointers provided.
Unfortunately, I only have a G1 to test on and it's running Android 1.5 and not 2.0.
Is there any way to test multitouch without a 2.0 device? In the iPhone simulator, you can hold down option and shift option to perform two fingered pinch and two fingered drag, respectively. Is there any similar functionality in the Android emulator? Is it something I should expect to see in the future, or should I just suck it up and buy a new test phone?
View 5 Replies
View Related
Feb 2, 2010
I wanted to test a sample Bluetooth application in android emulator, then i come to know that the android emulator does not have bluetooth support.I read some thing connect external USB Bluetooth dongle to the Mechine and bridge that dongle to android emulator.But they didn't provided the steps.Now i plugged the USB Bluetooth dongle to my System and i do not how to bridge that with android emulator.Is there any way to do this?.
View 5 Replies
View Related
Jun 28, 2010
I don't have an Android phone now, but I really want to test Multi-touch or Shake feature. How can I do this on Emulator?
View 1 Replies
View Related
Jul 6, 2010
I am playing around with C2DM service. What I am concerned about is that I cannot test my device-side application from Android 2.2 emulator. The application was built more or less according to http://code.google.com/android/c2dm/index.html doc, but when register intent is sent from application, Logcat shows this: Unable to start service Intent { act=com.google.android.c2dm.intent.REGISTER (has extras) }: not found I also tried to run chrometophone and jumpnote applications and the result is the same when registring device. Any ideas? Is it possible to test C2DM service from Android emulator?
View 9 Replies
View Related
Oct 26, 2010
Let's say I want to perform a quick HTTP post to a website within my android app. If I were to set up the http client and send the post all in the onCreate method of the main screen (inside the UI thread) just for testing purposes, what would I use to quickly see what the response is to the post? I tried something quick and dirty below inside the onCreate method when the app first opens and nothing really happens, is there something more I need to do/obviously my toast idea is just bad.
HttpClient httpClient = new DefaultHttpClient();
HttpPost post = new HttpPost("http://forecast.weather.gov/zipcity.php?inputstring=04419");
HttpResponse httpResp;
try {
httpResp = httpClient.execute(post);
StatusLine status = httpResp.getStatusLine();
Toast.makeText(getApplicationContext(), (CharSequence) status, Toast.LENGTH_SHORT).show();
} catch (ClientProtocolException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();}
View 1 Replies
View Related
Nov 4, 2010
Problem Event Name: APPCRASH
Application Name: emulator.exe
Application Version: 0.0.0.0
Application Timestamp: 4c79ab54
Fault Module Name: ntdll.dll
Fault Module Version: 6.1.7600.16559
Fault Module Timestamp: 4ba9b21e
Exception Code: c0000005...................
i am running in eclipse gallileo for the 2.0 sdk, though i have tried others
View 1 Replies
View Related
Dec 1, 2009
My application makes use of cell tower info, specifically the CID for GSM. I'm able to test this on my G1, but I don't have access to a Droid phone to test the same functionality, baseStationId, for CDMA. How can I test this in the emulator so that I can support Droid phones?
View 2 Replies
View Related
May 13, 2010
Can multitouch events be tested on Android Emulator ? Or is there any way to test this without actual device ? I am using 2.0 sdk and want to test zoom-in zoom-out on by two fingers.
Is there a way out ?
View 4 Replies
View Related