Unable to find mtd partition for image-bmc
Lei YU
mine260309 at gmail.com
Wed May 30 19:04:10 AEST 2018
On Wed, May 30, 2018 at 4:10 PM, Henbin Chang <henbinchang at gmail.com> wrote:
> Hi,
> I followed the instructions described in the the below doc to update OpenBMC
> FW via REST.
>
> https://github.com/openbmc/docs/blob/master/code-update/code-update.md
>
> And I got the below error message.
>
> {
> "data": "Verify error: update: --no-flash --ignore-mount --no-save-files
> --no-restore-files --no-clean-saved-files\nERROR: Unable to find mtd
> partition for image-bmc.\n\n",
> "message": "200 OK",
> "status": "ok"
> }
>
> Does anyone have the suggestion?
As the message indicates, the update script fails to find a mtd partition for
"image-bmc".
What is your devices's mtd parts?
The expected OpenBMC flash layout is like this:
# ls -l /dev/mtd/
total 0
lrwxrwxrwx 1 root root 7 May 30 06:47 bmc -> ../mtd0
lrwxrwxrwx 1 root root 7 May 30 06:47 kernel -> ../mtd3
lrwxrwxrwx 1 root root 7 May 30 06:47 pnor -> ../mtd6
lrwxrwxrwx 1 root root 7 May 30 06:47 rofs -> ../mtd4
lrwxrwxrwx 1 root root 7 May 30 06:47 rwfs -> ../mtd5
lrwxrwxrwx 1 root root 7 May 30 06:47 u-boot -> ../mtd1
lrwxrwxrwx 1 root root 7 May 30 06:47 u-boot-env -> ../mtd2
For "image-bmc" it will update the partition labeled "bmc", which is mtd0.
>
> Thanks.
More information about the openbmc
mailing list