Changeset 12370 for ar5315_microredboot/microredboot/boot/src/arch/ar5312.c
- Timestamp:
- 06/24/09 22:02:36 (5 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
ar5315_microredboot/microredboot/boot/src/arch/ar5312.c
r12346 r12370 208 208 209 209 /* erases nvram partition on the detected location or simply returns if no nvram was detected */ 210 static unsigned int getPartition(char *name); 210 211 211 212 static int flash_erase_nvram(unsigned int flashsize, unsigned int blocksize) … … 213 214 int i, ticks; 214 215 unsigned short val; 216 if (!nvramdetect) { 217 nvramdetect = getPartition("cfg"); 218 } 215 219 if (!nvramdetect) { 216 220 puts("nvram can and will not erased, since nvram was not detected on this device (maybe dd-wrt isnt installed)!\n");
