关于三星芯片nand内存分区文件:
linux-3.0.8/drivers/mtd/nand/s3c_nand.c
struct mtd_partition s3c_partition_info[]
uboot和kernel的机器码对应:
uboot:
make tiny210_config
board/samsung/tiny210/tiny210.c
gd->bd->bi_arch_number = CONFIG_MACH_TYPE;
include\configs\Tiny210.h
#define MACH_TYPE_TINY210 3466
#define CONFIG_MACH_TYPE MACH_TYPE_TINY210
这个文件存放有对应的机器码:include/asm/mach-types.h
例:#define MACH_TYPE_SMDKV210 2456
kernel:
.config
CONFIG_MACH_SMDKV210=y
/arch/arm/mach-s5pv210/mach-smdkv210.c
MACHINE_START(SMDKV210, "SMDKV210")
需要修改:linux-3.0.8/arch/arm/tools/mach-types
smdkv210 MACH_SMDKV210 SMDKV210 2456
2456应该同Uboot中的一致,应改为3466