进入uboot命令行输入mtdparts查看分区时报错:
mtdparts
unexpected character ' ' at the end of partition
原因是环境变量mtdparts后面多出了一个空格,删掉即可。
mtdparts=mtdparts=nand:5m(boot),1m(env),10m(kernel),1m(dtb),-(rootfs)
//后面多出一个了空格,删掉就好了
删掉后面空格之后就正常打印分区信息了。
mtdparts
device nand0 <nand>, # parts = 5
#: name size offset mask_flags
0: boot 0x00500000 0x00000000 0
1: env 0x00100000 0x00500000 0
2: kernel 0x00a00000 0x00600000 0
3: dtb 0x00100000 0x01000000 0
4: rootfs 0x0c800000 0x01100000 0
active partition: nand0,0 - (boot) 0x00500000 @ 0x00000000
defaults:
mtdids : none
mtdparts: none