ts72xx: update machine config
authorPetr Štetiar <ynezz@true.cz>
Tue, 19 Oct 2010 12:03:21 +0000 (12:03 +0000)
committerKhem Raj <raj.khem@gmail.com>
Thu, 21 Oct 2010 01:30:23 +0000 (18:30 -0700)
- add autoloading of common modules
- specify parameters for UBIFS image
- move CMDLINE to kernel
- update MACHINE_FEATURES
- specify KERNEL_IMAGETYPE

Signed-off-by: Petr Štetiar <ynezz@true.cz>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
conf/machine/ts72xx.conf

index 3e0a869..f990fe0 100644 (file)
@@ -5,11 +5,30 @@
 TARGET_ARCH = "arm"
 
 PREFERRED_PROVIDER_virtual/kernel = "linux"
+KERNEL_IMAGETYPE = "zImage"
+IMAGE_FSTYPES ?= "tar.bz2 ubi"
 
-MACHINE_FEATURES = "kernel26 ext2 usbhost bluetooth"
+MACHINE_FEATURES = "kernel26 ext2 usbhost usbgadget vfat"
 
 SERIAL_CONSOLE = "115200 ttyAM0"
 USE_VT = "0"
-CMDLINE = "console=ttyAM0,115200 ip=192.168.1.3:192.168.1.2:192.168.1.2:255.255.255.0 root=/dev/nfs nfsroot=192.168.1.2:/media/data/devel/oe/ts72xx-stable/tmp/deploy/glibc/images/ts72xx/nfsroot"
+
+module_autoload_ohci-hcd = "ohci-hcd"
+module_autoload_rtc-ep93xx = "rtc-ep93xx"
+module_autoload_rtc-m48t86 = "rtc-m48t86"
+module_autoload_ts72xx_sbcinfo = "ts72xx_sbcinfo"
+
+# do ubiattach /dev/ubi_ctrl -m 1
+# From dmesg:
+# UBI: physical eraseblock size:   16384 bytes (16 KiB)
+# UBI: logical eraseblock size:    15872 bytes
+# UBI: smallest flash I/O unit:    512
+# UBI: sub-page size:              256
+# UBI: VID header offset:          256 (aligned 256)
+# UBI: data offset:                512
+# From ubiattach stdout:
+# UBI device number 0, total 1856 LEBs
+MKUBIFS_ARGS = "-m 512 -e 15872 -c 1856"
+UBINIZE_ARGS = "-m 512 -p 16KiB -s 256 -O 256"
 
 require conf/machine/include/tune-arm920t.inc