RE: spi_s3c64xx.c - plat/spi.h: No such file or directory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Frans,
hi Jassi,

linux-samsung-soc-owner@xxxxxxxxxxxxxxx wrote on Wednesday, March 10,
2010 9:40 AM: 
> On Wed, Mar 10, 2010 at 5:11 PM, Frans Pop <elendil@xxxxxxxxx> wrote:
>> When building with an SMDK6410 config with CONFIG_SPI_S3C64XX=m I
>> get the following compilation error: 
>> 
>> CC [M]  drivers/spi/spi_s3c64xx.o
>> drivers/spi/spi_s3c64xx.c:31:22: error: plat/spi.h: No such file or
>> directory 
>> 
>> This is with Ben Dooks' next-samsung branch merged into 2.6.33.

It's funny, I tried the same yesterday, with the next-samsung-6410
kernel and run into the same error message.

On the mailing list I found the patch "[PATCH 3/6] S3C64XX SPI: Header 
for passing platform data" from 21th November 2009, which I tried.
This seems to work. Then I tried to apply the patch "[PATCH 6/6] 
SMDK6410 SPI: Added spidev support as an example" to get the SPI
driver initialized on the SMDK6410 board. But this leads to other
compile errors:

linux-2.6-samsung/arch/arm/mach-s3c6410/mach-smdk6410.c:484: undefined reference to `s3c64xx_spi_set_info'
arch/arm/mach-s3c6410/built-in.o:(.init.data+0x90): undefined reference to `s3c64xx_device_spi0'
make: *** [.tmp_vmlinux1] Error 1

And once dev-spi.c is compiled into the kernel - to resolve the 
undefined reference error - the kernel crashes during bootup 
(<4>SLUB: Unable to allocate memory on node -1 ...). After this 
I gave up.

> There has recently been a major shuffle of headers in plat and mach,
> please test against some unmodified kernel and let me know which one
> if the error still occurs. Maybe you(or I) can submit a fix upstream.

What do you mean with 'unmodified kernel'? Where can I find the
latest Kernel with S3C6410 support?

Regards,
Martin
��.n��������+%������w��{.n�����{��Ʀ����)��jg��������ݢj����G�������j:+v���w�m������w�������h�����٥


[Index of Archives]     [Linux SoC Development]     [Linux Rockchip Development]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Linux SCSI]     [Yosemite News]

  Powered by Linux