ts72xx update
cover ts72xx update
This two patches contains kernel fixes for ts7400 SBC, build what is possible in kernel as module, add UBIFS image possibility and cleans the machine config little bit. Please apply. Thanks.
-- ynezz
Petr Štetiar (2):
ts72xx: update machine config
linux-2.6.34: ts72xx - update the kernel patchset and defconfig
conf/machine/ts72xx.conf | 23 +- .../linux-2.6.34/ts72xx/0015-ts72xx_sdcard.patch | 64 +- ...hdog-ts72xx_wdt-disable-watchdog-at-probe.patch | 36 + recipes/linux/linux-2.6.34/ts72xx/defconfig | 701 +++++++++++++++----- recipes/linux/linux_2.6.34.bb | 3 +- 5 files changed, 620 insertions(+), 207 deletions(-) create mode 100644 recipes/linux/linux-2.6.34/ts72xx/0019-watchdog-ts72xx_wdt-disable-watchdog-at-probe.patch
PATCH 1/2 ts72xx: update machine config
- add autoloading of common modules
- specify parameters for UBIFS image
- move CMDLINE to kernel
- update MACHINE_FEATURES
- specify KERNEL_IMAGETYPE
--- conf/machine/ts72xx.conf | 23 +++++++++++++++++++++-- 1 files changed, 21 insertions(+), 2 deletions(-)
conf/machine/ts72xx.conf +21 -2
@@ -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
Signature · 1 line
1.7.0.4
PATCH 2/2 linux-2.6.34: ts72xx - update the kernel patchset and defconfig
In reply to Petr Štetiar- update the SD card patch so it works on ts7400 board also
- update CMDLINE and use UBIFS as rootfs by default
- add patch with fix for the ts72xx watchdog driver
- build what's possible as modules
--- .../linux-2.6.34/ts72xx/0015-ts72xx_sdcard.patch | 64 +- ...hdog-ts72xx_wdt-disable-watchdog-at-probe.patch | 36 + recipes/linux/linux-2.6.34/ts72xx/defconfig | 701 +++++++++++++++----- recipes/linux/linux_2.6.34.bb | 3 +- 4 files changed, 599 insertions(+), 205 deletions(-) create mode 100644 recipes/linux/linux-2.6.34/ts72xx/0019-watchdog-ts72xx_wdt-disable-watchdog-at-probe.patch
recipes/linux/linux-2.6.34/ts72xx/0015-ts72xx_sdcard.patch +29 -35
@@ -19,11 +19,11 @@ http://tech.groups.yahoo.com/group/ts-7000/message/16028 create mode 100644 drivers/block/sdcore2.h create mode 100644 drivers/block/tssdcard.c -diff --git a/arch/arm/mach-ep93xx/ts72xx.c b/arch/arm/mach-ep93xx/ts72xx.c -index ba27d9d..7fd8f80 100644 ---- a/arch/arm/mach-ep93xx/ts72xx.c -+++ b/arch/arm/mach-ep93xx/ts72xx.c -@@ -178,6 +178,29 @@ static void __init ts72xx_register_flash(void) +Index: linux-2.6.34/arch/arm/mach-ep93xx/ts72xx.c +=================================================================== +--- linux-2.6.34.orig/arch/arm/mach-ep93xx/ts72xx.c 2010-10-13 23:55:37.000000000 +0200 ++++ linux-2.6.34/arch/arm/mach-ep93xx/ts72xx.c 2010-10-16 11:17:20.000000000 +0200 +@@ -178,6 +178,29 @@ } /*************************************************************************
@@ -45,7 +45,7 @@ index ba27d9d..7fd8f80 100644 + +static void __init ts72xx_register_sdcard(void) +{ -+ if (board_is_ts7260()) ++ if (board_is_ts7260() || board_is_ts7400()) + platform_device_register(&ts72xx_sdcard); +} +
@@ -53,7 +53,7 @@ index ba27d9d..7fd8f80 100644 * RTC *************************************************************************/ static unsigned char ts72xx_rtc_readbyte(unsigned long addr) -@@ -278,6 +301,7 @@ static void __init ts72xx_init_machine(void) +@@ -278,6 +301,7 @@ { ep93xx_init_devices(); ts72xx_register_flash();
@@ -61,11 +61,11 @@ index ba27d9d..7fd8f80 100644 platform_device_register(&ts72xx_rtc_device); platform_device_register(&ts72xx_wdt_device); -diff --git a/drivers/block/Kconfig b/drivers/block/Kconfig -index 77bfce5..fc8fae5 100644 ---- a/drivers/block/Kconfig -+++ b/drivers/block/Kconfig -@@ -488,4 +488,11 @@ config BLK_DEV_HD +Index: linux-2.6.34/drivers/block/Kconfig +=================================================================== +--- linux-2.6.34.orig/drivers/block/Kconfig 2010-05-16 23:17:36.000000000 +0200 ++++ linux-2.6.34/drivers/block/Kconfig 2010-10-13 23:55:37.000000000 +0200 +@@ -488,4 +488,11 @@ If unsure, say N.
@@ -77,11 +77,11 @@ index 77bfce5..fc8fae5 100644 + TS-7260 SBC. + endif # BLK_DEV -diff --git a/drivers/block/Makefile b/drivers/block/Makefile -index aff5ac9..a4d0579 100644 ---- a/drivers/block/Makefile -+++ b/drivers/block/Makefile -@@ -34,8 +34,10 @@ obj-$(CONFIG_VIODASD) += viodasd.o +Index: linux-2.6.34/drivers/block/Makefile +=================================================================== +--- linux-2.6.34.orig/drivers/block/Makefile 2010-05-16 23:17:36.000000000 +0200 ++++ linux-2.6.34/drivers/block/Makefile 2010-10-13 23:55:37.000000000 +0200 +@@ -34,8 +34,10 @@ obj-$(CONFIG_BLK_DEV_SX8) += sx8.o obj-$(CONFIG_BLK_DEV_UB) += ub.o obj-$(CONFIG_BLK_DEV_HD) += hd.o
@@ -92,11 +92,10 @@ index aff5ac9..a4d0579 100644 swim_mod-objs := swim.o swim_asm.o +ts72xx_sdcard-objs := tssdcard.o sdcore2.o -diff --git a/drivers/block/sdcore2.c b/drivers/block/sdcore2.c -new file mode 100644 -index 0000000..6dadee1 ---- /dev/null -+++ b/drivers/block/sdcore2.c +Index: linux-2.6.34/drivers/block/sdcore2.c +=================================================================== +--- /dev/null 1970-01-01 00:00:00.000000000 +0000 ++++ linux-2.6.34/drivers/block/sdcore2.c 2010-10-13 23:55:37.000000000 +0200 @@ -0,0 +1,2391 @@ +/* + * Copyright (c) 2006-2009, Technologic Systems
@@ -2489,11 +2488,10 @@ index 0000000..6dadee1 + return 0; +} +#endif -diff --git a/drivers/block/sdcore2.h b/drivers/block/sdcore2.h -new file mode 100644 -index 0000000..38d5b96 ---- /dev/null -+++ b/drivers/block/sdcore2.h +Index: linux-2.6.34/drivers/block/sdcore2.h +=================================================================== +--- /dev/null 1970-01-01 00:00:00.000000000 +0000 ++++ linux-2.6.34/drivers/block/sdcore2.h 2010-10-13 23:55:37.000000000 +0200 @@ -0,0 +1,372 @@ +/* + * Copyright (c) 2006-2008, Technologic Systems
@@ -2867,11 +2865,10 @@ index 0000000..38d5b96 + unsigned char *); + +#endif -diff --git a/drivers/block/tssdcard.c b/drivers/block/tssdcard.c -new file mode 100644 -index 0000000..c76d9a7 ---- /dev/null -+++ b/drivers/block/tssdcard.c +Index: linux-2.6.34/drivers/block/tssdcard.c +=================================================================== +--- /dev/null 1970-01-01 00:00:00.000000000 +0000 ++++ linux-2.6.34/drivers/block/tssdcard.c 2010-10-13 23:55:37.000000000 +0200 @@ -0,0 +1,415 @@ +/* + * TS SD Card device driver
@@ -3288,6 +3285,3 @@ index 0000000..c76d9a7 +MODULE_LICENSE("GPL"); +MODULE_ALIAS_BLOCKDEV_MAJOR(SCSI_DISK0_MAJOR); +MODULE_ALIAS("tssd"); --- -1.7.1 -
recipes/linux/linux-2.6.34/ts72xx/0019-watchdog-ts72xx_wdt-disable-watchdog-at-probe.patch new file +36 -0
@@ -0,0 +1,36 @@ +From 0e901bed4e053098f1c8411dcbf21324b7f61775 Mon Sep 17 00:00:00 2001 +From: Mika Westerberg <[email protected]> +Date: Sun, 29 Aug 2010 13:53:14 +0300 +Subject: [PATCH] watchdog: ts72xx_wdt: disable watchdog at probe +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Since it may be already enabled by bootloader or some other utility. This patch +makes sure that the watchdog is disabled before any userspace daemon opens the +device. It is also required by the watchdog API. + +Signed-off-by: Mika Westerberg <[email protected]> +Signed-off-by: Wim Van Sebroeck <[email protected]> +Signed-off-by: Petr Štetiar <[email protected]> +--- + drivers/watchdog/ts72xx_wdt.c | 3 +++ + 1 files changed, 3 insertions(+), 0 deletions(-) + +diff --git a/drivers/watchdog/ts72xx_wdt.c b/drivers/watchdog/ts72xx_wdt.c +index 458c499..18cdeb4 100644 +--- a/drivers/watchdog/ts72xx_wdt.c ++++ b/drivers/watchdog/ts72xx_wdt.c +@@ -449,6 +449,9 @@ static __devinit int ts72xx_wdt_probe(struct platform_device *pdev) + wdt->pdev = pdev; + mutex_init(&wdt->lock); + ++ /* make sure that the watchdog is disabled */ ++ ts72xx_wdt_stop(wdt); ++ + error = misc_register(&ts72xx_wdt_miscdev); + if (error) { + dev_err(&pdev->dev, "failed to register miscdev\n"); +-- +1.7.0.4 +
recipes/linux/linux-2.6.34/ts72xx/defconfig +532 -169
1,141 lines not on this page · raw message
recipes/linux/linux_2.6.34.bb +2 -1
@@ -1,6 +1,6 @@ require linux.inc -PR = "r3" +PR = "r4" module_autoload_ohci-hcd_omap5912osk = "ohci-hcd"
@@ -43,6 +43,7 @@ SRC_URI_append_ts72xx = " \ file://0016-ts72xx_nand_flash.patch \ file://0017-ep93xx_spi.patch \ file://0018-ts72xx_spi_tmp124.patch \ + file://0019-watchdog-ts72xx_wdt-disable-watchdog-at-probe.patch \ " SRC_URI[kernel.md5sum] = "10eebcb0178fb4540e2165bfd7efc7ad"
Signature · 1 line
1.7.0.4
Ping, pong? :-)