4 Replies Latest reply on Feb 20, 2015 2:52 PM by nsted

    SPI problems with Edison on Arduino Breakout Board - stuck at: "# echo mode1 > /sys/kernel/debug/gpio_debug/gp"

    nsted

      Hello,

      I'm trying to get SPI working on an Edison using the Arduino Breakout Board.

      I have tried to following the instruction on p.31 of the "Intel for Edison Kit for Arduino Hardware Guide", which instructs entering the following into Edison's command prompt:

       

      # echo 111 > /sys/class/gpio/export

      # echo 115 > /sys/class/gpio/export

      # echo 114 > /sys/class/gpio/export

      # echo 109 > /sys/class/gpio/export

      # echo 263 > /sys/class/gpio/export

      # echo 240 > /sys/class/gpio/export

      # echo 262 > /sys/class/gpio/export

      # echo 241 > /sys/class/gpio/export

      # echo 242 > /sys/class/gpio/export

      # echo 243 > /sys/class/gpio/export

      # echo 258 > /sys/class/gpio/export

      # echo 259 > /sys/class/gpio/export

      # echo 260 > /sys/class/gpio/export

      # echo 261 > /sys/class/gpio/export

      # echo 226 > /sys/class/gpio/export

      # echo 227 > /sys/class/gpio/export

      # echo 228 > /sys/class/gpio/export

      # echo 229 > /sys/class/gpio/export

      # echo 214 > /sys/class/gpio/export

      # echo high > /sys/class/gpio/gpio214/direction

      # echo high > /sys/class/gpio/gpio263/direction

      # echo high > /sys/class/gpio/gpio240/direction

      # echo high > /sys/class/gpio/gpio262/direction

      # echo high > /sys/class/gpio/gpio241/direction

      # echo high > /sys/class/gpio/gpio242/direction

      # echo high > /sys/class/gpio/gpio243/direction

      # echo high > /sys/class/gpio/gpio258/direction

      # echo high > /sys/class/gpio/gpio259/direction

      # echo low > /sys/class/gpio/gpio260/direction

      # echo high > /sys/class/gpio/gpio261/direction

      # echo in > /sys/class/gpio/gpio226/direction

      # echo in > /sys/class/gpio/gpio227/direction

      # echo in > /sys/class/gpio/gpio228/direction

      # echo in > /sys/class/gpio/gpio229/direction

      # echo mode1 > /sys/kernel/debug/gpio_debug/gp

      # echo mode1 > /sys/kernel/debug/gpio_debug/gp

      # echo mode1 > /sys/kernel/debug/gpio_debug/gp

      # echo mode1 > /sys/kernel/debug/gpio_debug/gp echo low > /sys/class/gpio/gpio214/direction

       

      I can work my through most of these lines, but when I get to:

       

           # echo mode1 > /sys/kernel/debug/gpio_debug/gp

       

      The reply is:

       

           -sh: can't create /sys/kernel/debug/gpio_debug/gp: Permission denied

       

      Does anyone know what the problem is and how to fix it?

      Thanks,

      Nick

       

      Note: This is related to this thread but the stopping point is different.