Я делаю так. В папочку /var/www/test кидаю файлик test.php c таким содержанием:
<?php
$a = "set gpio91 output:1";
$b = "cat";
$fid2 = fopen("/dev/v2r_gpio", "w");
fwrite($fid2, $a);
$fid5 = fopen("/dev/v2r_gpio", "r");
$s6 = fread($fid5, 100);
echo $s6;
$fid9 = fopen("/dev/v2r_gpio", "w");
fwrite($fid9, $b);
$fid12 = fopen("/dev/v2r_gpio", "r");
$s13 = fread($fid12, 100);
echo $s13;
?>
И дальше запускаю
http://ip-virturilki/test/test.php В данном случае, тут происходит подача двух команд из переменных в драйвер, и считывание с драйвера. Как считывать один нужный пин я пока не в курсе, потому пока читаю все.
Это просто пример для проверки работы драйвера.