This is my first post here - got Smartbook during UDS-N.
Cloned kernel from gitorious, used efikasb-10.07.11 branch:
Code:
commit 7eeed0cee10ec7ed8966dd6aacdd1ab825a492e8
Author: Matt Sealey <
matt@genesi-usa.com>
Date: Fri Oct 29 20:34:12 2010 -0500
efikamx watchdog to pmic - makes more sense here (backported from merge-10.07.11)
add SPI NOR registration back in
Copied config from device and started build:
Code:
CC arch/arm/mach-mx5/mx51_efikasb_gpio.o
arch/arm/mach-mx5/mx51_efikasb_gpio.c: In function ‘mx51_efikasb_spi_chipselect_active’:
arch/arm/mach-mx5/mx51_efikasb_gpio.c:1051:42: error: ‘SPI_PAD_CONFIG’ undeclared (first use in this function)
arch/arm/mach-mx5/mx51_efikasb_gpio.c:1051:42: note: each undeclared identifier is reported only once for each function it appears in
This can be "solved" by copying SPI_PAD_CONFIG define from arch/arm/mach-mx5/mx51_efikamx_spi.c file:
Code:
#define SPI_PAD_CONFIG (PAD_CTL_HYS_ENABLE | PAD_CTL_PKE_ENABLE | PAD_CTL_DRV_HIGH | \
PAD_CTL_SRE_FAST)
But kernel does not link anyway:
Code:
arch/arm/mach-mx5/built-in.o: In function `.LANCHOR0':
mx51_efikasb_powerkey.c:(.data+0x7c28): undefined reference to `mx51_efikasb_gpio_spi_chipselect_active'
mx51_efikasb_powerkey.c:(.data+0x7c2c): undefined reference to `mx51_efikasb_gpio_spi_chipselect_inactive'
make: *** [.tmp_vmlinux1] Error 1
And now I wonder still how to build Smartbook kernel...
UPDATE: "git reset HEAD~2" helped - kernel built.