[oe-commits] Koen Kooi : initramfs-kexecboot-image: specify custom device tables from hx4700 and h2200 since those are from the pre dynamic mmc dark ages

GIT User account git at amethyst.openembedded.net
Fri Jan 30 13:45:59 UTC 2009


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 267aa2df85c912acba5e56f5bb4629cd5326b051
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=267aa2df85c912acba5e56f5bb4629cd5326b051

Author: Koen Kooi <koen at openembedded.org>
Date:   Fri Jan 30 14:42:26 2009 +0100

initramfs-kexecboot-image: specify custom device tables from hx4700 and h2200 since those are from the pre dynamic mmc dark ages

---

 packages/kexecboot/device_table-oldmmc.txt      |   36 +++++++++++++++++++++++
 packages/kexecboot/initramfs-kexecboot-image.bb |    4 ++
 2 files changed, 40 insertions(+), 0 deletions(-)

diff --git a/packages/kexecboot/device_table-oldmmc.txt b/packages/kexecboot/device_table-oldmmc.txt
new file mode 100644
index 0000000..eb1fa6b
--- /dev/null
+++ b/packages/kexecboot/device_table-oldmmc.txt
@@ -0,0 +1,36 @@
+#<path>	<type> <mode>	<uid>	<gid>	<major>	<minor>	<start>	<inc>	<count>
+#/dev/mem    c      640      0       0       1       1       0        0        -
+#
+#type can be one of: 
+#    f	A regular file
+#    d	Directory
+#    c	Character special device file
+#    b	Block special device file
+#    p	Fifo (named pipe)
+
+/dev		d	755	0	0	-	-	-	-	-
+/dev/initctl	p	600	0	0	-	-	-	-	-
+/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/kmem	c	640	0	15	1	2	-	-	-
+/dev/mem	c	640	0	15	1	1	-	-	-
+/dev/null	c	666	0	0	1	3	-	-	-
+/dev/ram	b	640	0	0	1	0	0	1	4
+/dev/tty	c	662	0	5	5	0	-	-	-
+/dev/tty	c	666	0	5	4	0	0	1	9
+/dev/ttyS	c	640	0	5	4	64	0	1	1
+/dev/ttySA	c	640	0	5	204	5	0	1	1
+/dev/zero	c	644	0	0	1	5	-	-	-
+/dev/mtd	c	660	0	6	90	0	0	2	8
+/dev/mtdblock	b	640	0	0	31	0	0	1	8
+/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	-	-	-
+
+# 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/mmcblk0p1	b	660	0	6	254	1	1	1	7
+/dev/event0 	c	660	0	0	13	64	-	-	-
diff --git a/packages/kexecboot/initramfs-kexecboot-image.bb b/packages/kexecboot/initramfs-kexecboot-image.bb
index 6c3a76b..3fc3c93 100644
--- a/packages/kexecboot/initramfs-kexecboot-image.bb
+++ b/packages/kexecboot/initramfs-kexecboot-image.bb
@@ -4,6 +4,10 @@ ONLINE_PACKAGE_MANAGEMENT = "none"
 IMAGE_FSTYPES += " cpio.gz"
 inherit image
 
+# These devices need mmcblk* to be 254 instead of 179
+IMAGE_DEVICE_TABLES_hx4700 = "device_table-oldmmc.txt"
+IMAGE_DEVICE_TABLES_h2200 = "device_table-oldmmc.txt"
+
 export IMAGE_BASENAME = "initramfs-kexecboot-image"
 
 IMAGE_INSTALL = "kexecboot"





More information about the Openembedded-commits mailing list