{"action":"created","issue":{"url":"https://api.github.com/repos/openbmc/openbmc/issues/816","repository_url":"https://api.github.com/repos/openbmc/openbmc","labels_url":"https://api.github.com/repos/openbmc/openbmc/issues/816/labels{/name}","comments_url":"https://api.github.com/repos/openbmc/openbmc/issues/816/comments","events_url":"https://api.github.com/repos/openbmc/openbmc/issues/816/events","html_url":"https://github.com/openbmc/openbmc/issues/816","id":190244177,"number":816,"title":"[Code update] MTD device partition error for image-bmc","user":{"login":"gkeishin","id":19584499,"avatar_url":"https://avatars.githubusercontent.com/u/19584499?v=3","gravatar_id":"","url":"https://api.github.com/users/gkeishin","html_url":"https://github.com/gkeishin","followers_url":"https://api.github.com/users/gkeishin/followers","following_url":"https://api.github.com/users/gkeishin/following{/other_user}","gists_url":"https://api.github.com/users/gkeishin/gists{/gist_id}","starred_url":"https://api.github.com/users/gkeishin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gkeishin/subscriptions","organizations_url":"https://api.github.com/users/gkeishin/orgs","repos_url":"https://api.github.com/users/gkeishin/repos","events_url":"https://api.github.com/users/gkeishin/events{/privacy}","received_events_url":"https://api.github.com/users/gkeishin/received_events","type":"User","site_admin":false},"labels":[{"id":260827636,"url":"https://api.github.com/repos/openbmc/openbmc/labels/bug","name":"bug","color":"fc2929","default":true},{"id":392735296,"url":"https://api.github.com/repos/openbmc/openbmc/labels/prio_high","name":"prio_high","color":"f9d0c4","default":false}],"state":"open","locked":false,"assignee":{"login":"shenki","id":207355,"avatar_url":"https://avatars.githubusercontent.com/u/207355?v=3","gravatar_id":"","url":"https://api.github.com/users/shenki","html_url":"https://github.com/shenki","followers_url":"https://api.github.com/users/shenki/followers","following_url":"https://api.github.com/users/shenki/following{/other_user}","gists_url":"https://api.github.com/users/shenki/gists{/gist_id}","starred_url":"https://api.github.com/users/shenki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shenki/subscriptions","organizations_url":"https://api.github.com/users/shenki/orgs","repos_url":"https://api.github.com/users/shenki/repos","events_url":"https://api.github.com/users/shenki/events{/privacy}","received_events_url":"https://api.github.com/users/shenki/received_events","type":"User","site_admin":false},"assignees":[{"login":"shenki","id":207355,"avatar_url":"https://avatars.githubusercontent.com/u/207355?v=3","gravatar_id":"","url":"https://api.github.com/users/shenki","html_url":"https://github.com/shenki","followers_url":"https://api.github.com/users/shenki/followers","following_url":"https://api.github.com/users/shenki/following{/other_user}","gists_url":"https://api.github.com/users/shenki/gists{/gist_id}","starred_url":"https://api.github.com/users/shenki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shenki/subscriptions","organizations_url":"https://api.github.com/users/shenki/orgs","repos_url":"https://api.github.com/users/shenki/repos","events_url":"https://api.github.com/users/shenki/events{/privacy}","received_events_url":"https://api.github.com/users/shenki/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2016-11-18T06:15:23Z","updated_at":"2016-11-18T16:24:01Z","closed_at":null,"body":"We are trying to code update with the latest image.. looks like the partition is gone for toss\r\n\r\nResponse code:200, Content:{\r\n  \"data\": {\r\n    \"auto_apply\": 0, \r\n    \"clear_persistent_files\": 0, \r\n    \"filename\": \"/tmp/flashimg\", \r\n    \"preserve_network_settings\": 1, \r\n    \"restore_application_defaults\": 0, \r\n  ```  \"status\": \"Verify error: update: --no-flash --ignore-mount --no-save-files --no-restore-files --no-clean-saved-files\\nERROR: Unable to find mtd partiton for image-bmc.\\n\", ```\r\n    \"update_kernel_and_apps\": 0\r\n  }, \r\n  \"message\": \"200 OK\", \r\n  \"status\": \"ok\"\r\n}\r\n\r\nFilesystem           1K-blocks      Used Available Use% Mounted on\r\ndev                     248232         0    248232   0% /dev\r\ntmpfs                   249508      9068    240440   4% /run\r\n/dev/mtdblock5           14720     14720         0 100% /run/initramfs/ro\r\n/dev/mtdblock6            4096       348      3748   8% /run/initramfs/rw\r\ncow                       4096       348      3748   8% /\r\ntmpfs                   249508         0    249508   0% /dev/shm\r\ntmpfs                   249508         0    249508   0% /sys/fs/cgroup\r\ntmpfs                   249508         0    249508   0% /tmp\r\ntmpfs                   249508         8    249500   0% /var/volatile\r\nroot@barreleye:~#\r\n\r\nroot@barreleye:~# cat /proc/mtd\r\ndev:    size   erasesize  name\r\nmtd0: 02000000 00010000 \"1e620000.fmc:flash@0\"\r\nmtd1: 00060000 00010000 \"u-boot\"\r\nmtd2: 00020000 00010000 \"u-boot-env\"\r\nmtd3: 00280000 00010000 \"kernel\"\r\nmtd4: 001c0000 00010000 \"initramfs\"\r\nmtd5: 01740000 00010000 \"rofs\"\r\nmtd6: 00400000 00010000 \"rwfs\"\r\nmtd7: 04000000 00001000 \"1e630000.spi:pnor@0\""},"comment":{"url":"https://api.github.com/repos/openbmc/openbmc/issues/comments/261573840","html_url":"https://github.com/openbmc/openbmc/issues/816#issuecomment-261573840","issue_url":"https://api.github.com/repos/openbmc/openbmc/issues/816","id":261573840,"user":{"login":"mine260309","id":717009,"avatar_url":"https://avatars.githubusercontent.com/u/717009?v=3","gravatar_id":"","url":"https://api.github.com/users/mine260309","html_url":"https://github.com/mine260309","followers_url":"https://api.github.com/users/mine260309/followers","following_url":"https://api.github.com/users/mine260309/following{/other_user}","gists_url":"https://api.github.com/users/mine260309/gists{/gist_id}","starred_url":"https://api.github.com/users/mine260309/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mine260309/subscriptions","organizations_url":"https://api.github.com/users/mine260309/orgs","repos_url":"https://api.github.com/users/mine260309/repos","events_url":"https://api.github.com/users/mine260309/events{/privacy}","received_events_url":"https://api.github.com/users/mine260309/received_events","type":"User","site_admin":false},"created_at":"2016-11-18T16:24:01Z","updated_at":"2016-11-18T16:24:01Z","body":"1. The update script `meta-phosphor/common/recipes-phosphor/initfs/files/obmc-update.sh` detects mtd name to decide which mtd device to flash. (See `findmtd()`)\r\n2. The REST script `pyflashbmc/bmc_update.py` expect tarball, e.g. `romulus-20161117210452.all.tar`, and if extracted, the image file is `image-bmc`, so the above update script will try to find a mtd device with name `bmc`.\r\n\r\nAs I know that is how REST API works: it depends on the label name.\r\nNow the `bmc` label is removed in kernel driver, so the update script fails to do update.\r\n\r\nWhy Cedric says `we cannot use labels under the flash device nodes in the device tree.`?"}}
{"actor":{"display_login":"mine260309"}}