please delete - Xiaomi Redmi Note 4 Questions & Answers

please delete

onion4 said:
Hi, I am trying to build AOSP ROM for mido but I have some errors. Here's some output
Code:
No need to regenerate ninja file
[ 0% 1/43168] Ensuring Jack server is installed and started
Jack server already installed in "/home/onion/.jack-server"
Launching Jack server java -XX:MaxJavaStackTraceDepth=-1 -Djava.io.tmpdir=/tmp -Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx4G -cp /home/onion/.jack-server/launcher.jar com.android.jack.launcher.ServerLauncher
[ 0% 206/43168] AAPT2 link out/target/product/mido/obj/APPS/framework-res_intermediates/package-res.apk
FAILED: out/target/product/mido/obj/APPS/framework-res_intermediates/package-res.apk
/bin/bash out/target/product/mido/obj/APPS/framework-res_intermediates/package-res.apk.rsp
out/target/product/mido/obj/APPS/framework-res_intermediates/flat-res/device/xiaomi/mido/overlay/frameworks/base/core/res/res/values_config.arsc.flat: error: resource bool/config_wifi_hotspot2_enabled does not override an existing resource.
out/target/product/mido/obj/APPS/framework-res_intermediates/flat-res/device/xiaomi/mido/overlay/frameworks/base/core/res/res/values_config.arsc.flat: note: define an <add-resource> tag or use --auto-add-overlay.
error: failed parsing overlays.
[ 0% 207/43168] AAPT2 compile out/target/common/obj/JAVA_LIBRARIES/android-support-compat_intermediates/...rks/support/compat/res/values-fi_strings.arsc.flat <- frameworks/support/compat/res/values-fi/strings.xml
ninja: build stopped: subcommand failed.
18:37:00 ninja failed with: exit status 1
Someone knows how to fix it?
Click to expand...
Click to collapse
i dont have any knowledge related to compiling roms but i do have knowledge about building apps. Something in frameworks/support/compat/res/values-fi/strings.xml titled as values_config.arsc.flathere is not present.
It is suggesting you to define a tag there or to use --auto overlay

Ok, someone knows how to add this flag to aapt?

That overlay has been deprecated in 8.1.
https://github.com/KudProject/device_xiaomi_mido/commit/124b359b8311faf4137e01dd319a88f1006da282
Sent from my Redmi Note 4 using XDA Labs

krasCGQ said:
That overlay has been deprecated in 8.1.
https://github.com/KudProject/device_xiaomi_mido/commit/124b359b8311faf4137e01dd319a88f1006da282
Sent from my Redmi Note 4 using XDA Labs
Click to expand...
Click to collapse
So I will try to use tree that you provided.

onion4 said:
Hi, I am trying to build AOSP ROM for mido but I have some errors. Here's some output
Someone knows how to fix it?
Click to expand...
Click to collapse
Looks like openSSL issue.

storm_99 said:
Looks like openSSL issue.
Click to expand...
Click to collapse
Nope. It's due to a defined overlay that doesn't override default one elsewhere.
Sent from my Redmi Note 4 using XDA Labs

please delete

please delete

Related

kernel compilation error

