OpenWrt Forum Archive

Topic: DIR-615 how to change the flash to 8 M?

The content of this topic has been archived on 19 Feb 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

i've changed my 615 to 8M,the orgional one is 4M . i also edit the file  " mach-dir-615-c1.c " in trunk/target/linux/ar71xx/files/arch/mips/ar71xx  like is

static struct mtd_partition dir_615c1_partitions[] = {
    {
        .name        = "u-boot",
        .offset        = 0,
        .size        = 0x020000,
        .mask_flags    = MTD_WRITEABLE,
    }, {
        .name        = "config",
        .offset        = 0x020000,
        .size        = 0x010000,
    }, {
        .name        = "kernel",
        .offset        = 0x030000,
        .size        = 0x0d0000,
    }, {
        .name        = "rootfs",
        .offset        = 0x100000,
        .size        = 0x6f0000,
    }, {
        .name        = "art",
        .offset        = 0x7f0000,
        .size        = 0x010000,
        .mask_flags    = MTD_WRITEABLE,
    }, {
        .name        = "firmware",
        .offset        = 0x030000,
        .size        = 0x7c0000,
    }
};

hopefully to have the 8m flash supported,but from failed. it seems nothinf happened. the mtd partion never changed
the orgional is
static struct mtd_partition dir_615c1_partitions[] = {
    {
        .name        = "u-boot",
        .offset        = 0,
        .size        = 0x020000,
        .mask_flags    = MTD_WRITEABLE,
    }, {
        .name        = "config",
        .offset        = 0x020000,
        .size        = 0x010000,
    }, {
        .name        = "kernel",
        .offset        = 0x030000,
        .size        = 0x0d0000,
    }, {
        .name        = "rootfs",
        .offset        = 0x100000,
        .size        = 0x2f0000,
    }, {
        .name        = "art",
        .offset        = 0x3f0000,
        .size        = 0x010000,
        .mask_flags    = MTD_WRITEABLE,
    }, {
        .name        = "firmware",
        .offset        = 0x030000,
        .size        = 0x3c0000,
    }
};


from the kennel log i notice the u-boot pass sth to the kennel in the cmdline force the kernel to partition the flash like the 4m
but the kernel indeed recongized there is a 8M flash.
i download the sourcecode from d-link ,it seems there is no u-boot code in the package,
i flash dd-wrt to my router in the 8M flash , dd-wrt recongized my 8m flash and aotomaticly partition the flash as i wished,so i think there is no need to changed my u-boot.
can anybody help me solve my problen in openwrt. thanks and sorry for my poor english.

Hello #1.Did you get a solution yet?

The discussion might have continued from here.