Error to compile kernel msm 3.18 for vibe k5 - Lenovo Vibe K5 Plus Questions & Answers

I need a little help because a small mistake happened when I tried to compile the kernel 3.18 pro vibe k5 plus. I want to update to this version because it has the latest security fixes and optimizations. I do not know if the error has occurred because the processor of this cell phone is ARMV7 and the 3.18 devices are configured with ARMV8.
obs: I used the official settings of the device, which was picked up on the lenovo website
.CONFIG: https://raw.githubusercontent.com/n...020/arch/arm64/configs/wt82918-perf_defconfig (lenovo vibe k5 plus)
kernel msm 3.18: https://github.com/android-linux-stable/msm-3.18
LOG ERROR
Code:
CC drivers/platform/msm/qpnp-revid.o
../drivers/platform/msm/qpnp-revid.c: In function 'qpnp_read_byte':
../drivers/platform/msm/qpnp-revid.c:80:47: error: 'struct spmi_device' has no member named 'sid'
rc = spmi_ext_register_readl(spmi->ctrl, spmi->sid, addr, &val, 1);
^
../drivers/platform/msm/qpnp-revid.c:80:31: warning: passing argument 1 of 'spmi_ext_register_readl' from incompatible pointer type
error, forbidden warning: qpnp-revid.c:80
make[4]: *** [../scripts/Makefile.build:258: drivers/platform/msm/qpnp-revid.o] Error 1
make[3]: *** [../scripts/Makefile.build:402: drivers/platform/msm] Error 2
make[2]: *** [../scripts/Makefile.build:402: drivers/platform] Error 2
make[1]: *** [/home/nathan/Git/msm-3.18/Makefile:968: drivers] Error 2
make[1]: Leaving directory '/home/nathan/Git/msm-3.18/out'
make: *** [Makefile:145: sub-make] Error 2
FILE ERROR
https://github.com/android-linux-st....18.r34-rel/drivers/platform/msm/qpnp-revid.c

Related

[Q] [E975] fail to build kernel for AOSP

I'm trying top compile a kernel from https://github.com/lollipop-og/kernel_msm by @Kevinjoa, but it fails with this error message. Can anybody help me?
Code:
WARNING: vmlinux.o(.meminit.text+0x48c): Section mismatch in reference from the function free_area_init_node() to the function .init.text:set_pageblock_order()
The function __meminit free_area_init_node() references
a function __init set_pageblock_order().
If set_pageblock_order is only used by free_area_init_node then
annotate set_pageblock_order with a matching annotation.
To build the kernel despite the mismatches, build with:
'make CONFIG_NO_ERROR_ON_MISMATCH=y'
(NOTE: This is not recommended)
make[1]: ** [vmlinux.o] Erro 1
make: ** [vmlinux.o] Erro 2

[Q] [E975] fail to build kernel for AOSP

I'm trying top compile a kernel from https://github.com/lollipop-og/kernel_msm by @Kevinjoa, but it fails with this error message. Can anybody help me?
Code:
WARNING: vmlinux.o(.meminit.text+0x48c): Section mismatch in reference from the function free_area_init_node() to the function .init.text:set_pageblock_order()
The function __meminit free_area_init_node() references
a function __init set_pageblock_order().
If set_pageblock_order is only used by free_area_init_node then
annotate set_pageblock_order with a matching annotation.
To build the kernel despite the mismatches, build with:
'make CONFIG_NO_ERROR_ON_MISMATCH=y'
(NOTE: This is not recommended)
make[1]: ** [vmlinux.o] Erro 1
make: ** [vmlinux.o] Erro 2

Compile stock Lolipop kernel

I've downloaded stock kernel source from this website, the problem is that I get this error when compiling:
Code:
[email protected]:~/kernel$ make
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: 'include/generated/mach-types.h' is up to date.
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
CHK kernel/config_data.h
CC drivers/leds/leds-qpnp.o
drivers/leds/leds-qpnp.c: In function ‘qpnp_led_set’:
drivers/leds/leds-qpnp.c:2213:14: error: ‘led_sequence_lock’ undeclared (first use in this function)
mutex_lock(&led_sequence_lock); /* RGB LED synchronize in kddi */
^
drivers/leds/leds-qpnp.c:2213:14: note: each undeclared identifier is reported only once for each function it appears in
scripts/Makefile.build:307: recipe for target 'drivers/leds/leds-qpnp.o' failed
make[2]: *** [drivers/leds/leds-qpnp.o] Error 1
scripts/Makefile.build:443: recipe for target 'drivers/leds' failed
make[1]: *** [drivers/leds] Error 2
Makefile:951: recipe for target 'drivers' failed
make: *** [drivers] Error 2
[email protected]:~/kernel$
I didn't modify anything, I am using arm-linux-gnueabi-linaro_4.8.4-2014.11 toolchain, thanks
I managed to get it to compile, there are some files that need to be fixed first in order to get it working :good:

