Building AOSP kernel - Galaxy S 4 Q&A, Help & Troubleshooting

Hi can somebody help me
i am trying to compile my kernel but i always get this error, i tried it with different toolchains and kernel source code. it says that msm_rtb.h is missing,
the file is really not there in every kernel source code
Thanks in advance
Code:
[email protected]:~/kernel$ make -j2
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CC arch/arm/kernel/asm-offsets.s
In file included from include/linux/scatterlist.h:10:0,
from include/linux/dma-mapping.h:9,
from arch/arm/kernel/asm-offsets.c:15:
/home/merwin/kernel/arch/arm/include/asm/io.h:30:26: fatal error: mach/msm_rtb.h: No such file or directory
#include <mach/msm_rtb.h>
^
compilation terminated.
make[1]: *** [arch/arm/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2
[email protected]:~/kernel$
Gesendet von meinem GT-I9505 mit Tapatalk

Related

Kernel error

i port miui rom for gionee e7 but kernel error ?
error details attachment file what is problem?

How Build Official kernel?

Hi All,
I just cloned on my PC the Official Source Kernel taken from:
https://github.com/OnePlusOSS/android_kernel_oneplus_msm8994
Now I want to build kernel.
Is there an official .config file that I can use as reference for build?
Can I take it from my smartphone?
Thanks,
Flavio
From
Code:
android_kernel_oneplus_msm8994-5.1.1/arch/arm64/configs
I see the following files...
3083 Oct 2 10:50 defconfig
15603 Oct 2 10:50 msm8994_defconfig
17521 Oct 2 10:50 msm8994-OnePlus2_defconfig
15794 Oct 2 10:50 msm8994-OnePlus2-perf_defconfig
13636 Oct 2 10:50 msm8994-perf_defconfig
13919 Oct 2 10:50 msm_defconfig
12556 Oct 2 10:50 msm-perf_defconfig
Which I should use for build kernel like the original one?
Flavio
I just followed this steps:
1) git clone git://github.com/OnePlusOSS/android_kernel_oneplus_msm8994.git
2) git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/
3) from 'android_kernel_oneplus_msm8994'
export ARCH=arm64
export SUBRCH=arm64
export CROSS_COMPILER=/root/android/arm-linux-androideabi-4.9/bin/arm-linux-androideabi-
export CROSS_COMPILE=/root/android/arm-linux-androideabi-4.9/bin/arm-linux-androideabi-
export PLATFORM=msm8994-OnePlus2
and then i run "make"
This is the error message:
[email protected]:~/android/android_kernel_oneplus_msm8994# make
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
CC kernel/bounds.s
arm-linux-androideabi-gcc: error: unrecognized command line option '-mgeneral-regs-only'
make[1]: *** [kernel/bounds.s] Error 1
make: *** [prepare0] Error 2
Someone can help me to build Official OnePlusTwo kernel?
Thanks

Need help in porting Halium Project to sgs4 jfltexx

Hello,
I'm trying to port the halium project to the galaxy s4 jfltexx. But when I'm running "breakfast jfltexx" there comes this error:
** Don't have a product spec for: 'lineage_jfltexx'
Can anyone help me?
Thanks in advance

How do I fix RIL daemon service on AOSP rom?

Network signal keeps dropping as does bluetooth connections.
Galaxy S5 G900V
LOS based 15.1
Logcat:
11-08 21:08:14.424 I/chatty ( 9414): uid=1000(system) CallAudioModeSt expire 1 line
11-08 21:08:14.730 I/TelecomFramework( 9782): TtyManager: updateUiTtyMode -1 -> 0
--------- beginning of crash
11-08 21:08:14.750 F/libc ( 418): Fatal signal 11 (SIGSEGV), code 1, fault addr 0x7 in tid 1074 (rild), pid 418 (rild)
11-08 21:08:14.810 F/DEBUG ( 9876): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
11-08 21:08:14.811 F/DEBUG ( 9876): AospExtended Version: 'v5.8'
11-08 21:08:14.811 F/DEBUG ( 9876): Build fingerprint: 'Verizon/kltevzw/kltevzw:6.0.1/MMB29M/G900VVRU2DQL1:user/release-keys'
11-08 21:08:14.811 F/DEBUG ( 9876): Revision: '14'
11-08 21:08:14.811 F/DEBUG ( 9876): ABI: 'arm'
11-08 21:08:14.811 F/DEBUG ( 9876): pid: 418, tid: 1074, name: rild >>> /vendor/bin/hw/rild <<<
You're using Verizon S5 LineageOS?
Have you tried different modems?
Check:
https://forum.xda-developers.com/verizon-galaxy-s5/development/modem-modems-t3926673
Mohamedkam000 said:
You're using Verizon S5 LineageOS?
Have you tried different modems?
Check:
https://forum.xda-developers.com/verizon-galaxy-s5/development/modem-modems-t3926673
Click to expand...
Click to collapse
Yes i'm on the latest QL1

fail to build a kernel

first of all I would like to thank you for your help in solving this problem.
i am trying to porting postmarketos to huawei p9 lite vns-l31 hi6250 kernel 4.1.18 a week ago. I've had other problems but I solved it. these Im stuck in here. thanks and sorry for my english.
from ../include/linux/proportions.h:12,
from ../include/linux/sched.h:43,
from ../arch/arm64/kernel/asm-offsets.c:21:
../include/linux/gfp.h: In function 'gfpflags_to_migratetype':
../include/linux/gfp.h:156:10: error: 'MIGRATE_CMA' undeclared (first use in this function); did you mean 'MIGRATE_TYPES'?
156 | return MIGRATE_CMA;
| ^~~~~~~~~~~
| MIGRATE_TYPES
../include/linux/gfp.h:156:10: note: each undeclared identifier is reported only once for each function it appears in
In file included from ../arch/arm64/include/asm/kvm_asm.h:21,
from ../arch/arm64/include/asm/kvm_host.h:28,
from ../include/linux/kvm_host.h:34,
from ../arch/arm64/kernel/asm-offsets.c:24:
../arch/arm64/include/asm/virt.h: At top level:
../arch/arm64/include/asm/virt.h:77: warning: "HVC_GET_VECTORS" redefined
77 | #define HVC_GET_VECTORS 0
|
../arch/arm64/include/asm/virt.h:38: note: this is the location of the previous definition
38 | #define HVC_GET_VECTORS 1
|
../arch/arm64/include/asm/virt.h:84: warning: "HVC_SET_VECTORS" redefined
84 | #define HVC_SET_VECTORS 1
|
../arch/arm64/include/asm/virt.h:46: note: this is the location of the previous definition
46 | #define HVC_SET_VECTORS 2
|
make[2]: *** [.././Kbuild:62: arch/arm64/kernel/asm-offsets.s] Error 1
full log here http://pastebin.com/RfNpGUmp
Did you ever manage to get it working , im also trying to port postmarketos to the p9 lite

Categories

Resources