<font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2">Around 05/29/2019 05:25AM in some timezone, Deng Tyler wrote:<br>>Hi all:<br>> I encounter bmc firmware update fail issue and message is "Verify<br>>error: update: --no-flash --ignore-mount --no-save-files<br>>--no-restore-files --no-clean-saved-files\nERROR: Unable to find mtd<br>>partition for image-bmc.\n".<br>><br>>I check my flash partition and found that I lost "bmc" partition as<br>>below:<br>>cat /proc/mtd<br>>dev: size erasesize name<br>>mtd0: 00060000 00001000 "u-boot"<br>>mtd1: 00020000 00001000 "u-boot-env"<br>>mtd2: 00440000 00001000 "kernel"<br>>mtd3: 01740000 00001000 "rofs"<br>>mtd4: 00400000 00001000 "rwfs"<br>>ls -l /dev/mtd<br>>lrwxrwxrwx 1 root root 7 May 23 11:56 kernel -><br>>../mtd2<br>>lrwxrwxrwx 1 root root 7 May 23 11:56 rofs -><br>>../mtd3<br>>lrwxrwxrwx 1 root root 7 May 23 11:56 rwfs -><br>>../mtd4<br>>lrwxrwxrwx 1 root root 7 May 23 11:56 u-boot -><br>>../mtd0<br>>lrwxrwxrwx 1 root root 7 May 23 11:56 u-boot-env<br>>-> ../mtd1 <br><div><br></div><div>Since your mtd numbers start at 0, the problem is the whole flash <br></div><div>partition is missing. You are missing a kernel config option:</div><div><br></div><div>config MTD_PARTITIONED_MASTER<br> bool "Retain master device when partitioned"<br> default n<br> depends on MTD<br> help<br> For historical reasons, by default, either a master is present or<br> several partitions are present, but not both. The concern was that<br> data listed in multiple partitions was dangerous; however, SCSI does<br> this and it is frequently useful for applications. This config option<br> leaves the master in even if the device is partitioned. It also makes<br> the parent of the partition device be the master device, rather than<br> what lies behind the master.<br><br><br></div><div>></div>>I tried to add bmc partition in dts <br>>&bootspi {<br>> status = "okay";<br>> flash@0 {<br>> status = "okay";<br>> m25p,fast-read;<br>> label = "bmc";<br>> spi-max-frequency = <50000000>;<br>>#include "openbmc-flash-layout.dtsi"<br>> };<br>>};<br>><br>>but there still is no "bmc" partition. Could someone give any<br>>suggestion? thanks.<br>><br>>Tyler </font><BR>