From a0c4419b0d8e2dfa7491e67e055388e898dbb1db Mon Sep 17 00:00:00 2001 From: John Crispin Date: Wed, 11 Mar 2015 15:56:34 +0000 Subject: ar71xx: improve WD's My Net Wi-fi Range Extender image creation Previously, the generated images for the My Net Wi-fi Range Extender wouldn't always work (and panic) due to the fixed mtd offsets and sizes for the kernel and rootfs. This patch fixes the problem by utilizing the shared Cybertan's partition parser to recalculate the mtd partitions for every image dynamically everytime. Reported-by: Pascal Paradis Signed-off-by: Christian Lamparter SVN-Revision: 44665 --- target/linux/ar71xx/files/arch/mips/ath79/mach-mynet-rext.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'target/linux/ar71xx/files/arch/mips/ath79/mach-mynet-rext.c') diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-mynet-rext.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-mynet-rext.c index a3deed5baf..02d168ef4b 100644 --- a/target/linux/ar71xx/files/arch/mips/ath79/mach-mynet-rext.c +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-mynet-rext.c @@ -55,6 +55,16 @@ #define MYNET_REXT_ART_ADDR 0x1f7f0000 +static const char *mynet_rext_part_probes[] = { + "cybertan", + NULL, +}; + +static struct flash_platform_data mynet_rext_flash_data = { + .type = "s25fl064k", + .part_probes = mynet_rext_part_probes, +}; + static struct gpio_led mynet_rext_leds_gpio[] __initdata = { { .name = "wd:blue:power", @@ -130,7 +140,7 @@ static void __init mynet_rext_setup(void) u8 *art = (u8 *) KSEG1ADDR(MYNET_REXT_ART_ADDR); u8 tmpmac[ETH_ALEN]; - ath79_register_m25p80(NULL); + ath79_register_m25p80(&mynet_rext_flash_data); /* GPIO configuration from drivers/char/GPIO8.c */ -- cgit v1.2.3