New issue
Advanced search Search tips

Issue 783786 link

Starred by 1 user

Issue metadata

Status: Archived
Owner:
Closed: Dec 2017
Cc:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 3
Type: Bug



Sign in to add a comment

Do we need --customization_id in the firmware updater?

Project Member Reported by sjg@chromium.org, Nov 10 2017

Issue description

This flag is present only in updater4.sh. Is it actually used (in which case presumably we need it for unibuild), or can it be removed?
 

Comment 1 by hungte@chromium.org, Dec 15 2017

Labels: OS-Chrome
Previously it provides an easy way to override keys, for testing and debugging.

It is possible to be replaced with another name, say --sig or whatever matches the new terminology.

However I think we should keep one option to allow setting outside, since VPD values were cached at boot time. In other words, consider this:

Device PM tells partner to try updating system to a new key.
Parner did: 'vpd -s customization_id=ABC'
Without reboot, partner runs 'chromeos-firmwareupdate --mode=recovery'

And in your current implementation, that will lead to mosys -> vpd_get_value -> read from /sys/firmware/vpd (boot time cache so what it fetched was not ABC)

So the test result will be wrong, and partner confused again.

In fact that's one of the reason updater should trust what value it has fetched...

Comment 2 by sjg@chromium.org, Dec 18 2017

Cc: shapiroc@chromium.org jclinton@chromium.org
I added a --signature_id which does a similar thing. Is that good enough?

Re the cache, are you saying that 'vpd -s' does not update /sys/firmware/vpd? That seems bad to me.

Shouldn't vpd work through the kernel interface?

Comment 3 by hungte@chromium.org, Dec 19 2017

Correct. vpd -s works on SPI while /sys/firmware/vpd is reading CBMEM that is mirrored in firmware startup.

The VPD support in ChromeOS was pretty bad. In fact it didn't have any native interface before the firmware cache was added, that people has to access using either flashrom or trust a cache file on disk.

Comment 4 by sjg@chromium.org, Dec 22 2017

Status: Fixed (was: Assigned)
OK, I filed crbug.com/797337 to deal with that problem.
Status: Archived (was: Fixed)

Sign in to add a comment