User Tools

Site Tools


2big_nas

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
2big_nas [2013/06/27 09:40] hanno2big_nas [2013/06/27 16:50] hanno
Line 528: Line 528:
   * #define CFG_NAND_U_BOOT_DST     CFG_MONITOR_IMAGE_DST   /* Load NUB to this addr        */   * #define CFG_NAND_U_BOOT_DST     CFG_MONITOR_IMAGE_DST   /* Load NUB to this addr        */
   * #define CFG_NAND_U_BOOT_START   CFG_NAND_U_BOOT_DST /* Start NUB from this addr */   * #define CFG_NAND_U_BOOT_START   CFG_NAND_U_BOOT_DST /* Start NUB from this addr */
-  + 
 += Trying to find ENV in NAND = 
 + 
 +  I think it uses /Use the new NAND code. */ in mv_kw.h 
 +  And it also #undef CFG_ENV_IS_IN_FLASH which is interesting... 
 +  Think only need ENV_SIZE and ENV_OFFSET when in NAND 
 + 
 +  #define CFG_ENV_OFFSET 0xA0000 (640 << 10) /* environment starts here  */ 
 +  #define CFG_ENV_SECT_SIZE 0x20000 (128 << 10) /* environment take 1 block */ 
 +  #define CFG_ENV_SIZE 0x20000 (CFG_ENV_SECT_SIZE) /* environment take 1 block */  
 +  #define CFG_NBOOT_BASE 0  
 +  #define CFG_NBOOT_LEN 0x01000 (4 << 10) /* Reserved 4KB for boot strap */ 
 +  #define CFG_MONITOR_LEN 0xA0000 (640 << 10) /* Reserve 4 * 128KB + ENV = 640KB for Monitor */ 
 +  #define CFG_MONITOR_BASE 0 
 +  #define CFG_MONITOR_IMAGE_OFFSET 0 /* offset of the monitor from the u-boot image */ 
 +  #define CFG_MONITOR_IMAGE_DST 0x????? (TEXT_BASE) /* Load NUB to this addr */ 
 +  #define CFG_ENV_ADDR    0xA0000 (CFG_ENV_OFFSET) 
 + 
2big_nas.txt · Last modified: 2013/07/04 07:57 by hanno