OpenWrt Forum Archive

Topic: Platform with MT7620 and support for 16MB Flash

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

Hello evryone

I have prototype device with MT7620a 16MB Flash and 128MB RAM. Standart OpenWRT (trunk) supported size flash only 8MB. Please tell me how can I change this as for openWRT support in my device 16MB flash. Ofcorse I have installed U-Boot which support 16Mb flash.

Her is log boot

U-Boot 1.1.3 (Apr 27 2015 - 13:54:38)

Board: Ralink APSoC DRAM:  128 MB
relocate_code Pointer at: 87fb8000
enable ephy clock...done. rf reg 29 = 5
SSC disabled.
spi_wait_nsec: 29
spi device id: 1c 70 18 1c 70 (70181c70)
find flash: EN25QH128A
raspi_read: from:30000 len:1000
*** Warning - bad CRC, using default environment

flash EN25QH128A have a size 16MB. After I was instaled OpenWRT on my device it was instaled linux  which use 16 MB flash her is old partiton flash

0x000000000000-0x000001000000 : "ALL"
0x000000000000-0x000000030000 : "Bootloader"
0x000000030000-0x000000040000 : "Config"
0x000000040000-0x000000050000 : "Factory"
0x000000050000-0x000001000000 : "Kernel"

As see 0x1000000 old system supported 16Mb this is prof that u-boot also supported this size. So what can I do to openWRT also support 16MB flash size in my device ?

I read this topic

https://forum.openwrt.org/viewtopic.php?id=43585

and

this

https://forum.openwrt.org/viewtopic.php?id=32512

but I do not see analogy for MT7620 in file in direcytory openwrt BuildRoot

(Last edited by EbdWRT on 16 Jun 2015, 16:19)

Your post is very helpfull. Very thanks smile

I change this on 16MB

Image/Build/Profile/MT7620a=$(call BuildFirmware/Default16M/$(1),$(1),mt7620a,MT7620a)

and inode

partition@50000 {
                    label = "firmware";
                    reg = <0x50000 0xfb0000>;
                };

And make. After this i checked system and I give

mtd0: 00030000 00010000 "u-boot"
mtd1: 00010000 00010000 "u-boot-env"
mtd2: 00010000 00010000 "factory"
mtd3: 00fb0000 00010000 "firmware"
mtd4: 001164a5 00010000 "kernel"
mtd5: 00e99b5b 00010000 "rootfs"
mtd6: 00ca0000 00010000 "rootfs_data"


I think that the mission was successful smile In this moment I have 12,6 Mb space free

rootfs                   12.6M    464.0K     12.2M   4% /

The discussion might have continued from here.