From mboxrd@z Thu Jan 1 00:00:00 1970
From: "=?UTF-8?B?6rCV7IOB7Jqw?=" Hi~ =
Kernel-2.6.22 Through the web searching and kernel documentation, I know that use th=
e spidev kernel module. static struct spi_board_info ek_spi_devices[] =3D { After compiling the kernel, download kernel img to the target. Device Drivers I execute the "/sbin/mdev -s" command into the target shell as expecti=
ng the /dev/spidev. #dmesg | grep spi Does root file system (NFS) has the problem ? or Kernel menu configura=
tion ? This project name - Access control Unit And SPI Interface is very important!. Other communication interface is=
done. Please Help me~. I had reported this problems to atmel and at91 but I =
did not receive any reply~
My developing Environment is below.
tar jxvf linux-2.6.22.1.tar=
.bz2
cd linux-2.6.22.1
&=
nbsp; zcat ../2.6.22-rc1-at91.patch.gz | patch -p1 > patchresult.txtCPU-AT91SAM9260
And I modify arch/at-91/board_sam9260.c file =
as like below
{ //spi1.0-slo=
t1
.modalias =3D "spidev",
.chip_select=
=3D 0,
.max_speed_hz =3D 15*1000*1000,
=
.bus_num=3D1,
},
{ //spi1.1-slot2
.modalias =3D=
"spidev",
.chip_select =3D 1,
.max_spe=
ed_hz =3D 15*1000*1000,
.bus_num=3D1,
},
&=
nbsp; ~
}
Ker=
nel menu_config.
SPI support
[*]SPI suppo=
rt
[*]Debug support for SPI=
drivers
SPI Master Controller Drivers
&nb=
sp; [*]Atmel SPI controller
=
[ ]Bitbanging SPI master
SPI Protocol Master=
s
[ ]SPI EEPROMs from most vendors
&=
nbsp; [*]User mode SPI device driver support
But I can't see the device file for SPI in target=
/dev folder. And I examin my /sys folder at target.
Of course, I can=
find the spi device nodes created from modified board_sam9260.c.
Hum=
...I don't know why did not populate the SPI device file in /dev file? =
P>
atmel_spi atmel_spi.1: Atmel SPI Controller at 0x=
fffcc000 (irq 13)
atmel_spi atmel_spi.1: registered master spi1
s=
pi spi1.0: setup: 14189714 Hz bpw 8 mode 0x0 -> csr0 0a0a0702
atme=
l_spi atmel_spi.1: registered child spi1.0
spi spi1.1: setup: 1418971=
4 Hz bpw 8 mode 0x0 -> csr1 0a0a0702
atmel_spi atmel_spi.1: regist=
ered child spi1.1
spi spi1.2: setup: 14189714 Hz bpw 8 mode 0x0 ->=
csr2 0a0a0702
atmel_spi atmel_spi.1: registered child spi1.2
spi=
spi1.3: setup: 14189714 Hz bpw 8 mode 0x0 -> csr3 0a0a0702
atmel_=
spi atmel_spi.1: registered child spi1.3
Could you teach check point for this problem?
The system is configured tw=
o kind of board.
Main b'd has the AT91SAM9260 which has the Linux OS.<=
BR>Sub b'd has the Atmega2560 which is developing the AVR32 studio.
On=
e Main b'd is connected 5 Sub b'd by SPI
Sub b'd is connected door loc=
k by wiegend.
Main b'd is connected ACU server by TCP/IP.<=
/a>