Error building cm12.1 for note 4 tmobile on mac 10.11 el capitan - error: Unknown...

Don't know if this is the right place to post this. But I'm trying to build cm12.1 for my tmobile note 4. I'm using a imac running os x 10.11 (el capitan). I'm getting the following error about the macosx-version-min. Has anyone seen this? I've got updates that include 10.10 and 10.11 version is the build/core/combo/HOST_darwin_x86*.mk files. I've also add 10.10 and 10.11 to mac_sdk_versions_supported in build/core/combo/mac_version.mk. Not sure where else to look.
$brunch trltetmo
....
host C: libmincrypt_32 <= system/core/libmincrypt/p256_ec.c
<built-in>:0: error: Unknown value ‘10.11’ of -mmacosx-version-min
<built-in>:0: error: Unknown value ‘10.11’ of -mmacosx-version-min<built-in>:0: error: Unknown value ‘10.11’ of -mmacosx-version-min
<built-in>:0: error: Unknown value ‘10.11’ of -mmacosx-version-min
make: *** [/Volumes/androidtouro/cm121/out/host/darwin-x86/obj32/STATIC_LIBRARIES/libmincrypt_intermediates/dsa_sig.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [/Volumes/androidtouro/cm121/out/host/darwin-x86/obj32/STATIC_LIBRARIES/libmincrypt_intermediates/p256.o] Error 1
make: *** [/Volumes/androidtouro/cm121/out/host/darwin-x86/obj32/EXECUTABLES/mkbootimg_intermediates/mkbootimg.o] Error 1
make: *** [/Volumes/androidtouro/cm121/out/host/darwin-x86/obj32/STATIC_LIBRARIES/libmincrypt_intermediates/p256_ec.o] Error 1
This was output running 'brunch trltetmo'.
Solved this issue by switching to 10.9 mac osx sdk. I also had to add this link:
ln -s /usr/lib/crt1.10.6.o /Developer/SDKs/MacOSX10.9.sdk/usr/lib/crt1.10.6.o.
Finally got my first cm12.1 build completed for tmobile note 4 on a new iMac. It boots and am running it now. Guess I can try again to build cm13 soon. cm13 gave me more problems.

[fix] Nexus 5x Kernel 3.10.x CONFIG_MODULES Makefile:822: recipe for target 'driver'

Hello guys,
this my first post and I want to share how to fix the error when compiling a kernel 3.10.x with the CONFIG_MODULES enabled
the error that comes up is something like
...
LD drivers/staging/qcacld-2.0/wlan.o
LD drivers/staging/qcacld-2.0/built-in.o
LD drivers/staging/built-in.o
Makefile:822: recipe for target 'drivers' failed
make: *** [drivers] Error 2
compiling twice without cleaning you got the entire error
drivers/usb/phy/class-dual-role.c:91:1: error: expected ',' or ';' before 'int'
int dual_role_get_property(struct dual_role_phy_instance *dual_role,
^
scripts/Makefile.build:308: recipe for target 'drivers/usb/phy/class-dual-role.o' failed
make[3]: *** [drivers/usb/phy/class-dual-role.o] Error 1
make[3]: *** Waiting for unfinished jobs....
scripts/Makefile.build:455: recipe for target 'drivers/usb/phy' failed
make[2]: *** [drivers/usb/phy] Error 2
scripts/Makefile.build:455: recipe for target 'drivers/usb' failed
make[1]: *** [drivers/usb] Error 2
make[1]: *** Waiting for unfinished jobs....
Makefile:822: recipe for target 'drivers' failed
make: *** [drivers] Error 2
that is a syntax error, pretty easy to fix:
- open the file drivers/usb/phy/class-dual-role.c within a text editor
- go to line 90
this:
EXPORT_SYMBOL_GPL(dual_role_get_property)
should be
EXPORT_SYMBOL_GPL(dual_role_get_property);
the error was a missing ";" in the end of that line
I hope I have been helpful for the all the developers and compilers who want to enable "the loadable module support"
cheers
thank you
WOW!!! Thank you

Categories

Resources