Hello, L4 Hackers :-)
I'm trying to build L4 Linux with added option of MMC device driver.
When I've tried to compile L4 Linux , I've failed it with error log such as.. ============== drivers/built-in.o: In function `sdhci_pltfm_clk_get_max_clock': /home/taeung/test/source/l4linux/drivers/mmc/host/sdhci-pltfm.c:43: undefined reference to `clk_get_rate' make[1]: *** [vmlinux] Error 1 make: *** [sub-make] Error 2 ==============
After I saw the log , I've guessed the cause is that 'drivers/clk/clk.c' was not built. So, I must enable 'CONFIG_COMMON_CLK' , to build 'drivers/clk/clk.c'
How to enable 'CONFIG_COMMON_CLK' ?
For reference, I've tried to compile L4 Linux with options as follows.. =================================== --- MMC/SD/SDIO card support [ ] MMC debugging [*] Assume MMC/SD cards are non-removable (DANGEROUS) [ ] MMC host clock gating
*** MMC/SD/SDIO Card Drivers *** <*> MMC block device driver (8) Number of minors per block device [*] Use bounce buffer for simple hosts < > SDIO UART/GPS class support < > MMC host test driver
*** MMC/SD/SDIO Host Controller Drivers *** < > ARM AMBA Multimedia Card Interface support -*- Secure Digital Host Controller Interface support -*- SDHCI platform and OF driver helper <*> Marvell MMP2 SD Host Controller support (PXAV3) < > Marvell PXA9XX SD Host Controller support (PXAV2) < > Synopsys DesignWare Memory Card Interface ====================================
-Taeung -
On Mon Apr 28, 2014 at 18:51:13 +0900, Taeung wrote:
I'm trying to build L4 Linux with added option of MMC device driver.
When I've tried to compile L4 Linux , I've failed it with error log such as.. ============== drivers/built-in.o: In function `sdhci_pltfm_clk_get_max_clock': /home/taeung/test/source/l4linux/drivers/mmc/host/sdhci-pltfm.c:43: undefined reference to `clk_get_rate' make[1]: *** [vmlinux] Error 1 make: *** [sub-make] Error 2 ==============
After I saw the log , I've guessed the cause is that 'drivers/clk/clk.c' was not built. So, I must enable 'CONFIG_COMMON_CLK' , to build 'drivers/clk/clk.c'
How to enable 'CONFIG_COMMON_CLK' ?
You need to add 'select COMMON_CLK' to some platform config block (such as L4_PLATFORM_GENERIC).
Adam
Thank you very much Adam :-)
I've modified 'l4linux/arch/l4/Kconfig' as follows.. ===============
|...(omitted)..
prompt "Platform support" default L4_PLATFORM_GENERIC depends on L4_ARCH_ARM
config L4_PLATFORM_GENERIC bool "Generic" select CLKDEV_LOOKUP select L4_CLK_NOOP /("I've//a//dded the content below")/ * select HAVE_CLK_PREPARE select HAVE_MACH_CLKDEV select COMMON_CLK*|
|...(omitted)..|
===============
So,I've succeeded in enabling 'CONFIG_COMMON_CLK'.
- Taeung -
On 04/29/2014 06:44 AM, Adam Lackorzynski wrote:
On Mon Apr 28, 2014 at 18:51:13 +0900, Taeung wrote:
I'm trying to build L4 Linux with added option of MMC device driver.
When I've tried to compile L4 Linux , I've failed it with error log such as.. ============== drivers/built-in.o: In function `sdhci_pltfm_clk_get_max_clock': /home/taeung/test/source/l4linux/drivers/mmc/host/sdhci-pltfm.c:43: undefined reference to `clk_get_rate' make[1]: *** [vmlinux] Error 1 make: *** [sub-make] Error 2 ==============
After I saw the log , I've guessed the cause is that 'drivers/clk/clk.c' was not built. So, I must enable 'CONFIG_COMMON_CLK' , to build 'drivers/clk/clk.c'
How to enable 'CONFIG_COMMON_CLK' ?
You need to add 'select COMMON_CLK' to some platform config block (such as L4_PLATFORM_GENERIC).
Adam
l4-hackers@os.inf.tu-dresden.de