This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| 2big_nas [2013/07/04 04:24] – hanno | 2big_nas [2013/07/04 07:57] (current) – hanno | ||
|---|---|---|---|
| Line 513: | Line 513: | ||
| |DEVICE CS3|16M|0xFF000000|Boot device|0xA|dis| | |DEVICE CS3|16M|0xFF000000|Boot device|0xA|dis| | ||
| + | Wish I found this earlier (kirkwood/ | ||
| - | Bloody hell... | + | Internal registers base address is set in register offset 0x20080 (arch-kirkwood/ |
| - | * # | + | |
| - | * #define INTER_REGS_BASE | + | |
| - | * #define NAND_FLASH_BASE | + | |
| - | * #define BOOTER_PAGE_NUM | + | |
| - | * #define BOOTER_BASE | + | |
| - | * #define BOOTER_END | + | |
| - | * #define NAND_CMD_PORT | + | |
| - | * #define NAND_ADDR_PORT | + | |
| - | * #define NUM_BLOCKS | + | |
| - | * #define PAGES_PER_BLOCK | + | |
| - | * #define PAGE_SIZE | + | |
| - | * #define SPARE_SIZE | + | |
| - | * #define CFG_NAND_PAGE_SIZE | + | |
| - | * #define CFG_NAND_BLOCK_SIZE | + | |
| - | * #define CFG_NAND_PAGE_COUNT | + | |
| - | * #define CFG_NAND_BAD_BLOCK_POS | + | |
| - | * #define CFG_NAND_U_BOOT_OFFS | + | |
| - | * #define CFG_NAND_U_BOOT_SIZE | + | |
| - | * #define CFG_NAND_U_BOOT_DST | + | |
| - | * #define CFG_NAND_U_BOOT_START | + | |
| - | = 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) / | ||
| - | #define CFG_NBOOT_BASE 0 | ||
| - | #define CFG_NBOOT_LEN 0x01000 (4 << 10) /* Reserved 4KB for boot strap */ | ||
| - | # | ||
| - | #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 0x60000? | ||
| - | #define CFG_ENV_ADDR | ||
| - | |||
| - | ./ | ||