meta-digi-del: add device table support

And configure it to create GPIO nodes on boot.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
This commit is contained in:
Javier Viguera 2013-02-06 19:31:14 +01:00
parent 0363754c32
commit 44c84a9425
3 changed files with 15 additions and 7 deletions

View File

@ -21,8 +21,8 @@ if [ "${1}" != "start" ]; then
fi
MDEV="/sbin/mdev"
# MAKEDEVS="/sbin/makedevs"
# CONFIG="/etc/makedevs.d/${DEL_PLATFORM}"
MAKEDEVS="/sbin/makedevs"
CONFIG="/etc/device_table"
# Create shared memory mount point
mkdir -p /dev/shm
@ -37,11 +37,7 @@ fi
${MDEV} -s
# Create rest device nodes via configuration file.
# if [ -f "${CONFIG}" ]; then
# [ -z "${quietboot}" ] && echo -n "Creating nodes via configuration file... "
# ${MAKEDEVS} -d "${CONFIG}" / >/dev/null 2>&1
# [ -z "${quietboot}" ] && echo "done"
# fi
[ -f "${CONFIG}" ] && ${MAKEDEVS} -d "${CONFIG}" / >/dev/null 2>&1
# mount storage devices
usbmount

View File

@ -0,0 +1,9 @@
#
# GPIO device nodes (LED2 and BUTTON2)
#
/dev/gpio d 755 0 0
/dev/gpio/1 c 644 0 0 240 1
/dev/gpio/73 c 644 0 0 240 73
/dev/gpio/97 c 644 0 0 240 97
/dev/gpio/100 c 644 0 0 240 100
/dev/gpio/204 c 644 0 0 240 204

View File

@ -0,0 +1,3 @@
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:"
PR_append_del = "+${DISTRO}.r0"