打印
[i.MX]

[已解决]imx6播放video之后无法reboot

[复制链接]
3702|6
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
kris_fei|  楼主 | 2015-5-28 10:09 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 kris_fei 于 2015-5-29 08:45 编辑

正常情况下可以reboot成功,但是当我播放了视频之后,reboot就会hang住。
难道watchdog的reset会受video play的影响吗?
播放的视频log如下:
~ # cd /media/player/
/media/player # ./testplayer  0 4.mp4
*****************************************************
* SGPlayer version:     0.1.3580
* Major number:         0
* Minor number:         1
* Build(SVN) revision:  r3580
* Building time:        Mar 24 2015, 08:29:30
*****************************************************

+++ start playing media
decode_init: VPU decode h264 init. ====>
[   22.722552] No such IOCTL, cmd is 22032
[   22.727209] No such IOCTL, cmd is 22032
[INFO]  Product Info: i.MX6Q/D/S
vpu lib version : major.minor.rel=5.4.16
vpu fw version : major.minor.rel_rcode=2.1.9_r36350
vpu wrapper version : major.minor.rel=1.0.46: VPUWRAPPER_ARM_LINUX Build on May 26 2015 14:18:37
[INFO]  bitstreamMode 1, chromaInterleave 0, mapType 0, tiled2LinearEnable 0
decode_frame: ====VPU decode h264 start====.  
normal mode
[ERR]   rd 0x1a800000, rd reg 0x1a801ee3, wr 0x1a801ee3, wr reg 0x1a801ee3, idx 0, idx reg 0
[ERR]   rd 0x1a800000, rd reg 0x1a801ee3, wr 0x1a801ee3, wr reg 0x1a801ee3, idx 0, idx reg 0
[ERR]   rd 0x1a800000, rd reg 0x1a801ee3, wr 0x1a801ee3, wr reg 0x1a801ee3, idx 0, idx reg 0
[ERR]   rd 0x1a800000, rd reg 0x1a801ee3, wr 0x1a801ee3, wr reg 0x1a801ee3, idx 0, idx reg 0
[ERR]   rd 0x1a800000, rd reg 0x1a801ee3, wr 0x1a801ee3, wr reg 0x1a801ee3, idx 0, idx reg 0
[ERR]   rd 0x1a800000, rd reg 0x1a801ee3, wr 0x1a801ee3, wr reg 0x1a801ee3, idx 0, idx reg 0
[ERR]   rd 0x1a800000, rd reg 0x1a801ee3, wr 0x1a801ee3, wr reg 0x1a801ee3, idx 0, idx reg 0
[ERR]   rd 0x1a800000, rd reg 0x1a801ee3, wr 0x1a801ee3, wr reg 0x1a801ee3, idx 0, idx reg 0
[ERR]   rd 0x1a800000, rd reg 0x1a801ee3, wr 0x1a801ee3, wr reg 0x1a801ee3, idx 0, idx reg 0
//此处省略N多一样的log.
VPU_DEC_OUTPUT_EOS
====end decode_frame====
decode_frame: ====VPU decode h264 start====.  
normal mode
DecodeLoop: vpu dec buf failure: ret=1
decode_frame: vpu reset: handle=0x319E0
[INFO]  vpu_SWReset
decode_frame: ====VPU decode h264 start====.  
normal mode
DecodeLoop: vpu dec buf failure: ret=1
decode_frame: vpu reset: handle=0x319E0
[INFO]  vpu_SWReset
decode_frame: ====VPU decode h264 start====.  
normal mode
DecodeLoop: vpu dec buf failure: ret=1
decode_frame: vpu reset: handle=0x319E0
[INFO]  vpu_SWReset
decode_frame: ====VPU decode h264 start====.  
normal mode
DecodeLoop: vpu dec buf failure: ret=1
decode_frame: vpu reset: handle=0x319E0
[INFO]  vpu_SWReset
decode_frame: ====VPU decode h264 start====.  
normal mode
DecodeLoop: vpu dec buf failure: ret=1
decode_frame: vpu reset: handle=0x319E0
[INFO]  vpu_SWReset
decode_frame: ====VPU decode h264 start====.  
normal mode
DecodeLoop: vpu dec buf failure: ret=1
decode_frame: vpu reset: handle=0x319E0
[INFO]  vpu_SWReset
decode_frame: ====VPU decode h264 start====.  
normal mode
DecodeLoop: vpu dec buf failure: ret=1
decode_frame: vpu reset: handle=0x319E0
[INFO]  vpu_SWReset
decode_frame: ====VPU decode h264 start====.  
normal mode
DecodeLoop: vpu dec buf failure: ret=1
decode_frame: vpu reset: handle=0x319E0
[INFO]  vpu_SWReset
decode_frame: ====VPU decode h264 start====.  
normal mode
DecodeLoop: vpu dec buf failure: ret=1
decode_frame: vpu reset: handle=0x319E0
[INFO]  vpu_SWReset
decode_frame: ====VPU decode h264 start====.  
normal mode
DecodeLoop: vpu dec buf failure: ret=1
decode_frame: vpu reset: handle=0x319E0
[INFO]  vpu_SWReset
decode_frame: ====VPU decode h264 start====.  
normal mode
DecodeLoop: vpu dec buf failure: ret=1
decode_frame: vpu reset: handle=0x319E0
[INFO]  vpu_SWReset
decode_frame: ====VPU decode h264 start====.  
normal mode
DecodeLoop: vpu dec buf failure: ret=1
decode_frame: vpu reset: handle=0x319E0
[INFO]  vpu_SWReset
decode_frame: ====VPU decode h264 start====.  
normal mode
DecodeLoop: vpu [   20.556111] VPU blocking: timeout.
dec buf failure: ret=1
decode_frame: vpu reset: handle=0x319E0
[INFO]  vpu_SWReset
decode_frame: ====VPU decode h264 start====.  
normal mode
DecodeLoop: vpu dec buf failure: ret=1
decode_frame: vpu reset: handle=0x319E0
[INFO]  vpu_SWReset
decode_frame: ====VPU decode h264 start====.  
normal mode
DecodeLoop: vpu dec buf failure:[   20.589244] No such IOCTL, cmd is 22032
ret=1
decode_frame: vpu reset[   20.594883] No such IOCTL, cmd is 22032
: handle=0x319E0
[INFO]  vpu_SWReset
decode_frame: ====VPU decode h264 start====.  
normal mode
DecodeLoop: vpu dec buf failure: ret=1
decode_frame: vpu reset: handle=0x319E0
[INFO]  vpu_SWReset
decode_frame: ====VPU decode h264 start====.  
normal mode
DecodeLoop: vpu dec buf failure: ret=1
decode_frame: vpu reset: handle=0x319E0
[INFO]  vpu_SWReset
decode_frame: ====VPU decode h264 start====.  
normal mode
DecodeLoop: vpu dec buf failure: ret=1
decode_frame: vpu reset: handle=0x319E0
[INFO]  vpu_SWReset
decode_frame: ====VPU decode h264 start====.  
normal mode
DecodeLoop: vpu dec buf failure: ret=1
decode_frame: vpu reset: handle=0x319E0
[INFO]  vpu_SWReset
decode_end: VPU decode h264 end. <====
decode_end: vpu flush failure: ret=1
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '(null)':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf55.48.100
  Duration: 00:07:07.31, start: 0.023220, bitrate: 1119 kb/s
    Stream #0.0(und): Video: vpu, yuv420p, 1280x720, 998 kb/s, 25 fps, 12800 tbn (default)
    Stream #0.1(und): Audio: aac, 44100 Hz, stereo, fltp, 114 kb/s (default)
