Just for fun I read the 4M spi flash on my old DIR-601 router running openwrt (Chaos Calmer) and replaced it with a 16M flash with the same page size. Everything works, I can login over ssh and do everything as I did before, but I suspect that I need to repartition everything to use the increased space. Does anyone know how to go about doing this? Is there a guide?
Probably best place is for developers or community builds / projects / packages? I'm new to forum too.
Next is rebuild device tree (or board config? or however they did it before device tree, I only know how to do it on device tree) for the device so that the kernel knows how to partition the rest of the flash.
I think first blocker is whether the bootloader can handle the extra space? i.e.
If the bootloader can't load an initramfs / kernel etc bigger than 4M kind of makes it challenging if the goal is to run newer versions of openwrt. (Oh and also 32M of ram.....)
You will also have issues with the fact that mac, art and firmware partitions are between
0x0000003e0000 and 0x000000040000 so you probably need to move those. There's also mtdsplit but I know nothing about that.
The good news is that you can either tftp or ymodem into memory to test your changes.
Also if you wanted to do a u-boot replacement. What I could find quickly for ar7240 actually picked up later ar9300 stuff. But AP91 is the atheros reference board for ar7240? I'd need more info on getting the CPU exactly right. I haven't done U-boot development myself =P Read some of it though.