how do i install a driver? - Xperia Z3 Q&A, Help & Troubleshooting

hello,
i have the driver for a wifi adapter (chipset rtl8192cu)
but i need the correct module (ko file) for my z3 kernel (3.4.0-EliteV3)
how can i build the module?
i've read about cross compiling but the guides are really outdated (I can use windows or linux)

Basic steps:
1. You need to be on linux
2. Download your kernel source, Elite Kernel in your case
3. Luckily, drivers are already in the tree. So set CONFIG_RTL8192CU=m (m for module) in the defconfig file
4. Compile the kernel, fix any compilation issues if needed
5. it'll also output rtl8192cu.ko which is the module
If you didn't understand any of that, first familiarise yourself with how to compile a kernel: http://developer.sonymobile.com/ope...h-a-linux-kernel-from-sony-copyleft-archives/

tomascus said:
Basic steps:
1. You need to be on linux
2. Download your kernel source, Elite Kernel in your case
3. Luckily, drivers are already in the tree. So set CONFIG_RTL8192CU=m (m for module) in the defconfig file
4. Compile the kernel, fix any compilation issues if needed
5. it'll also output rtl8192cu.ko which is the module
If you didn't understand any of that, first familiarise yourself with how to compile a kernel: http://developer.sonymobile.com/ope...h-a-linux-kernel-from-sony-copyleft-archives/
Click to expand...
Click to collapse
thanks for your help, but i cannot find the CONFIG_RTL8192CU string in the defconfig file (shinano_leo_defconfig)

Alex261099 said:
thanks for your help, but i cannot find the CONFIG_RTL8192CU string in the defconfig file (shinano_leo_defconfig)
Click to expand...
Click to collapse
Yea of course, you add it in

