Advertisement
MrRockchip

more than 16mb

Oct 1st, 2019
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. https://forum.archive.openwrt.org/viewtopic.php?id=43237&p=19#p259119
  2.  
  3. I'm game for this. Does anyone know where to buy a W25Q256 chip? They are "non stock" at Digi-Key.
  4.  
  5. The 32 MB chips use a different SPI command access the top 16 MB. This is because the standard SPI commands for 16MB and smaller chips only use three address bytes, which is only sufficient to address a 16 MB space (0x1000000 = 16Mi). The W25Q256 includes a compatibility mode where the first 16 MB can be read/written using the old commands, and a page selecting scheme where 16 MB blocks of the chip can be swapped into the 24-bit address space. Probably the kernel is using page selection, since the hardware SPI flash controller is likely not aware of the 32-bit addressing mode.
  6.  
  7. But all that you really need the bootloader to do is access the first 4MB, which the stock one should do in compatibilty mode. As long as your kernel is in that space, it should be able to boot it, then the kernel will take over and be able to access the whole chip. To get the ART in place, and/or to flash an image that is larger than 4 MB, you can load and boot a RAM-based OpenWrt which has ART writeable.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement