New issue
Advanced search Search tips

Issue 699646 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Closed: Mar 2017
Cc:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

Can we drop the version update code in pack_stub?

Project Member Reported by sjg@chromium.org, Mar 8 2017

Issue description

In pack_stub [1] there is code to update the VERSION file when the shar is repacked.

There seem to be several places where this feature is used, e.g. [2]

It would be simpler if the firmware packer were the only thing to update the versions. Is that possible?



[1] https://cs.corp.google.com/chromeos_public/src/platform/firmware/pack_stub?rcl=c77296df3eb12f9835f05cd605e0d12312c75653&l=201

[2] https://cs.corp.google.com/chromeos_public/src/platform/dev/update_firmware_image.py?rcl=447ad9d610433e6d34e4db04057357ef9f73a0f2&l=81

 

Comment 1 by sjg@chromium.org, Mar 8 2017

Cc: sjg@chromium.org
Cc: hungte@chromium.org
Owner: sjg@chromium.org
It's currently used in few scenario:

1. When signerbot resigned firmware image and calls sb_repack, and we want to know which key was used when repacked.

2. When few test code (either autotest or manual test) tries to modify firmware and test with. Example: platform/dev/fm_and_key_version_test_prep.sh . You can reach test team to know if they are modifying firmware updaters in other ways.

3. It's very often that Google developers (even non-eng like device PM), partner developers, will want to "try" a new firmware. Currently the most easy way for them is to use --sb_repack. This may be executed on chroot, outside chroot, even on DUT (test image or release image in developer mode).

We didn't update VERSION in the very beginning, and gets request for the users listed above that they want to know "what has been changed" so updating VERSION seems easier for everyone.

Firmware packer is currently only available in source tree and probably not the best choice for it.

Meanwhile, I was also wondering if it's time to think about changing for process, for example no longer embedding images into the shar - i.e., having the firmware in /lib/firmware/ap/image.bin and /lib/firmware/ec/ec.bin, with an optional config file there indicating more info, and then we just have a C based updater that can do all the magic.

Comment 3 by sjg@chromium.org, Mar 14 2017

OK, well I'm going to leave it as is. With unified builds it will not actually work (it will repack but will not update the version automatically), but perhaps people will not be creating ad-hoc firmware updates for unified builds in the short term.

Yes we could change the process but the current shellball is quite convenient, isn't it?

Comment 4 by sjg@chromium.org, Mar 14 2017

Owner: hungte@chromium.org

Comment 5 by hungte@chromium.org, Mar 15 2017

Cc: dchan@chromium.org
Owner: dchan@chromium.org
> but perhaps people will not be creating ad-hoc firmware updates for unified builds in the short term.

All firmware qualification tests run fm_and_key_version_test_prep.sh and if you enable unified build on Reef, they will need it immediately.

+dchan

Hi dchan, how often do you need the right versions being updated when calling updater with --sb_repack ?

Comment 6 by dchan@google.com, Mar 16 2017

Owner: ----
That's correct, we run fm_and_key_version_test_prep.sh on every firmware qualification. 

Regards to the sb_repack question, if you mean do we care the TARGET_* version are correct, in our case it should not matter that much. I think ultimately, it's the version in the bin that matter.

Comment 7 by sjg@chromium.org, Mar 16 2017

Owner: sjg@chromium.org
Thanks

Comment 8 by sjg@chromium.org, Mar 23 2017

Status: WontFix (was: Untriaged)
I'm going to close this since the plan is not to implement this in the short term. If it becomes a problem we can do so, although we may be able to come up with a better option.

Sign in to add a comment