decode_init: VPU decode h264 init. ====>
[INFO]  Product Info: i.MX6Q/D/S
vpu lib version : major.minor.rel=5.4.16
vpu fw version : major.minor.rel_rcode=2.1.9_r36350
vpu wrapper version : major.minor.rel=1.0.46: VPUWRAPPER_ARM_LINUX Build on May 26 2015 14:18:37
[INFO]  bitstreamMode 1, chromaInterleave 0, mapType 0, tiled2LinearEnable 0
Audio Format: 32 Float Planar
+++ AudioOutput - set rate near: 44100
+++ AudioOutput - set channels: 2
+++ AudioOutput - set sample format: 14
+++ AudioOutput - set access type: 4
+++ AudioOutput - set period size: 4
+++ AudioOutput - set buffer size: 4096
*** WARNING: audio device does NOT support direct pause!
+++ The default buffer size is 4096/frames
*** VideoPlayer the volume is set to: 110
[INFO]  Product Info: i.MX6Q/D/S
VPU firmware version: 2.1.9_r36350
VPU library version: 5.4.16
[INFO]  bitstreamMode 1, chromaInterleave 0, mapType 0, tiled2LinearEnable 0
[WARN]  VPU iram is less than needed, some parts don't use iram
H.264 Profile: 100 Level: 31 Interlace: 0
aspect_ratio_idc: 1
Decoder: width = 1280, height = 720, frameRateRes = 50, frameRateDiv = 1, count = 6
MinFbCount: 6, FbCount: 8
*** ffmpeg codecctx width: 1280, height: 720; aligned picwidth: 1280, picheight: 720
VPU doesn't have picture to be displayed.
        outinfo.indexFrameDisplay = -3
