Laird WB45NBT
Reference Guide
Embedded Wireless Solutions Support Center:
http://ews-support.lairdtech.com
www.lairdtech.com/wi-fi
27
© Copyright 2016 Laird. All Rights Reserved
Americas: +1-800-492-2320
Europe: +44-1628-858-940
Hong Kong: +852 2923 0600
sysfs
Linux can present data about the system and drivers by using
sysfs (system file-system). The entire tree can be found
mounted at /sys and through various virtual files, you can read information about the kernel, drivers, and hardware
of the system. By writing to various files, you can cause the drivers or kernel to take various actions. See the
GPIOs
section below for examples. Detailed information can be found in the following document:
https://www.kernel.org/pub/linux/kernel/people/mochel/doc/papers/ols-2005/mochel.pdf
debugfs
Debugfs (debug file-system) is a useful virtual file system that presents debug information and allows you to affect
various system parameters. It is not mounted by default but can be mounted via the following command:
# mount -t debugfs none /sys/kernel/debug
It is typically found at /sys/kernel/debug.
Finding Version Information
The kernel version can be found via the uname command:
# uname -a
Linux summit 3.8.0-laird5 #30 PREEMPT Tue Aug 13 14:48:13 PDT 2013
armv5tejl GNU/Linux
The rootfs Laird release can be found in /etc/summit-release:
# cat /etc/summit-release
Laird Linux wb45n-laird_fips-3.4.0.6
H
ARDWARE
U
SE
N
OTES
GPIOs
The GPIOs on the breakout-board are connected through to the port C pins on the WB45 module. For example, for
LED3:
The other GPIO and LEDs are similar.
Name
Linux ID
LED
Header Pin
Port
Comments
GPIO0
72
D18
1
pc8
kernel-led driver - led0: heartbeat
GPIO1
78
D17
2
pc14 kernel-led driver
–
led1: status
GPIO2
67
D16
3
pc3
GPIO3
75
D15
4
pc11