米尔九游会网页的技术支持答:要调整nand分区需要修改u-boot 和 内核的设备树,二者保持一致。u-boot修改include/configs/myd_c335x.h 里面的nand.rootfs分区的大小,(nand.userdata前面的`-`代表剩余的部分全部预留给nand.userdata)。
508 #define mtdparts_default "mtdparts=nand.0:" \
509 "512k(nand.spl)," \
510 "512k(nand.spl.backup1)," \
511 "512k(nand.spl.backup2)," \
512 "512k(nand.spl.backup3)," \
513 "512k(nand.u-boot-spl-os)," \
514 "1m(nand.u-boot)," \
515 "512k(nand.u-boot-env)," \
516 "512k(nand.u-boot-env.backup1)," \
517 "8m(nand.kernel)," \
518 "214m(nand.rootfs)," \
519 "-(nand.userdata)"
内核修改设备树文件里面的nand.rootfs分区和nand.userdata分区的大小, 将nand.rootfs的大小0x0d600000增大,同时将nand.userdata的起始地址0x0e000000 后移。
(nand.userdata分区size为0代表剩余的空间全部分给nand.userdata)
...
528 partition@5 {
529 label = "nand.u-boot";
530 reg = <0x000c0000 0x00100000="">;
531 };
532 partition@6 {
533 label = "nand.u-boot-env";
534 reg = <0x001c0000 0x00020000="">;
535 };
536 partition@7 {
537 label = "nand.u-boot-env.backup1";
538 reg = <0x001e0000 0x00020000="">;
539 };
540 partition@8 {
541 label = "nand.kernel";
542 reg = <0x00200000 0x00800000="">;
543 };
544 partition@9 {
545 label = "nand.rootfs";
546 reg = <0x00a00000 0x0d600000="">;
547 };
548 partition@10 {
549 label = "nand.userdata";
550 reg = <0x0e000000 0="">;
551 };
本文来自九游会网页-j9九游会官网登录科技,原文地址:
http://www.myir-tech.com/resource/531.asp,转载请注明出处。