OpenWrt Forum Archive

Topic: Help compile openwrt support 16MB flash for Dlink DIR 615 E4

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

Help me please

Why do you think you need custom u-boot? Normally, OpenWRT supports 16M flash out of the box. Have you tried it?

U-boot, however, will probably only "see" the default 4MB, so if you want to be able to write over 4MB with u-boot, then you need to modify it. But that should not be necessary to run OpenWRT.

I use flash programmer ch341a, i back up full 4MB flash, then i put in to 16MB, i type command df -h, it show not enough 16MB. Could you help me

As far as I understand, you had OpenWRT on the 4M flash, you copied that flash contents to the beginning of the 16M flash, and soldered it in. Not ideal, but could work in the end. I hope you have the 4M flash backup somewhere, you need the ART partition (your router is Atheros, right?)

Would you post the output of
    df -h
    cat /proc/mtd
    dmesg | grep "0x00"
or perhaps
    dmesg | grep "\""

rambler wrote:

As far as I understand, you had OpenWRT on the 4M flash, you copied that flash contents to the beginning of the 16M flash, and soldered it in. Not ideal, but could work in the end. I hope you have the 4M flash backup somewhere, you need the ART partition (your router is Atheros, right?)

Would you post the output of
    df -h
    cat /proc/mtd
    dmesg | grep "0x00"
or perhaps
    dmesg | grep "\""

Thank you very much your answer. Yes, my router is atheros. I will post output on tuesday.

Hi rambler!
Output:

root@(none):/# df -h
Filesystem                Size      Used Available Use% Mounted on
rootfs                    2.3M      2.3M         0 100% /
/dev/root                 2.3M      2.3M         0 100% /
tmpfs                    14.3M     12.0K     14.3M   0% /tmp
tmpfs                   512.0K         0    512.0K   0% /dev
root@(none):/# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00030000 00010000 "u-boot"
mtd1: 00010000 00010000 "nvram"
mtd2: 000f0000 00010000 "kernel"
mtd3: 002b0000 00010000 "rootfs"
mtd4: 00090000 00010000 "rootfs_data"
mtd5: 00010000 00010000 "mac"
mtd6: 00010000 00010000 "art"
mtd7: 003a0000 00010000 "firmware"
root@(none):/# dmesg | grep "0x00"
[    0.000000]   Normal   0x00000000 -> 0x00002000
[    0.000000]     0: 0x00000000 -> 0x00002000
[    1.550000] pci_bus 0000:00: root bus resource [io  0x0000]
[    1.550000] pci 0000:00:00.0: [168c:002e] type 0 class 0x000280
[    1.560000] pci 0000:00:00.0: reg 10: [mem 0x00000000-0x0000ffff 64bit]
[    1.740000] 0x000000000000-0x000000030000 : "u-boot"
[    1.750000] 0x000000030000-0x000000040000 : "nvram"
[    1.750000] 0x000000040000-0x000000130000 : "kernel"
[    1.760000] 0x000000130000-0x0000003e0000 : "rootfs"
[    1.780000] 0x000000350000-0x0000003e0000 : "rootfs_data"
[    1.790000] 0x0000003e0000-0x0000003f0000 : "mac"
[    1.790000] 0x0000003f0000-0x000000400000 : "art"
[    1.800000] 0x000000040000-0x0000003e0000 : "firmware"
root@(none):/# dmesg | grep "\""
[    1.730000] Creating 7 MTD partitions on "spi0.0":
[    1.740000] 0x000000000000-0x000000030000 : "u-boot"
[    1.750000] 0x000000030000-0x000000040000 : "nvram"
[    1.750000] 0x000000040000-0x000000130000 : "kernel"
[    1.760000] 0x000000130000-0x0000003e0000 : "rootfs"
[    1.770000] mtd: partition "rootfs" set to be root filesystem
[    1.770000] mtd: partition "rootfs_data" created automatically, ofs=350000, len=90000
[    1.780000] 0x000000350000-0x0000003e0000 : "rootfs_data"
[    1.790000] 0x0000003e0000-0x0000003f0000 : "mac"
[    1.790000] 0x0000003f0000-0x000000400000 : "art"
[    1.800000] 0x000000040000-0x0000003e0000 : "firmware"
root@(none):/#

