Cannot emulate Sony AOSP ROM to test - Xperia Z3 Q&A, Help & Troubleshooting

Hello guys,
I've sucessfully built the AOSP for my Z3 with this guide:
http://developer.sonymobile.com/kno...aosp-marshmallow-for-unlocked-xperia-devices/
Now I've tried to test the ROM with the emulator command, but theres an error:
Code:
emulator: ERROR: Can't find 'Linux version ' string in kernel image file: /run/media/vendette/FANTEC/android/out/target/product/leo/kernel-qemu
Any thoughts?

Vendette said:
Hello guys,
I've sucessfully built the AOSP for my Z3 with this guide:
http://developer.sonymobile.com/kno...aosp-marshmallow-for-unlocked-xperia-devices/
Now I've tried to test the ROM with the emulator command, but theres an error:
Code:
emulator: ERROR: Can't find 'Linux version ' string in kernel image file: /run/media/vendette/FANTEC/android/out/target/product/leo/kernel-qemu
Any thoughts?
Click to expand...
Click to collapse
Hi, I am kind of stuck at the same place now. Have you tried to solve the issue?

Related

running emulator

I am hoping a developer can get back to me on this or someone willing to help.
I downloaded the android source code and successfully compiled (no editing to code was made yet) i compiled as emulator eng (full-eng) but when i try to run the emulator command
$ emulator
i get emulator: ERROR: No initial system image for this configuration!
I put verbose on to see what happening and here is the log
[email protected]:~/WORKING_DIRECTORY$ emulator -verbose
emulator: found Android build root: /home/user/WORKING_DIRECTORY
emulator: found Android build out: /home/user/WORKING_DIRECTORY/out/target/product/generic
emulator: Found target ABI=armeabi-v7a, architecture=arm
emulator: Found target API level: 15
emulator: using core hw config path: /home/user/WORKING_DIRECTORY/out/target/product/generic/hardware-qemu.ini
emulator: found skin-specific hardware.ini: /home/user/WORKING_DIRECTORY/development/tools/emulator/skins/HVGA/hardware.ini
emulator: autoconfig: -skin HVGA
emulator: autoconfig: -skindir /home/user/WORKING_DIRECTORY/development/tools/emulator/skins
emulator: found skin-specific hardware.ini: /home/user/WORKING_DIRECTORY/development/tools/emulator/skins/HVGA/hardware.ini
emulator: keyset loaded from: /home/user/.android/default.keyset
emulator: trying to load skin file '/home/user/WORKING_DIRECTORY/development/tools/emulator/skins/HVGA/layout'
emulator: skin network speed: 'full'
emulator: skin network delay: 'none'
emulator: Found target ABI=armeabi-v7a
emulator: autoconfig: -kernel /home/user/WORKING_DIRECTORY/prebuilts/qemu-kernel/arm/kernel-qemu-armv7
emulator: autoconfig: -ramdisk /home/user/WORKING_DIRECTORY/out/target/product/generic/ramdisk.img
emulator: autoconfig: -sysdir /home/user/WORKING_DIRECTORY/out/target/product/generic
emulator: ERROR: No initial system image for this configuration!
can someone tell me how to fix it, and why im getting this error?
What device are you trying to emulate?
Im trying to emulate a galaxy nexus before i can practice on my g2x, so i simple downloaded the code from git and build the code and trying to run emulator command
Do you have a nexus image? I'm only guessing, but maybe you're missing the ROM/right root directory?
Sorry i'm afraid i still dont understand, these images here are used to recover a phone to stock upon flashing custom rom, and can be used with emulator along source code , the only pre built image was supposed to be the kernel, arn't all other images suppose to come by compiling the code? Do you mind elaborating on what i need to get emulator working with compiled source according to source.android.com i was just supposed to type emulator
Well which ROM are you trying to emulate?
Do you have a ROM you're trying to use?

(CM11) for Huawei g6 u10/u251/y530/g630

