gpio module for elan520 Soekris/Pyramid

15 views
Skip to first unread message

Tim

unread,
Nov 15, 2009, 1:23:50 PM11/15/09
to pyramidlinux
Has anybody made the gpio.ko referenced here: http://www.meduna.org/sw_gpio_en.html
f or Pyramid 2.6.19.2? I'm looking to wake up the gpio capability of
my newly acquired net4521. If so, any help would be appreciated before
I set out to make it myself. If nobody responds, I'll report my
results - or issues - with making this module. Thanks!

JohnC

unread,
Nov 15, 2009, 6:17:49 PM11/15/09
to pyramidlinux
Tim,

The module is included in the distro. It is located here /lib/modules/
2.6.19.2-pyramid.metrix.net/kernel/drivers/char/scx200_gpio.ko

John

Tim

unread,
Nov 29, 2009, 5:16:19 PM11/29/09
to pyramidlinux
Thanks John, but I'm getting the following error:

pyramid:/lib/modules/2.6.19.2-pyramid.metrix.net/kernel/drivers/char#
ls
cs5535_gpio.ko nsc_gpio.ko nvram.ko pc8736x_gpio.ko rtc.ko
scx200_gpio.ko watchdog
pyramid:/lib/modules/2.6.19.2-pyramid.metrix.net/kernel/drivers/char#
cd /
pyramid:/# insmod /lib/modules/2.6.19.2-pyramid.metrix.net/kernel/
drivers/char/scx200_gpio.ko
insmod: error inserting '/lib/modules/2.6.19.2-pyramid.metrix.net/
kernel/drivers/char/scx200_gpio.ko': -1 No such device
pyramid:/#

Tim

unread,
Dec 5, 2009, 4:01:02 PM12/5/09
to pyramidlinux
FYI - modules loaded at boot:

pyramid:/# lsmod
Module Size Used by
scx200 4384 0
af_packet 19800 2
sierra 11380 0
airprime 7924 0
usbserial 28876 2 sierra,airprime
ohci_hcd 16404 0
ipv6 221792 12
ehci_hcd 25880 0
usbcore 113600 6
sierra,airprime,usbserial,ohci_hcd,ehci_hcd
pcmcia 34308 4
firmware_class 9424 1 pcmcia
yenta_socket 23740 4
rsrc_nonstatic 10352 1 yenta_socket
pcmcia_core 37312 3 pcmcia,yenta_socket,rsrc_nonstatic
ppp_generic 25188 0
slhc 5904 1 ppp_generic
ip_nat_ftp 3184 0
ip_conntrack_ftp 7036 1 ip_nat_ftp
ipt_TOS 2032 0
ipt_REJECT 4208 0
ipt_REDIRECT 2096 0
ipt_MASQUERADE 3248 0
xt_MARK 2160 0
ipt_LOG 5936 0
xt_state 2000 0
xt_mark 1744 0
xt_mac 1776 0
iptable_nat 6580 0
ip_nat 15924 4
ip_nat_ftp,ipt_REDIRECT,ipt_MASQUERADE,iptable_nat
ip_conntrack 43444 6
ip_nat_ftp,ip_conntrack_ftp,ipt_MASQUERADE,xt_state,iptable_nat,ip_nat
iptable_mangle 2640 0
iptable_filter 2800 0
ip_tables 12600 3
iptable_nat,iptable_mangle,iptable_filter
natsemi 24264 0
crc32 4240 2 pcmcia,natsemi
ath_pci 89008 0
wlan 182096 1 ath_pci
ath_hal 191440 1 ath_pci
hostap_pci 50624 0
hostap 101396 1 hostap_pci
ieee80211_crypt 5712 1 hostap
unix 25040 18
pyramid:/#

JohnC

unread,
Dec 5, 2009, 4:34:58 PM12/5/09
to pyramidlinux
Tim,

You need to use <i>modprobe</i> intead of insmod. To load the module
every time you start the unit you will need to add a reference in <i>/
etc/modules</i>

John

Tim

unread,
Dec 5, 2009, 8:39:43 PM12/5/09
to pyramidlinux
John,

Thanks, but modprobe acts the exact same way:

pyramid:/# modprobe scx200_gpio
FATAL: Error inserting scx200_gpio (/lib/modules/2.6.19.2-
pyramid.metrix.net/kernel/drivers/char/scx200_gpio.ko): No such device
pyramid:/#

Tim

unread,
Dec 20, 2009, 12:55:03 PM12/20/09
to pyramidlinux
Anyone? Or is the Elan sc520 gpio in the Soekris 4521 just not
supported with any of the installed modules in Pyramid? In that case,
I'll attempt to roll my own - I just need to know what the story is,
so I can proceed.
Reply all
Reply to author
Forward
0 new messages