Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
themeMidnight
title格式化ubi log,注意闪存大小可能不同,下同
collapsetrue
barebox@Phytec phyCORE-i.MX6 Quad with NAND:/ ubiformat /dev/nand0.root
ubiformat: nand0.root (nand), size 1068498944 bytes (1019 MiB), 8152 eraseblocks of 131072 bytes (128 KiB), min. I/O size 2048 bytes
libscan: scanning eraseblock 8151 -- 100 % complete
ubiformat: 8148 eraseblocks have valid erase counter, mean value is 12
ubiformat: 4 bad eraseblocks found, numbers: 8148, 8149, 8150, 8151
ubiformat: formatting eraseblock 8151 -- 100 % complete
barebox@Phytec phyCORE-i.MX6 Quad with NAND:/

然后挂载该文件系统

如果在以后调试时,想要只更新内核、设备树、文件系统中的一个,那么可以在先运行该指令后,用ubiupdatevol来更新,不需要ubiformat和ubimkvol。如果在以后调试时,想要只更新内核、设备树中的一个,那么可以在先运行该指令后,用ubiupdatevol来更新,不需要ubiformat和ubimkvol。

Code Block
languagebash
themeMidnight
ubiattach /dev/nand0.root

...