VPU doesn't have picture to be displayed.
        outinfo.indexFrameDisplay = -3
VPU doesn't have picture to be displayed.
        outinfo.indexFrameDisplay = -3
VPU doesn't have picture to be displayed.
        outinfo.indexFrameDisplay = -3

/media/player #
/media/player #
/media/player #
/media/player # reboot
The system is going down NOW!
Sent SIGTERM to all processes
Terminated
/media/player # [   23.279854] ipu_init_sync_panel: disp=0, pixel_clk=51200000 50285714
[   23.286355] Calling CRDA for country: CN
[   23.291345] Regulatory domain changed to country: CN
[   23.291360]     (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[   23.291381]     (2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm)
[   23.291399]     (5735000 KHz - 5835000 KHz @ 40000 KHz), (N/A, 3000 mBm)
[   23.291442] Calling CRDA for country: CN
[   23.299585] Regulatory domain changed to country: CN
[   23.299604]     (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[   23.299627]     (2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm)
[   23.299648]     (5735000 KHz - 5835000 KHz @ 40000 KHz), (N/A, 3000 mBm)
[   23.299697] Calling CRDA to update world regulatory domain
[   23.304987] World regulatory domain updated:
[   23.305004]     (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[   23.305026]     (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   23.305045]     (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[   23.305069]     (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[   23.305095]     (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   23.305122]     (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Requesting system rebootesses
[   25.509684] imx2-wdt imx2-wdt.0: Device shutdown: Expect reboot!
[   25.515884] Restarting system.
  

相关帖子

沙发
西门扫雪| | 2015-5-28 12:43 | 只看该作者
我不是太懂这方面,帮你顶一下吧

使用特权

评论回复
板凳
isdqwq| | 2015-5-28 15:33 | 只看该作者
LZ 你是用 LVDS播放的吗?
怎么才能点亮 LVDS,我在Uboot是可以点亮的,但kernel起来后,就不亮了.

使用特权

评论回复
地板
IversonCar| | 2015-5-28 23:14 | 只看该作者
哈哈,我不知道问题出在哪里呢

使用特权

评论回复
5
kris_fei|  楼主 | 2015-5-29 08:39 | 只看该作者
因为没有Trace工具,没办法定位具体问题点。
另外,kernel是warm reset, imx6还有另外两种reset 方式: cold reset, POR(power on reset)
我通过POR reset,也就是通过GPIO控制整个系统reset的方式来reboot了。
暂时这么处理吧。

使用特权

评论回复
6
mini1986| | 2015-5-29 08:45 | 只看该作者
关注一下......

使用特权

评论回复
7
FSL_TICS_Rita| | 2015-6-8 15:55 | 只看该作者
非常感谢你关于i.mx的技术问题。如果你没有其他问题,我们将此帖默认为已解决。
如果没有解决,欢迎继续在这里讨论哈~~

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

6

主题

175

帖子

3

粉丝