i am trying to compile s6 edges kernel but i am getting an error can you please help me solving it i am on ubuntu 14.04
here is the error log
make: ../PLATFORM/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.8/bin/aarch64-linux-android-gcc: Command not found
you have to change the path in the makefile to your gcc path
Alex-V said:
you have to change the path in the makefile to your gcc path
Click to expand...
Click to collapse
Do i have to give it Toolchains path
Sent from my Moto G using Tapatalk
Can you please tell me how to do that i am new to the aarch64 kernel compilation
Sent from my Moto G using Tapatalk
sanchit0403 said:
Can you please tell me how to do that i am new to the aarch64 kernel compilation
Sent from my Moto G using Tapatalk
Click to expand...
Click to collapse
Just the path to the toolchain, it's identical for 32bit as well. The toolchain is different, but the procedure is the same as for 32bit
i changed its address to /home/sanchit/s6/aarch64-linux-gnu-4.9/bin/
but still getting same error with this location and command not found
sanchit0403 said:
i changed its address to /home/sanchit/s6/aarch64-linux-gnu-4.9/bin/
but still getting same error with this location and command not found
Click to expand...
Click to collapse
[...]/bin/aarch64-linux-android-
mythos234 said:
[...]/bin/aarch64-linux-android-
Click to expand...
Click to collapse
[email protected]:~/s6/kernel$ make exynos7420-zerolte_defconfig
make: ../home/sanchit/s6/aarch64-linux-gnu-4.9/bin/aarch64-linux-gnu-gcc: Command not found
still same error i am using sabermod toolchain and i have installed all the libraries
sanchit0403 said:
[email protected]:~/s6/kernel$ make exynos7420-zerolte_defconfig
make: ../home/sanchit/s6/aarch64-linux-gnu-4.9/bin/aarch64-linux-gnu-gcc: Command not found
still same error i am using sabermod toolchain and i have installed all the libraries
Click to expand...
Click to collapse
You type this in the terminal?
make: ../path to toolchain?
Thats wrong, use this:
export CROSS_COMPILE=/path
mythos234 said:
[...]/bin/aarch64-linux-android-
Click to expand...
Click to collapse
mythos234 said:
You type this in the terminal?
make: ../path to toolchain?
Thats wrong, use this:
export CROSS_COMPILE=/path
Click to expand...
Click to collapse
nono i edited make file and changed cross compile diresction then i entered these commands
[email protected]:~/s6/kernel$ sudo nano Makefile
[sudo] password for sanchit:
[email protected]:~/s6/kernel$ export CROSS_COMPILE=/home/sanchit/s6/aarch64-linux-gnu-4.9/bin/aarch64-
[email protected]:~/s6/kernel$ export ARCH=arm64
[email protected]:~/s6/kernel$ make exynos7420-zerolte_defconfig
make: ../home/sanchit/s6/aarch64-linux-gnu-4.9/bin/aarch64-linux-gnu-gcc: Command not found
#
# configuration written to .config
#
[email protected]:~/s6/kernel$
now i reverted all the change makefile is default one still facing error i guess its a gcc error but i have update to 4.9
[email protected]:~/s6/kernel$ export CROSS_COMPILE=/home/sanchit/s6/aarch64-linux-gnu-4.9/bin/aarch64-
[email protected]:~/s6/kernel$ export [email protected]:~/s6/kernel$ make exynos7420-zerolte_defconfigmake: ../PLATFORM/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.8/bin/aarch64-linux-android-gcc: Command not found
#
# configuration written to .config
#
[email protected]:~/s6/kernel$
sanchit0403 said:
i am trying to compile s6 edges kernel but i am getting an error can you please help me solving it i am on ubuntu 14.04
here is the error log
make: ../PLATFORM but I'm be /prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.8/bin/aarch64-linux-android-gcc: Command not but 5th 3 bin E but 2hfound
Click to expand...
Click to collapse
Sent from my SM-G900V using XDA Free mobile appz5
I tv dd
that error fixed by updating aarch65 gcc libraries and here comes new error
[email protected]:~$ make exynos7420-zerolte_defconfig
make: *** No rule to make target `exynos7420-zerolte_defconfig'. Stop.
mythos234 said:
You type this in the terminal?
make: ../path to toolchain?
Thats wrong, use this:
export CROSS_COMPILE=/path
Click to expand...
Click to collapse
Any solution please
Sent from my Moto G using Tapatalk
sanchit0403 said:
Any solution please
Sent from my Moto G using Tapatalk
Click to expand...
Click to collapse
Do you still have this problem?
I am also facing this problem when compiling samsung a7 2016 64 bit kernel. Have anyone got solution.

[Q] Unlock bootloader Mac?

Hello. Is it posible to unlock the Kindle Fire's bootloader with a Mac? I read guides but it requires to have Windows installed, if I have to get Windows it is safe to do this with a VM? (Virutalbox, etc.)
All you need is Python and adb/fastboot.
See:
http://forum.xda-developers.com/kin...bootloader-unlock-procedure-software-t3030281
http://forum.xda-developers.com/kin...tools-create-unlock-img-fix-boot-img-t3050689
Ok, thanks. I'll try it tomorrow hopefully.
Sent from my Nexus HDX 7 using XDA Free mobile app
EncryptedCurse said:
All you need is Python and adb/fastboot.
See:
http://forum.xda-developers.com/kin...bootloader-unlock-procedure-software-t3030281
http://forum.xda-developers.com/kin...tools-create-unlock-img-fix-boot-img-t3050689
Click to expand...
Click to collapse
Do I get Python 2.7.10? One guide said 2.7, but Python 2.7.0 is only for 32bit.
I got 2.7.10, and when I run cuberHDX.py, it requires GMPY2, but I am not sure how to install it
EncryptedCurse said:
All you need is Python and adb/fastboot.
See:
http://forum.xda-developers.com/kin...bootloader-unlock-procedure-software-t3030281
http://forum.xda-developers.com/kin...tools-create-unlock-img-fix-boot-img-t3050689
Click to expand...
Click to collapse
Ok, I almost got gmpy2 working, but when I go and install it this pops up: :crying:
EDIT: I fixed the gmp.h error, but now I get this.
Processing gmpy2-2.0.7
Writing /Users/***********/Downloads/gmpy2-2.0.7/setup.cfg
Running setup.py -q bdist_egg --dist-dir /Users/***********/Downloads/gmpy2-2.0.7/egg-dist-tmp-U9lI_b
In file included from src/gmpy2.c:417:
src/gmpy.h:252:12: fatal error: 'mpfr.h' file not found
# include "mpfr.h"
^
1 error generated.
error: Setup script exited with error: command '/usr/bin/clang' failed with exit status 1
Click to expand...
Click to collapse
I fixed the error now i get this:
Processing gmpy2-2.0.7
Writing /Users/***********/Downloads/gmpy2-2.0.7/setup.cfg
Running setup.py -q bdist_egg --dist-dir /Users/***********/Downloads/gmpy2-2.0.7/egg-dist-tmp-58goNz
In file included from src/gmpy2.c:417:
src/gmpy.h:261:12: fatal error: 'mpc.h' file not found
# include "mpc.h"
^
1 error generated.
error: Setup script exited with error: command '/usr/bin/clang' failed with exit status 1
MinerBoy004 said:
I fixed the error now i get this:
Processing gmpy2-2.0.7
Writing /Users/***********/Downloads/gmpy2-2.0.7/setup.cfg
Running setup.py -q bdist_egg --dist-dir /Users/***********/Downloads/gmpy2-2.0.7/egg-dist-tmp-58goNz
In file included from src/gmpy2.c:417:
src/gmpy.h:261:12: fatal error: 'mpc.h' file not found
# include "mpc.h"
^
1 error generated.
error: Setup script exited with error: command '/usr/bin/clang' failed with exit status 1
Click to expand...
Click to collapse
Just use draxie's cuber.py, which doesn't rely on gmpy2.
I got GMPY2 working, and unlocked my bootloader!
Thanks for your help too! But i didn't know how to sign the unlock.img lol so i tried the gmpy2 way.
Sent from my Nexus HDX 7 using XDA Free mobile app

Cannot build openssl while compiling Zenfone 2 Kernel

Hi all,
Recently I have issues with building a zenfone kernel in uBuntu Trusty Tahr.
When I ran "make openssl", I got this error:
x86_64-linux-android-gcc: error: unrecognized command line option '-fno-canonical-system-headers'
make: *** [/out/zenfone-ze551ml/target/product/generic_x86/obj/STATIC_LIBRARIES/third_party_openssl_openssl_gyp_intermediates/third_party/openssl/openssl/crypto/aes/asm/aes-586.o] Error 1
Click to expand...
Click to collapse
and the compilation process stopped.
I have been searching to many forums but fail to find the solution to this problem.
Could you help me?
The gcc --version is gcc (Ubuntu 4.8.4-2ubuntu1~14.04.1) 4.8.4
leenakeenev said:
Hi all,
Recently I have issues with building a zenfone kernel in uBuntu Trusty Tahr.
When I ran "make openssl", I got this error:
and the compilation process stopped.
I have been searching to many forums but fail to find the solution to this problem.
Could you help me?
The gcc --version is gcc (Ubuntu 4.8.4-2ubuntu1~14.04.1) 4.8.4
Click to expand...
Click to collapse
U built for Lollipop or Marshmallow? And go to your prebuilts/gcc toolchain folder, then execute this below command to correct gcc version as suggested by ASUS "git checkout tools_r22.2"
Sent from my ASUS_Z00AD using Tapatalk
quanganh2627 said:
U built for Lollipop or Marshmallow? And go to your prebuilts/gcc toolchain folder, then execute this below command to correct gcc version as suggested by ASUS "git checkout tools_r22.2"
Sent from my ASUS_Z00AD using Tapatalk
Click to expand...
Click to collapse
I built it for Lollipop 5.0.0 (android-5.0.0_r7).
Git checkout tools_r22.2 doesn't work as it always says "error: pathspec 'tools_r22.2' did not match any file(s) known to git."
So according to this topic: asus.com/zentalk/forum.php?mod=viewthread&tid=7537 I downloaded the "tool_r22.2.tgz" tools from the page instead.
However it doesn't solve the problem.
sr, not read carefully. u followed Asus Readme in kernel package , didn't u? maybe they forgot to update that guide, "tools_r22.2" is deprecated of gcc4.7 and prior only, now at gcc4.8 or 4.9 on Aosp haven't got it, but u can use "lollipop-released" or "android-5.0.0_r7". And make sure ur local repo have "external/openssl" inside.
Sent from my ASUS_Z00AD using Tapatalk

Ninja error while building custom rom from source

Hello,
As I am trying to build a rom for the xperia x, I can,t find a solution to a ninja error:
Code:
Starting build with ninja
ninja: Entering directory `.'
ninja: error: '/.txt' missing and no known rule to make it
Does anyone know what is causing this?
Any help is appreciated.
https://github.com/arrayfire/arrayfire/issues/1497
kalel29 said:
https://github.com/arrayfire/arrayfire/issues/1497
Click to expand...
Click to collapse
Thanks for the reply, saw that post too but it didn't solve the error.
I solved it using "make update-api && make -j4"
But this gave me also other errors later, the weird thing is that this only happened with the ResurrectionRemix source, since I started working on LOS there are no such errors.
But thanks anyway:good:

