Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    T113開機後執行指令問題

    T Series
    2
    3
    388
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      aqmars LV 3 last edited by

      Hi all,
      我要在開機後執行4行指令

      cd /sys/kernel/debug/dispdbg
      echo suspend > command; echo disp0 > name; echo 1 > start
      echo resume > command; echo disp0 > name; echo 1 > start
      cd /

      所以:
      1.我在建立了\etc\intit.d\auto_run_script.sh檔, 並設為可執行.

      #!/bin/bash
      cd /sys/kernel/debug/dispdbg
      echo suspend > command; echo disp0 > name; echo 1 > start
      echo resume > command; echo disp0 > name; echo 1 > start
      cd /

      1. 然後修改etc/init.d/rcS, 在最後一行加入
        source ./etc/init.d/auto_run_script.sh

      執行後報錯, 出現
      " /etc/init.d/rcS: cd: line 2: can't cd to /sys/kernel/debug/dispdbg "

      小弟剛入門linux, 請問該如何修正, , 謝謝.

      1 Reply Last reply Reply Quote Share 0
      • A
        awwwwa LV 8 last edited by

        在这条命令之前挂载debugfs

        A 1 Reply Last reply Reply Quote Share 0
        • A
          aqmars LV 3 @awwwwa last edited by

          @awwwwa ok, 搞定, 謝謝.

          1 Reply Last reply Reply Quote Share 0
          • 1 / 1
          • First post
            Last post

          Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

          行为准则 | 用户协议 | 隐私权政策