tomascus said:
Yea of course, you add it in
Click to expand...
Click to collapse
added but it results in an error:
Code:
[email protected]:/android/kernel-copyleft# make shinano_leo_defconfig
arch/arm/configs/shinano_leo_defconfig:533:warning: override: reassigning to symbol CRYPTO_AES_ARM
#
# configuration written to .config
#
[email protected]:/android/kernel-copyleft# make
scripts/kconfig/conf --silentoldconfig Kconfig
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: "include/generated/mach-types.h" è aggiornato.
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
GZIP kernel/config_data.gz
CHK kernel/config_data.h
CC sound/soc/codecs/wcd9320.o
sound/soc/codecs/wcd9320.c:269:1: error: expected identifier or '(' before ')' token
)
^
sound/soc/codecs/wcd9320.c:392:36: error: 'NUM_CODEC_DAIS' undeclared here (not in a function)
static const u32 vport_check_table[NUM_CODEC_DAIS] = {
^
sound/soc/codecs/wcd9320.c:394:8: error: 'AIF2_CAP' undeclared here (not in a function)
(1 << AIF2_CAP) | (1 << AIF3_CAP), /* AIF1_CAP */
^
sound/soc/codecs/wcd9320.c:394:26: error: 'AIF3_CAP' undeclared here (not in a function)
(1 << AIF2_CAP) | (1 << AIF3_CAP), /* AIF1_CAP */
^
sound/soc/codecs/wcd9320.c:396:8: error: 'AIF1_CAP' undeclared here (not in a function)
(1 << AIF1_CAP) | (1 << AIF3_CAP), /* AIF2_CAP */
^
sound/soc/codecs/wcd9320.c: In function 'slim_rx_mux_put':
sound/soc/codecs/wcd9320.c:2278:18: error: 'AIF1_PB' undeclared (first use in this function)
&taiko_p->dai[AIF1_PB].wcd9xxx_ch_list)) {
^
sound/soc/codecs/wcd9320.c:2278:18: note: each undeclared identifier is reported only once for each function it appears in
sound/soc/codecs/wcd9320.c:2289:18: error: 'AIF2_PB' undeclared (first use in this function)
&taiko_p->dai[AIF2_PB].wcd9xxx_ch_list)) {
^
sound/soc/codecs/wcd9320.c:2300:18: error: 'AIF3_PB' undeclared (first use in this function)
&taiko_p->dai[AIF3_PB].wcd9xxx_ch_list)) {
^
sound/soc/codecs/wcd9320.c: In function 'taiko_set_dai_fmt':
sound/soc/codecs/wcd9320.c:4391:24: error: 'AIF1_PB' undeclared (first use in this function)
else if (dai->id == AIF1_PB)
^
sound/soc/codecs/wcd9320.c: In function 'taiko_set_channel_map':
sound/soc/codecs/wcd9320.c:4436:26: error: 'AIF4_VIFEED' undeclared (first use in this function)
dai_data = &taiko->dai[AIF4_VIFEED];
^
sound/soc/codecs/wcd9320.c: In function 'taiko_get_channel_map':
sound/soc/codecs/wcd9320.c:4457:7: error: 'AIF1_PB' undeclared (first use in this function)
case AIF1_PB:
^
sound/soc/codecs/wcd9320.c:4458:7: error: 'AIF2_PB' undeclared (first use in this function)
case AIF2_PB:
^
sound/soc/codecs/wcd9320.c:4459:7: error: 'AIF3_PB' undeclared (first use in this function)
case AIF3_PB:
^
sound/soc/codecs/wcd9320.c:4477:7: error: 'AIF4_VIFEED' undeclared (first use in this function)
case AIF4_VIFEED:
^
sound/soc/codecs/wcd9320.c:4478:7: error: 'AIF4_MAD_TX' undeclared (first use in this function)
case AIF4_MAD_TX:
^
sound/soc/codecs/wcd9320.c: In function 'taiko_hw_params':
sound/soc/codecs/wcd9320.c:4763:18: error: 'AIF4_VIFEED' undeclared (first use in this function)
if (dai->id != AIF4_VIFEED) {
^
sound/soc/codecs/wcd9320.c: At top level:
sound/soc/codecs/wcd9320.c:4850:9: error: 'AIF1_PB' undeclared here (not in a function)
.id = AIF1_PB,
^
sound/soc/codecs/wcd9320.c:4878:9: error: 'AIF2_PB' undeclared here (not in a function)
.id = AIF2_PB,
^
sound/soc/codecs/wcd9320.c:4920:9: error: 'AIF3_PB' undeclared here (not in a function)
.id = AIF3_PB,
^
sound/soc/codecs/wcd9320.c:4934:9: error: 'AIF4_VIFEED' undeclared here (not in a function)
.id = AIF4_VIFEED,
^
sound/soc/codecs/wcd9320.c:4948:9: error: 'AIF4_MAD_TX' undeclared here (not in a function)
.id = AIF4_MAD_TX,
^
sound/soc/codecs/wcd9320.c:4965:3: error: initializer element is not constant
.id = AIF1_PB,
^
sound/soc/codecs/wcd9320.c:4965:3: error: (near initialization for 'taiko_i2s_dai[0].id')
sound/soc/codecs/wcd9320.c:4979:3: error: initializer element is not constant
.id = AIF1_CAP,
^
sound/soc/codecs/wcd9320.c:4979:3: error: (near initialization for 'taiko_i2s_dai[1].id')
sound/soc/codecs/wcd9320.c:4993:3: error: initializer element is not constant
.id = AIF1_PB,
^
sound/soc/codecs/wcd9320.c:4993:3: error: (near initialization for 'taiko_i2s_dai[2].id')
sound/soc/codecs/wcd9320.c:5007:3: error: initializer element is not constant
.id = AIF1_CAP,
^
sound/soc/codecs/wcd9320.c:5007:3: error: (near initialization for 'taiko_i2s_dai[3].id')
sound/soc/codecs/wcd9320.c: In function 'taiko_codec_enable_slimrx':
sound/soc/codecs/wcd9320.c:5112:6: warning: assignment from incompatible pointer type
error, forbidden warning: wcd9320.c:5112
scripts/Makefile.build:307: set di istruzioni per l'obiettivo "sound/soc/codecs/wcd9320.o" non riuscito
make[3]: *** [sound/soc/codecs/wcd9320.o] Errore 1
scripts/Makefile.build:443: set di istruzioni per l'obiettivo "sound/soc/codecs" non riuscito
make[2]: *** [sound/soc/codecs] Errore 2
scripts/Makefile.build:443: set di istruzioni per l'obiettivo "sound/soc" non riuscito
make[1]: *** [sound/soc] Errore 2
Makefile:951: set di istruzioni per l'obiettivo "sound" non riuscito
make: *** [sound] Errore 2
defconfig file with .txt extension (added to allow uploading)
View attachment shinano_leo_defconfig.txt

Alex261099 said:
added but it results in an error:
defconfig file with .txt extension (added to allow uploading)
Click to expand...
Click to collapse
Make sure you're on whatever branch the kernel guy is working on and then revert all those commits done to sound/ directory.
And make sure your defconfig is the one he is using too

tomascus said:
Make sure you're on whatever branch the kernel guy is working on and then revert all those commits done to sound/ directory.
And make sure your defconfig is the one he is using too
Click to expand...
Click to collapse
sorry but i'm not sure on what i'm doing ...
here is the kernel
and this is the readme file
View attachment README_Xperia.txt
branch is not specified ( master ?)
in the readme file it's not clear what defconfig file he uses

Alex261099 said:
sorry but i'm not sure on what i'm doing ...
here is the kernel
and this is the readme file
branch is not specified ( master ?)
in the readme file it's not clear what defconfig file he uses
Click to expand...
Click to collapse
I know what the kernel is.
Go to the link in the source to see the branches, and view the history to see which defconfig he uses (it's shinano_leo_defconfig so it's right).
Those readmes are generic so don't bother.

tomascus said:
I know what the kernel is.
Go to the link in the source to see the branches, and view the history to see which defconfig he uses (it's shinano_leo_defconfig so it's right).
Those readmes are generic so don't bother.
Click to expand...
Click to collapse
OK but why it results in an error
i'm using 23.5.A.1.291 branch

Alex261099 said:
OK but why it results in an error
Click to expand...
Click to collapse
Because he didn't bother cherry picking commits properly or fixing compilation issues most likely.
Since you made it this far you might as well try build your own custom kernel :silly:

tomascus said:
Because he didn't bother cherry picking commits properly most likely.
Since you made it this far you might as well try build your own custom kernel :silly:
Click to expand...
Click to collapse
I Will try

tomascus said:
Because he didn't bother cherry picking commits properly or fixing compilation issues most likely.
Since you made it this far you might as well try build your own custom kernel :silly:
Click to expand...
Click to collapse
ok, now i'm trying to build my own kernel from the guide you've attached
http://developer.sonymobile.com/ope...h-a-linux-kernel-from-sony-copyleft-archives/
using arm-linux-androideabi-4.9
how can i include my driver in the kernel?

Alex261099 said:
ok, now i'm trying to build my own kernel from the guide you've attached
http://developer.sonymobile.com/ope...h-a-linux-kernel-from-sony-copyleft-archives/
using arm-linux-androideabi-4.9
how can i include my driver in the kernel?
Click to expand...
Click to collapse
Its already there, not like shadow would add some random as wifi driver to his kernel. Add the line in defconfig..

tomascus said:
Add the line in defconfig..
Click to expand...
Click to collapse
it's so easy?
:victory:

Alex261099 said:
it's so easy?
:victory:
Click to expand...
Click to collapse
No, but seriously you'll figure it out, no one held my hand when I built my first kernels

tomascus said:
No, but seriously you'll figure it out, no one held my hand when I built my first kernels
Click to expand...
Click to collapse
f*ck :laugh::laugh::laugh:,
can i have your help if i'm in difficult?

Alex261099 said:
f*ck :laugh::laugh::laugh:,
can i have your help if i'm in difficult?
Click to expand...
Click to collapse
Like I said it's up to you, not me. There are plenty of tutorials online.
Tip 1: look at Shadows commit history to see any changes he needed to get it compiling. Example: https://github.com/ShadowElite22/Xp...=Y3Vyc29yOvUu8ix9Cm9uFFc0XOqJgV10lEi6KzI3OQ==
More examples: https://github.com/tunturn/android_...=Y3Vyc29yOg9VMTFMCWu8kAgT7WiC1DM/o30qKzI0NA==
Tip 2: use GCC 4.8, don't use GCC 4.9 unless you know what you're doing.
Good luck :good:

Related

Kernel Compile Fails

Any guru's up....
I keep getting a failure compiling the kernel. its failing at the proximity sensor. I used the kernel config from my phone and proximity is disabled. any how here is the code.
In file included from drivers/misc/proximity.c:14:
/root/myandroid/kernel-hero/arch/arm/include/asm/gpio.h:5:23: error: mach/gpio.h: No such file or directory
drivers/misc/proximity.c:20:23: error: mach/vreg.h: No such file or directory
drivers/misc/proximity.c:21:28: error: mach/msm_iomap.h: No such file or directory
drivers/misc/proximity.c: In function 'proximity_store':
drivers/misc/proximity.c:39: error: implicit declaration of function 'gpio_direction_output'
drivers/misc/proximity.c:42: error: implicit declaration of function 'gpio_get_value'
drivers/misc/proximity.c: In function 'proximity_interrupt':
drivers/misc/proximity.c:61: error: implicit declaration of function 'gpio_to_irq'
drivers/misc/proximity.c: In function 'proximity_early_suspend':
drivers/misc/proximity.c:87: error: implicit declaration of function 'vreg_get'
drivers/misc/proximity.c:87: warning: assignment makes pointer from integer without a cast
drivers/misc/proximity.c:88: error: implicit declaration of function 'vreg_disable'
drivers/misc/proximity.c: In function 'proximity_early_resume':
drivers/misc/proximity.c:95: warning: assignment makes pointer from integer without a cast
drivers/misc/proximity.c:96: error: implicit declaration of function 'vreg_enable'
drivers/misc/proximity.c: In function 'proximity_sensor_probe':
drivers/misc/proximity.c:116: warning: assignment makes pointer from integer without a cast
drivers/misc/proximity.c:117: error: implicit declaration of function 'vreg_set_level'
drivers/misc/proximity.c:121: warning: ISO C90 forbids mixed declarations and code
drivers/misc/proximity.c:123: warning: ISO C90 forbids mixed declarations and code
drivers/misc/proximity.c:127: error: implicit declaration of function 'gpio_request'
drivers/misc/proximity.c:139: error: implicit declaration of function 'gpio_direction_input'
drivers/misc/proximity.c:170: error: 'struct early_suspend' has no member named 'suspend'
drivers/misc/proximity.c:171: error: 'struct early_suspend' has no member named 'resume'
make[2]: *** [drivers/misc/proximity.o] Error 1
make[1]: *** [drivers/misc] Error 2
make: *** [drivers] Error 2
Thanks in advanced for the help
cteneyck said:
Any guru's up....
I keep getting a failure compiling the kernel. its failing at the proximity sensor. I used the kernel config from my phone and proximity is disabled. any how here is the code.
In file included from drivers/misc/proximity.c:14:
/root/myandroid/kernel-hero/arch/arm/include/asm/gpio.h:5:23: error: mach/gpio.h: No such file or directory
drivers/misc/proximity.c:20:23: error: mach/vreg.h: No such file or directory
drivers/misc/proximity.c:21:28: error: mach/msm_iomap.h: No such file or directory
drivers/misc/proximity.c: In function 'proximity_store':
drivers/misc/proximity.c:39: error: implicit declaration of function 'gpio_direction_output'
drivers/misc/proximity.c:42: error: implicit declaration of function 'gpio_get_value'
drivers/misc/proximity.c: In function 'proximity_interrupt':
drivers/misc/proximity.c:61: error: implicit declaration of function 'gpio_to_irq'
drivers/misc/proximity.c: In function 'proximity_early_suspend':
drivers/misc/proximity.c:87: error: implicit declaration of function 'vreg_get'
drivers/misc/proximity.c:87: warning: assignment makes pointer from integer without a cast
drivers/misc/proximity.c:88: error: implicit declaration of function 'vreg_disable'
drivers/misc/proximity.c: In function 'proximity_early_resume':
drivers/misc/proximity.c:95: warning: assignment makes pointer from integer without a cast
drivers/misc/proximity.c:96: error: implicit declaration of function 'vreg_enable'
drivers/misc/proximity.c: In function 'proximity_sensor_probe':
drivers/misc/proximity.c:116: warning: assignment makes pointer from integer without a cast
drivers/misc/proximity.c:117: error: implicit declaration of function 'vreg_set_level'
drivers/misc/proximity.c:121: warning: ISO C90 forbids mixed declarations and code
drivers/misc/proximity.c:123: warning: ISO C90 forbids mixed declarations and code
drivers/misc/proximity.c:127: error: implicit declaration of function 'gpio_request'
drivers/misc/proximity.c:139: error: implicit declaration of function 'gpio_direction_input'
drivers/misc/proximity.c:170: error: 'struct early_suspend' has no member named 'suspend'
drivers/misc/proximity.c:171: error: 'struct early_suspend' has no member named 'resume'
make[2]: *** [drivers/misc/proximity.o] Error 1
make[1]: *** [drivers/misc] Error 2
make: *** [drivers] Error 2
Thanks in advanced for the help
Click to expand...
Click to collapse
I have never recieved any issues compiling the kernel. Could you explain what exactly you did to receive this?
im running ubuntu 9.04
have followed the instructions at source.android.com to set up my workspace.
downloaded the kernel
decompressed file
make menuconfig
loaded up the module which i pulled from my phone
saved .config
exit menu config
make
i think i was in the wrong dir. dang its getting late...lol
i was in the wrong dir lol
Kernel: arch/arm/boot/Image is ready
AS arch/arm/boot/compressed/head.o
GZIP arch/arm/boot/compressed/piggy.gz
AS arch/arm/boot/compressed/piggy.o
CC arch/arm/boot/compressed/misc.o
LD arch/arm/boot/compressed/vmlinux
OBJCOPY arch/arm/boot/zImage
Kernel: arch/arm/boot/zImage is ready
Building modules, stage 2.
MODPOST 0 modules
cteneyck said:
i was in the wrong dir lol
Kernel: arch/arm/boot/Image is ready
AS arch/arm/boot/compressed/head.o
GZIP arch/arm/boot/compressed/piggy.gz
AS arch/arm/boot/compressed/piggy.o
CC arch/arm/boot/compressed/misc.o
LD arch/arm/boot/compressed/vmlinux
OBJCOPY arch/arm/boot/zImage
Kernel: arch/arm/boot/zImage is ready
Building modules, stage 2.
MODPOST 0 modules
Click to expand...
Click to collapse
ha ha. Can't say it's not something I have ever done. Glad you got it working. You have a fully patched and working 2.6.29 CDMA Kernel now, right?
no not a .29 kernel just the stock .27 kernel. I having more problems tho. i am stuck with the zImage and i have tried to test it using the commands below but its not working both ways
1.Put my phone into fast
2. c:\fastboot boot /path/to/my/zImage
it outputs and fails.
creating boot image...
creating boot image - 1675264 bytes
downloading 'boot.img'... FAILED (remote: not allow)
so i thought i would flash /dev/mtd2 by unpacking and repacking the mtd2.img with my zImage but the script (the script at android-dls modified with the –base 0×19200000 code in the repack) but it says there is extra info found in my the mtd2.img
so i am am stuck at the moment and trying to figure this one out
and i have no clue on how to make an update.zip. which is the way i should probably go.
cteneyck said:
no not a .29 kernel just the stock .27 kernel. I having more problems tho. i am stuck with the zImage and i have tried to test it using the commands below but its not working both ways
1.Put my phone into fast
2. c:\fastboot boot /path/to/my/zImage
it outputs and fails.
creating boot image...
creating boot image - 1675264 bytes
downloading 'boot.img'... FAILED (remote: not allow)
so i thought i would flash /dev/mtd2 by unpacking and repacking the mtd2.img with my zImage but the script (the script at android-dls modified with the –base 0×19200000 code in the repack) but it says there is extra info found in my the mtd2.img
so i am am stuck at the moment and trying to figure this one out
and i have no clue on how to make an update.zip. which is the way i should probably go.
Click to expand...
Click to collapse
Follow Lox_Dev's tutorial here: http://forum.xda-developers.com/showthread.php?t=551711
You have to unpack an existing boot.img, replace the boot.img-kernel file with the zImage you made (rename zImage to boot.img-kernel) and then repackage it. The flash the new boot.img file.
P.S. The .29 comment was sarcasm
LOL. you got me. thanks for the link. i'll report back.
I got it up and running
I have a stupid question. So if I compiled the kernel that I downloaded. What do I do to put my new kernel on my phone?
s0v3r1gn said:
I have a stupid question. So if I compiled the kernel that I downloaded. What do I do to put my new kernel on my phone?
Click to expand...
Click to collapse
Look back a couple posts, sparky. That was just covered.
s0v3r1gn said:
I have a stupid question. So if I compiled the kernel that I downloaded. What do I do to put my new kernel on my phone?
Click to expand...
Click to collapse
Its not a stupid question but basically you have to grab the boot image from your phone. then split the kernel and the ramdisk. rename your zimage and pack it back into a new boot image and flash it to your phone. I will post the steps i took in a how to soon as i get wireless back working. for what ever reason i can't get it working.
^ Great! Sounds good. I'm going to give compiling a try once you get that posted.
i know about the password being shown. im not running that rom and have gone to a stock (root) version to make my own mods. now that the kernel souce is avialable. im gonna try and build a complete custom rom.
cteneyck said:
Any guru's up....
I keep getting a failure compiling the kernel. its failing at the proximity sensor. I used the kernel config from my phone and proximity is disabled. any how here is the code.
In file included from drivers/misc/proximity.c:14:
/root/myandroid/kernel-hero/arch/arm/include/asm/gpio.h:5:23: error: mach/gpio.h: No such file or directory
drivers/misc/proximity.c:20:23: error: mach/vreg.h: No such file or directory
drivers/misc/proximity.c:21:28: error: mach/msm_iomap.h: No such file or directory
drivers/misc/proximity.c: In function 'proximity_store':
drivers/misc/proximity.c:39: error: implicit declaration of function 'gpio_direction_output'
drivers/misc/proximity.c:42: error: implicit declaration of function 'gpio_get_value'
drivers/misc/proximity.c: In function 'proximity_interrupt':
drivers/misc/proximity.c:61: error: implicit declaration of function 'gpio_to_irq'
drivers/misc/proximity.c: In function 'proximity_early_suspend':
drivers/misc/proximity.c:87: error: implicit declaration of function 'vreg_get'
drivers/misc/proximity.c:87: warning: assignment makes pointer from integer without a cast
drivers/misc/proximity.c:88: error: implicit declaration of function 'vreg_disable'
drivers/misc/proximity.c: In function 'proximity_early_resume':
drivers/misc/proximity.c:95: warning: assignment makes pointer from integer without a cast
drivers/misc/proximity.c:96: error: implicit declaration of function 'vreg_enable'
drivers/misc/proximity.c: In function 'proximity_sensor_probe':
drivers/misc/proximity.c:116: warning: assignment makes pointer from integer without a cast
drivers/misc/proximity.c:117: error: implicit declaration of function 'vreg_set_level'
drivers/misc/proximity.c:121: warning: ISO C90 forbids mixed declarations and code
drivers/misc/proximity.c:123: warning: ISO C90 forbids mixed declarations and code
drivers/misc/proximity.c:127: error: implicit declaration of function 'gpio_request'
drivers/misc/proximity.c:139: error: implicit declaration of function 'gpio_direction_input'
drivers/misc/proximity.c:170: error: 'struct early_suspend' has no member named 'suspend'
drivers/misc/proximity.c:171: error: 'struct early_suspend' has no member named 'resume'
make[2]: *** [drivers/misc/proximity.o] Error 1
make[1]: *** [drivers/misc] Error 2
make: *** [drivers] Error 2
Thanks in advanced for the help
Click to expand...
Click to collapse
Hello, I have the same problem with drivers/i2c/chips/mt9t013.c when I compiled HTC Magic kernel
Can you say me more about good folder?
+1
Please answer someone
!
edit: just realized this thread was necro-bumped. Removed my post. Apologies for assisting in bringing back the dead.

[DEV] Kernel 3.4 - WIP

I am working on kernel 3.4.39 for bravo/bravoc.
Currently lots needs to be done, but its almost compiling.
TODO: board files, mdp/kgsl, yaffs2, pm, memory, mmc, drivers (list not made yet), possible more.
Hopes: Vsync, ION, make it boot
If anyone would like to help please PM or pull request and join irc (not set up yet).
https://github.com/croniccorey/WIP-8x50
@Shaky156 Thanks for setting up the thread.
Last kmesg / Current build errors
Code:
Currently not compiling:
yaffs2_vfs
pm
memory
Code:
Errors compiling memory.c:
CC arch/arm/mach-msm/memory.o
In file included from arch/arm/mach-msm/include/mach/msm_memtypes.h:36:0,
from arch/arm/mach-msm/memory.c:29:
arch/arm/mach-msm/include/mach/memory.h:21:0: warning: "PHYS_OFFSET" redefined [enabled by default]
#define PHYS_OFFSET UL(CONFIG_PHYS_OFFSET)
^
In file included from /home/croniccorey/DEV/KERNEL/WIP-8x50/arch/arm/include/asm/page.h:170:0,
from include/linux/mmzone.h:20,
from include/linux/gfp.h:4,
from include/linux/mm.h:8,
from arch/arm/mach-msm/memory.c:17:
/home/croniccorey/DEV/KERNEL/WIP-8x50/arch/arm/include/asm/memory.h:161:0: note: this is the location of the previous definition
#define PHYS_OFFSET __pv_phys_offset
^
In file included from arch/arm/mach-msm/memory.c:39:0:
arch/arm/include/generated/../../mm/mm.h: In function 'set_top_pte':
arch/arm/include/generated/../../mm/mm.h:23:2: error: implicit declaration of function 'local_flush_tlb_kernel_page' [-Werror=implicit-function-declaration]
local_flush_tlb_kernel_page(va);
^
In file included from include/linux/mm.h:44:0,
from arch/arm/mach-msm/memory.c:17:
arch/arm/include/generated/../../mm/mm.h: In function 'pmd_off_k':
/home/croniccorey/DEV/KERNEL/WIP-8x50/arch/arm/include/asm/pgtable.h:163:40: error: 'init_mm' undeclared (first use in this function)
#define pgd_offset_k(addr) pgd_offset(&init_mm, addr)
^
/home/croniccorey/DEV/KERNEL/WIP-8x50/arch/arm/include/asm/pgtable.h:160:32: note: in definition of macro 'pgd_offset'
#define pgd_offset(mm, addr) ((mm)->pgd + pgd_index(addr))
^
arch/arm/include/generated/../../mm/mm.h:34:31: note: in expansion of macro 'pgd_offset_k'
return pmd_offset(pud_offset(pgd_offset_k(virt), virt), virt);
^
/home/croniccorey/DEV/KERNEL/WIP-8x50/arch/arm/include/asm/pgtable.h:163:40: note: each undeclared identifier is reported only once for each function it appears in
#define pgd_offset_k(addr) pgd_offset(&init_mm, addr)
^
/home/croniccorey/DEV/KERNEL/WIP-8x50/arch/arm/include/asm/pgtable.h:160:32: note: in definition of macro 'pgd_offset'
#define pgd_offset(mm, addr) ((mm)->pgd + pgd_index(addr))
^
arch/arm/include/generated/../../mm/mm.h:34:31: note: in expansion of macro 'pgd_offset_k'
return pmd_offset(pud_offset(pgd_offset_k(virt), virt), virt);
^
arch/arm/mach-msm/memory.c: In function 'arch_io_remap_pfn_range':
arch/arm/mach-msm/memory.c:46:3: error: implicit declaration of function 'pgprot_device' [-Werror=implicit-function-declaration]
prot = pgprot_device(prot);
^
arch/arm/mach-msm/memory.c:47:3: warning: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'pgprot_t' [-Wformat=]
pr_debug("remapping device %lx\n", prot);
^
arch/arm/mach-msm/memory.c: In function 'calculate_reserve_limits':
arch/arm/mach-msm/memory.c:240:4: warning: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'phys_addr_t' [-Wformat=]
pr_warning("unknown memory type for bank at %lx\n",
^
cc1: some warnings being treated as errors
make[1]: *** [arch/arm/mach-msm/memory.o] Error 1
Code:
Errors compiling pm.c:
CC arch/arm/mach-msm/pm.o
arch/arm/mach-msm/pm.c: In function 'msm_sleep':
arch/arm/mach-msm/pm.c:357:2: error: implicit declaration of function 'clk_enter_sleep' [-Werror=implicit-function-declaration]
clk_enter_sleep(from_idle);
^
arch/arm/mach-msm/pm.c:437:7: error: implicit declaration of function 'vfp_flush_context' [-Werror=implicit-function-declaration]
vfp_flush_context();
^
arch/arm/mach-msm/pm.c:450:9: error: implicit declaration of function 'vfp_reinit' [-Werror=implicit-function-declaration]
vfp_reinit();
^
arch/arm/mach-msm/pm.c:524:2: error: implicit declaration of function 'clk_exit_sleep' [-Werror=implicit-function-declaration]
clk_exit_sleep();
^
arch/arm/mach-msm/pm.c: In function 'arch_idle':
arch/arm/mach-msm/pm.c:554:3: error: implicit declaration of function 'has_wake_lock' [-Werror=implicit-function-declaration]
!has_wake_lock(WAKE_LOCK_IDLE) &&
^
arch/arm/mach-msm/pm.c: In function 'msm_pm_init':
arch/arm/mach-msm/pm.c:864:17: warning: assignment from incompatible pointer type [enabled by default]
arm_pm_restart = msm_pm_restart;
^
cc1: some warnings being treated as errors
make[1]: *** [arch/arm/mach-msm/pm.o] Error 1
Code:
Current errors at end of compile:
LD vmlinux
arch/arm/mach-msm/built-in.o:smd.c:function handle_modem_crash: error: undefined reference to 'msm_pm_flush_console'
arch/arm/mach-msm/built-in.o:htc_power_supply.c:function dock_get_edge: error: undefined reference to 'msm_read_fast_timer'
arch/arm/mach-msm/built-in.o:htc_power_supply.c:function dock_command_retry: error: undefined reference to 'msm_enable_fast_timer'
arch/arm/mach-msm/built-in.o:htc_power_supply.c:function dock_command_retry: error: undefined reference to 'msm_read_fast_timer'
arch/arm/mach-msm/built-in.o:htc_power_supply.c:function dock_command_retry: error: undefined reference to 'msm_read_fast_timer'
arch/arm/mach-msm/built-in.o:htc_power_supply.c:function dock_command_retry: error: undefined reference to 'msm_read_fast_timer'
arch/arm/mach-msm/built-in.o:htc_power_supply.c:function dock_command_retry: error: undefined reference to 'msm_disable_fast_timer'
arch/arm/mach-msm/built-in.o:msm_q6vdec.c:function vdec_close.isra.5: error: undefined reference to 'put_pmem_file'
arch/arm/mach-msm/built-in.o:msm_q6vdec.c:function vdec_ioctl: error: undefined reference to 'get_pmem_file'
arch/arm/mach-msm/built-in.o:msm_q6vdec.c:function vdec_ioctl: error: undefined reference to 'put_pmem_file'
arch/arm/mach-msm/built-in.o:msm_q6venc.c:function q6venc_release: error: undefined reference to 'put_pmem_file'
arch/arm/mach-msm/built-in.o:msm_q6venc.c:function venc_q6_callback: error: undefined reference to 'put_pmem_file'
arch/arm/mach-msm/built-in.o:msm_q6venc.c:function venc_add_pmem_to_list: error: undefined reference to 'get_pmem_file'
arch/arm/mach-msm/built-in.o:socinfo.c:function socinfo_create_files.constprop.9: error: undefined reference to 'sysdev_create_file'
arch/arm/mach-msm/built-in.o:socinfo.c:function socinfo_init_sysdev: error: undefined reference to 'sysdev_class_register'
arch/arm/mach-msm/built-in.o:socinfo.c:function socinfo_init_sysdev: error: undefined reference to 'sysdev_register'
arch/arm/mach-msm/built-in.o:nand_partitions.c:function parse_tag_msm_partition: error: undefined reference to 'msm_nand_data'
arch/arm/mach-msm/built-in.o:dsp_debug.c:function bravo_init_panel: error: undefined reference to 'msm_device_mdp'
arch/arm/mach-msm/built-in.o:board-bravo.c:function bravo_init: error: undefined reference to 'msm_device_uart_dm1'
arch/arm/mach-msm/built-in.o:board-bravo.c:function msm_uart_dm1_pdata: error: undefined reference to 'bcm_bt_lpm_exit_lpm_locked'
arch/arm/mach-msm/built-in.o:board-bravo.c:function devices: error: undefined reference to 'msm_device_uart1'
arch/arm/mach-msm/built-in.o:board-bravo.c:function devices: error: undefined reference to 'msm_device_uart_dm1'
arch/arm/mach-msm/built-in.o:board-bravo.c:function devices: error: undefined reference to 'msm_device_nand'
arch/arm/mach-msm/built-in.o:board-bravo.c:function devices: error: undefined reference to 'msm_device_i2c'
drivers/built-in.o:ds2784_battery.c:function ds2784_program_alarm: error: undefined reference to 'alarm_start_range'
drivers/built-in.o:ds2784_battery.c:function ds2784_battery_probe: error: undefined reference to 'alarm_get_elapsed_realtime'
drivers/built-in.o:ds2784_battery.c:function ds2784_battery_work: error: undefined reference to 'alarm_get_elapsed_realtime'
net/built-in.o:activity_stats.c:function wiphy_rfkill_start_polling: error: undefined reference to 'rfkill_resume_polling'
make: *** [vmlinux] Error 1
New OP
Maybe this sounds stupid, but it gives "msm" errors, and Desire is not a msm device..
Sent from my HTC Desire HD using xda app-developers app
TheRinseM said:
Maybe this sounfs stupid, but it gives "msm" errors, and Desire is not a msm device..
Sent from my HTC Desire HD using xda app-developers app
Click to expand...
Click to collapse
They are probably porting the kernel from a msm device, like the Nexus 4.
abaaaabbbb63 said:
They are probably porting the rom from a msm device, like the Nexus 4.
Click to expand...
Click to collapse
Mate Andoo, This is not a ROM, it's kernel 3.4
Hope you guys bring ION with it.
TheRinseM said:
Mate Andoo, This is not a ROM, it's kernel 3.4
Hope you guys bring ION with it.
Click to expand...
Click to collapse
Oops.. I meant kernel Wrote rom from reflex
Yeah they all use msm. MSM is right and should be there.

Compiling Kernel

I keep getting kernel compilation error when trying to compile CM kernel from sources.
Code:
/tmp/cc0DKVco.s: Assembler messages:
/tmp/cc0DKVco.s:172: Warning: swp{b} use is deprecated for ARMv6 and ARMv7
/tmp/cc0DKVco.s:199: Warning: swp{b} use is deprecated for ARMv6 and ARMv7
CC arch/arm/mach-msm/smd_private.o
CC arch/arm/mach-msm/smem.o
CC arch/arm/kernel/pmu.o
CC kernel/resource.o
CC arch/arm/kernel/perf_event.o
CC arch/arm/mach-msm/smd_init_dt.o
CC kernel/sysctl.o
arch/arm/mach-msm/smd_init_dt.c:24:25: fatal error: smd_private.h: No such file or directory
#include <smd_private.h>
^
compilation terminated.
make[1]: *** [arch/arm/mach-msm/smd_init_dt.o] Error 1
make: *** [arch/arm/mach-msm] Error 2
make: *** Waiting for unfinished jobs....
No mods or tweaks has been added, just compiling with A7 optimized (linaro) toolchain on Ubuntu 13.10. I'm pretty sure I have installed all the necessary files and set-up the build environment. I'm new to this so could a dev help me?
bu,p
Same for me, where is the problem? can anyone help?
here is my output:
Code:
arch/arm/mach-msm/smd_init_dt.c:24:25: error: smd_private.h: No such file or directory
arch/arm/mach-msm/smd_init_dt.c: In function 'msm_smsm_probe':
arch/arm/mach-msm/smd_init_dt.c:66: error: 'disable_smsm_reset_handshake' undeclared (first use in this function)
arch/arm/mach-msm/smd_init_dt.c:66: error: (Each undeclared identifier is reported only once
arch/arm/mach-msm/smd_init_dt.c:66: error: for each function it appears in.)
arch/arm/mach-msm/smd_init_dt.c:88: error: 'msm_smd_debug_mask' undeclared (first use in this function)
arch/arm/mach-msm/smd_init_dt.c:88: error: 'MSM_SMSM_DEBUG' undeclared (first use in this function)
arch/arm/mach-msm/smd_init_dt.c:88: error: 'smd_log_ctx' undeclared (first use in this function)
arch/arm/mach-msm/smd_init_dt.c:114: error: implicit declaration of function 'smd_get_intr_config'
arch/arm/mach-msm/smd_init_dt.c:114: warning: assignment makes pointer from integer without a cast
error, forbidden warning: smd_init_dt.c:114
make[1]: *** [arch/arm/mach-msm/smd_init_dt.o] Errore 1
make: *** [arch/arm/mach-msm] Errore 2
make: *** Attesa per i processi non terminati....
CC arch/arm/kernel/pmu.o
LD arch/arm/perfmon/built-in.o
CC arch/arm/kernel/perf_event.o
arch/arm/kernel/bootinfo.c: In function 'bootinfo_bck_buf_check':
arch/arm/kernel/bootinfo.c:277: warning: integer constant is too large for 'long' type
error, forbidden warning: bootinfo.c:277
EDIT: I solved the smd_privae.h not found simply by copying it from mach-msm into mach-msm/include/mach and replacing
Code:
#include <smd_private.h>
with
Code:
#include <mach/smd_private.h>
But i still have this problem: in bootinfo.c the value BOOTINFO_BCK_MAGIC (defined as #define BOOTINFO_BCK_MAGIC 0x626f6f74696e666f) is an integer costant which is too large for 'long' type (at line 277 in the expression if (bck->magic != BOOTINFO_BCK_MAGIC))
Any help?
EDIT2: solved it thanks to google and stackoverflow, just replace 0x626F6F74696E666F with 0x626F6F74696E666FULL (where ULL = Unsigned Long Long, not sure about the meaning, still a complete noob at C++ (not even sure it is C++) :silly:

Cm12 build : Error in BT module

Hi, i try to build CM12 for crespo.
The error occurs when compile Bluetooth module:
Code:
target thumb C: bluetooth.default <= external/bluetooth/bluedroid/main/../btif/src/bluetooth.c
target thumb C: bluetooth.default <= external/bluetooth/bluedroid/main/bte_conf.c
target thumb C: bluetooth.default <= external/bluetooth/bluedroid/main/bte_init.c
target thumb C: bluetooth.default <= external/bluetooth/bluedroid/main/bte_logmsg.c
preparing StaticLib: libc++ [including /media/EXT/android/nexus_s_cm_12/out/target/product/crespo/obj/STATIC_LIBRARIES/libcompiler_rt_intermediates/libcompiler_rt.a]
target thumb C: bluetooth.default <= external/bluetooth/bluedroid/main/bte_main.c
host StaticLib: libunwindbacktrace_32 (/media/EXT/android/nexus_s_cm_12/out/host/linux-x86/obj32/STATIC_LIBRARIES/libunwindbacktrace_intermediates/libunwindbacktrace.a)
external/bluetooth/bluedroid/main/../btif/src/bluetooth.c: In function 'bt_le_lpp_rssi_monitor_upstream_evt':
external/bluetooth/bluedroid/main/../btif/src/bluetooth.c:547:14: error: 'WRITE_RSSI_MONITOR_THRESHOLD' undeclared (first use in this function)
case WRITE_RSSI_MONITOR_THRESHOLD:
^
external/bluetooth/bluedroid/main/../btif/src/bluetooth.c:547:14: note: each undeclared identifier is reported only once for each function it appears in
external/bluetooth/bluedroid/main/../btif/src/bluetooth.c:551:14: error: 'READ_RSSI_MONITOR_THRESHOLD' undeclared (first use in this function)
case READ_RSSI_MONITOR_THRESHOLD:
^
external/bluetooth/bluedroid/main/../btif/src/bluetooth.c:559:14: error: 'ENABLE_RSSI_MONITOR' undeclared (first use in this function)
case ENABLE_RSSI_MONITOR:
^
external/bluetooth/bluedroid/main/../btif/src/bluetooth.c: In function 'bt_le_handle_lpp_monitor_rssi':
external/bluetooth/bluedroid/main/../btif/src/bluetooth.c:637:28: error: 'WRITE_RSSI_MONITOR_THRESHOLD' undeclared (first use in this function)
error.subcmd = WRITE_RSSI_MONITOR_THRESHOLD;
^
external/bluetooth/bluedroid/main/../btif/src/bluetooth.c:648:28: error: 'ENABLE_RSSI_MONITOR' undeclared (first use in this function)
error.subcmd = ENABLE_RSSI_MONITOR;
^
external/bluetooth/bluedroid/main/../btif/src/bluetooth.c:672:28: error: 'READ_RSSI_MONITOR_THRESHOLD' undeclared (first use in this function)
error.subcmd = READ_RSSI_MONITOR_THRESHOLD;
^
build/core/binary.mk:697: recipe for target '/media/EXT/android/nexus_s_cm_12/out/target/product/crespo/obj/SHARED_LIBRARIES/bluetooth.default_intermediates/../btif/src/bluetooth.o' failed
make: *** [/media/EXT/android/nexus_s_cm_12/out/target/product/crespo/obj/SHARED_LIBRARIES/bluetooth.default_intermediates/../btif/src/bluetooth.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from external/bluetooth/bluedroid/main/../include/bte_appl.h:28:0,
from external/bluetooth/bluedroid/main/bte_logmsg.c:36:
external/bluetooth/bluedroid/main/../stack/btm/btm_int.h:45:1: error: unknown type name 'tBTM_BLE_MULTI_ADV_CB'
tBTM_BLE_MULTI_ADV_CB btm_multi_adv_cb;
^
build/core/binary.mk:697: recipe for target '/media/EXT/android/nexus_s_cm_12/out/target/product/crespo/obj/SHARED_LIBRARIES/bluetooth.default_intermediates/bte_logmsg.o' failed
make: *** [/media/EXT/android/nexus_s_cm_12/out/target/product/crespo/obj/SHARED_LIBRARIES/bluetooth.default_intermediates/bte_logmsg.o] Error 1
target StaticLib: libc++ (/media/EXT/android/nexus_s_cm_12/out/target/product/crespo/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a)
I'd like to help you since I have this phone. Can you provide me steps for building CM12? Also skip this if you can so that we can get hands on it asap. Fixes for bt can be applied later via patches.
silverand said:
Hi, i try to build CM12 for crespo.
The error occurs when compile Bluetooth module:
Code:
target thumb C: bluetooth.default <= external/bluetooth/bluedroid/main/../btif/src/bluetooth.c
target thumb C: bluetooth.default <= external/bluetooth/bluedroid/main/bte_conf.c
target thumb C: bluetooth.default <= external/bluetooth/bluedroid/main/bte_init.c
target thumb C: bluetooth.default <= external/bluetooth/bluedroid/main/bte_logmsg.c
preparing StaticLib: libc++ [including /media/EXT/android/nexus_s_cm_12/out/target/product/crespo/obj/STATIC_LIBRARIES/libcompiler_rt_intermediates/libcompiler_rt.a]
target thumb C: bluetooth.default <= external/bluetooth/bluedroid/main/bte_main.c
host StaticLib: libunwindbacktrace_32 (/media/EXT/android/nexus_s_cm_12/out/host/linux-x86/obj32/STATIC_LIBRARIES/libunwindbacktrace_intermediates/libunwindbacktrace.a)
external/bluetooth/bluedroid/main/../btif/src/bluetooth.c: In function 'bt_le_lpp_rssi_monitor_upstream_evt':
external/bluetooth/bluedroid/main/../btif/src/bluetooth.c:547:14: error: 'WRITE_RSSI_MONITOR_THRESHOLD' undeclared (first use in this function)
case WRITE_RSSI_MONITOR_THRESHOLD:
^
external/bluetooth/bluedroid/main/../btif/src/bluetooth.c:547:14: note: each undeclared identifier is reported only once for each function it appears in
external/bluetooth/bluedroid/main/../btif/src/bluetooth.c:551:14: error: 'READ_RSSI_MONITOR_THRESHOLD' undeclared (first use in this function)
case READ_RSSI_MONITOR_THRESHOLD:
^
external/bluetooth/bluedroid/main/../btif/src/bluetooth.c:559:14: error: 'ENABLE_RSSI_MONITOR' undeclared (first use in this function)
case ENABLE_RSSI_MONITOR:
^
external/bluetooth/bluedroid/main/../btif/src/bluetooth.c: In function 'bt_le_handle_lpp_monitor_rssi':
external/bluetooth/bluedroid/main/../btif/src/bluetooth.c:637:28: error: 'WRITE_RSSI_MONITOR_THRESHOLD' undeclared (first use in this function)
error.subcmd = WRITE_RSSI_MONITOR_THRESHOLD;
^
external/bluetooth/bluedroid/main/../btif/src/bluetooth.c:648:28: error: 'ENABLE_RSSI_MONITOR' undeclared (first use in this function)
error.subcmd = ENABLE_RSSI_MONITOR;
^
external/bluetooth/bluedroid/main/../btif/src/bluetooth.c:672:28: error: 'READ_RSSI_MONITOR_THRESHOLD' undeclared (first use in this function)
error.subcmd = READ_RSSI_MONITOR_THRESHOLD;
^
build/core/binary.mk:697: recipe for target '/media/EXT/android/nexus_s_cm_12/out/target/product/crespo/obj/SHARED_LIBRARIES/bluetooth.default_intermediates/../btif/src/bluetooth.o' failed
make: *** [/media/EXT/android/nexus_s_cm_12/out/target/product/crespo/obj/SHARED_LIBRARIES/bluetooth.default_intermediates/../btif/src/bluetooth.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from external/bluetooth/bluedroid/main/../include/bte_appl.h:28:0,
from external/bluetooth/bluedroid/main/bte_logmsg.c:36:
external/bluetooth/bluedroid/main/../stack/btm/btm_int.h:45:1: error: unknown type name 'tBTM_BLE_MULTI_ADV_CB'
tBTM_BLE_MULTI_ADV_CB btm_multi_adv_cb;
^
build/core/binary.mk:697: recipe for target '/media/EXT/android/nexus_s_cm_12/out/target/product/crespo/obj/SHARED_LIBRARIES/bluetooth.default_intermediates/bte_logmsg.o' failed
make: *** [/media/EXT/android/nexus_s_cm_12/out/target/product/crespo/obj/SHARED_LIBRARIES/bluetooth.default_intermediates/bte_logmsg.o] Error 1
target StaticLib: libc++ (/media/EXT/android/nexus_s_cm_12/out/target/product/crespo/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a)
Click to expand...
Click to collapse
Any news?
My nexus need refresh with ne rom
any news on this one?
Yeah, there is definitely something with the Bluetooth module. I got that error too.
Same error here. I'm trying to fix it, seems like an error from upstream (LG P970 experiencing it too)
For one of the errors, try adding
typedef struct tBTM_BLE_MULTI_ADV_CB;
to btm_int.h
It errors saying a type is undefined
I'm facing the similar kinds of errors, has anybody found a solution for this?
Gokulbalram said:
I'm facing the similar kinds of errors, has anybody found a solution for this?
Click to expand...
Click to collapse
Hi, i am compiling cm12 for the i9000 (Galaxy S1).
i had this issue too, but a friend of me @Soorrrajjj got an fix for it.
i will tell you more when i fixed it
jeffreyvh said:
Hi, i am compiling cm12 for the i9000 (Galaxy S1).
i had this issue too, but a friend of me @Soorrrajjj got an fix for it.
i will tell you more when i fixed it
Click to expand...
Click to collapse
Even I was compiling for the i9000, would be awesome if you could let me know
Proper Solution
Guys, I noticed something.
There is ABSOLUTELY NOTHING wrong with the bluetooth module. Check your device bluetooth config file (device/(vendor)/(device name)/bluetooth/bdroid_buildcfg.h). The following three lines must be:
Code:
#define BLE_INCLUDED TRUE
#define BTA_GATT_INCLUDED TRUE
#define SMP_INCLUDED TRUE
That's it! Bluetooth successfully compiled for me
Cheers!
-Technohacker
Technohacker1995 said:
Guys, I noticed something.
There is ABSOLUTELY NOTHING wrong with the bluetooth module. Check your device bluetooth config file (device/(vendor)/(device name)/bluetooth/bdroid_buildcfg.h). The following three lines must be:
Code:
#define BLE_INCLUDED TRUE
#define BTA_GATT_INCLUDED TRUE
#define SMP_INCLUDED TRUE
That's it! Bluetooth successfully compiled for me
Cheers!
-Technohacker
Click to expand...
Click to collapse
That helped me! thanks!
EDIT: Although that helped me, I get this now:
Code:
external/bluetooth/bluedroid/main/../btif/src/btif_profile_queue.c:117: error: undefined reference to 'list_foreach_ext'
I'll have to check that one afterwards as I'm away from my build VM. Will report back soon
Sent from my GT-I9003 using XDA Free mobile app
Technohacker1995 said:
I'll have to check that one afterwards as I'm away from my build VM. Will report back soon
Sent from my GT-I9003 using XDA Free mobile app
Click to expand...
Click to collapse
Not a worry ATM, I just gave up on that and somehow a repo sync fixed it.
Although, I am building 5.0 and have various other errors, for the galaxysmtd (i9000)
Gokulbalram said:
Not a worry ATM, I just gave up on that and somehow a repo sync fixed it.
Although, I am building 5.0 and have various other errors, for the galaxysmtd (i9000)
Click to expand...
Click to collapse
Hello there,
I compiled cm12 for the galaxysmtd, see my device tree here https://github.com/cm12s1
I hope that it helps you, I fixed every single bug I got
jeffreyvh said:
Hello there,
I compiled cm12 for the galaxysmtd, see my device tree here https://github.com/cm12s1
I hope that it helps you, I fixed every single bug I got
Click to expand...
Click to collapse
Thanks mate, this should do the trick

Getting irq/irqdesc.o error while kernel compilation

I am trying to compile kernel for Realme 3 (new device) , but I am getting irq/irqdesc.o error, Maybe it's because the source are not complete.
Here is the link to kernel sources: https://github.com/realme-kernel-opensource/Realme3-kernel-source
Any help will be much appreciated
Code:
LD kernel/events/built-in.o
CC kernel/irq/irqdesc.o
Android GCC has been deprecated in favor of Clang, and will be removed from
Android in 2020-01 as per the deprecation plan in:
https://android.googlesource.com/platform/prebuilts/clang/host/linux-x86/+/master/GCC_4_9_DEPRECATION.md
In file included from include/linux/kernel.h:13:0,
from include/linux/list.h:8,
from include/linux/smp.h:11,
from include/linux/irq.h:12,
from kernel/irq/irqdesc.c:10:
kernel/irq/irqdesc.c: In function '__handle_domain_irq':
kernel/irq/irqdesc.c:421:11: error: 'desc' undeclared (first use in this function)
irq, (desc && desc->action && desc->action->name) ?
^
include/linux/printk.h:428:51: note: in definition of macro 'pr_debug'
no_printk(KERN_DEBUG KLOG_MODNAME pr_fmt(fmt), ##VA_ARGS)
^
kernel/irq/irqdesc.c:421:11: note: each undeclared identifier is reported only once for each function it appears in
irq, (desc && desc->action && desc->action->name) ?
^
include/linux/printk.h:428:51: note: in definition of macro 'pr_debug'
no_printk(KERN_DEBUG KLOG_MODNAME pr_fmt(fmt), ##VA_ARGS)
^
make[2]: *** [scripts/Makefile.build:278: kernel/irq/irqdesc.o] Error 1
make[1]: *** [scripts/Makefile.build:484: kernel/irq] Error 2
make: *** [Makefile:1054: kernel] Error 2
fawazahmed0 said:
I am trying to compile kernel for Realme 3 (new device) , but I am getting irq/irqdesc.o error, Maybe it's because the source are not complete.
Here is the link to kernel sources: https://github.com/realme-kernel-opensource/Realme3-kernel-source
Any help will be much appreciated
Code:
LD kernel/events/built-in.o
CC kernel/irq/irqdesc.o
Android GCC has been deprecated in favor of Clang, and will be removed from
Android in 2020-01 as per the deprecation plan in:
https://android.googlesource.com/platform/prebuilts/clang/host/linux-x86/+/master/GCC_4_9_DEPRECATION.md
In file included from include/linux/kernel.h:13:0,
from include/linux/list.h:8,
from include/linux/smp.h:11,
from include/linux/irq.h:12,
from kernel/irq/irqdesc.c:10:
kernel/irq/irqdesc.c: In function '__handle_domain_irq':
kernel/irq/irqdesc.c:421:11: error: 'desc' undeclared (first use in this function)
irq, (desc && desc->action && desc->action->name) ?
^
include/linux/printk.h:428:51: note: in definition of macro 'pr_debug'
no_printk(KERN_DEBUG KLOG_MODNAME pr_fmt(fmt), ##VA_ARGS)
^
kernel/irq/irqdesc.c:421:11: note: each undeclared identifier is reported only once for each function it appears in
irq, (desc && desc->action && desc->action->name) ?
^
include/linux/printk.h:428:51: note: in definition of macro 'pr_debug'
no_printk(KERN_DEBUG KLOG_MODNAME pr_fmt(fmt), ##VA_ARGS)
^
make[2]: *** [scripts/Makefile.build:278: kernel/irq/irqdesc.o] Error 1
make[1]: *** [scripts/Makefile.build:484: kernel/irq] Error 2
make: *** [Makefile:1054: kernel] Error 2
Click to expand...
Click to collapse
Now works perfectly, followed this guide:
https://forum.xda-developers.com/an...erence-how-to-compile-android-kernel-t3627297

Categories

Resources