2011.12.23. 16:31 keltezéssel, Cezary Jackiewicz írta: > Dnia 2011-12-23, o godz. 15:13:21 > Gabor Juhos <[email protected]> napisał(a): > >> Please don't add an invalid entry here. The 'id' argument of the >> 'rt288x_register_flash' function means the id of the built-in flash >> controller, >> and the RT2880 has only two of such controllers. > > So, what should be the proper way of handling 8MB flash on rt288x? >
The RT2880 uses a weird memory mapping for flash bank 0. The first 4MB of the flash is accessible at 0x1fc00000, and the remaining part is accessible from 0x1c000000. The proper solution would be writing of a flash mapping driver, however that is not so simple. The memory window at 0x1c000000 is 60 MB wide, and in theory, the flash chips can be accessible at various alias addresses within that: 4M 0x1c000000 + N * 4M 8M 0x1c400000 + N * 8M 16M 0x1cc00000 + N * 16M 32M 0x1dc00000 The 0x1dc00000 base address should be working with 4/8/16/32M flash chips as well. Please change RT2880_FLASH0_BASE to 0x1dc00000, and RT2880_FLASH0_SIZE to (32 * 1024 * 1024), and check if that works on your device or not. -Gabor _______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/mailman/listinfo/openwrt-devel
