Skip to contentSkip to conversation

device_table-minimal: add more devices, sync with org.openembedded.dev

PATCH In review Andrea Adami 2 participants 2 messages Jul 17, 2011 – Jul 18, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 device_table-minimal: add more devices, sync with org.openembedded.dev

* add a layered structure (IMAGE_DEVICE_TABLES foresees that) *
* In some cases static devices can be of use (e.g. initramfs) but
* unfortunately the file in oe-core lacks input events and more.
* People do not notice the issues because IMAGE_DEV_MANAGER
* recreates the device nodes in userland.
* Though, in the case of e.g. special purposed initramfs images you may
* not have any udev/mdev, nor initscripts.
* Typically one would use smthg like
*
* IMAGE_DEVICE_TABLES = "files/device_table-minimal.txt \
* files/device_table_add-scsi.txt \
* files/device_table_add-loop.txt \
* "

---
 meta/files/device_table-minimal.txt  |   16 +++++++++++++++-
 meta/files/device_table_add-loop.txt |    1 +
 meta/files/device_table_add-scsi.txt |    6 ++++++
 3 files changed, 22 insertions(+), 1 deletions(-)
 create mode 100644 meta/files/device_table_add-loop.txt
 create mode 100644 meta/files/device_table_add-scsi.txt
meta/files/device_table-minimal.txt +15 -1
index 495b5d5..8f455fd 100644
@@ -13,7 +13,7 @@
 /dev/apm_bios	c	660	0	46	10	134	-	-	-
 /dev/fb0	c	600	0	0	29	0	-	-	-
 /dev/hda	b	660	0	6	3	0	-	-	-
-/dev/hda	b	660	0	6	3	1	1	1	20
+/dev/hda	b	660	0	6	3	1	1	1	19
 /dev/kmem	c	640	0	15	1	2	-	-	-
 /dev/mem	c	640	0	15	1	1	-	-	-
 /dev/null	c	666	0	0	1	3	-	-	-
@@ -28,3 +28,17 @@
 /dev/console	c	662	0	5	5	1	-	-	-
 /dev/random	c	644	0	0	1	8	-	-	-
 /dev/urandom	c	644	0	0	1	9	-	-	-
+/dev/ptmx	c	644	0	0	5	2	-	-	-
+
+# Input stuff
+/dev/input	d	755	0	0	-	-	-	-	-
+/dev/input/event c	660	0	0	13	64	0	1	8
+
+/dev/mmcblk0	b	660	0	6	179	0	-	-	-
+/dev/mmcblk0p	b	660	0	6	179	1	1	1	7
+
+# for older kernels before 2.6.22
+# mmc numbers are assigned dynamicly so if you have other dynamic assigned block devices it may be wrong
+#
+#/dev/mmcblk0    b       660     0       6       254     0       -       -       -
+#/dev/mmcblk0p   b       660     0       6       254     1       1       1       7
meta/files/device_table_add-loop.txt new file +1 -0
new file mode 100644
index 0000000..0176135
@@ -0,0 +1 @@
+/dev/loop	b	664	0	0	7	0	0	1	2
meta/files/device_table_add-scsi.txt new file +6 -0
new file mode 100644
index 0000000..d15f236
@@ -0,0 +1,6 @@
+/dev/sda	b	660	0	6	8	0	-	-	-
+/dev/sda	b	660	0	6	8	1	1	1	15
+/dev/sdb	b	660	0	6	8	16	-	-	-
+/dev/sdb	b	660	0	6	8	17	1	1	4
+/dev/sdc	b	660	0	6	8	32	-	-	-
+/dev/sdc	b	660	0	6	8	33	1	1	4
Signature · 1 line
1.7.3.4
#1 lore raw

Op 18 jul 2011, om 01:20 heeft Andrea Adami het volgende geschreven:

Quoted 8 lines

* add a layered structure (IMAGE_DEVICE_TABLES foresees that) *
* In some cases static devices can be of use (e.g. initramfs) but
* unfortunately the file in oe-core lacks input events and more.
* People do not notice the issues because IMAGE_DEV_MANAGER
* recreates the device nodes in userland.
* Though, in the case of e.g. special purposed initramfs images you may
* not have any udev/mdev, nor initscripts.

Is that still the case with devtmpfs enabled in the kernel?