Hi
this is g630 cm11 which is working on g6 u10/u251 and y530
current bugs:
1)wifi
2)No sound in calls
3)camera
4)sensors
How to install:
1)Use twrp and wipe cache/dalvick/data/system/cust
2)install the rom.zip file
download:
https://mega.co.nz/#!kdAzhZqB!xQwRr4qsgYvh0BB7Zf76M9U0NZ5e1b_Wno0dcKVWAGA
Any help is appreciated to fix the current bugs.
All credits goes to ELYGOMEZ for the g630 tree and kernel
Source Code:
https://github.com/messi2050
Here is fix for wifi. Is an post her on xda
working on CM11.
1.) First you install CM11[need to have clockworkmod(CWM)]
2.)After you installed and booted CM11 open the menu and open terminal.
3.)Then in terminal write first and press "↲":
Code:
su -
4.)After you got root permission in Terminal then write this line in Terminal and press "↲":
Code:
mount -o rw,remount /system
5.)After inputed that write this in terminal and press "↲":
Code:
cd /system/etc/firmware/wlan/prima
6.)And after that add this last line and press "↲":
Code:
ln -s WCNSS_hw_wlan_nv.bin WCNSS_qcom_wlan_nv.bin
After doing that wifi should be enabled..
ciubi93 said:
Here is fix for wifi. Is an post her on xda
working on CM11.
1.) First you install CM11[need to have clockworkmod(CWM)]
2.)After you installed and booted CM11 open the menu and open terminal.
3.)Then in terminal write first and press "↲":
Code:
su -
4.)After you got root permission in Terminal then write this line in Terminal and press "↲":
Code:
mount -o rw,remount /system
5.)After inputed that write this in terminal and press "↲":
Code:
cd /system/etc/firmware/wlan/prima
6.)And after that add this last line and press "↲":
Code:
ln -s WCNSS_hw_wlan_nv.bin WCNSS_qcom_wlan_nv.bin
After doing that wifi should be enabled..
Click to expand...
Click to collapse
It seems that this fix is not working on my build
messi2050 said:
It seems that this fix is not working on my build
Click to expand...
Click to collapse
PieroV founded that fix post writted by me that one for Y530 probably u need write a correct link for G6
Lycris11 said:
PieroV founded that fix post writted by me that one for Y530 probably u need write a correct link for G6
Click to expand...
Click to collapse
i abandoned this project and i'm trying to port cm12 lollipop now
where can i find twrp for g6-u10? and how to install it
messi2050 said:
Hi
this is g630 cm11 which is working on g6 u10/u251 and y530
current bugs:
1)wifi
2)No sound in calls
3)camera
4)sensors
How to install:
1)Use twrp and wipe cache/dalvick/data/system/cust
2)install the rom.zip file
download:
https://mega.co.nz/#!kdAzhZqB!xQwRr4qsgYvh0BB7Zf76M9U0NZ5e1b_Wno0dcKVWAGA
Any help is appreciated to fix the current bugs.
All credits goes to ELYGOMEZ for the g630 tree and kernel
Sources: https://github.com/AscendG630-DEV
if you like my work and want to encourage me to continue make a donate at payza/google wallet for [email protected]
Click to expand...
Click to collapse
Hi I'm Efran, author of the kernel Soulfire for huawei Y530.
I intend to continue the proyect of CM11 with sources you leave, but kernel you use?
you did some modification to CM11 was dem caf-legacy?
ciubi93 said:
Here is fix for wifi. Is an post her on xda
working on CM11.
1.) First you install CM11[need to have clockworkmod(CWM)]
2.)After you installed and booted CM11 open the menu and open terminal.
3.)Then in terminal write first and press "↲":
Code:
su -
4.)After you got root permission in Terminal then write this line in Terminal and press "↲":
Code:
mount -o rw,remount /system
5.)After inputed that write this in terminal and press "↲":
Code:
cd /system/etc/firmware/wlan/prima
6.)And after that add this last line and press "↲":
Code:
ln -s WCNSS_hw_wlan_nv.bin WCNSS_qcom_wlan_nv.bin
After doing that wifi should be enabled..
Click to expand...
Click to collapse
hardware/qcom/display-caf-legacy/libqdutils/mdp_version.h:57:5: error: expected identifier before '(' token
hardware/qcom/display-caf-legacy/libqdutils/mdp_version.h:57:5: error: expected '}' before '(' token
hardware/qcom/display-caf-legacy/libqdutils/mdp_version.h:57:9: error: expected unqualified-id before numeric constant
hardware/qcom/display-caf-legacy/libqdutils/mdp_version.h:57:9: error: expected ')' before numeric constant
hardware/qcom/display-caf-legacy/libqdutils/mdp_version.h:57:9: error: expected ')' before numeric constant
hardware/qcom/display-caf-legacy/libqdutils/mdp_version.h:57:9: error: expected ')' before numeric constant
hardware/qcom/display-caf-legacy/libqdutils/mdp_version.h:57:9: error: expected ')' before numeric constant
In file included from hardware/qcom/display-caf-legacy/libqdutils/mdp_version.cpp:34:0:
hardware/qcom/display-caf-legacy/libqdutils/mdp_version.h:121:1: error: expected declaration before '}' token
make: *** [/home/efran/cm11/out/target/product/y530/obj/SHARED_LIBRARIES/libqdutils_intermediates/mdp_version.o] Error 1
make: *** Se espera a que terminen otras tareas....
??? Help?
This is probablt abendoned project? So bugs still here
I have a G6-L11 (4G version). I can install CM11 on my phone?
Hi
I need android version 5 or 6 or 7 for g630-u10
please give me a direct link for download it!
I search everywhere but i could'nt find anything...
qscesza said:
Hi
I need android version 5 or 6 or 7 for g630-u10
please give me a direct link for download it!
I search everywhere but i could'nt find anything...
Click to expand...
Click to collapse
Please Help
qscesza said:
Hi
I need android version 5 or 6 or 7 for g630-u10
please give me a direct link for download it!
I search everywhere but i could'nt find anything...
Click to expand...
Click to collapse
hi, i don't think such rom exist..
messi2050 said:
hi, i don't think such rom exist..
Click to expand...
Click to collapse
Tnx
Even custom rom?
qscesza said:
Tnx
Even custom rom?
Click to expand...
Click to collapse
Yea
l
x

