Project

General

Profile

How to probe the fpga_ctrl & fpga_gpio.ko module

Added by HYUNG KI KIM over 10 years ago

I'm tryint to control FPGA of GPIO on the linux driver side with MityL138-DSP mdule.
and, loading the myFPGA.bin , fgpa_ctrlko, fpga_gpio.ko module is successfule.
also, test tool of fpgautil is work well.

modprobe fpga_ctrl  --> ok
modprobe fpga_gpio --> ok

when tryting [ echo "146"./sys/class/gpio/export ], it does not work.
below message is apper..

sh: write error: Invalid argument

and, i can only access the number of GPIO on the /sys/class/gpio/export.

so, I think that the function of fpga_gpio_probe() on the fpga_gio.c is not runing..
what is problem and how can i sovle it.

Thank you.


Replies (5)

RE: How to probe the fpga_ctrl & fpga_gpio.ko module - Added by HYUNG KI KIM over 10 years ago

HYUNG KI KIM wrote:

I'm tryint to control FPGA of GPIO on the linux driver side with MityL138-DSP mdule.
and, loading the myFPGA.bin , fgpa_ctrlko, fpga_gpio.ko module is successfule.
also, test tool of fpgautil is work well.

modprobe fpga_ctrl --> ok
modprobe fpga_gpio --> ok

when tryting [ echo "146"./sys/class/gpio/export ], it does not work.
below message is apper..

sh: write error: Invalid argument

and, i can only access the number of GPIO on the /sys/class/gpio/export.

so, I think that the function of fpga_gpio_probe() on the fpga_gio.c is not runing..
what is problem and how can i sovle it.

Thank you.

RE: How to probe the fpga_ctrl & fpga_gpio.ko module - Added by HYUNG KI KIM over 10 years ago

HYUNG KI KIM wrote:

I'm tryint to control FPGA of GPIO on the linux driver side with MityL138-DSP mdule.
and, loading the myFPGA.bin , fgpa_ctrlko, fpga_gpio.ko module is successfule.
also, test tool of fpgautil is work well.

modprobe fpga_ctrl --> ok
modprobe fpga_gpio --> ok

when tryting [ echo "146" /sys/class/gpio/export ], it does not work.
below message is apper..

sh: write error: Invalid argument

and, i can only access the below number of 144 on the /sys/class/gpio/export.

so, I think that the function of fpga_gpio_probe() on the fpga_gio.c is not runing..
what is problem and how can i sovle it.

Thank you.

RE: How to probe the fpga_ctrl & fpga_gpio.ko module - Added by Jonathan Cormier over 10 years ago

Did you mean

echo "146" > /sys/class/gpio/export

RE: How to probe the fpga_ctrl & fpga_gpio.ko module - Added by HYUNG KI KIM over 10 years ago

yes,

echo "146" > /sys/class/gpio/export -->  sh: write error: Invalid argument

it may be that fpga_gpio module is not runing

Thank you.

RE: How to probe the fpga_ctrl & fpga_gpio.ko module - Added by Jonathan Cormier over 10 years ago

Have you made any progress with this problem?

    (1-5/5)
    Go to top
    Add picture from clipboard (Maximum size: 1 GB)