From: "=?euc-kr?B?sK2787/s?=" Subject: =?euc-kr?q?I_can=27t_see_the_spi_device_file_?= =?euc-kr?q?in_/dev_folder=2E?= Date: Tue, 07 Aug 2007 21:10:27 +0900 Message-ID: <1186488627778402.0.mail02@mail02> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1842453309==" To: spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: spi-devel-general-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: spi-devel-general-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: linux-spi.vger.kernel.org --===============1842453309== Content-Type: text/html; charset=euc-kr Content-Transfer-Encoding: quoted-printable Hi~ =20

 

My developing Environment is below.


Kernel-2.6.22

    

     tar jxvf linux-2.6.22.1.tar.bz2

     cd linux-2.6.22.1

     zcat ../2.6.22-rc1-at91= .patch.gz | patch -p1 > patchresult.txt

 

CPU-AT91SAM9260

 

 

Through the web searching and kernel documentation, I know that use th= e spidev kernel module.

And I modify arch/at-91/board_sam9260.c file as like below

sta= tic struct spi_board_info ek_spi_devices[] =3D {
{ //spi1.0-slot1 .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_speed_hz =3D 15*1000*1000, .bus_num=3D1,
},
{ //spi1.2-slot3
.modalias =3D "spidev", <= BR>.chip_select =3D 2,
.max_speed_hz =3D 15*1000*1000,
.bus_num=3D= 1,
},
{ //spi1.3-slot4
.modalias =3D "spidev",
.chip_sele= ct =3D 3,
.max_speed_hz =3D 15*1000*1000,
.bus_num=3D1,
}, }

After compiling the kernel, download kernel img to the target= .

 

Kernel menu_config.

 

Device Drivers

 SPI support

    [*]SPI support

        [*]De= bug support for SPI drivers

     SPI Master Controller D= rivers

     [*]Atmel SPI controller=

     [ ]Bitbanging SPI maste= r

     SPI Protocol Masters

     [ ]SPI EEPROMs from mos= t vendors

     [*]User mode SPI device= driver support




I execute the "/sbin/mdev -s" command into the target shel= l as expecting the /dev/spidev.

But I can't see the device file for SPI in target /dev folder. And I e= xamin 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 devic= e file in /dev file?

 

#dmesg | grep spi

atmel_spi atmel_spi.1: Atmel SPI Controller at 0xfffcc000 (irq 13) atmel_spi atmel_spi.1: registered master spi1
spi spi1.0: setup: 141= 89714 Hz bpw 8 mode 0x0 -> csr0 0a0a0702
atmel_spi atmel_spi.1: re= gistered child spi1.0
spi spi1.1: setup: 14189714 Hz bpw 8 mode 0x0 -= > csr1 0a0a0702
atmel_spi atmel_spi.1: registered child spi1.1 spi spi1.2: setup: 14189714 Hz bpw 8 mode 0x0 -> csr2 0a0a0702
at= mel_spi atmel_spi.1: registered child spi1.2
spi spi1.3: setup: 14189= 714 Hz bpw 8 mode 0x0 -> csr3 0a0a0702
atmel_spi atmel_spi.1: regi= stered child spi1.3


Does root file system (NFS) has the problem ? or Kernel menu confi= guration ?

Could you teach check point for this problem?

 

This project name - Access control Unit

The system is configured two kind of board.

Main b'd has the AT91SAM9260 which has the Linux OS.

Sub b'd has the Atmega2560 which is developing the AVR32 studio.

One Main b'd is connected 5 Sub b'd by SPI

Sub b'd is connected door lock by wiegend.

Main b'd is connected ACU server by TCP/IP.

 

And SPI Interface is very important!. Other communication interface is= done.

Please Help me. 

Please Help me~. I had reported this problems to atmel and at91 but I = did not receive any reply~




--===============1842453309== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ --===============1842453309== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ spi-devel-general mailing list spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/spi-devel-general --===============1842453309==--