You are not logged in.

#1 2012-09-04 09:02:31

Registered: 2008-11-25
Posts: 21

GuruPlug USNAP as GPIO - driver

Hello! Few days ago i received GuruPlug Server Plus. Days of exploring... i deceided to write a simple driver on my own, which purpose is to send some data via USNAP's pin, acting like GPIO. So, all done by now (or hope so)... but i issued some lack of proper functionality: The kernel module properly linked against the kernel, properly loaded, but when i try to write to the pin, i got kernel error 22 - invalid argument. Here are my sources:

User space program to write to the specific pin:
Module's source:
dmesg log:

Kernel Version:
cpu info on the plug: guruplug-debian:~# cat /proc/cpuinfo
Processor       : Feroceon 88FR131 rev 1 (v5l)
BogoMIPS        : 1192.75
Features        : swp half thumb fastmult edsp
CPU implementer : 0x56
CPU architecture: 5TE
CPU variant     : 0x2
CPU part        : 0x131
CPU revision    : 1

Hardware        : Marvell GuruPlug Reference Board
Revision        : 0000
Serial          : 0000000000000000

Pinout information I get from the usnap's website: and the mpp.h on the source tree (arch/arm/mach-kirkwood/mpp.h).
Any Suggestions?

Last edited by bz1pp3d (2012-09-04 09:02:51)


#2 2012-09-19 14:41:13

From: EST, US
Registered: 2012-04-18
Posts: 8

Re: GuruPlug USNAP as GPIO - driver

This would be much better placed on

Developer @ Arch Linux | ARM


Board footer

Powered by FluxBB