Home | History | Annotate | Download | only in utils

Lines Matching refs:flashrom

7 saft_flashrom_util is based on utility 'flashrom'.
10 (read ) flashrom -r <file>
11 (write) flashrom -l <layout_fn> [-i <image_name> ...] -w <file>
168 # flashrom utility wrapper
170 """ a wrapper for "flashrom" utility.
182 ex: flashrom = flashrom_util.flashrom_util()
184 ex: image = flashrom.read_whole()
186 When the contents of the flashrom is read off the target, it's map
187 gets created automatically (read from the flashrom image using
190 invoking flashrom.set_firmware_layout(filename), or supply his own map
201 1. Prepare a buffer storing an image to be written into the flashrom.
208 flashrom.write_partial(new_image, (<section_name>, ...))
210 flashrom.write_partial(new_image, layout_map_all, ('all',))
305 # TODO(hungte) Newer version of tool (flashrom) may support --get-size
319 cmd = 'flashrom %s --wp-enable' % self._target_command
324 cmd = 'flashrom %s --wp-disable' % self._target_command
333 cmd = 'flashrom %s -r "%s"' % (self._target_command, tmpfn)
358 cmd = 'flashrom %s -l "%s" -i %s -w "%s"' % (
360 self.os_if.log('flashrom.write_partial(): %s' % cmd)
363 # flashrom write will reboot the ec after corruption