1.使环境变量生效
source /etc/environment
2.查看环境变量路径
echo $PATH
3.mtdparts只作用于u-boot
4.linux的nand分区是在/work/system/linux-3.4.2/arch/arm/mach-s3c24xx的文件里面写死的
/*u-boot 512k 环境变量128k 内核 4M 根文件系统剩余所有空间*/
/* NAND parititon from 2.4.18-swl5 */
static struct mtd_partition smdk_default_nand_part[] = {
[0] = {
.name = "bootloader",
.size = SZ_512K,
.offset = 0,
},
[1] = {
.name = "params",
.offset = MTDPART_OFS_APPEND,
.size = SZ_128K,
},
[2] = {
.name = "kernel",
.offset = MTDPART_OFS_APPEND,
.size = SZ_4M,
},
[3] = {
.name = "rootfs",
.offset = MTDPART_OFS_APPEND,
.size = MTDPART_SIZ_FULL,
}
};