How to solve mkvendor.sh error?

Hi
I´d like to port galaxy alpha KT career version cm 12.1. So I synced cm repo and type a
Code:
make -j4 otatools
command and
Code:
./build/tools/device/mkvendor.sh samsung sltektt ~/android/cm/boot.img
. But I got a error command is
Arguments: samsung sltektt /home/fe/android/cm/boot.img
unpackbootimg not found. Is your android build environment set up and have the host tools been built?
How to solve this error?
myjang0507 said:
Hi
I´d like to port galaxy alpha KT career version cm 12.1. So I synced cm repo and type a
Code:
make -j4 otatools
command and
Code:
./build/tools/device/mkvendor.sh samsung sltektt ~/android/cm/boot.img
. But I got a error command is
Arguments: samsung sltektt /home/fe/android/cm/boot.img
unpackbootimg not found. Is your android build environment set up and have the host tools been built?
How to solve this error?
Click to expand...
Click to collapse
m
hi, after your run . build/envsetup.sh, then run mka unpackbootimg,
after it's done goto out/host/linux-x86/bin/ and copy unpackbootimg to your prefered location for binaries in your path
so fo me, i did
cp out/host/linux-x86/bin/unpackboot.img /bin/unpackboot.img
and then mkvendor.sh ran fine.
m

[HELP] Can't flash compiled AOSP

