登录 注册
当前位置:主页 > 资源下载 > 12 > sina33备份的文件20150609_2100.7z下载

sina33备份的文件20150609_2100.7z下载

  • 更新:2024-08-31 18:58:08
  • 大小:530KB
  • 推荐:★★★★★
  • 来源:网友上传分享
  • 类别:Android - 移动开发
  • 格式:7Z

资源介绍

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