From bd7a4d657cc65c21d09e64c42c75f094addeeb25 Mon Sep 17 00:00:00 2001 From: juhosg Date: Sat, 22 Nov 2008 19:43:26 +0000 Subject: [atheros] enable MyLoader partition parser git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13317 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/atheros/config-2.6.26 | 1 + target/linux/atheros/config-2.6.27 | 1 + target/linux/atheros/files/drivers/mtd/devices/spiflash.c | 2 +- .../generic-2.6/patches-2.6.26/081-mtd_myloader_partition_parser.patch | 2 +- .../generic-2.6/patches-2.6.27/081-mtd_myloader_partition_parser.patch | 2 +- 5 files changed, 5 insertions(+), 3 deletions(-) (limited to 'target') diff --git a/target/linux/atheros/config-2.6.26 b/target/linux/atheros/config-2.6.26 index a1ac8b11c..1ad539e16 100644 --- a/target/linux/atheros/config-2.6.26 +++ b/target/linux/atheros/config-2.6.26 @@ -146,6 +146,7 @@ CONFIG_MTD_MAP_BANK_WIDTH_2=y CONFIG_MTD_MAP_BANK_WIDTH_4=y # CONFIG_MTD_MAP_BANK_WIDTH_8 is not set # CONFIG_MTD_MTDRAM is not set +CONFIG_MTD_MYLOADER_PARTS=y # CONFIG_MTD_ONENAND is not set # CONFIG_MTD_OTP is not set CONFIG_MTD_PARTITIONS=y diff --git a/target/linux/atheros/config-2.6.27 b/target/linux/atheros/config-2.6.27 index e93ea77ba..e4453807c 100644 --- a/target/linux/atheros/config-2.6.27 +++ b/target/linux/atheros/config-2.6.27 @@ -145,6 +145,7 @@ CONFIG_MTD_MAP_BANK_WIDTH_2=y CONFIG_MTD_MAP_BANK_WIDTH_4=y # CONFIG_MTD_MAP_BANK_WIDTH_8 is not set # CONFIG_MTD_MTDRAM is not set +CONFIG_MTD_MYLOADER_PARTS=y # CONFIG_MTD_ONENAND is not set # CONFIG_MTD_OTP is not set CONFIG_MTD_PARTITIONS=y diff --git a/target/linux/atheros/files/drivers/mtd/devices/spiflash.c b/target/linux/atheros/files/drivers/mtd/devices/spiflash.c index c4c2016d8..92d4fff99 100644 --- a/target/linux/atheros/files/drivers/mtd/devices/spiflash.c +++ b/target/linux/atheros/files/drivers/mtd/devices/spiflash.c @@ -425,7 +425,7 @@ spiflash_write (struct mtd_info *mtd,loff_t to,size_t len,size_t *retlen,const u #ifdef CONFIG_MTD_PARTITIONS -static const char *part_probe_types[] = { "cmdlinepart", "RedBoot", NULL }; +static const char *part_probe_types[] = { "cmdlinepart", "RedBoot", "MyLoader", NULL }; #endif diff --git a/target/linux/generic-2.6/patches-2.6.26/081-mtd_myloader_partition_parser.patch b/target/linux/generic-2.6/patches-2.6.26/081-mtd_myloader_partition_parser.patch index 3095393e5..dcf243a48 100644 --- a/target/linux/generic-2.6/patches-2.6.26/081-mtd_myloader_partition_parser.patch +++ b/target/linux/generic-2.6/patches-2.6.26/081-mtd_myloader_partition_parser.patch @@ -6,7 +6,7 @@ +config MTD_MYLOADER_PARTS + tristate "MyLoader partition parsing" -+ depends on MTD_PARTITIONS && (ADM5120 || ATHEROS_AR71XX) ++ depends on MTD_PARTITIONS && (ADM5120 || ATHEROS || ATHEROS_AR71XX) + ---help--- + MyLoader is a bootloader which allows the user to define partitions + in flash devices, by putting a table in the second erase block diff --git a/target/linux/generic-2.6/patches-2.6.27/081-mtd_myloader_partition_parser.patch b/target/linux/generic-2.6/patches-2.6.27/081-mtd_myloader_partition_parser.patch index e2305089e..7a5addd63 100644 --- a/target/linux/generic-2.6/patches-2.6.27/081-mtd_myloader_partition_parser.patch +++ b/target/linux/generic-2.6/patches-2.6.27/081-mtd_myloader_partition_parser.patch @@ -6,7 +6,7 @@ +config MTD_MYLOADER_PARTS + tristate "MyLoader partition parsing" -+ depends on MTD_PARTITIONS && (ADM5120 || ATHEROS_AR71XX) ++ depends on MTD_PARTITIONS && (ADM5120 || ATHEROS || ATHEROS_AR71XX) + ---help--- + MyLoader is a bootloader which allows the user to define partitions + in flash devices, by putting a table in the second erase block -- cgit v1.2.3