diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2012-02-01 20:42:25 +0000 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2012-02-01 20:46:04 +0000 |
commit | 8e7ea27c5b0248e52cf2367b621bffd16be3d338 (patch) | |
tree | 9d3a85d0e6d66ad0745d1515381d79c817583116 | |
parent | dd3cdbc234f9e786929ea56508c4ded3a0f75ad1 (diff) | |
download | meta-fsl-arm-8e7ea27c5b0248e52cf2367b621bffd16be3d338.tar.gz |
udev: import 164 version from OE-Core
Currently supported machines doesn't support kernel above 2.6.35 thus
forcing us to be using udev 164 version for now.
Once kernel is updated, this ought to be reverted.
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
-rw-r--r-- | recipes-core/udev/udev.inc | 83 | ||||
-rw-r--r-- | recipes-core/udev/udev/devfs-udev.rules | 108 | ||||
-rw-r--r-- | recipes-core/udev/udev/init | 59 | ||||
-rw-r--r-- | recipes-core/udev/udev/links.conf | 21 | ||||
-rw-r--r-- | recipes-core/udev/udev/local.rules | 35 | ||||
-rw-r--r-- | recipes-core/udev/udev/mount.sh | 68 | ||||
-rw-r--r-- | recipes-core/udev/udev/network.sh | 55 | ||||
-rw-r--r-- | recipes-core/udev/udev/permissions.rules | 131 | ||||
-rw-r--r-- | recipes-core/udev/udev/run.rules | 14 | ||||
-rw-r--r-- | recipes-core/udev/udev/udev-166-v4l1-1.patch | 50 | ||||
-rw-r--r-- | recipes-core/udev/udev/udev-cache | 20 | ||||
-rw-r--r-- | recipes-core/udev/udev/udev.rules | 116 | ||||
-rw-r--r-- | recipes-core/udev/udev_164.bb | 8 |
13 files changed, 768 insertions, 0 deletions
diff --git a/recipes-core/udev/udev.inc b/recipes-core/udev/udev.inc new file mode 100644 index 0000000..0e571d6 --- /dev/null +++ b/recipes-core/udev/udev.inc | |||
@@ -0,0 +1,83 @@ | |||
1 | SUMMARY = "/dev/ and hotplug management daemon" | ||
2 | DESCRIPTION = "udev is a daemon which dynamically creates and removes device nodes from \ | ||
3 | /dev/, handles hotplug events and loads drivers at boot time." | ||
4 | HOMEPAGE = "http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html" | ||
5 | LICENSE = "GPLv2.0+ & LGPLv2.1+" | ||
6 | LICENSE_${PN} = "GPLv2.0+" | ||
7 | LICENSE_libudev = "LGPLv2.1+" | ||
8 | LICENSE_libgudev = "LGPLv2.1+" | ||
9 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe \ | ||
10 | file://libudev/COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343 \ | ||
11 | file://extras/gudev/COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343" | ||
12 | |||
13 | DEPENDS = "acl glib-2.0 libusb usbutils pciutils gperf-native libxslt-native" | ||
14 | RPROVIDES_${PN} = "hotplug" | ||
15 | RRECOMMENDS_${PN} += "udev-extraconf udev-cache usbutils-ids pciutils-ids" | ||
16 | RDEPENDS_libudev = "${PN} (= ${EXTENDPKGV})" | ||
17 | |||
18 | SRC_URI = "${KERNELORG_MIRROR}/linux/utils/kernel/hotplug/udev-${PV}.tar.gz \ | ||
19 | file://run.rules \ | ||
20 | file://udev.rules \ | ||
21 | file://devfs-udev.rules \ | ||
22 | file://links.conf \ | ||
23 | file://permissions.rules \ | ||
24 | file://mount.sh \ | ||
25 | file://network.sh \ | ||
26 | file://local.rules \ | ||
27 | file://udev-cache \ | ||
28 | file://init" | ||
29 | |||
30 | inherit autotools pkgconfig update-rc.d | ||
31 | |||
32 | # udevd/udevadm -> /sbin/, libudev.so.* -> /lib/ | ||
33 | sbindir = "${base_sbindir}" | ||
34 | libexecdir = "${base_libdir}/udev" | ||
35 | EXTRA_OECONF = "--disable-introspection --with-rootlibdir=${base_libdir} \ | ||
36 | --with-pci-ids-path=${datadir}/pci.ids" | ||
37 | |||
38 | PACKAGES =+ "udev-acl udev-consolekit udev-utils" | ||
39 | PACKAGES =+ "udev-cache libudev libudev-dev libudev-dbg" | ||
40 | PACKAGES =+ "libgudev libgudev-dev libgudev-dbg" | ||
41 | |||
42 | INITSCRIPT_PACKAGES = "udev udev-cache" | ||
43 | INITSCRIPT_NAME_udev = "udev" | ||
44 | INITSCRIPT_PARAMS_udev = "start 03 S ." | ||
45 | INITSCRIPT_NAME_udev-cache = "udev-cache" | ||
46 | INITSCRIPT_PARAMS_udev-cache = "start 36 S ." | ||
47 | |||
48 | FILES_${PN} += "${libexecdir} ${libdir}/ConsoleKit" | ||
49 | RRECOMMENDS_${PN} += "udev-utils" | ||
50 | |||
51 | FILES_${PN}-dbg += "${libexecdir}/.debug" | ||
52 | FILES_${PN}-dev = "${datadir}/pkgconfig/udev.pc" | ||
53 | FILES_libudev = "${base_libdir}/libudev.so.*" | ||
54 | FILES_libudev-dbg = "${base_libdir}/.debug/libudev.so.*" | ||
55 | FILES_libudev-dev = "${includedir}/libudev.h ${libdir}/libudev.so ${libdir}/libudev.la \ | ||
56 | ${libdir}/libudev.a ${libdir}/pkgconfig/libudev.pc" | ||
57 | FILES_libgudev = "${base_libdir}/libgudev*.so.* ${libdir}/libgudev*.so.*" | ||
58 | FILES_libgudev-dbg = "${base_libdir}/.debug/libgudev*.so.* ${libdir}/.debug/libgudev*.so.*" | ||
59 | FILES_libgudev-dev = "${includedir}/gudev* ${libdir}/libgudev*.so ${libdir}/libgudev*.la \ | ||
60 | ${libdir}/libgudev*.a ${libdir}/pkgconfig/gudev*.pc" | ||
61 | FILES_udev-cache = "${sysconfdir}/init.d/udev-cache" | ||
62 | |||
63 | FILES_udev-acl = "${base_libdir}/udev/udev-acl ${base_libdir}/udev/rules.d/70-acl.rules" | ||
64 | |||
65 | FILES_udev-utils = "${bindir}/udevinfo ${bindir}/udevtest ${base_sbindir}/udevadm" | ||
66 | |||
67 | RDEPENDS_udev-consolekit += "udev-acl" | ||
68 | FILES_udev-consolekit = "${libdir}/ConsoleKit" | ||
69 | |||
70 | do_install_append () { | ||
71 | install -d ${D}${sysconfdir}/init.d | ||
72 | install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/udev | ||
73 | install -m 0755 ${WORKDIR}/udev-cache ${D}${sysconfdir}/init.d/udev-cache | ||
74 | |||
75 | install -d ${D}${sysconfdir}/udev/rules.d/ | ||
76 | |||
77 | install -m 0644 ${WORKDIR}/local.rules ${D}${sysconfdir}/udev/rules.d/local.rules | ||
78 | |||
79 | install -d ${D}${sysconfdir}/udev/scripts/ | ||
80 | |||
81 | install -m 0755 ${WORKDIR}/mount.sh ${D}${sysconfdir}/udev/scripts/mount.sh | ||
82 | install -m 0755 ${WORKDIR}/network.sh ${D}${sysconfdir}/udev/scripts | ||
83 | } | ||
diff --git a/recipes-core/udev/udev/devfs-udev.rules b/recipes-core/udev/udev/devfs-udev.rules new file mode 100644 index 0000000..0ba1ad4 --- /dev/null +++ b/recipes-core/udev/udev/devfs-udev.rules | |||
@@ -0,0 +1,108 @@ | |||
1 | # The use of these rules is not recommended or supported. | ||
2 | # In a world where devices can come and go at any time, the devfs scheme | ||
3 | # of simple device enumeration does not help _anything_. Just forget about | ||
4 | # it. Use custom rules to name your device or look at the persistent device | ||
5 | # naming scheme, which is implemented for disks and add your subsystem. | ||
6 | |||
7 | # ide block devices | ||
8 | BUS="ide", KERNEL="hd*", PROGRAM="/etc/udev/ide-devfs.sh %k %b %n", NAME="%k", SYMLINK="%c{1} %c{2}" | ||
9 | |||
10 | # md block devices | ||
11 | KERNEL="md[0-9]*", NAME="md/%n" | ||
12 | |||
13 | # floppy devices | ||
14 | KERNEL="fd[0-9]*", NAME="floppy/%n" | ||
15 | |||
16 | # tty devices | ||
17 | KERNEL="tty[0-9]*", NAME="vc/%n", SYMLINK="%k" | ||
18 | KERNEL="ttyS[0-9]*", NAME="tts/%n", SYMLINK="%k" | ||
19 | KERNEL="ttyUSB[0-9]*", NAME="tts/USB%n" | ||
20 | |||
21 | # vc devices | ||
22 | KERNEL="vcs", NAME="vcc/0" | ||
23 | KERNEL="vcs[0-9]*", NAME="vcc/%n" | ||
24 | KERNEL="vcsa", NAME="vcc/a0" | ||
25 | KERNEL="vcsa[0-9]*", NAME="vcc/a%n" | ||
26 | |||
27 | # v4l devices | ||
28 | KERNEL="video[0-9]*", NAME="v4l/video%n" | ||
29 | KERNEL="radio[0-9]*", NAME="v4l/radio%n" | ||
30 | KERNEL="vbi[0-9]*", NAME="v4l/vbi%n" | ||
31 | KERNEL="vtx[0-9]*", NAME="v4l/vtx%n" | ||
32 | |||
33 | # dm devices (ignore them) | ||
34 | KERNEL="dm-[0-9]*", NAME="" | ||
35 | |||
36 | # i2c devices | ||
37 | KERNEL="i2c-[0-9]*", NAME="i2c/%n", SYMLINK="%k" | ||
38 | |||
39 | # loop devices | ||
40 | KERNEL="loop[0-9]*", NAME="loop/%n", SYMLINK="%k" | ||
41 | |||
42 | # ramdisks | ||
43 | KERNEL="ram[0-9]*", NAME="rd/%n", SYMLINK="%k" | ||
44 | |||
45 | # framebuffer devices | ||
46 | KERNEL="fb[0-9]*", NAME="fb/%n", SYMLINK="%k" | ||
47 | |||
48 | # misc | ||
49 | KERNEL="rtc", NAME="misc/%k", SYMLINK="%k" | ||
50 | KERNEL="psaux", NAME="misc/%k", SYMLINK="%k" | ||
51 | KERNEL="agpgart", NAME="misc/%k", SYMLINK="%k" | ||
52 | KERNEL="rtc", NAME="misc/%k", SYMLINK="%k" | ||
53 | KERNEL="psaux", NAME="misc/%k", SYMLINK="%k" | ||
54 | KERNEL="uinput", NAME="misc/%k", SYMLINK="%k" | ||
55 | |||
56 | # alsa devices | ||
57 | KERNEL="controlC[0-9]*", NAME="snd/%k" | ||
58 | KERNEL="hw[CD0-9]*", NAME="snd/%k" | ||
59 | KERNEL="pcm[CD0-9cp]*", NAME="snd/%k" | ||
60 | KERNEL="midi[CD0-9]*", NAME="snd/%k" | ||
61 | KERNEL="timer", NAME="snd/%k" | ||
62 | KERNEL="seq", NAME="snd/%k" | ||
63 | |||
64 | # oss devices | ||
65 | KERNEL="audio*", NAME="sound/%k", SYMLINK="%k" | ||
66 | KERNEL="dmmidi", NAME="sound/%k", SYMLINK="%k" | ||
67 | KERNEL="dsp*", NAME="sound/%k", SYMLINK="%k" | ||
68 | KERNEL="midi*", NAME="sound/%k", SYMLINK="%k" | ||
69 | KERNEL="mixer*", NAME="sound/%k", SYMLINK="%k" | ||
70 | KERNEL="sequencer*", NAME="sound/%k", SYMLINK="%k" | ||
71 | |||
72 | # input devices | ||
73 | KERNEL="mice", NAME="input/%k" | ||
74 | KERNEL="mouse*", NAME="input/%k" | ||
75 | KERNEL="event*", NAME="input/%k" | ||
76 | KERNEL="js*", NAME="input/%k" | ||
77 | KERNEL="ts*", NAME="input/%k" | ||
78 | |||
79 | # USB devices | ||
80 | KERNEL="hiddev*", NAME="usb/%k" | ||
81 | KERNEL="auer*", NAME="usb/%k" | ||
82 | KERNEL="legousbtower*", NAME="usb/%k" | ||
83 | KERNEL="dabusb*", NAME="usb/%k" | ||
84 | BUS="usb", KERNEL="lp[0-9]*", NAME="usb/%k" | ||
85 | |||
86 | # netlink devices | ||
87 | KERNEL="route", NAME="netlink/%k" | ||
88 | KERNEL="skip", NAME="netlink/%k" | ||
89 | KERNEL="usersock", NAME="netlink/%k" | ||
90 | KERNEL="fwmonitor", NAME="netlink/%k" | ||
91 | KERNEL="tcpdiag", NAME="netlink/%k" | ||
92 | KERNEL="nflog", NAME="netlink/%k" | ||
93 | KERNEL="xfrm", NAME="netlink/%k" | ||
94 | KERNEL="arpd", NAME="netlink/%k" | ||
95 | KERNEL="route6", NAME="netlink/%k" | ||
96 | KERNEL="ip6_fw", NAME="netlink/%k" | ||
97 | KERNEL="dnrtmsg", NAME="netlink/%k" | ||
98 | KERNEL="tap*", NAME="netlink/%k" | ||
99 | |||
100 | # CAPI devices | ||
101 | KERNEL="capi", NAME="capi20", SYMLINK="isdn/capi20" | ||
102 | KERNEL="capi*", NAME="capi/%n" | ||
103 | |||
104 | # Network devices | ||
105 | KERNEL="tun", NAME="net/%k" | ||
106 | |||
107 | # raw devices | ||
108 | KERNEL="raw[0-9]*", NAME="raw/%k" | ||
diff --git a/recipes-core/udev/udev/init b/recipes-core/udev/udev/init new file mode 100644 index 0000000..6a4464c --- /dev/null +++ b/recipes-core/udev/udev/init | |||
@@ -0,0 +1,59 @@ | |||
1 | #!/bin/sh -e | ||
2 | |||
3 | ### BEGIN INIT INFO | ||
4 | # Provides: udev | ||
5 | # Required-Start: mountvirtfs | ||
6 | # Required-Stop: | ||
7 | # Default-Start: S | ||
8 | # Default-Stop: | ||
9 | # Short-Description: Start udevd, populate /dev and load drivers. | ||
10 | ### END INIT INFO | ||
11 | |||
12 | export TZ=/etc/localtime | ||
13 | |||
14 | [ -d /sys/class ] || exit 1 | ||
15 | [ -r /proc/mounts ] || exit 1 | ||
16 | [ -x /sbin/udevd ] || exit 1 | ||
17 | [ -f /etc/udev/udev.conf ] && . /etc/udev/udev.conf | ||
18 | |||
19 | kill_udevd() { | ||
20 | if [ -x /sbin/pidof ]; then | ||
21 | pid=`/sbin/pidof -x udevd` | ||
22 | [ -n "$pid" ] && kill $pid | ||
23 | fi | ||
24 | } | ||
25 | |||
26 | export ACTION=add | ||
27 | # propagate /dev from /sys | ||
28 | echo "Starting udev" | ||
29 | |||
30 | # mount the tmpfs on /dev, if not already done | ||
31 | LANG=C awk '$2 == "/dev" && ($3 == "tmpfs" || $3 == "devtmpfs") { exit 1 }' /proc/mounts && { | ||
32 | mount -n -o mode=0755 -t tmpfs none "/dev" | ||
33 | } | ||
34 | [ -e /dev/pts ] || mkdir -m 0755 /dev/pts | ||
35 | [ -e /dev/shm ] || mkdir -m 1777 /dev/shm | ||
36 | |||
37 | |||
38 | if [ -e /etc/dev.tar ]; then | ||
39 | (cd /; tar xf /etc/dev.tar 2>&1 | grep -v 'time stamp' || true) | ||
40 | not_first_boot=1 | ||
41 | fi | ||
42 | |||
43 | # make_extra_nodes | ||
44 | kill_udevd > "/dev/null" 2>&1 | ||
45 | |||
46 | # trigger the sorted events | ||
47 | echo -e '\000\000\000\000' > /proc/sys/kernel/hotplug | ||
48 | /sbin/udevd -d | ||
49 | |||
50 | /sbin/udevadm control --env=STARTUP=1 | ||
51 | if [ "$not_first_boot" != "" ];then | ||
52 | /sbin/udevadm trigger --action=add --subsystem-nomatch=tty --subsystem-nomatch=mem --subsystem-nomatch=vc --subsystem-nomatch=vtconsole --subsystem-nomatch=misc --subsystem-nomatch=dcon --subsystem-nomatch=pci_bus --subsystem-nomatch=graphics --subsystem-nomatch=backlight --subsystem-nomatch=video4linux --subsystem-nomatch=platform | ||
53 | (/sbin/udevadm settle --timeout=3; /sbin/udevadm control --env=STARTUP=)& | ||
54 | else | ||
55 | /sbin/udevadm trigger --action=add | ||
56 | /sbin/udevadm settle | ||
57 | fi | ||
58 | |||
59 | exit 0 | ||
diff --git a/recipes-core/udev/udev/links.conf b/recipes-core/udev/udev/links.conf new file mode 100644 index 0000000..8fff922 --- /dev/null +++ b/recipes-core/udev/udev/links.conf | |||
@@ -0,0 +1,21 @@ | |||
1 | # This file does not exist. Please do not ask the debian maintainer about it. | ||
2 | # You may use it to do strange and wonderful things, at your risk. | ||
3 | |||
4 | L fd /proc/self/fd | ||
5 | L stdin /proc/self/fd/0 | ||
6 | L stdout /proc/self/fd/1 | ||
7 | L stderr /proc/self/fd/2 | ||
8 | L core /proc/kcore | ||
9 | L sndstat /proc/asound/oss/sndstat | ||
10 | L MAKEDEV /sbin/MAKEDEV | ||
11 | |||
12 | D pts | ||
13 | D shm | ||
14 | |||
15 | # Hic sunt leones. | ||
16 | M ppp c 108 0 | ||
17 | D loop | ||
18 | M loop/0 b 7 0 | ||
19 | D net | ||
20 | M net/tun c 10 200 | ||
21 | |||
diff --git a/recipes-core/udev/udev/local.rules b/recipes-core/udev/udev/local.rules new file mode 100644 index 0000000..625e49a --- /dev/null +++ b/recipes-core/udev/udev/local.rules | |||
@@ -0,0 +1,35 @@ | |||
1 | # There are a number of modifiers that are allowed to be used in some | ||
2 | # of the different fields. They provide the following subsitutions: | ||
3 | # | ||
4 | # %n the "kernel number" of the device. | ||
5 | # For example, 'sda3' has a "kernel number" of '3' | ||
6 | # %e the smallest number for that name which does not matches an existing node | ||
7 | # %k the kernel name for the device | ||
8 | # %M the kernel major number for the device | ||
9 | # %m the kernel minor number for the device | ||
10 | # %b the bus id for the device | ||
11 | # %c the string returned by the PROGRAM | ||
12 | # %s{filename} the content of a sysfs attribute | ||
13 | # %% the '%' char itself | ||
14 | # | ||
15 | |||
16 | # Media automounting | ||
17 | SUBSYSTEM=="block", ACTION=="add" RUN+="/etc/udev/scripts/mount.sh" | ||
18 | SUBSYSTEM=="block", ACTION=="remove" RUN+="/etc/udev/scripts/mount.sh" | ||
19 | |||
20 | # Handle network interface setup | ||
21 | SUBSYSTEM=="net", ACTION=="add" RUN+="/etc/udev/scripts/network.sh" | ||
22 | SUBSYSTEM=="net", ACTION=="remove" RUN+="/etc/udev/scripts/network.sh" | ||
23 | |||
24 | # The first framebuffer is symlinked to /dev/fb | ||
25 | KERNEL=="fb0", SYMLINK+="fb" | ||
26 | |||
27 | # The first rtc device is symlinked to /dev/rtc | ||
28 | KERNEL=="rtc0", SYMLINK+="rtc" | ||
29 | |||
30 | # Try and modprobe for drivers for new hardware | ||
31 | ACTION=="add", DEVPATH=="/devices/*", ENV{MODALIAS}=="?*", RUN+="/sbin/modprobe $env{MODALIAS}" | ||
32 | |||
33 | # Create a symlink to any touchscreen input device | ||
34 | SUBSYSTEM=="input", KERNEL=="event[0-9]*", ATTRS{modalias}=="input:*-e0*,3,*a0,1,*18,*", SYMLINK+="input/touchscreen0" | ||
35 | |||
diff --git a/recipes-core/udev/udev/mount.sh b/recipes-core/udev/udev/mount.sh new file mode 100644 index 0000000..53fefa3 --- /dev/null +++ b/recipes-core/udev/udev/mount.sh | |||
@@ -0,0 +1,68 @@ | |||
1 | #!/bin/sh | ||
2 | # | ||
3 | # Called from udev | ||
4 | # | ||
5 | # Attempt to mount any added block devices and umount any removed devices | ||
6 | |||
7 | |||
8 | MOUNT="/bin/mount" | ||
9 | PMOUNT="/usr/bin/pmount" | ||
10 | UMOUNT="/bin/umount" | ||
11 | |||
12 | for line in `cat /etc/udev/mount.blacklist` | ||
13 | do | ||
14 | if [ ` expr match "$DEVNAME" "$line" ` -gt 0 ]; | ||
15 | then | ||
16 | logger "udev/mount.sh" "[$DEVNAME] is blacklisted, ignoring" | ||
17 | exit 0 | ||
18 | fi | ||
19 | done | ||
20 | |||
21 | automount() { | ||
22 | name="`basename "$DEVNAME"`" | ||
23 | |||
24 | ! test -d "/media/$name" && mkdir -p "/media/$name" | ||
25 | |||
26 | if ! $MOUNT -t auto -o sync $DEVNAME "/media/$name" | ||
27 | then | ||
28 | #logger "mount.sh/automount" "$MOUNT -t auto $DEVNAME \"/media/$name\" failed!" | ||
29 | rm_dir "/media/$name" | ||
30 | else | ||
31 | logger "mount.sh/automount" "Auto-mount of [/media/$name] successful" | ||
32 | touch "/tmp/.automount-$name" | ||
33 | fi | ||
34 | } | ||
35 | |||
36 | rm_dir() { | ||
37 | # We do not want to rm -r populated directories | ||
38 | if test "`find "$1" | wc -l | tr -d " "`" -lt 2 -a -d "$1" | ||
39 | then | ||
40 | ! test -z "$1" && rm -r "$1" | ||
41 | else | ||
42 | logger "mount.sh/automount" "Not removing non-empty directory [$1]" | ||
43 | fi | ||
44 | } | ||
45 | |||
46 | if [ "$ACTION" = "add" ] && [ -n "$DEVNAME" ]; then | ||
47 | if [ -x "$PMOUNT" ]; then | ||
48 | $PMOUNT $DEVNAME 2> /dev/null | ||
49 | elif [ -x $MOUNT ]; then | ||
50 | $MOUNT $DEVNAME 2> /dev/null | ||
51 | fi | ||
52 | |||
53 | # If the device isn't mounted at this point, it isn't configured in fstab | ||
54 | grep -q "^$DEVNAME " /proc/mounts || automount | ||
55 | fi | ||
56 | |||
57 | |||
58 | |||
59 | if [ "$ACTION" = "remove" ] && [ -x "$UMOUNT" ] && [ -n "$DEVNAME" ]; then | ||
60 | for mnt in `cat /proc/mounts | grep "$DEVNAME" | cut -f 2 -d " " ` | ||
61 | do | ||
62 | $UMOUNT $mnt | ||
63 | done | ||
64 | |||
65 | # Remove empty directories from auto-mounter | ||
66 | name="`basename "$DEVNAME"`" | ||
67 | test -e "/tmp/.automount-$name" && rm_dir "/media/$name" | ||
68 | fi | ||
diff --git a/recipes-core/udev/udev/network.sh b/recipes-core/udev/udev/network.sh new file mode 100644 index 0000000..5016328 --- /dev/null +++ b/recipes-core/udev/udev/network.sh | |||
@@ -0,0 +1,55 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | # Do not run when pcmcia-cs is installed | ||
4 | test -x /sbin/cardctl && exit 0 | ||
5 | |||
6 | # We get two "add" events for hostap cards due to wifi0 | ||
7 | echo "$INTERFACE" | grep -q wifi && exit 0 | ||
8 | |||
9 | |||
10 | # Check if /etc/init.d/network has been run yet to see if we are | ||
11 | # called by starting /etc/rcS.d/S03udev and not by hotplugging a device | ||
12 | # | ||
13 | # At this stage, network interfaces should not be brought up | ||
14 | # automatically because: | ||
15 | # a) /etc/init.d/network has not been run yet (security issue) | ||
16 | # b) /var has not been populated yet so /etc/resolv,conf points to | ||
17 | # oblivion, making the network unusable | ||
18 | # | ||
19 | |||
20 | spoofp="`grep ^spoofprotect /etc/network/options`" | ||
21 | if test -z "$spoofp" | ||
22 | then | ||
23 | # This is the default from /etc/init.d/network | ||
24 | spoofp_val=yes | ||
25 | else | ||
26 | spoofp_val=${spoofp#spoofprotect=} | ||
27 | fi | ||
28 | |||
29 | test "$spoofp_val" = yes && spoofp_val=1 || spoofp_val=0 | ||
30 | |||
31 | # I think it is safe to assume that "lo" will always be there ;) | ||
32 | if test "`cat /proc/sys/net/ipv4/conf/lo/rp_filter`" != "$spoofp_val" -a -n "$spoofp_val" | ||
33 | then | ||
34 | echo "$INTERFACE" >> /dev/udev_network_queue | ||
35 | exit 0 | ||
36 | fi | ||
37 | |||
38 | # | ||
39 | # Code taken from pcmcia-cs:/etc/pcmcia/network | ||
40 | # | ||
41 | |||
42 | # if this interface has an entry in /etc/network/interfaces, let ifupdown | ||
43 | # handle it | ||
44 | if grep -q "iface \+$INTERFACE" /etc/network/interfaces; then | ||
45 | case $ACTION in | ||
46 | add) | ||
47 | ifconfig | grep -q "^$INTERFACE" || ifup $INTERFACE | ||
48 | ;; | ||
49 | remove) | ||
50 | ifdown $INTERFACE | ||
51 | ;; | ||
52 | esac | ||
53 | |||
54 | exit 0 | ||
55 | fi | ||
diff --git a/recipes-core/udev/udev/permissions.rules b/recipes-core/udev/udev/permissions.rules new file mode 100644 index 0000000..205b733 --- /dev/null +++ b/recipes-core/udev/udev/permissions.rules | |||
@@ -0,0 +1,131 @@ | |||
1 | ACTION!="add", GOTO="permissions_end" | ||
2 | |||
3 | # workarounds needed to synchronize with sysfs | ||
4 | # only needed for kernels < v2.6.18-rc1 | ||
5 | ENV{PHYSDEVPATH}!="?*", ENV{PHYSDEVBUS}=="?*", WAIT_FOR_SYSFS="bus" | ||
6 | SUBSYSTEM=="scsi", KERNEL=="[0-9]*:[0-9]*", WAIT_FOR_SYSFS="ioerr_cnt" | ||
7 | # only needed for kernels < 2.6.16 | ||
8 | SUBSYSTEM=="net", WAIT_FOR_SYSFS="address" | ||
9 | # only needed for kernels < 2.6.17 | ||
10 | SUBSYSTEM=="net", ENV{DRIVER}=="?*", WAIT_FOR_SYSFS="device/driver" | ||
11 | |||
12 | # devices needed to load the drivers providing them | ||
13 | KERNEL=="tun", OPTIONS+="ignore_remove" | ||
14 | KERNEL=="ppp", OPTIONS+="ignore_remove" | ||
15 | KERNEL=="loop[0-9]*", OPTIONS+="ignore_remove" | ||
16 | |||
17 | # default permissions for block devices | ||
18 | SUBSYSTEM=="block", GROUP="disk" | ||
19 | # the aacraid driver is broken and reports that disks removable (see #404927) | ||
20 | SUBSYSTEM=="block", ATTRS{removable}=="1", \ | ||
21 | DRIVERS!="aacraid", GROUP="floppy" | ||
22 | # all block devices on these buses are "removable" | ||
23 | SUBSYSTEM=="block", SUBSYSTEMS=="usb|ieee1394|mmc|pcmcia", GROUP="floppy" | ||
24 | |||
25 | # IDE devices | ||
26 | KERNEL=="hd[a-z]|pcd[0-9]*", DRIVERS=="ide-cdrom|pcd", \ | ||
27 | IMPORT{program}="cdrom_id --export $tempnode" | ||
28 | ENV{ID_CDROM}=="?*", GROUP="cdrom" | ||
29 | KERNEL=="ht[0-9]*", GROUP="tape" | ||
30 | KERNEL=="nht[0-9]*", GROUP="tape" | ||
31 | |||
32 | # SCSI devices | ||
33 | KERNEL=="sr[0-9]*", IMPORT{program}="cdrom_id --export $tempnode" | ||
34 | SUBSYSTEMS=="scsi", ATTRS{type}=="1", GROUP="tape" | ||
35 | SUBSYSTEMS=="scsi", ATTRS{type}=="3", ATTRS{vendor}=="HP", GROUP="scanner" | ||
36 | SUBSYSTEMS=="scsi", ATTRS{type}=="3", ATTRS{vendor}=="Epson", GROUP="scanner" | ||
37 | SUBSYSTEMS=="scsi", ATTRS{type}=="3", ATTRS{vendor}=="EPSON", GROUP="scanner" | ||
38 | SUBSYSTEMS=="scsi", ATTRS{type}=="4", GROUP="cdrom" | ||
39 | SUBSYSTEMS=="scsi", ATTRS{type}=="5", GROUP="cdrom" | ||
40 | SUBSYSTEMS=="scsi", ATTRS{type}=="6", GROUP="scanner" | ||
41 | SUBSYSTEMS=="scsi", ATTRS{type}=="8", GROUP="tape" | ||
42 | |||
43 | # USB devices | ||
44 | KERNEL=="legousbtower*", MODE="0666" | ||
45 | KERNEL=="lp[0-9]*", SUBSYSTEMS=="usb", GROUP="lp" | ||
46 | |||
47 | # usbfs-like devices | ||
48 | SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", \ | ||
49 | MODE="0664" | ||
50 | |||
51 | # iRiver music players | ||
52 | SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", GROUP="plugdev", \ | ||
53 | ATTRS{idVendor}=="4102", ATTRS{idProduct}=="10[01][135789]" | ||
54 | |||
55 | # serial devices | ||
56 | SUBSYSTEM=="tty", GROUP="dialout" | ||
57 | SUBSYSTEM=="capi", GROUP="dialout" | ||
58 | SUBSYSTEM=="slamr", GROUP="dialout" | ||
59 | SUBSYSTEM=="zaptel", GROUP="dialout" | ||
60 | |||
61 | # vc devices (all members of the tty subsystem) | ||
62 | KERNEL=="ptmx", MODE="0666", GROUP="root" | ||
63 | KERNEL=="console", MODE="0600", GROUP="root" | ||
64 | KERNEL=="tty", MODE="0666", GROUP="root" | ||
65 | KERNEL=="tty[0-9]*", GROUP="root" | ||
66 | KERNEL=="pty*", MODE="0666", GROUP="tty" | ||
67 | |||
68 | # video devices | ||
69 | SUBSYSTEM=="video4linux", GROUP="video" | ||
70 | SUBSYSTEM=="drm", GROUP="video" | ||
71 | SUBSYSTEM=="dvb", GROUP="video" | ||
72 | SUBSYSTEM=="em8300", GROUP="video" | ||
73 | SUBSYSTEM=="graphics", GROUP="video" | ||
74 | SUBSYSTEM=="nvidia", GROUP="video" | ||
75 | |||
76 | # misc devices | ||
77 | KERNEL=="random", MODE="0666" | ||
78 | KERNEL=="urandom", MODE="0666" | ||
79 | KERNEL=="mem", MODE="0640", GROUP="kmem" | ||
80 | KERNEL=="kmem", MODE="0640", GROUP="kmem" | ||
81 | KERNEL=="port", MODE="0640", GROUP="kmem" | ||
82 | KERNEL=="full", MODE="0666" | ||
83 | KERNEL=="null", MODE="0666" | ||
84 | KERNEL=="zero", MODE="0666" | ||
85 | KERNEL=="inotify", MODE="0666" | ||
86 | KERNEL=="sgi_fetchop", MODE="0666" | ||
87 | KERNEL=="sonypi", MODE="0666" | ||
88 | KERNEL=="agpgart", GROUP="video" | ||
89 | KERNEL=="nvram", GROUP="nvram" | ||
90 | KERNEL=="rtc|rtc[0-9]*", GROUP="audio" | ||
91 | KERNEL=="tpm*", MODE="0600", OWNER="tss", GROUP="tss" | ||
92 | KERNEL=="fuse", GROUP="fuse" | ||
93 | KERNEL=="kqemu", MODE="0666" | ||
94 | KERNEL=="kvm", GROUP="kvm" | ||
95 | KERNEL=="tun", MODE="0666", | ||
96 | |||
97 | KERNEL=="cdemu[0-9]*", GROUP="cdrom" | ||
98 | KERNEL=="pktcdvd[0-9]*", GROUP="cdrom" | ||
99 | KERNEL=="pktcdvd", MODE="0644" | ||
100 | |||
101 | KERNEL=="uverbs*", GROUP="rdma" | ||
102 | KERNEL=="ucm*", GROUP="rdma" | ||
103 | KERNEL=="rdma_ucm", GROUP="rdma" | ||
104 | |||
105 | # printers and parallel devices | ||
106 | SUBSYSTEM=="printer", GROUP="lp" | ||
107 | SUBSYSTEM=="ppdev", GROUP="lp" | ||
108 | KERNEL=="irlpt*", GROUP="lp" | ||
109 | KERNEL=="pt[0-9]*", GROUP="tape" | ||
110 | KERNEL=="pht[0-9]*", GROUP="tape" | ||
111 | |||
112 | # sound devices | ||
113 | SUBSYSTEM=="sound", GROUP="audio" | ||
114 | |||
115 | # ieee1394 devices | ||
116 | KERNEL=="raw1394", GROUP="disk" | ||
117 | KERNEL=="dv1394*", GROUP="video" | ||
118 | KERNEL=="video1394*", GROUP="video" | ||
119 | |||
120 | # input devices | ||
121 | KERNEL=="event[0-9]*", ATTRS{name}=="*dvb*|*DVB*|* IR *" \ | ||
122 | MODE="0664", GROUP="video" | ||
123 | KERNEL=="js[0-9]*", MODE="0664" | ||
124 | KERNEL=="lirc[0-9]*", GROUP="video" | ||
125 | |||
126 | # AOE character devices | ||
127 | SUBSYSTEM=="aoe", MODE="0220", GROUP="disk" | ||
128 | SUBSYSTEM=="aoe", KERNEL=="err", MODE="0440" | ||
129 | |||
130 | LABEL="permissions_end" | ||
131 | |||
diff --git a/recipes-core/udev/udev/run.rules b/recipes-core/udev/udev/run.rules new file mode 100644 index 0000000..75d7137 --- /dev/null +++ b/recipes-core/udev/udev/run.rules | |||
@@ -0,0 +1,14 @@ | |||
1 | # debugging monitor | ||
2 | RUN+="socket:/org/kernel/udev/monitor" | ||
3 | |||
4 | # run a command on remove events | ||
5 | ACTION=="remove", ENV{REMOVE_CMD}!="", RUN+="$env{REMOVE_CMD}" | ||
6 | |||
7 | # ignore the events generated by virtual consoles | ||
8 | KERNEL=="ptmx", OPTIONS+="last_rule" | ||
9 | KERNEL=="console", OPTIONS+="last_rule" | ||
10 | KERNEL=="tty" , OPTIONS+="last_rule" | ||
11 | KERNEL=="tty[0-9]*", OPTIONS+="last_rule" | ||
12 | KERNEL=="pty*", OPTIONS+="last_rule" | ||
13 | SUBSYSTEM=="vc", OPTIONS+="last_rule" | ||
14 | |||
diff --git a/recipes-core/udev/udev/udev-166-v4l1-1.patch b/recipes-core/udev/udev/udev-166-v4l1-1.patch new file mode 100644 index 0000000..2086fe1 --- /dev/null +++ b/recipes-core/udev/udev/udev-166-v4l1-1.patch | |||
@@ -0,0 +1,50 @@ | |||
1 | Upstream-Status: Backport | ||
2 | |||
3 | Submitted By: Matt Burgess <matthew_at_linuxfromscratch_dot_org> | ||
4 | Date: 2011-03-26 | ||
5 | Initial Package Version: 166 | ||
6 | Upstream Status: From upstream | ||
7 | Origin: http://git.kernel.org/?p=linux/hotplug/udev.git;a=commitdiff;h=4ace8a43ac2cbbd4d6f5c29fc461c3caa8f8545b | ||
8 | Description: Fixes a compilation error caused by the removal of the | ||
9 | Video for Linux 1 API from Linux kernels from 2.6.38 | ||
10 | onwards. | ||
11 | |||
12 | diff -Naur udev-166.orig/extras/v4l_id/v4l_id.c udev-166/extras/v4l_id/v4l_id.c | ||
13 | --- udev-166.orig/extras/v4l_id/v4l_id.c 2009-12-03 12:45:03.000000000 +0000 | ||
14 | +++ udev-166/extras/v4l_id/v4l_id.c 2011-03-25 20:26:33.000000000 +0000 | ||
15 | @@ -28,7 +28,6 @@ | ||
16 | #include <sys/types.h> | ||
17 | #include <sys/time.h> | ||
18 | #include <sys/ioctl.h> | ||
19 | -#include <linux/videodev.h> | ||
20 | #include <linux/videodev2.h> | ||
21 | |||
22 | int main (int argc, char *argv[]) | ||
23 | @@ -39,7 +38,6 @@ | ||
24 | }; | ||
25 | int fd; | ||
26 | char *device; | ||
27 | - struct video_capability v1cap; | ||
28 | struct v4l2_capability v2cap; | ||
29 | |||
30 | while (1) { | ||
31 | @@ -82,19 +80,6 @@ | ||
32 | if ((v2cap.capabilities & V4L2_CAP_RADIO) > 0) | ||
33 | printf("radio:"); | ||
34 | printf("\n"); | ||
35 | - } else if (ioctl (fd, VIDIOCGCAP, &v1cap) == 0) { | ||
36 | - printf("ID_V4L_VERSION=1\n"); | ||
37 | - printf("ID_V4L_PRODUCT=%s\n", v1cap.name); | ||
38 | - printf("ID_V4L_CAPABILITIES=:"); | ||
39 | - if ((v1cap.type & VID_TYPE_CAPTURE) > 0) | ||
40 | - printf("capture:"); | ||
41 | - if ((v1cap.type & VID_TYPE_OVERLAY) > 0) | ||
42 | - printf("video_overlay:"); | ||
43 | - if (v1cap.audios > 0) | ||
44 | - printf("audio:"); | ||
45 | - if ((v1cap.type & VID_TYPE_TUNER) > 0) | ||
46 | - printf("tuner:"); | ||
47 | - printf("\n"); | ||
48 | } | ||
49 | |||
50 | close (fd); | ||
diff --git a/recipes-core/udev/udev/udev-cache b/recipes-core/udev/udev/udev-cache new file mode 100644 index 0000000..77bbda6 --- /dev/null +++ b/recipes-core/udev/udev/udev-cache | |||
@@ -0,0 +1,20 @@ | |||
1 | #!/bin/sh -e | ||
2 | |||
3 | ### BEGIN INIT INFO | ||
4 | # Provides: udev-cache | ||
5 | # Required-Start: mountall | ||
6 | # Required-Stop: | ||
7 | # Default-Start: S | ||
8 | # Default-Stop: | ||
9 | # Short-Description: cache /dev to speedup the udev next boot | ||
10 | ### END INIT INFO | ||
11 | |||
12 | [ -d /sys/class ] || exit 1 | ||
13 | [ -r /proc/mounts ] || exit 1 | ||
14 | [ -x /sbin/udevd ] || exit 1 | ||
15 | |||
16 | if [ ! -e /etc/dev.tar ]; then | ||
17 | (cd /; tar cf /etc/dev.tar dev) | ||
18 | fi | ||
19 | |||
20 | exit 0 | ||
diff --git a/recipes-core/udev/udev/udev.rules b/recipes-core/udev/udev/udev.rules new file mode 100644 index 0000000..a19d4a0 --- /dev/null +++ b/recipes-core/udev/udev/udev.rules | |||
@@ -0,0 +1,116 @@ | |||
1 | # There are a number of modifiers that are allowed to be used in some | ||
2 | # of the different fields. They provide the following subsitutions: | ||
3 | # | ||
4 | # %n the "kernel number" of the device. | ||
5 | # For example, 'sda3' has a "kernel number" of '3' | ||
6 | # %e the smallest number for that name which does not matches an existing node | ||
7 | # %k the kernel name for the device | ||
8 | # %M the kernel major number for the device | ||
9 | # %m the kernel minor number for the device | ||
10 | # %b the bus id for the device | ||
11 | # %c the string returned by the PROGRAM | ||
12 | # %s{filename} the content of a sysfs attribute | ||
13 | # %% the '%' char itself | ||
14 | # | ||
15 | |||
16 | # workaround for devices which do not report media changes | ||
17 | SUBSYSTEMS=="ide", KERNEL=="hd[a-z]", ATTR{removable}=="1", \ | ||
18 | ENV{ID_MODEL}=="IOMEGA_ZIP*", NAME="%k", OPTIONS+="all_partitions" | ||
19 | SUBSYSTEMS=="ide", KERNEL=="hd[a-z]", ATTRS{media}=="floppy", \ | ||
20 | OPTIONS+="all_partitions" | ||
21 | |||
22 | # SCSI devices | ||
23 | SUBSYSTEMS=="scsi", KERNEL=="sr[0-9]*", NAME="scd%n", SYMLINK+="sr%n" | ||
24 | |||
25 | # USB devices | ||
26 | SUBSYSTEMS=="usb", KERNEL=="auer[0-9]*", NAME="usb/%k" | ||
27 | SUBSYSTEMS=="usb", KERNEL=="cpad[0-9]*", NAME="usb/%k" | ||
28 | SUBSYSTEMS=="usb", KERNEL=="dabusb*", NAME="usb/%k" | ||
29 | SUBSYSTEMS=="usb", KERNEL=="hiddev*", NAME="usb/%k" | ||
30 | SUBSYSTEMS=="usb", KERNEL=="legousbtower*", NAME="usb/%k" | ||
31 | SUBSYSTEMS=="usb", KERNEL=="lp[0-9]*", NAME="usb/%k" | ||
32 | SUBSYSTEMS=="usb", KERNEL=="ttyUSB*", \ | ||
33 | ATTRS{product}=="Palm Handheld*|Handspring Visor|palmOne Handheld", \ | ||
34 | SYMLINK+="pilot" | ||
35 | |||
36 | # usbfs-like devices | ||
37 | SUBSYSTEM=="usb_device", PROGRAM="/bin/sh -c 'K=%k; K=$${K#usbdev}; printf bus/usb/%%03i/%%03i $${K%%%%.*} $${K#*.}'", ACTION=="add", \ | ||
38 | NAME="%c" | ||
39 | SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", NAME="bus/usb/$env{BUSNUM}/$env{DEVNUM}" | ||
40 | |||
41 | # serial devices | ||
42 | KERNEL=="capi", NAME="capi20", SYMLINK+="isdn/capi20" | ||
43 | KERNEL=="capi[0-9]*", NAME="capi/%n" | ||
44 | |||
45 | # video devices | ||
46 | KERNEL=="dvb*", PROGRAM="/bin/sh -c 'K=%k; K=$${K#dvb}; printf dvb/adapter%%i/%%s $${K%%%%.*} $${K#*.}", ACTION=="add", \ | ||
47 | NAME="%c" | ||
48 | KERNEL=="card[0-9]*", NAME="dri/%k" | ||
49 | |||
50 | # misc devices | ||
51 | KERNEL=="hw_random", NAME="hwrng" | ||
52 | KERNEL=="tun", NAME="net/%k" | ||
53 | KERNEL=="evtchn", NAME="xen/%k" | ||
54 | |||
55 | KERNEL=="cdemu[0-9]*", NAME="cdemu/%n" | ||
56 | KERNEL=="pktcdvd[0-9]*", NAME="pktcdvd/%n" | ||
57 | KERNEL=="pktcdvd", NAME="pktcdvd/control" | ||
58 | |||
59 | KERNEL=="cpu[0-9]*", NAME="cpu/%n/cpuid" | ||
60 | KERNEL=="msr[0-9]*", NAME="cpu/%n/msr" | ||
61 | KERNEL=="microcode", NAME="cpu/microcode" | ||
62 | |||
63 | KERNEL=="umad*", NAME="infiniband/%k" | ||
64 | KERNEL=="issm*", NAME="infiniband/%k" | ||
65 | KERNEL=="uverbs*", NAME="infiniband/%k" | ||
66 | KERNEL=="ucm*", NAME="infiniband/%k" | ||
67 | KERNEL=="rdma_ucm", NAME="infiniband/%k" | ||
68 | |||
69 | # ALSA devices | ||
70 | KERNEL=="controlC[0-9]*", NAME="snd/%k" | ||
71 | KERNEL=="hwC[D0-9]*", NAME="snd/%k" | ||
72 | KERNEL=="pcmC[D0-9cp]*", NAME="snd/%k" | ||
73 | KERNEL=="midiC[D0-9]*", NAME="snd/%k" | ||
74 | KERNEL=="timer", NAME="snd/%k" | ||
75 | KERNEL=="seq", NAME="snd/%k" | ||
76 | |||
77 | # ieee1394 devices | ||
78 | KERNEL=="dv1394*", NAME="dv1394/%n" | ||
79 | KERNEL=="video1394*", NAME="video1394/%n" | ||
80 | |||
81 | # input devices | ||
82 | KERNEL=="mice", NAME="input/%k" | ||
83 | KERNEL=="mouse[0-9]*", NAME="input/%k" | ||
84 | KERNEL=="event[0-9]*", NAME="input/%k" | ||
85 | KERNEL=="js[0-9]*", NAME="input/%k" | ||
86 | KERNEL=="ts[0-9]*", NAME="input/%k" | ||
87 | KERNEL=="uinput", NAME="input/%k" | ||
88 | |||
89 | # Zaptel | ||
90 | KERNEL=="zapctl", NAME="zap/ctl" | ||
91 | KERNEL=="zaptimer", NAME="zap/timer" | ||
92 | KERNEL=="zapchannel", NAME="zap/channel" | ||
93 | KERNEL=="zappseudo", NAME="zap/pseudo" | ||
94 | KERNEL=="zap[0-9]*", NAME="zap/%n" | ||
95 | |||
96 | # AOE character devices | ||
97 | SUBSYSTEM=="aoe", KERNEL=="discover", NAME="etherd/%k" | ||
98 | SUBSYSTEM=="aoe", KERNEL=="err", NAME="etherd/%k" | ||
99 | SUBSYSTEM=="aoe", KERNEL=="interfaces", NAME="etherd/%k" | ||
100 | SUBSYSTEM=="aoe", KERNEL=="revalidate", NAME="etherd/%k" | ||
101 | |||
102 | # device mapper creates its own device nodes, so ignore these | ||
103 | KERNEL=="dm-[0-9]*", OPTIONS+="ignore_device" | ||
104 | KERNEL=="device-mapper", NAME="mapper/control" | ||
105 | |||
106 | KERNEL=="rfcomm[0-9]*", NAME="%k", GROUP="users", MODE="0660" | ||
107 | |||
108 | # Firmware Helper | ||
109 | ACTION=="add", SUBSYSTEM=="firmware", RUN+="/lib/udev/firmware.sh" | ||
110 | |||
111 | # Samsung UARTS | ||
112 | KERNEL=="s3c2410_serial[0-9]", NAME="ttySAC%n" | ||
113 | |||
114 | # MXC UARTs | ||
115 | KERNEL=="ttymxc[0-4]", NAME="ttymxc%n" | ||
116 | |||
diff --git a/recipes-core/udev/udev_164.bb b/recipes-core/udev/udev_164.bb new file mode 100644 index 0000000..6d71f4d --- /dev/null +++ b/recipes-core/udev/udev_164.bb | |||
@@ -0,0 +1,8 @@ | |||
1 | include udev.inc | ||
2 | |||
3 | PR = "r10" | ||
4 | |||
5 | SRC_URI += "file://udev-166-v4l1-1.patch" | ||
6 | |||
7 | SRC_URI[md5sum] = "fddac2d54761ea34865af9467377ca9f" | ||
8 | SRC_URI[sha256sum] = "c12e66280b5e1465f6587a8cfa47d7405c4caa7e52ce5dd13478d04f6ec05e5c" | ||