compiling error kernel

lupohirp

Inactive Recognized Developer
Jul 27, 2010
977
7,399
0
Avellino
hi guys....i've downloaded the last kernel sources of franciscofranco 2.35.10 kernel....i've added the sippolo's workaround and then increase the HZ value of the kernel(set at 500) for my custom rom.....after i've done

Code:
make thunderg-perf_defconfig

make zImage -j4
it stuck at this error

Code:
drivers/input/touchscreen/mcs6000_ts.c: In function ‘mcs6000_ts_ioctl_down’:
drivers/input/touchscreen/mcs6000_ts.c:430:6: error: implicit declaration of function ‘gpio_configure’
drivers/input/touchscreen/mcs6000_ts.c: In function ‘mcs6000_ts_probe’:
drivers/input/touchscreen/mcs6000_ts.c:733:25: warning: unused variable ‘hw_ver’
drivers/input/touchscreen/mcs6000_ts.c:733:17: warning: unused variable ‘fw_ver’
make[3]: *** [drivers/input/touchscreen/mcs6000_ts.o] Errore 1
i don't understand why......i think it is a lib problem.....but seems that all libraries are imported!!!can anyone help me??? thnx in advice
 

mik_os

Retired Recognized Developer
Apr 13, 2010
746
1,830
0
Poltava
hi guys....i've downloaded the last kernel sources of franciscofranco 2.35.10 kernel....i've added the sippolo's workaround and then increase the HZ value of the kernel(set at 500) for my custom rom.....after i've done

Code:
make thunderg-perf_defconfig

make zImage -j4
it stuck at this error

Code:
drivers/input/touchscreen/mcs6000_ts.c: In function ‘mcs6000_ts_ioctl_down’:
drivers/input/touchscreen/mcs6000_ts.c:430:6: error: implicit declaration of function ‘gpio_configure’
drivers/input/touchscreen/mcs6000_ts.c: In function ‘mcs6000_ts_probe’:
drivers/input/touchscreen/mcs6000_ts.c:733:25: warning: unused variable ‘hw_ver’
drivers/input/touchscreen/mcs6000_ts.c:733:17: warning: unused variable ‘fw_ver’
make[3]: *** [drivers/input/touchscreen/mcs6000_ts.o] Errore 1
i don't understand why......i think it is a lib problem.....but seems that all libraries are imported!!!can anyone help me??? thnx in advice
.35 kernel have new GPIO library, you should code sippolo's workaround into new driver, do not replace whole file.
 

lupohirp

Inactive Recognized Developer
Jul 27, 2010
977
7,399
0
Avellino
.35 kernel have new GPIO library, you should code sippolo's workaround into new driver, do not replace whole file.
Aaaaa i don't know that :) thanks now it works ;-) now the next step i'm ttying to port the acer liquid multitouch fix :) thanks mik :)

Sent from my LG-P500 using XDA App
 

lupohirp

Inactive Recognized Developer
Jul 27, 2010
977
7,399
0
Avellino
now i'm stucking at this error...:(((

arch/arm/mm/built-in.o: In function `__flush_icache_all':
/home/pasquale/Scrivania/Franco.Kernel/2.6.35/arch/arm/include/asm/cacheflush.h:402: undefined reference to `swapper_space'
arch/arm/mm/built-in.o: In function `____atomic_set_bit':
/home/pasquale/Scrivania/Franco.Kernel/2.6.35/arch/arm/include/asm/bitops.h:46: undefined reference to `swapper_space'
arch/arm/mm/built-in.o: In function `spin_unlock':
/home/pasquale/Scrivania/Franco.Kernel/2.6.35/include/linux/spinlock.h:324: undefined reference to `swapper_space'
mm/built-in.o: In function `sync_page':
/home/pasquale/Scrivania/Franco.Kernel/2.6.35/mm/filemap.c:190: undefined reference to `swapper_space'
mm/built-in.o: In function `set_page_dirty':
/home/pasquale/Scrivania/Franco.Kernel/2.6.35/mm/page-writeback.c:1181: undefined reference to `swapper_space'
mm/built-in.o:/home/pasquale/Scrivania/Franco.Kernel/2.6.35/mm/page-writeback.c:1335: more undefined references to `swapper_space' follow
make: *** [.tmp_vmlinux1] Errore 1
seems another time a library problem...:( anyone can help me??
 

lupohirp

Inactive Recognized Developer
Jul 27, 2010
977
7,399
0
Avellino
What have you patched?
nothing franco....i've only added sippolo's workaround for base to port acer liquid multitouch fix and set kernel to 500hz i've worked only on mcs6000_ts......but it stuck at this error i don't know why!!!:( i think it is a library problem....something that is missing...but i don't know what are the libraries that i must install if it is this the problem!:((
 
  • Like
Reactions: franciscofranco

franciscofranco

Recognized Developer
Dec 9, 2010
24,725
136,397
0
Carcavelos

lupohirp

Inactive Recognized Developer
Jul 27, 2010
977
7,399
0
Avellino
You downloaded the latest sources? Because I haven't compiled it, I just merged the patches, I might have forgot to apply something. In this case it says it misses the swapper_space reference.

http://lxr.free-electrons.com/source/mm/swap_state.c#L40
http://lxr.free-electrons.com/source/include/linux/mm.h#L771
http://lxr.free-electrons.com/source/include/linux/swap.h#L319

Add the swapper_space code to those files and compile again.
yes franco i've downloaded latest sources!:) thanks now i'm going to add it and then try!:)
 

franciscofranco

Recognized Developer
Dec 9, 2010
24,725
136,397
0
Carcavelos
I'm sorry to disappoint you, but there ain't a problem with the kernel, I just compiled it without any modification, just like it is in the sources and it compiles fine. Try to make clean and make distclean, then compile again.
 

lupohirp

Inactive Recognized Developer
Jul 27, 2010
977
7,399
0
Avellino
I'm sorry to disappoint you, but there ain't a problem with the kernel, I just compiled it without any modification, just like it is in the sources and it compiles fine. Try to make clean and make distclean, then compile again.
yeah franco i know.....i think it is a libraries problem on my linux distro.....but i have installe all the binutils and the header files :( yesterday also i have tried a dirty hack i tried to set CONFIG_SWAP=n in the thunderg_perf_defconfig configuration file....compiled succesfully but the phone doesn't started :(...thanks anyway franco!:)