cm-x300: add machine configuration
authorSiebren Hakkesteegt <shakkesteegt+oe@gmail.com>
Wed, 14 Apr 2010 03:26:36 +0000 (03:26 +0000)
committerMarcin Juszkiewicz <marcin@juszkiewicz.com.pl>
Thu, 15 Apr 2010 12:41:56 +0000 (14:41 +0200)
Signed-off-by: Marcin Juszkiewicz <marcin@juszkiewicz.com.pl>
conf/machine/cm-x300.conf [new file with mode: 0644]

diff --git a/conf/machine/cm-x300.conf b/conf/machine/cm-x300.conf
new file mode 100644 (file)
index 0000000..8e78ace
--- /dev/null
@@ -0,0 +1,37 @@
+#@TYPE: Machine
+#@NAME: Compulab CM-X300
+#@DESCRIPTION: Machine configuration for the Compulab CM-X300 (http://www.compulab.co.il/x300/html/x300-cm-datasheet.htm)
+
+TARGET_ARCH = "arm"
+
+PREFERRED_PROVIDER_virtual/kernel = "linux"
+
+KERNEL_IMAGETYPE = "uImage"
+UBOOT_ENTRYPOINT = "A0008000"
+
+require conf/machine/include/tune-xscale.inc
+PACKAGE_EXTRA_ARCHS = "armv5te iwmmxt"
+
+CMX300_CONSOLE_SERIAL_PORT ?= "ttyS2"
+SERIAL_CONSOLE ?= "38400 ${CMX300_CONSOLE_SERIAL_PORT}"
+
+CMDLINE_cm-x300 = "ubi.mtd=5 root=ubi0:cm-x300-rootfs rootfstype=ubifs console=${CMX300_CONSOLE_SERIAL_PORT},38400"
+
+IMAGE_FSTYPES += "ubi"
+
+# do ubiattach /dev/ubi_ctrl -m 4
+# From dmesg:
+# UBI: smallest flash I/O unit:    2048
+# UBI: logical eraseblock size:    126976 bytes
+# from ubiattach stdout:
+# UBI device number 0, total 4095 LEBs
+MKUBIFS_ARGS = "-m 2048 -e 126976 -c 4095"
+
+# do ubiattach /dev/ubi_ctrl -m 4
+# from dmesg:
+# UBI: smallest flash I/O unit:    2048
+# UBI: physical eraseblock size:   131072 bytes (128 KiB)
+UBINIZE_ARGS = "-m 2048 -p 128KiB "
+
+MACHINE_EXTRA_RRECOMMENDS = "marvell-sdio-fw"
+MACHINE_FEATURES = "kernel26 touchscreen alsa bluetooth wifi usbhost usbgadget screen serial vfat iwmmxt"