You are not logged in.

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

bz1pp3d
Member
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: http://pastebin.com/bmnYB9tx
Module's source: http://pastebin.com/nuqPf5bG
dmesg log: http://pastebin.com/sDiL951h

Kernel Version: 2.6.33.2
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: http://www.usnap.org/ 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)

Offline

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

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

Re: GuruPlug USNAP as GPIO - driver

This would be much better placed on http://archlinuxarm.org


Developer @ Arch Linux | ARM

Offline

Board footer

Powered by FluxBB