mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-29 18:11:05 +00:00
This adds a new host commmand for sending RW updates to PD devices. The host command has a variety of sub-commands for performing the update, including: erase RW, reboot, write new hash, write flash. To program zinger RW, you should send host commands in this order: write new hash to all 0's reboot (zinger boots into RO since RW hash doesn't match) erase RW write flash write new hash to match contents of RW reboot This also adds an ectool command to write a new RW. Just pass it the RW .flat or .bin file. BUG=chrome-os-partner:31361 BRANCH=none TEST=ectool --dev=1 --interface=lpc flashpd 0 0 zinger.RW.flat Change-Id: Ia81615001b83ad7ee69b1af2bf1d7059177cde04 Signed-off-by: Alec Berg <alecaberg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/213239 Reviewed-by: Randall Spangler <rspangler@chromium.org>
24 lines
664 B
Makefile
24 lines
664 B
Makefile
# -*- makefile -*-
|
|
# Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
#
|
|
# Host tools build
|
|
#
|
|
|
|
host-util-bin=ectool lbplay burn_my_ec
|
|
|
|
comm-objs=$(util-lock-objs:%=lock/%) comm-host.o comm-dev.o
|
|
ifeq ($(CHIP),mec1322)
|
|
comm-objs+=comm-mec1322.o
|
|
else ifeq ($(CONFIG_LPC),y)
|
|
comm-objs+=comm-lpc.o
|
|
else
|
|
comm-objs+=comm-i2c.o
|
|
endif
|
|
ectool-objs=ectool.o ectool_keyscan.o misc_util.o ec_flash.o $(comm-objs) ../common/sha1.o
|
|
lbplay-objs=lbplay.o $(comm-objs)
|
|
burn_my_ec-objs=ec_flash.o $(comm-objs) misc_util.o
|
|
|
|
build-util-bin=ec_uartd stm32mon iteflash
|