我用了几天的时间把mini2440光盘中的u-boot源码好好看了下,发现了几个地方不知道是干什么的,请大家多多指教!
1.、include/configs/qq2440.h中的
#define CONFIG_SETUP_MEMORY_TAGS 1
#define CONFIG_CMDLINE_TAG 1
是什么对什么设备进行定义
2.cpu\arm920t\start.S中的stack_setup:是不是没有被调用,如果调用了在哪里?
3.drivers\nand\nand_base.c中
#if 0
static struct nand_oobinfo nand_oob_16 = {
.useecc = MTD_NANDECC_AUTOPLACE,
.eccbytes = 6,
.eccpos = {0, 1, 2, 3, 6, 7},
.oobfree = { {8, 8} }
};
#else
static struct nand_oobinfo nand_oob_16 = {
.useecc = MTD_NANDECC_AUTOPLACE,
.eccbytes = 6,
.eccpos = { 8, 9, 10, 13, 14, 15 },
.oobfree = { { 0, 4 }, { 6, 2 }, { 11, 2 }, { 4, 1 } }
};
#endif
是定义的什么?
5.drivers\nand\nand_base.c中
int nand_scan (struct mtd_info *mtd, int maxchips)函数是什么作用?
哪位大侠多多指教下小弟!谢谢