‡@/etc/config/rc.local‚ฬ”ฒˆ ------------------------------------------------------------------ ƒ‘O—ช„ # First read /etc/profile test -f /etc/profile && . /etc/profile # # Starting a default application # START_PHOTOVIEWER_WITH_QMLSCENE=n if [ "${START_PHOTOVIEWER_WITH_QMLSCENE}" = "y" ]; then echo -n "Starting photoviewer: " qmlscene /usr/share/qt5/photoviewer/photoviewer.qml >/dev/null 2>&1 & check_status fi fbset -fb /dev/fb0 -xres 800 -yres 481 -t 30100 40 88 32 11 128 2 echo 0 > /sys/class/graphics/fb1/blank echo 0 > /sys/class/graphics/fb2/blank export QT_QPA_EGLFS_DISPLAY=1 # # for AV Codec Midleware # - load firmware # ACM_CODEC=decoder ACM_CODEC_SYSFS=/sys/devices/platform/acm.0/codec if [ -e $ACM_CODEC_SYSFS ]; then if [ "${ACM_CODEC}" = "encoder" -o "${ACM_CODEC}" = "decoder" ]; then echo -n "load ${ACM_CODEC} firmware: " echo "${ACM_CODEC}" > $ACM_CODEC_SYSFS for i in 1 2 3 4 5; do sleep 1 grep "\[${ACM_CODEC}\]" $ACM_CODEC_SYSFS > /dev/null if [ $? -eq 0 ]; then break else false fi done check_status fi fi mount -t ext3 /dev/mmcblk0p2 /mnt /etc/config/auto-run-app.sh & ƒŒใ—ช„ ------------------------------------------------------------------ ‡A/etc/config/auto-run-app.sh‚ฬ”ฒˆ ------------------------------------------------------------------ ƒ‘O—ช„ reload_sgx_module() { pvrsrv_stop sleep 1 pvrsrv_start } # return 0 if SGX error is detected # return 1 if SGX error is not detected check_SGX_ERROR() { local RET dmesg | grep -q "HWRecoveryResetSGX: SGX Hardware Recovery triggered" RET=$? if [ $RET -eq 0 ]; then # clear dmesg dmesg -c > /dev/null return 0 else return 1 fi } launch_app() { /root/panel } kill_app() { killall marutaka qtquickapitest aplay gst-launch-1.0 } ------------------------------------------------------------------ ƒ’†—ช„ restart_app() { echo "restart app" date kill_app clear_fbs reload_sgx_module launch_app } main_loop() { local INTERVAL=3 cd /root/ pvrsrv_stop > /dev/null 2>&1 pvrsrv_start launch_app while [ 1 ] do check_SGX_ERROR && \ restart_app sleep $INTERVAL done } ƒŒใ—ช„ ------------------------------------------------------------------ ‡Bˆศ‰บA“ฎ์‚k‚‚‡‚ฬ”ฒˆ ------------------------------------------------------------------ ƒ‘O—ช„ [2018-08-05 05:08:43.681] 09:26:47:316 start api 0 [2018-08-05 05:18:59.898] 09:37:03:532 start api 0 [2018-08-05 05:25:33.393] setting data save [2018-08-05 05:25:33.393] setting data save [2018-08-05 05:29:17.050] 09:47:20:707 start api 0 [2018-08-05 05:39:34.031] 09:57:37:680 start api 0 [2018-08-05 05:42:36.411] PVR_K: HWRecoveryResetSGX: SGX Hardware Recovery triggered [2018-08-05 05:42:36.411] Backtrace: [2018-08-05 05:42:36.411] [<80011108>] (dump_backtrace+0x0/0x10c) from [<803d3674>] (dump_stack+0x18/0x1c) [2018-08-05 05:42:36.411] r6:98c7a120 r5:8edf3000 r4:8636d2c0 r3:00000001 [2018-08-05 05:42:36.411] [<803d365c>] (dump_stack+0x0/0x1c) from [<7f0d1a2c>] (HWRecoveryResetSGX.isra.2.constprop.3+0x44/0x7c [pvrsrvkm]) [2018-08-05 05:42:36.411] [<7f0d19e8>] (HWRecoveryResetSGX.isra.2.constprop.3+0x0/0x7c [pvrsrvkm]) from [<7f0d1b94>] (SGXOSTimer+0xd8/0xf8 [pvrsrvkm]) [2018-08-05 05:42:36.411] r6:8636d2c0 r5:00000060 r4:8edf3000 r3:00000001 [2018-08-05 05:42:36.411] [<7f0d1abc>] (SGXOSTimer+0x0/0xf8 [pvrsrvkm]) from [<7f0ba2f4>] (OSTimerWorkQueueCallBack+0x28/0x48 [pvrsrvkm]) [2018-08-05 05:42:36.411] r7:80898645 r6:00000000 r5:80898600 r4:7f0d8bec [2018-08-05 05:42:36.411] [<7f0ba2cc>] (OSTimerWorkQueueCallBack+0x0/0x48 [pvrsrvkm]) from [<80032768>] (process_one_work+0x1f8/0x370) [2018-08-05 05:42:36.411] r4:8b34af80 r3:7f0ba2cc [2018-08-05 05:42:36.411] [<80032570>] (process_one_work+0x0/0x370) from [<80033754>] (worker_thread+0x1d4/0x2f8) [2018-08-05 05:42:36.411] [<80033580>] (worker_thread+0x0/0x2f8) from [<80037578>] (kthread+0x94/0xa0) [2018-08-05 05:42:36.411] [<800374e4>] (kthread+0x0/0xa0) from [<80020ea8>] (do_exit+0x0/0x75c) [2018-08-05 05:42:36.427] r6:80020ea8 r5:800374e4 r4:8b2b1ef0 [2018-08-05 05:42:36.427] PVR_K: SGX debug (SGX_DDK_Linux sgxddk 19 1.9@2253347) [2018-08-05 05:42:36.427] PVR_K: (P0) EUR_CR_CORE_ID: 01140000 [2018-08-05 05:42:36.427] PVR_K: (P0) EUR_CR_CORE_REVISION: 00010200 [2018-08-05 05:42:36.427] PVR_K: (P0) EUR_CR_EVENT_STATUS: 20000000 [2018-08-05 05:42:36.427] PVR_K: (P0) EUR_CR_EVENT_STATUS2: 00000018 [2018-08-05 05:42:36.427] PVR_K: (P0) EUR_CR_BIF_CTRL: 00000000 [2018-08-05 05:42:36.427] PVR_K: (P0) EUR_CR_BIF_INT_STAT: 0000D000 [2018-08-05 05:42:36.427] PVR_K: (P0) EUR_CR_BIF_FAULT: 0F440010 [2018-08-05 05:42:36.427] PVR_K: (P0) EUR_CR_BIF_MEM_REQ_STAT: 00000000 [2018-08-05 05:42:36.427] PVR_K: (P0) EUR_CR_CLKGATECTL: 000AAA6A [2018-08-05 05:42:36.427] PVR_K: (P0) EUR_CR_PDS_PC_BASE: 0000802C [2018-08-05 05:42:36.427] PVR_K: Found MMU context for page fault 0x0f440000 [2018-08-05 05:42:36.427] PVR_K: GPU memory context is for PID=28545 (qtquickapitest) [2018-08-05 05:42:36.427] PVR_K: PDE valid: PTE = 0x00000000 (PhysAddr = 0x00000000, Invalid) [2018-08-05 05:42:36.427] PVR_K: Flip Command Complete Data 0 for display device 3: [2018-08-05 05:42:36.427] PVR_K: Flip Command Complete Data 0 for display device 2: [2018-08-05 05:42:36.427] PVR_K: Flip Command Complete Data 0 for display device 1: [2018-08-05 05:42:36.427] PVR_K: SGX Host control: [2018-08-05 05:42:36.427] PVR_K: (HC-0) 0x00000001 0x00000000 0x00000000 0x00000000 [2018-08-05 05:42:36.443] PVR_K: (HC-10) 0x00000001 0x00000064 0x00030570 0x00000003 [2018-08-05 05:42:36.443] PVR_K: (HC-20) 0x00000000 0x00000003 0x00000000 0x02ADFDCC [2018-08-05 05:42:36.443] PVR_K: (HC-30) 0x3F9AC0FD 0x0254F168 0x00000000 0x00000000 [2018-08-05 05:42:36.443] PVR_K: (HC-40) 0x00000000 0x29588503 0x00000000 0x00000000 [2018-08-05 05:42:36.443] PVR_K: SGX TA/3D control: [2018-08-05 05:42:36.443] PVR_K: (T3C-0) 0x0F003000 0x0F003120 0x0F002000 0x0F074C00 [2018-08-05 05:42:36.443] PVR_K: (T3C-10) 0x00000001 0x00000002 0x00000001 0x0F033D00 [2018-08-05 05:42:36.443] PVR_K: (T3C-20) 0x00000000 0x00000000 0x00000000 0x00000000 [2018-08-05 05:42:36.443] PVR_K: (T3C-30) 0x00000000 0x00000000 0x00000000 0x00000000 [2018-08-05 05:42:36.443] PVR_K: (T3C-40) 0x00000000 0x00000000 0x00000000 0x00000000 [2018-08-05 05:42:36.443] PVR_K: (T3C-50) 0x00000000 0x00000000 0x00000000 0x00000000 [2018-08-05 05:42:36.443] PVR_K: (T3C-60) 0x00000000 0x00000000 0x00000000 0x00000000 [2018-08-05 05:42:36.443] PVR_K: (T3C-70) 0x00000000 0x00000000 0x00000000 0x00000000 [2018-08-05 05:42:36.443] PVR_K: (T3C-80) 0x00000000 0x0F033C18 0x0F000000 0x4321F000 [2018-08-05 05:42:36.443] PVR_K: (T3C-90) 0x0F04DBC0 0x00000000 0x0F067880 0x0F00AE40 [2018-08-05 05:42:36.443] PVR_K: (T3C-A0) 0x0F033C60 0x0F067880 0x00040000 0x00000000 [2018-08-05 05:42:36.443] PVR_K: (T3C-B0) 0x00000000 0x00000000 0x00000000 0x00000000 [2018-08-05 05:42:36.443] PVR_K: (T3C-C0) 0x00000000 0x00003853 0x00003852 0x0F004000 [2018-08-05 05:42:36.443] PVR_K: (T3C-D0) 0x0F00A420 0x0F00B000 0x0F00DDE0 0x0F00DDE0 [2018-08-05 05:42:36.443] PVR_K: (T3C-E0) 0x00000000 0x00006F81 0x00006F81 0x00000000 [2018-08-05 05:42:36.443] PVR_K: (T3C-F0) 0x00000003 0x00000000 0x00000000 0x00000004 [2018-08-05 05:42:36.443] PVR_K: (T3C-100) 0x00000000 0x00000000 0x00000000 0x00000000 [2018-08-05 05:42:36.443] PVR_K: SGX Kernel CCB WO:0xD6 RO:0xD5 [2018-08-05 05:42:37.831] PVR_K: HWRecoveryResetSGX: SGX Hardware Recovery triggered [2018-08-05 05:42:38.174] Backtrace: [2018-08-05 05:42:38.174] [<80011108>] (dump_backtrace+0x0/0x10c) from [<803d3674>] (dump_stack+0x18/0x1c) [2018-08-05 05:42:38.174] r6:98c7a120 r5:8edf3000 r4:8636d2c0 r3:00000001 [2018-08-05 05:42:38.174] [<803d365c>] (dump_stack+0x0/0x1c) from [<7f0d1a2c>] (HWRecoveryResetSGX.isra.2.constprop.3+0x44/0x7c [pvrsrvkm]) [2018-08-05 05:42:38.174] [<7f0d19e8>] (HWRecoveryResetSGX.isra.2.constprop.3+0x0/0x7c [pvrsrvkm]) from [<7f0d1b94>] (SGXOSTimer+0xd8/0xf8 [pvrsrvkm]) [2018-08-05 05:42:38.174] r6:8636d2c0 r5:00000025 r4:8edf3000 r3:00000002 [2018-08-05 05:42:38.174] [<7f0d1abc>] (SGXOSTimer+0x0/0xf8 [pvrsrvkm]) from [<7f0ba2f4>] (OSTimerWorkQueueCallBack+0x28/0x48 [pvrsrvkm]) [2018-08-05 05:42:38.174] r7:80898645 r6:00000000 r5:80898600 r4:7f0d8bec [2018-08-05 05:42:38.174] [<7f0ba2cc>] (OSTimerWorkQueueCallBack+0x0/0x48 [pvrsrvkm]) from [<80032768>] (process_one_work+0x1f8/0x370) [2018-08-05 05:42:38.174] r4:8b34af80 r3:7f0ba2cc [2018-08-05 05:42:38.174] [<80032570>] (process_one_work+0x0/0x370) from [<80033754>] (worker_thread+0x1d4/0x2f8) [2018-08-05 05:42:38.174] [<80033580>] (worker_thread+0x0/0x2f8) from [<80037578>] (kthread+0x94/0xa0) [2018-08-05 05:42:38.174] [<800374e4>] (kthread+0x0/0xa0) from [<80020ea8>] (do_exit+0x0/0x75c) [2018-08-05 05:42:38.190] r6:80020ea8 r5:800374e4 r4:8b2b1ef0 [2018-08-05 05:42:38.190] PVR_K: SGX debug (SGX_DDK_Linux sgxddk 19 1.9@2253347) [2018-08-05 05:42:38.190] PVR_K: (P0) EUR_CR_CORE_ID: 01140000 [2018-08-05 05:42:38.190] PVR_K: (P0) EUR_CR_CORE_REVISION: 00010200 [2018-08-05 05:42:38.190] PVR_K: (P0) EUR_CR_EVENT_STATUS: 20000000 [2018-08-05 05:42:38.190] PVR_K: (P0) EUR_CR_EVENT_STATUS2: 00000018 [2018-08-05 05:42:38.190] PVR_K: (P0) EUR_CR_BIF_CTRL: 00000000 [2018-08-05 05:42:38.190] PVR_K: (P0) EUR_CR_BIF_INT_STAT: 0000C040 [2018-08-05 05:42:38.190] PVR_K: (P0) EUR_CR_BIF_FAULT: 0BF45010 [2018-08-05 05:42:38.190] PVR_K: (P0) EUR_CR_BIF_MEM_REQ_STAT: 00000000 [2018-08-05 05:42:38.190] PVR_K: (P0) EUR_CR_CLKGATECTL: 000AAA6A [2018-08-05 05:42:38.190] PVR_K: (P0) EUR_CR_PDS_PC_BASE: 00203354 [2018-08-05 05:42:38.190] PVR_K: Found MMU context for page fault 0x0bf45000 [2018-08-05 05:42:38.190] PVR_K: GPU memory context is for PID=28545 (qtquickapitest) [2018-08-05 05:42:38.190] PVR_K: No PDE found [2018-08-05 05:42:38.190] PVR_K: Flip Command Complete Data 0 for display device 3: [2018-08-05 05:42:38.190] PVR_K: Flip Command Complete Data 0 for display device 2: [2018-08-05 05:42:38.190] PVR_K: Flip Command Complete Data 0 for display device 1: [2018-08-05 05:42:38.190] PVR_K: SGX Host control: [2018-08-05 05:42:38.190] PVR_K: (HC-0) 0x00000001 0x00000000 0x00000000 0x00000000 [2018-08-05 05:42:38.190] PVR_K: (HC-10) 0x00000002 0x00000064 0x00030570 0x00000003 [2018-08-05 05:42:38.205] PVR_K: (HC-20) 0x00000000 0x00000001 0x00000000 0x02ADFDCC [2018-08-05 05:42:38.205] PVR_K: (HC-30) 0x3F9AC103 0x02BCA600 0x00000000 0x00000000 [2018-08-05 05:42:38.205] PVR_K: (HC-40) 0x00000000 0x2958850B 0x00000000 0x00000000 [2018-08-05 05:42:38.205] PVR_K: SGX TA/3D control: [2018-08-05 05:42:38.205] PVR_K: (T3C-0) 0x0F003000 0x0F003120 0x0F002000 0x0F074C00 [2018-08-05 05:42:38.205] PVR_K: (T3C-10) 0x00000001 0x00000002 0x00000001 0x0F033D00 [2018-08-05 05:42:38.205] PVR_K: (T3C-20) 0x00000000 0x00000000 0x00000000 0x00000000 [2018-08-05 05:42:38.205] PVR_K: (T3C-30) 0x00000000 0x00000000 0x00000000 0x00000000 [2018-08-05 05:42:38.205] PVR_K: (T3C-40) 0x00000000 0x00000000 0x00000000 0x00000000 [2018-08-05 05:42:38.205] PVR_K: (T3C-50) 0x00000000 0x00000000 0x00000000 0x00000000 [2018-08-05 05:42:38.205] PVR_K: (T3C-60) 0x00000000 0x00000000 0x00000000 0x00000000 [2018-08-05 05:42:38.205] PVR_K: (T3C-70) 0x00000000 0x00000000 0x00000000 0x00000000 [2018-08-05 05:42:38.205] PVR_K: (T3C-80) 0x0F033C60 0x0F033C60 0x0F000000 0x4321F000 [2018-08-05 05:42:38.205] PVR_K: (T3C-90) 0x0F04EB80 0x0F033C60 0x0F067440 0x0F00AE40 [2018-08-05 05:42:38.205] PVR_K: (T3C-A0) 0x0F033C60 0x0F067440 0x00000000 0x00000000 [2018-08-05 05:42:38.205] PVR_K: (T3C-B0) 0x00000000 0x00000000 0x00000000 0x00000000 [2018-08-05 05:42:38.205] PVR_K: (T3C-C0) 0x00000000 0x00003854 0x00003854 0x0F004000 [2018-08-05 05:42:38.205] PVR_K: (T3C-D0) 0x0F00A420 0x0F00B000 0x0F00DDE0 0x0F00DDE0 [2018-08-05 05:42:38.205] PVR_K: (T3C-E0) 0x00000000 0x00006F81 0x00006F81 0x00000000 [2018-08-05 05:42:38.205] PVR_K: (T3C-F0) 0x00000003 0x00000000 0x00000000 0x00000000 [2018-08-05 05:42:38.205] PVR_K: (T3C-100) 0x00000000 0x00000000 0x00000000 0x00000000 [2018-08-05 05:42:38.205] PVR_K: SGX Kernel CCB WO:0xDA RO:0xDA [2018-08-05 05:42:38.689] restart app [2018-08-05 05:42:38.705] Tue Feb 14 10:00:42 JST 2017 [2018-08-05 05:42:38.736] killall: gst-launch: no process killed [2018-08-05 05:42:38.767] Stopping PVR Server: module: done [2018-08-05 05:42:40.343] Starting PVR Server: module: done [2018-08-05 05:42:40.421] /etc/config/settei found. [2018-08-05 05:42:40.577] 10:00:44:225 start app ƒŒใ—ช„ ------------------------------------------------------------------