And serial boot log:


U-Boot 1.1.4 (Dec 29 2009 - 22:03:13)

AP99 (ar7240 - Python) U-boot
DRAM:
sri
#### TAP VALUE 1 = 0x8, 2 = 0x8 [0xff00ff20: 0xff00ff00]
32 MB
Top of RAM usable for U-Boot at: 82000000
Reserving 244k for U-Boot at: 81fc0000
Reserving 192k for malloc() at: 81f90000
Reserving 44 Bytes for Board Info at: 81f8ffd4
Reserving 36 Bytes for Global Data at: 81f8ffb0
Reserving 128k for boot params() at: 81f6ffb0
Stack Pointer at: 81f6ff98
Now running in RAM - U-Boot at: 81fc0000
id read 0x100000ff
flash size 4194304, sector count = 64
Flash:  4 MB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   ag7240_enet_initialize...
Fetching MAC Address from 0x81fe7340
: cfg1 0xf cfg2 0x7014
eth0: 00:18:e7:e0:01:f2
eth0 up
No valid address in Flash. Using fixed address
: cfg1 0xf cfg2 0x7214
eth1: 00:03:7f:09:0b:ad
ATHRS26: resetting s26
ATHRS26: s26 reset done
eth1 up
eth0, eth1
Hit any key to stop autoboot:  0
## Booting image at bf040000 ...
   Image Name:   MIPS OpenWrt Linux-3.3.8
   Created:      2014-08-19   9:13:29 UTC
   Image Type:   MIPS Linux Kernel Image (lzma  compressed)
   Data Size:    911546 Bytes = 890.2 kB
   Load Address: 80060000
   Entry Point:  80060000
   Verifying Checksum ... OK
   LZMA Umcompressing Kernel Image ...    Image loaded from 80060000-80302e80
 OK
No initrd
## Transferring control to Linux (at address 80060000) ...
## Giving linux memsize in bytes, 33554432

Starting kernel ...