Hey guys, thank you in advance. I have an LG X Power (K220) and I started to develop the stock AOSP from source (Android 6.0.1). I followed all the instruction from LG and Google (downloaded both google and LG source and then merged them). After seven hours of compiling I got my image file: system.img, cache.img, userdata.img and ramdisk.img. It was the time to flash and test the new build, so I used these command:
Code:
fastboot flash cache cache.img
Code:
fastboot flash ramdisk ramdisk.img
But when I have to flash the system.img and the userdata the device tell me that the images are too big and the message “Invalid sparse file format at header magi”. So I googled it and I tried with:
Code:
fastboot -S 256M flash system.img
But nothing. I also read that I could try to modify the BoardConfig.mk and add:
Code:
TARGET_USERIMAGES_SPARSE_EXT_DISABLED := true
But I do not know what BoardConfig.mk I have to modify becouse when I merge the file and go to /device/lge/k7 there isn't the mk file, so I think that use the generic aosp for arm devices.
How could I solve this problem? Thank you another time :fingers-crossed:
Hi I'm also building AOSP for X Power. You need to change SYSTEM IMAGE partition size in aosp/device/generic/armv7-a-neon/BoardConfig.mk. That's beacouse we use "lunch 1" which mean "lunch aosp_arm-eng". If u need help send me message.
kko7 said:
Hi I'm also building AOSP for X Power. You need to change SYSTEM IMAGE partition size in aosp/device/generic/armv7-a-neon/BoardConfig.mk. That's beacouse we use "lunch 1" which mean "lunch aosp_arm-eng". If u need help send me message.
Click to expand...
Click to collapse
Are you able to build debug versions? That may help things for you.
Maybe I will be able but I'm getting clang error, so I need to fix it first.
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [build/core/host_shared_library_internal.mk:51: out/host/linux-x86/obj/lib/libartd.so] Error 1
kko7 said:
Maybe I will be able but I'm getting clang error, so I need to fix it first.
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [build/core/host_shared_library_internal.mk:51: out/host/linux-x86/obj/lib/libartd.so] Error 1
Click to expand...
Click to collapse
I fixed it. Now I am waiting for the compilation to finish.
If someone want I can upload it to AFH
kko7 said:
I fixed it. Now I am waiting for the compilation to finish.
If someone want I can upload it to AFH
Click to expand...
Click to collapse
How did you fix the error?
Modify build/core/clang/HOST_x86_common.mk
android-review.googlesource.com/c/platform/build/+/223100/1/core/clang/HOST_x86_common.mk
If that doesn't work then
cp /usr/bin/ld.gold prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.8/x86_64-linux/bin/ld
But you need to be in aosp folder
kko7 said:
Modify build/core/clang/HOST_x86_common.mk
android-review.googlesource.com/c/platform/build/+/223100/1/core/clang/HOST_x86_common.mk
If that doesn't work then
cp /usr/bin/ld.gold prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.8/x86_64-linux/bin/ld
But you need to be in aosp folder
Click to expand...
Click to collapse
Excellent, thank you! ?
Sands207 said:
Excellent, thank you! ?
Click to expand...
Click to collapse
No problem
kko7 said:
Maybe I will be able but I'm getting clang error, so I need to fix it first.
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [build/core/host_shared_library_internal.mk:51: out/host/linux-x86/obj/lib/libartd.so] Error 1
Click to expand...
Click to collapse
How do you fix it?
I trying make a build for my Xperia X and Xperia M2 Aqua, but, justly, launch that error...
sebasrock156 said:
How do you fix it?
I try to make a build for my Xperia X and Xperia M2 Aqua, but, justly, launch that error...
Click to expand...
Click to collapse
Modify core/clang/HOST_x86_common.mk
https://android-review.googlesource.com/c/platform/build/+/223100/1/core/clang/HOST_x86_common.mk
If this doesn't work then try this command:
cp /usr/bin/ld.gold prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.8/x86_64-linux/bin/ld
But you need to be in the aosp folder

Lineageos 19.1 kernel fails to build

I am trying to compile my own system, but I get errors at kernel compile time.
I am using: https://github.com/fakemanoan/local_manifests
I ran the extract-files (for both the universal and zeroltexx under devices) and they ran succesfully
Possible candidates causing my issues are:
/bin/sh: line 1: DEFAULT_PLATFORM_VERSION: command not found
/bin/sh: line 1: PLATFORM_VERSION_LAST_STABLE: command not found
/bin/sh: line 1: PLATFORM_VERSION_CODENAME: command not found
full log is attached:
Biggie23 said:
I am trying to compile my own system, but I get errors at kernel compile time.
I am using: https://github.com/fakemanoan/local_manifests
I ran the extract-files (for both the universal and zeroltexx under devices) and they ran succesfully
Possible candidates causing my issues are:
/bin/sh: line 1: DEFAULT_PLATFORM_VERSION: command not found
/bin/sh: line 1: PLATFORM_VERSION_LAST_STABLE: command not found
/bin/sh: line 1: PLATFORM_VERSION_CODENAME: command not found
full log is attached:
Click to expand...
Click to collapse
Hello mate,
Are you trying to compile for US Cellular variant?
gorkemoji said:
Hello mate,
Are you trying to compile for US Cellular variant?
Click to expand...
Click to collapse
Yep, what ended up being the problem was that I didnt flash the patches, after that it sucesfully compiled and I got it to flash, but then it got stuck in a boot loop. What should I do?
Biggie23 said:
Yep, what ended up being the problem was that I didnt flash the patches, after that it sucesfully compiled and I got it to flash, but then it got stuck in a boot loop. What should I do?
Click to expand...
Click to collapse
I think it's related to kernel. I have S6 Edge US Cellular variant but I couldn't even compile. And you sure that you have G920R4?

Categories

Resources