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:
parent
0363754c32
commit
44c84a9425
|
|
@ -21,8 +21,8 @@ if [ "${1}" != "start" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
MDEV="/sbin/mdev"
|
MDEV="/sbin/mdev"
|
||||||
# MAKEDEVS="/sbin/makedevs"
|
MAKEDEVS="/sbin/makedevs"
|
||||||
# CONFIG="/etc/makedevs.d/${DEL_PLATFORM}"
|
CONFIG="/etc/device_table"
|
||||||
|
|
||||||
# Create shared memory mount point
|
# Create shared memory mount point
|
||||||
mkdir -p /dev/shm
|
mkdir -p /dev/shm
|
||||||
|
|
@ -37,11 +37,7 @@ fi
|
||||||
${MDEV} -s
|
${MDEV} -s
|
||||||
|
|
||||||
# Create rest device nodes via configuration file.
|
# Create rest device nodes via configuration file.
|
||||||
# if [ -f "${CONFIG}" ]; then
|
[ -f "${CONFIG}" ] && ${MAKEDEVS} -d "${CONFIG}" / >/dev/null 2>&1
|
||||||
# [ -z "${quietboot}" ] && echo -n "Creating nodes via configuration file... "
|
|
||||||
# ${MAKEDEVS} -d "${CONFIG}" / >/dev/null 2>&1
|
|
||||||
# [ -z "${quietboot}" ] && echo "done"
|
|
||||||
# fi
|
|
||||||
|
|
||||||
# mount storage devices
|
# mount storage devices
|
||||||
usbmount
|
usbmount
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:"
|
||||||
|
|
||||||
|
PR_append_del = "+${DISTRO}.r0"
|
||||||
Loading…
Reference in New Issue