[    0.000000] Linux version 3.3.8 () (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #2 Tue Aug 19 16:13:01 ICT 2014
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU revision is: 00019374 (MIPS 24Kc)
[    0.000000] SoC: Atheros AR7240 rev 2
[    0.000000] Clocks: CPU:400.000MHz, DDR:400.000MHz, AHB:200.000MHz, Ref:5.000MHz
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 02000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone PFN ranges:
[    0.000000]   Normal   0x00000000 -> 0x00002000
[    0.000000] Movable zone start PFN for each node
[    0.000000] Early memory PFN ranges
[    0.000000]     0: 0x00000000 -> 0x00002000
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
[    0.000000] Kernel command line:  board=DIR-600-A1 console=ttyS0,115200 mtdparts=spi0.0:192k(u-boot)ro,64k(nvram)ro,960k(kernel),2752k(rootfs),64k(mac)ro,64k

(art)ro,3712k@0x40000(firmware) rootfstype=squashfs,jffs2 noinitrd
[    0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
[    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 29148k/32768k available (2086k kernel code, 3620k reserved, 403k data, 208k init, 0k highmem)
[    0.000000] SLUB: Genslabs=9, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:51
[    0.000000] Calibrating delay loop... 265.42 BogoMIPS (lpj=1327104)
[    0.080000] pid_max: default: 32768 minimum: 301
[    0.080000] Mount-cache hash table entries: 512
[    0.090000] NET: Registered protocol family 16
[    0.090000] gpiochip_add: registered GPIOs 0 to 17 on device: ath79
[    0.100000] MIPS: machine is D-Link DIR-600 rev. A1
[    1.520000] registering PCI controller with io_map_base unset
[    1.530000] bio: create slab <bio-0> at 0
[    1.540000] PCI host bridge to bus 0000:00
[    1.540000] pci_bus 0000:00: root bus resource [mem 0x10000000-0x13ffffff]
[    1.550000] pci_bus 0000:00: root bus resource [io  0x0000]
[    1.550000] pci 0000:00:00.0: fixup device configuration
[    1.560000] pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x1000ffff 64bit]
[    1.560000] pci 0000:00:00.0: using irq 40 for pin 1
[    1.570000] Switching to clocksource MIPS
[    1.570000] NET: Registered protocol family 2
[    1.580000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    1.580000] TCP established hash table entries: 1024 (order: 1, 8192 bytes)
[    1.590000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    1.590000] TCP: Hash tables configured (established 1024 bind 1024)
[    1.600000] TCP reno registered
[    1.600000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    1.610000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    1.620000] NET: Registered protocol family 1
[    1.640000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    1.640000] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    1.660000] msgmni has been set to 56
[    1.660000] io scheduler noop registered
[    1.660000] io scheduler deadline registered (default)
[    1.670000] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    1.700000] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A
[    1.700000] console [ttyS0] enabled, bootconsole disabled
[    1.700000] console [ttyS0] enabled, bootconsole disabled
[    1.720000] m25p80 spi0.0: found mx25l3205d, expected m25p80
[    1.720000] m25p80 spi0.0: mx25l3205d (4096 Kbytes)
[    1.730000] 7 cmdlinepart partitions found on MTD device spi0.0
[    1.730000] Creating 7 MTD partitions on "spi0.0":
[    1.740000] 0x000000000000-0x000000030000 : "u-boot"
[    1.750000] 0x000000030000-0x000000040000 : "nvram"
[    1.750000] 0x000000040000-0x000000130000 : "kernel"
[    1.760000] 0x000000130000-0x0000003e0000 : "rootfs"
[    1.770000] mtd: partition "rootfs" set to be root filesystem
[    1.770000] mtd: partition "rootfs_data" created automatically, ofs=350000, len=90000
[    1.780000] 0x000000350000-0x0000003e0000 : "rootfs_data"
[    1.790000] 0x0000003e0000-0x0000003f0000 : "mac"
[    1.790000] 0x0000003f0000-0x000000400000 : "art"
[    1.800000] 0x000000040000-0x0000003e0000 : "firmware"
[    1.910000] ag71xx_mdio: probed
[    1.920000] eth0: Atheros AG71xx at 0xba000000, irq 5
[    2.470000] eth0: Found an AR7240/AR9330 built-in switch
[    3.510000] eth1: Atheros AG71xx at 0xb9000000, irq 4
[    4.080000] ag71xx ag71xx.0: eth1: connected to PHY at ag71xx-mdio.0:04 [uid=004dd041, driver=Generic PHY]
[    4.090000] TCP cubic registered
[    4.090000] NET: Registered protocol family 17
[    4.090000] 8021q: 802.1Q VLAN Support v1.8
[    4.100000] VFS: Mounted root (squashfs filesystem) readonly on device 31:3.
[    4.110000] Freeing unused kernel memory: 208k freed
- preinit -
Press the [f] key and hit [enter] to enter failsafe mode

Linux kernel identifies your flash chip as Macronix mx25l3205d,

[    1.720000] m25p80 spi0.0: found mx25l3205d, expected m25p80

