pocketbook-free / pocketbook_free

pocketbook free sources
39 stars 2 forks source link

[Kernel] compile error #14

Open Vanuan opened 12 years ago

Vanuan commented 12 years ago

When building kernel, using config file located at pocketbook_free/kernel_070611/ep3config I get the following error:

drivers/char/ioc668-dev.c: In function 'ioc_ioctl':
drivers/char/ioc668-dev.c:815: error: implicit declaration of function 'Elan_Update668FW_func'

When I changed the following config option:

CONFIG_IOC668=y

to

CONFIG_IOC668=n

I've got the following:

In file included from include/sound/soc.h:460:0,
             from sound/soc/soc-core.c:34:
include/sound/soc-dai.h:224:25: error: duplicate member ‘codec’

Can you please provide a config file or more detailed instruction on how to build kernel from sources?

Vanuan commented 12 years ago

When I switched to arm-none-linux-gnueabi- compiler I end up with the following linking errors:

arch/arm/mach-s3c6410/built-in.o: In function `viva_max8698_init':
arch/arm/mach-s3c6410/mach-smdk6410.c:494: undefined reference to `get_epd_config'
arch/arm/mach-s3c6410/built-in.o: In function `smdk6410_machine_init':
arch/arm/mach-s3c6410/mach-smdk6410.c:824: undefined reference to `get_epd_config'
arch/arm/mach-s3c6410/mach-smdk6410.c:830: undefined reference to `ioc_poweron'
arch/arm/mach-s3c6410/mach-smdk6410.c:831: undefined reference to `ioc_reset'
arch/arm/plat-s3c64xx/built-in.o: In function `s3c6410_stop':
arch/arm/plat-s3c64xx/pm.c:1026: undefined reference to `detect_morse'
arch/arm/plat-s3c64xx/built-in.o: In function `s3c6410_pm_enter':
arch/arm/plat-s3c64xx/pm.c:1288: undefined reference to `gp_ioc'
drivers/built-in.o: In function `ioc_read_rst':
drivers/char/Elan_Update668FW_func.c:107: undefined reference to `get_epd_config'
drivers/built-in.o: In function `ioc_read_vdd':
drivers/char/Elan_Update668FW_func.c:94: undefined reference to `get_epd_config'
drivers/built-in.o: In function `ioc_rst_control':
drivers/char/Elan_Update668FW_func.c:64: undefined reference to `get_epd_config'
drivers/built-in.o: In function `ioc_vdd_control':
drivers/char/Elan_Update668FW_func.c:36: undefined reference to `get_epd_config'
drivers/built-in.o: In function `Elan_Initial_6410vs668':
drivers/char/Elan_Initial_6410vs668.c:58: undefined reference to `fw_a_area'
drivers/char/Elan_Initial_6410vs668.c:58: undefined reference to `fw_a_area'
drivers/char/Elan_Initial_6410vs668.c:58: undefined reference to `fw_b_area'
drivers/char/Elan_Initial_6410vs668.c:58: undefined reference to `fw_b_area'
drivers/built-in.o: In function `Elan_Define_668_RST_AS_INPUT_PIN':
drivers/char/Elan_Initial_6410vs668.c:133: undefined reference to `get_epd_config'
drivers/built-in.o: In function `Elan_Define_668_RST_AS_OUTPUT_PIN':
drivers/char/Elan_Initial_6410vs668.c:115: undefined reference to `get_epd_config'
drivers/built-in.o: In function `Elan_Define_668_VDD_AS_INPUT_PIN':
drivers/char/Elan_Initial_6410vs668.c:97: undefined reference to `get_epd_config'
drivers/built-in.o: In function `Elan_Define_668_VDD_AS_OUTPUT_PIN':
drivers/char/Elan_Initial_6410vs668.c:79: undefined reference to `get_epd_config'
drivers/built-in.o: In function `io_key_poll':
drivers/input/keyboard/key_for_ioctl.c:238: undefined reference to `morse_key_flag'
drivers/input/keyboard/key_for_ioctl.c:238: undefined reference to `morse_key_value'

Seems like I have to fix underlying error:

 drivers/char/ioc668-dev.c:815: error: implicit declaration of function 'Elan_Update668FW_func'
Vanuan commented 12 years ago

Since kurtis99 has kindly provided a patch http://www.the-ebook.org/forum/viewtopic.php?p=837096#837096 I've succesfully compiled kernel. Would you include it in this repository? When a new version of kernel will be published? You're violating GPL, you know?