[KERNEL] Some compile errors

Code:
Assembler messages:
arch/arm64/kernel/entry-fpsimd.S:53: Error: unexpected end of file in irp or irpc
/tmp/cczAQDmw.s: Error: local label `"0" (instance number 1 of a fb label)' is not defined
make[1]: *** [scripts/Makefile.build:344: arch/arm64/kernel/entry-fpsimd.o] Error 1
I got this error, I searched on Google but found nothing about it. I use Google's gcc-4.9 toolchain.
May anyone help me please?
Hi!
This is a preliminary suggestion, the ROM is not made for your phone.
CFCbazar said:
Hi!
This is a preliminary suggestion, the ROM is not made for your phone.
Click to expand...
Click to collapse
But I got this from Samsung OSS, just want to compile my device's kernel :/
Are you sure that you have the floating point configuration correct?
Code:
CONFIG_KERNEL_MODE_NEON
CONFIG_ENABLE_FP_SIMD_SETTINGS
Renate said:
Are you sure that you have the floating point configuration correct?
Code:
CONFIG_KERNEL_MODE_NEON
CONFIG_ENABLE_FP_SIMD_SETTINGS
Click to expand...
Click to collapse
I have CONFIG_KERNEL_MODE_ON as y on my defconfig but I don't have CONFIG_ENABLE_FP_SIMD_SETTINGS on my defconfig.
gorkemoji said:
But I got this from Samsung OSS, just want to compile my device's kernel :/
Click to expand...
Click to collapse
That's not a guarantee. It has happened before. Or you could try the steps from their site. Maybe you missed something.
Maybe the assembler and your FPU type don't agree.

Categories

Resources