文件名称:
sina33备份的文件20150609_2100.7z
开发工具:
文件大小: 530kb
下载次数: 0
上传时间: 2015-06-09
详细说明: sina33备份的文件20150609_2100.7z 全志a33要生成设备节点需要改动的地方: sina33打开spidev0.0的步骤.txt (全志a33下生成设备节点/dev/spidev0.0) 0、 S:\lichee\tools\pack\chips\sun8iw5p1\configs\default\env.cfg bootdelay=0 修改为 bootdelay=3 方便按 enter 进u-boot,进行调试。 1、 rootroot@rootroot-E400:~/wyb/sina33/lichee/linux-3.4$ rootroot@rootroot-E400:~/wyb/sina33/lichee/linux-3.4$ make ARCH=arm menuconfig (sina33的原始menuconfig) Device Drivers ---> [*] SPI support ---> --- SPI support [ ] Debug support for SPI drivers *** SPI Master Controller Drivers *** < > Altera SPI Controller < > Utilities for Bitbanging SPI masters < > GPIO-based bitbanging SPI Master < > OpenCores tiny SPI <*> SUNXI SPI Controller < > Xilinx SPI controller common module < > DesignWare SPI controller core support *** SPI Protocol Masters *** < > User mode SPI device driver support < > Infineon TLE62X0 (for power switching) (sina33的原始menuconfig) Device Drivers ---> [*] SPI support ---> --- SPI support [ ] Debug support for SPI drivers *** SPI Master Controller Drivers *** < > Altera SPI Controller < > Utilities for Bitbanging SPI masters < > GPIO-based bitbanging SPI Master < > OpenCores tiny SPI <*> SUNXI SPI Controller < > Xilinx SPI controller common module < > DesignWare SPI controller core support *** SPI Protocol Masters *** (需要打开这里才能够生成设备节点:/dev/spidev0.0) <*> User mode SPI device driver support < > Infineon TLE62X0 (for power switching) 2、 S:\lichee\tools\pack\chips\sun8iw5p1\configs\y3\sys_config.fex ;---------------------------------------------------------------------------------- ;SPI controller configuration ;spi_used = SPIx enable ;spi_cs_bitmap = SPI bit mapping ;---------------------------------------------------------------------------------- [spi0] spi_used = 1 spi_cs_bitmap = 1 spi_mosi = port:PC00<3> spi_miso = port:PC01<3> spi_sclk = port:PC02<3> spi_cs0 = port:PC03<3><1> [spi1] (关闭SPI1) spi_used = 0 spi_cs_bitmap = 1 spi_cs0 = port:PA00<2><1> spi_sclk = port:PA01<2> spi_mosi = port:PA02<2> spi_miso = port:PA03<2> ;---------------------------------------------------------------------------------- ;SPI device configuration ;spi_dev_num: number of spi devices ;---------------------------------------------------------------------------------- [spi_devices] spi_dev_num = 1 ;---------------------------------------------------------------------------------- ;[spi_board0] spi device configuration ;modalias = spi device name ;max_speed_hz = max transfer speed ;bus_num = bus ID ;chip_select = chip select, 0,1 ;mode = SPI transfer mode ;---------------------------------------------------------------------------------- [spi_board0] ;modalias = "at25df641" (这里需要修改) modalias = "spidev" max_speed_hz = 50000000 bus_num = 0 chip_select = 0 mode = 0 (引脚复用PC00、PC01、PC02、PC03,将来调试功能的时候可能会出错!!!!) ;---------------------------------------------------------------------------------- ;[nandx_para] ;nand_support_2ch = support dual channel ;nand0_used = nand0使能标识 ;---------------------------------------------------------------------------------- [nand0_para] nand_support_2ch = 0 nand0_used = 0 ;nand0_we = port:PC00<2> ;nand0_ale = port:PC01<2> ;nand0_cle = port:PC02<2> ;nand0_ce1 = port:PC03<2> nand0_ce0 = port:PC04<2> nand0_nre = port:PC05<2> nand0_rb0 = port:PC06<2> nand0_rb1 = port:PC07<2> nand0_d0 = port:PC08<2> nand0_d1 = port:PC09<2> nand0_d2 = port:PC10<2> nand0_d3 = port:PC11<2> nand0_d4 = port:PC12<2> nand0_d5 = port:PC13<2> nand0_d6 = port:PC14<2> nand0_d7 = port:PC15<2> nand0_ndqs = port:PC16<2> nand0_ce2 = port:PC17<2> nand0_ce3 = port:PC18<2> 3、 将S:\lichee\linux-3.4\drivers\spi\spidev.c 编译成:spidev.ko模块,插入即可在串口中看见spidev0.0这个设备节点: drwxr-xr-x root root 1970-01-02 08:27 socket crw------- root root 153, 0 1970-01-02 08:29 spidev0.0 crw------- root root 10, 60 1970-01-01 08:03 sunxi-reg ...展开收缩
(系统自动生成,下载前可以参看下载内容)
下载文件列表
相关说明
- 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
- 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度。
- 本站已设置防盗链,请勿用迅雷、QQ旋风等多线程下载软件下载资源,下载后用WinRAR最新版进行解压.
- 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
- 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
- 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.