which is indeed 4MiB (http://www.macronix.com/Lists/DataSheet … 20v1.5.pdf).

What flash chip do you actually have?

rambler wrote:

Linux kernel identifies your flash chip as Macronix mx25l3205d,

[    1.720000] m25p80 spi0.0: found mx25l3205d, expected m25p80

which is indeed 4MiB (http://www.macronix.com/Lists/DataSheet … 20v1.5.pdf).

What flash chip do you actually have?

Yes, it true, my 4MB flash is mx25l3205d. I replace with winbond 16MB W25Q128FVSSIG, OS cannot detect enough 16MB, it still 4MB.

(Last edited by hoatienii on 23 Sep 2014, 16:49)

The kernel log that you posted -- was it with the original 4MB Macronix flash, or your new Winbond flash? If it was with the original flash, then post a log with the current Winbond flash.

yes the kernel log i posted was the original 4MB Macronix flash.
The winbond kernel log is here

U-Boot 1.1.4 (Dec 29 2009 - 22:03:13)

AP99 (ar7240 - Python) U-boot
DRAM:
sri
#### TAP VALUE 1 = 0x8, 2 = 0x8 [0xff00ff20: 0xff00ff00]
32 MB
Top of RAM usable for U-Boot at: 82000000
Reserving 244k for U-Boot at: 81fc0000
Reserving 192k for malloc() at: 81f90000
Reserving 44 Bytes for Board Info at: 81f8ffd4
Reserving 36 Bytes for Global Data at: 81f8ffb0
Reserving 128k for boot params() at: 81f6ffb0
Stack Pointer at: 81f6ff98
Now running in RAM - U-Boot at: 81fc0000
id read 0x100000ff
flash size 4194304, sector count = 64
Flash:  4 MB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   ag7240_enet_initialize...
Fetching MAC Address from 0x81fe7340
: cfg1 0xf cfg2 0x7014
eth0: 00:18:e7:e0:01:f2
eth0 up
No valid address in Flash. Using fixed address
: cfg1 0xf cfg2 0x7214
eth1: 00:03:7f:09:0b:ad
ATHRS26: resetting s26
ATHRS26: s26 reset done
eth1 up
eth0, eth1
Hit any key to stop autoboot:  0
## Booting image at bf040000 ...
   Image Name:   MIPS OpenWrt Linux-3.3.8
   Created:      2014-08-19   9:13:29 UTC
   Image Type:   MIPS Linux Kernel Image (lzma  compressed)
   Data Size:    911546 Bytes = 890.2 kB
   Load Address: 80060000
   Entry Point:  80060000
   Verifying Checksum ... OK
   LZMA Umcompressing Kernel Image ...    Image loaded from 80060000-80302e80
 OK
No initrd
## Transferring control to Linux (at address 80060000) ...
## Giving linux memsize in bytes, 33554432

Starting kernel ...

[    0.000000] Linux version 3.3.8 (dinhchuc@K52Jr) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #2 Tue Aug 19 16:13:01 ICT 2014
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU revision is: 00019374 (MIPS 24Kc)
[    0.000000] SoC: Atheros AR7240 rev 2
[    0.000000] Clocks: CPU:400.000MHz, DDR:400.000MHz, AHB:200.000MHz, Ref:5.000MHz
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 02000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone PFN ranges:
[    0.000000]   Normal   0x00000000 -> 0x00002000
[    0.000000] Movable zone start PFN for each node
[    0.000000] Early memory PFN ranges
[    0.000000]     0: 0x00000000 -> 0x00002000
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
[    0.000000] Kernel command line:  board=DIR-600-A1 console=ttyS0,115200 mtdparts=spi0.0:192k(u-boot)ro,64k(nvram)ro,960k(kernel),2752k(rootfs),64k(mac)ro,64k(art)ro,3712k@0x40000(firmware) rootfstype=squashfs,jffs2 noinitrd
[    0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
[    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 29148k/32768k available (2086k kernel code, 3620k reserved, 403k data, 208k init, 0k highmem)
[    0.000000] SLUB: Genslabs=9, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:51
[    0.000000] Calibrating delay loop... 265.42 BogoMIPS (lpj=1327104)
[    0.080000] pid_max: default: 32768 minimum: 301
[    0.080000] Mount-cache hash table entries: 512
[    0.090000] NET: Registered protocol family 16
[    0.090000] gpiochip_add: registered GPIOs 0 to 17 on device: ath79
[    0.100000] MIPS: machine is D-Link DIR-600 rev. A1
[    1.520000] registering PCI controller with io_map_base unset
[    1.530000] bio: create slab <bio-0> at 0
[    1.540000] PCI host bridge to bus 0000:00
[    1.540000] pci_bus 0000:00: root bus resource [mem 0x10000000-0x13ffffff]
[    1.550000] pci_bus 0000:00: root bus resource [io  0x0000]
[    1.550000] pci 0000:00:00.0: fixup device configuration
[    1.560000] pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x1000ffff 64bit]
[    1.560000] pci 0000:00:00.0: using irq 40 for pin 1
[    1.570000] Switching to clocksource MIPS
[    1.570000] NET: Registered protocol family 2
[    1.580000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    1.580000] TCP established hash table entries: 1024 (order: 1, 8192 bytes)
[    1.590000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    1.590000] TCP: Hash tables configured (established 1024 bind 1024)
[    1.600000] TCP reno registered
[    1.600000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    1.610000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    1.620000] NET: Registered protocol family 1
[    1.640000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    1.640000] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    1.660000] msgmni has been set to 56
[    1.660000] io scheduler noop registered
[    1.660000] io scheduler deadline registered (default)
[    1.670000] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    1.700000] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A
[    1.700000] console [ttyS0] enabled, bootconsole disabled
[    1.700000] console [ttyS0] enabled, bootconsole disabled
[    1.720000] m25p80 spi0.0: found w25q128, expected m25p80
[    1.720000] m25p80 spi0.0: w25q128 (16384 Kbytes)
[    1.730000] 7 cmdlinepart partitions found on MTD device spi0.0
[    1.730000] Creating 7 MTD partitions on "spi0.0":
[    1.740000] 0x000000000000-0x000000030000 : "u-boot"
[    1.750000] 0x000000030000-0x000000040000 : "nvram"
[    1.750000] 0x000000040000-0x000000130000 : "kernel"
[    1.760000] 0x000000130000-0x0000003e0000 : "rootfs"
[    1.770000] mtd: partition "rootfs" set to be root filesystem
[    1.770000] mtd: partition "rootfs_data" created automatically, ofs=350000, len=90000
[    1.780000] 0x000000350000-0x0000003e0000 : "rootfs_data"
[    1.790000] 0x0000003e0000-0x0000003f0000 : "mac"
[    1.790000] 0x0000003f0000-0x000000400000 : "art"
[    1.800000] 0x000000040000-0x0000003e0000 : "firmware"
[    1.910000] ag71xx_mdio: probed
[    1.920000] eth0: Atheros AG71xx at 0xba000000, irq 5
[    2.470000] eth0: Found an AR7240/AR9330 built-in switch
[    3.510000] eth1: Atheros AG71xx at 0xb9000000, irq 4
[    4.080000] ag71xx ag71xx.0: eth1: connected to PHY at ag71xx-mdio.0:04 [uid=004dd041, driver=Generic PHY]
[    4.090000] TCP cubic registered
[    4.090000] NET: Registered protocol family 17
[    4.090000] 8021q: 802.1Q VLAN Support v1.8
[    4.100000] VFS: Mounted root (squashfs filesystem) readonly on device 31:3.
[    4.110000] Freeing unused kernel memory: 208k freed
root@(none):/# df -h
Filesystem                Size      Used Available Use% Mounted on
rootfs                    2.3M      2.3M         0 100% /
/dev/root                 2.3M      2.3M         0 100% /
tmpfs                    14.3M     12.0K     14.3M   0% /tmp
tmpfs                   512.0K         0    512.0K   0% /dev
root@(none):/# dmesg | grep "0x00"
[    0.000000]   Normal   0x00000000 -> 0x00002000
[    0.000000]     0: 0x00000000 -> 0x00002000
[    1.550000] pci_bus 0000:00: root bus resource [io  0x0000]
[    1.550000] pci 0000:00:00.0: [168c:002e] type 0 class 0x000280
[    1.560000] pci 0000:00:00.0: reg 10: [mem 0x00000000-0x0000ffff 64bit]
[    1.740000] 0x000000000000-0x000000030000 : "u-boot"
[    1.750000] 0x000000030000-0x000000040000 : "nvram"
[    1.750000] 0x000000040000-0x000000130000 : "kernel"
[    1.760000] 0x000000130000-0x0000003e0000 : "rootfs"
[    1.780000] 0x000000350000-0x0000003e0000 : "rootfs_data"
[    1.790000] 0x0000003e0000-0x0000003f0000 : "mac"
[    1.790000] 0x0000003f0000-0x000000400000 : "art"
[    1.800000] 0x000000040000-0x0000003e0000 : "firmware"
root@(none):/# dmesg | grep "\""
[    1.730000] Creating 7 MTD partitions on "spi0.0":
[    1.740000] 0x000000000000-0x000000030000 : "u-boot"
[    1.750000] 0x000000030000-0x000000040000 : "nvram"
[    1.750000] 0x000000040000-0x000000130000 : "kernel"
[    1.760000] 0x000000130000-0x0000003e0000 : "rootfs"
[    1.770000] mtd: partition "rootfs" set to be root filesystem
[    1.770000] mtd: partition "rootfs_data" created automatically, ofs=350000, len=90000
[    1.780000] 0x000000350000-0x0000003e0000 : "rootfs_data"
[    1.790000] 0x0000003e0000-0x0000003f0000 : "mac"
[    1.790000] 0x0000003f0000-0x000000400000 : "art"
[    1.800000] 0x000000040000-0x0000003e0000 : "firmware"

I see. The kernel mounts flash partitions based on the command line it receives from u-boot:

[    0.000000] Kernel command line:  board=DIR-600-A1 console=ttyS0,115200 mtdparts=spi0.0:192k(u-boot)ro,64k(nvram)ro,960k(kernel),2752k(rootfs),64k(mac)ro,64k(art)ro,3712k@0x40000(firmware) rootfstype=squashfs,jffs2 noinitrd
...
[    1.730000] 7 cmdlinepart partitions found on MTD device spi0.0
[    1.730000] Creating 7 MTD partitions on "spi0.0":
[    1.740000] 0x000000000000-0x000000030000 : "u-boot"
[    1.750000] 0x000000030000-0x000000040000 : "nvram"
[    1.750000] 0x000000040000-0x000000130000 : "kernel"
[    1.760000] 0x000000130000-0x0000003e0000 : "rootfs"
...

This is different from my tp-link atheros based devices, where the command line is simply ignored.

So indeed you need to modify u-boot. Cannot help you here, sorry. I don't have any such device. And the info on the (russian) site http://texnikk.blogspot.com/2014/02/dir … b-mod.html is, let's say, not particularly user friendly. (Yet the patches there still hint at what has to be changed in u-boot code.)

Incidentally, you seem to be using some custom OpenWRT build. Maybe stick with a standard build (AA or BB RC3 at the moment).

Thank you so much your reply. I will use usb for more storge

(Last edited by hoatienii on 25 Sep 2014, 00:15)

Isn't the link to the uboot available on the site?

alphasparc wrote:

Isn't the link to the uboot available on the site?

yes, uboot have on the site, i flash on my 16MB flash, but can not boot. I use flash programmer.

I had a tp-link this is how I upgraded to 16MB without moding uboot.
Backup the art.
Copy the entire 4MB inage to disk.
Flash the inage to 16MB chip.
Compile a 16MB image unprotect art
Flash the sysupgrade using web interface.
The art will be missing.
mtd write the art to flash do not reboot.
flash the 16MB image with art protected.

I also have tp-link wr740n, I upgrade to 16MB flash very easy with CH341A programmer.

http://texnikk.blogspot.com/.
Thanks him so much! I successfull ugrade 16MB flash for Dlink DIR615 E4.
I flash loader using SPI flash programmer then:
1. Connect to router's UART through Windows Hyperterminal.
2. Then boot to "ar7240>  " prompt. Here you should type "loady" command.
3. Then in Hyperterminal menu you should choose "Transfer," and then "Send File." Choose openwrt image. Select Protocol = Y-Modem. Press "Send".
4. Wait until file transfeer will be completed
5. In bootloader prompt issue "erase 0xbf050000 +0xFA0000"
6.  In bootloader prompt issue " cp.b 0x81000000 0xbf050000 <size_of_firmware>"   
7. Reboot

(Last edited by hoatienii on 20 Oct 2014, 10:53)

The discussion might have continued from here.