2010-12-16 21:58:20     BF518 SPORT can't open

Document created by Aaronwu Employee on Aug 25, 2013
Version 1Show Document
  • View in full screen mode

2010-12-16 21:58:20     BF518 SPORT can't open

jingchao wang (CHINA)

Message: 96824   

 

我想测试一下SPORT,但是发现无法打开SPORT0和SPORT1

 

 

 

 

root:/> modprobe bfin-sport

bfin_sport: registered sport0

bfin_sport: registered sport1

root:/> sport_test -s /dev/sport1 -t sample.wav

peripheral_request: Peripheral 35 function 0 is already reserved by bfin-spi !

bfin_sport: requesting peripherals failed

sport_test: failed to open /dev/sport1

: Device or resource busy

root:/> cat /proc/gpio

GPIO_8:         bfin_mac                Peripheral

GPIO_9:         bfin_mac                Peripheral

GPIO_10:        bfin_mac                Peripheral

GPIO_11:        bfin_mac                Peripheral

GPIO_12:        bfin_mac                Peripheral

GPIO_13:        bfin_mac                Peripheral

GPIO_14:        bfin_mac                Peripheral

GPIO_15:        bfin_mac                Peripheral

GPIO_16:        bfin_mac                Peripheral

GPIO_18:        bfin_mac                Peripheral

GPIO_25:        bfin-uart               Peripheral

GPIO_26:        bfin-uart               Peripheral

GPIO_27:        ParaFlash               Peripheral

GPIO_28:        bfin-spi                Peripheral

GPIO_29:        bfin-spi                Peripheral

GPIO_30:        bfin-spi                Peripheral

GPIO_33:        bfin-spi                Peripheral

GPIO_34:        bfin-spi                Peripheral

GPIO_35:        bfin-spi                Peripheral

root:/> sport_test -t sample.wav              

peripheral_request: Peripheral 25 function 0 is already reserved by bfin-uart !

bfin_sport: requesting peripherals failed

sport_test: failed to open /dev/sport0

: Device or resource busy

root:/>

QuoteReplyEditDelete

 

 

2010-12-16 22:35:42     Re: BF518 SPORT can't open

Aaron Wu (CHINA)

Message: 96826   

 

which distribution version are you using? we recently made some change on the bfin-sport, you may check out it from the SVN trunk to have a try.

QuoteReplyEditDelete

 

 

2010-12-17 00:04:20     Re: BF518 SPORT can't open

jingchao wang (CHINA)

Message: 96827   

 

我现在用的是blackfin-linux-dist-2010R1-RC2.tar.bz2,那我需要下载哪个版本的?

QuoteReplyEditDelete

 

 

2010-12-17 02:07:00     Re: BF518 SPORT can't open

Aaron Wu (CHINA)

Message: 96829   

 

RC5 is the final release, use RC5 please. Sport related change is also inlcuded in RC5, if you still have problem after test please let us know

QuoteReplyEditDelete

 

 

2010-12-17 19:32:30     Re: BF518 SPORT can't open

jingchao wang (CHINA)

Message: 96854   

 

我已经使用了RC5,但是还是一样的错误

QuoteReplyEditDelete

 

 

2010-12-19 22:55:10     Re: BF518 SPORT can't open

Sonic Zhang (CHINA)

Message: 96872   

 

peripheral_request: Peripheral 35 function 0 is already reserved by bfin-spi !

 

 

 

You have GPIO pin conflict between SPORT1 and SPI.

QuoteReplyEditDelete

 

 

2010-12-21 01:00:18     Re: BF518 SPORT can't open

jingchao wang (CHINA)

Message: 96890   

 

我已经在内核配置里关掉了SPI了,但是发现这样执行sporttest ,板子就马上死机了

QuoteReplyEditDelete

 

 

2010-12-21 04:36:51     Re: BF518 SPORT can't open

Sonic Zhang (CHINA)

Message: 96910   

 

Please upload your kernel config and fail log here.

Attachments

    Outcomes