################################################################
vivi
##########################
bon part 0 320k 1244k
分区:
0-----320k is vivi #------0---50000
320k--1344k is kernel # 50000-----150000
1344 ---64m is root fs # 150000-----6400000
这里内核在地址50000 1M范围内.....
之后用USB下载LINUX AND FS
########################################
Param set linux_cmd_line “Noinitrd root=/dev/mtdblock3 init=/linuxrc console=ttySAC0”
Param save
Noinitrd root=/dev/mtdblock/3 init=/linuxrc //for 2.4
###############################
/arch/arm/mach-s3c2410/devs.c
#############################
struct mtd_partition s3c_nand_part[] = {
[0] = {
.name = "bootloader",
.offset = 0x00000000,
.size = 0x00020000,
},
[1]{
name: "param",
size: 0x00010000,
offset: 0x00020000,
},
[2] = {
.name = "kernel",
.offset = 0x00050000,
.size = 0x00100000,
},
[3] = {
.name = "root",
.offset = 0x00150000,
.size = 0x062b0000,
}
};
struct platform_device s3c_device_nand = {
.name = "s3c2410-nand",
.id = 0xec,
.num_resources = ARRAY_SIZE(s3c_nand_resource),
.resource = s3c_nand_resource,
.dev = {
.platform_data = &superlpplatform //***********add here*****
}
};
#####################################
2 打开arch/arm/mach-s3c2410/mach-smdk2410.c
把"&s3c_device_nand"添加到__initdata
3. 打开drivers/mtd/nand/s3c2410.c
把chip->eccmode = NAND_ECC_SOFT;改成chip->eccmode = NAND_ECC_NONE;
############################################
阅读(2316) | 评论(4) | 转发(0) |