diff options
-rw-r--r-- | meta/conf/machine/cm-x270.conf | 60 | ||||
-rw-r--r-- | meta/conf/machine/cmx270.conf | 33 |
2 files changed, 60 insertions, 33 deletions
diff --git a/meta/conf/machine/cm-x270.conf b/meta/conf/machine/cm-x270.conf new file mode 100644 index 0000000000..a77a85186f --- /dev/null +++ b/meta/conf/machine/cm-x270.conf | |||
@@ -0,0 +1,60 @@ | |||
1 | #@TYPE: Machine | ||
2 | #@Name: Compulab cm-x270 | ||
3 | #@DESCRIPTION: Machine configuration for Compulab cm-x270 computer module | ||
4 | #OLDEST_KERNEL = "2.6.16" | ||
5 | TARGET_ARCH = "arm" | ||
6 | GUI_MACHINE_CLASS ?= "bigscreen" | ||
7 | |||
8 | PREFERRED_PROVIDER_virtual/kernel = "linux" | ||
9 | PREFERRED_VERSION_linux = "2.6.22" | ||
10 | |||
11 | PACKAGE_EXTRA_ARCHS = "armv4 armv4t armv5te iwmmxt" | ||
12 | |||
13 | require conf/machine/include/tune-xscale.inc | ||
14 | |||
15 | # console serial port. If you have a L module | ||
16 | # the below works. If you have a W module, add | ||
17 | # the following line to your local.conf: | ||
18 | # CMX270_CONSOLE_SERIAL_PORT = "ttyS0" | ||
19 | |||
20 | # the following is for the cm-x270 L module | ||
21 | CMX270_CONSOLE_SERIAL_PORT ?= "ttyS1" | ||
22 | |||
23 | # used by sysvinit_2 package, so rebuild this | ||
24 | # package if you change the SERIAL_CONSOLE setting | ||
25 | # the following is the port for the cm-x270 L module | ||
26 | # I think the W module would use ttyS0, but has | ||
27 | # not been tested. This can be overwritten in | ||
28 | # local.conf | ||
29 | SERIAL_CONSOLE ?= "38400 ${CMX270_CONSOLE_SERIAL_PORT}" | ||
30 | |||
31 | # used by opie-collections.inc | ||
32 | ROOT_FLASH_SIZE ?= "32" | ||
33 | |||
34 | # for NAND flash. | ||
35 | EXTRA_IMAGECMD_jffs2 = "--little-endian --eraseblock=0x20000 --pad --no-cleanmarkers;\ | ||
36 | sumtool -i ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.jffs2 \ | ||
37 | -o ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs-summary.jffs2 \ | ||
38 | -e 0x20000 -p; \ | ||
39 | cd ${DEPLOY_DIR_IMAGE}; \ | ||
40 | rm -f ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.rootfs-summary.jffs2; \ | ||
41 | ln -s ${IMAGE_NAME}.rootfs-summary.jffs2 ${IMAGE_LINK_NAME}.rootfs-summary.jffs2 \ | ||
42 | " | ||
43 | |||
44 | MACHINE_FEATURES = "kernel26 pcmcia usbhost usbgadget pcmcia touchscreen alsa iwmmxt" | ||
45 | |||
46 | # to program the compulab NAND flash, the following scheme is suggested. Create | ||
47 | # a small rootfs that can fit in NOR flash using the following config: | ||
48 | # - Angstrom distro | ||
49 | # - uclibc (set ANGSTROM_MODE = "uclibc" in local.conf) | ||
50 | # - angstrom-minimal-image-with-mtd-utils bitbake target | ||
51 | # - put the following in your local.conf | ||
52 | # - IMAGE_FSTYPES = "jffs2 tar cpio.gz" | ||
53 | # now, when you build the image, a cpio.gz will be generated | ||
54 | # that can be used as an initramfs. You can boot into this image and then | ||
55 | # program the main rootfs jffs2 image in NAND flash using mtd-utils | ||
56 | # you can select booting the initramfs, or the main nand rootfs by using | ||
57 | # the "ramdisk on", or "ramdisk off" commands in the bootloader | ||
58 | # | ||
59 | |||
60 | |||
diff --git a/meta/conf/machine/cmx270.conf b/meta/conf/machine/cmx270.conf deleted file mode 100644 index d421de56ae..0000000000 --- a/meta/conf/machine/cmx270.conf +++ /dev/null | |||
@@ -1,33 +0,0 @@ | |||
1 | #@TYPE: Machine | ||
2 | #@NAME: Nokia 770 internet tablet | ||
3 | #@DESCRIPTION: Machine configuration for the Compulab CM-X270 | ||
4 | TARGET_ARCH = "arm" | ||
5 | PACKAGE_EXTRA_ARCHS = "armv4 armv4t armv5e armv5te iwmmxt" | ||
6 | |||
7 | EXTRA_IMAGECMD_jffs2 = "--pad --little-endian --eraseblock=0x4000 -n" | ||
8 | |||
9 | IMAGE_CMD_jffs2 = "mkdir -p ${DEPLOY_DIR_IMAGE}; \ | ||
10 | mkfs.jffs2 --root=${IMAGE_ROOTFS} --faketime \ | ||
11 | --output=${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.img ${EXTRA_IMAGECMD}; " | ||
12 | |||
13 | IMAGE_FSTYPES ?= "jffs2 tar.bz2 ext2" | ||
14 | |||
15 | IMAGE_ROOTFS_SIZE_ext2 = 120000 | ||
16 | |||
17 | PREFERRED_PROVIDER_virtual/bootloader = "" | ||
18 | |||
19 | # 800x480 is big enough for me | ||
20 | GUI_MACHINE_CLASS = "bigscreen" | ||
21 | |||
22 | include conf/machine/include/tune-xscale.inc | ||
23 | |||
24 | #size of the root partition (yes, it is 123 MB) | ||
25 | ROOT_FLASH_SIZE = "128" | ||
26 | |||
27 | # serial console port on devboard rev. B3 | ||
28 | SERIAL_CONSOLE = "115200 ttyS0" | ||
29 | |||
30 | PREFERRED_PROVIDER_virtual/kernel = "linux-cmx270" | ||
31 | |||
32 | MACHINE_FEATURES = "kernel26 apm alsa pcmcia bluetooth irda usbgadget" | ||
33 | MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS = "kernel-module-mbxfb" | ||