| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Following features are enabled and verified.
1. Power sequencing
2. Host communication
3. USB TYPE-C - TCPC over PD AIC
4. H1 Close Case Debug
5. LED
6. Keyboard
BRANCH=None
BUG=b:169551130
TEST=Build, flash and boot the Alderlake RVP platform to OS
make BOARD=adlrvpp_ite -j;
sudo util/flash_ec --board=adlrvpp_ite --image=<path>
Signed-off-by: Poornima Tom <poornima.tom@intel.com>
Change-Id: I9d85e0cb93bc94f042f902b73ebd96a354d0f365
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2435177
Reviewed-by: Keith Short <keithshort@chromium.org>
Reviewed-by: Sooraj Govindan <sooraj.govindan@intel.corp-partner.google.com>
Reviewed-by: caveh jalali <caveh@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
BRANCH=none
BUG=b:130165933
TEST=1) Started target servod first, then another servod.
Target servod is servo_v4 + servo_micro + ampton DVT DUT on port 9999,
Decoy servod is servo_v4 + ccd_cr50 + atlas PVT DUT on port 9998.
Port 9999 is where flash_ec looks for servod by default.
2) Ran this command twice, first without this patch, then with this patch:
$ util/flash_ec --board=ampton --verbose --read="$HOME"/ampton-ec-read0.bin
Without this patch, flash_ec found a wrong servod i2c-dev device from the
decoy servod, and the flash_ec invocation failed, as expected.
With this patch, flash_ec found the correct servod i2c-dev device and the
flash_ec invocation succeeded.
Cq-Depend: chromium:2439779
Change-Id: I9e5ab00d4ff2bfce4a27b263df57e007d738217b
Signed-off-by: Matthew Blecker <matthewb@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2441395
Reviewed-by: Ruben Rodriguez Buchillon <coconutruben@chromium.org>
Reviewed-by: Evan Green <evgreen@chromium.org>
Reviewed-by: Namyoon Woo <namyoon@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This will be used in CL:2441395.
BRANCH=none
BUG=b:130165933
TEST=With servo_v4 Type-A + servo_micro + ampton DUT:
$ util/flash_ec --board=ampton --verbose --read="$HOME"/ampton-ec-read0.bin
Signed-off-by: Matthew Blecker <matthewb@chromium.org>
Change-Id: I548692099ee5f94acc7cb05065b400829e6147c6
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2453714
Reviewed-by: Namyoon Woo <namyoon@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This will be used in CL:2441395.
BRANCH=none
BUG=b:130165933
TEST=With servo_v4 Type-A + servo_micro + ampton DUT:
$ util/flash_ec --board=ampton --verbose --read="$HOME"/ampton-ec-read0.bin
Signed-off-by: Matthew Blecker <matthewb@chromium.org>
Change-Id: Iacaf8f6b3605c3f6105989b3aebd7e2fe2fedff6
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2453713
Reviewed-by: Namyoon Woo <namyoon@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
BUG=b:167884598
TEST=make BOARD=zed
BRANCH=master
Signed-off-by: Ting Shen <phoenixshen@google.com>
Change-Id: I0b3542bff38756c07e5073672f0d485cd6a9d0c8
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2428444
Reviewed-by: Wai-Hong Tam <waihong@google.com>
Commit-Queue: Ting Shen <phoenixshen@chromium.org>
Tested-by: Ting Shen <phoenixshen@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Asurada's EC supports 2 programmming interface:
Servo => SPI => EC, and CCD => I2C => EC
Add a new chip target in flash_ec script to support both paths.
BUG=b:168677678
TEST=flash_ec with servo_v2/servo_micro/suzy-q/servo_v4
BRANCH=none
Signed-off-by: Ting Shen <phoenixshen@google.com>
Change-Id: I342e545bcefcf8605b4fd85c625f902d4a89f7a6
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2412680
Reviewed-by: Dino Li <dino.li@ite.corp-partner.google.com>
Reviewed-by: Eric Yilun Lin <yllin@chromium.org>
Tested-by: Ting Shen <phoenixshen@chromium.org>
Commit-Queue: Ting Shen <phoenixshen@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This CL simply fallback the servo serial number to the generic
one if servo_micro_for_${BOARD}_serialname not found.
This might happen if the servod's invoke parameter (e.g. servod
--board=asurada) differs to the EC board to flash (e.g. hayato, symlink
to asurada), and flash_ec would query servod for
servo_micro_for_hayato_serialname, however, servod only knows
servo_micro_for_asurada_serialname, and it returns 'unknown'.
BUG=b:168074868
TEST=sudo servod -b asurada;
make BOARD=asurada flash_ec;
make BOARD=hayato flash_ec
BRANCH=none
Change-Id: I6e190c483dd0c596a9ba294939bc5f85d363c016
Signed-off-by: Eric Yilun Lin <yllin@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2397941
Reviewed-by: Wai-Hong Tam <waihong@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch enables support for TCPMv2 for Intelrvp
BUG=b:142340399
BRANCH=none
TEST=TCPMv2/PD3.0 works properly on tglrvp.
Signed-off-by: Ayushee <ayushee.shah@intel.com>
Change-Id: If15fc23efbcd9716c322ad06bc78a8e16f957d8e
Signed-off-by: ravindr1 <ravindra@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2299841
Reviewed-by: Vijay P Hiremath <vijay.p.hiremath@intel.com>
Reviewed-by: Tanu Malhotra <tanu.malhotra@intel.com>
Reviewed-by: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch fixes flash_ec to take the last line of grep result from the
output of 'flashrom --flash-size'.
BUG=b:162771462
BRANCH=none
TEST=ran flash_ec on nocturne with suzy-Q connected.
$ ./util/flash_ec --image /Downloads/nocturne.bin --board nocturne \
--verbose
INFO: Using ccd_cr50.
INFO: Using ec image : /Downloads/nocturne.bin
INFO: Flashing chip npcx_int_spi.
dut-control --port=9999 cold_reset:on
dut-control --port=9999 fw_up:on
dut-control --port=9999 cold_reset:off
INFO: Running flashrom:
...
Erasing and writing flash chip... SUCCESS
INFO: Flashing done.
INFO: Restoring servo settings...
dut-control --port=9999 fw_up:off
dut-control --port=9999 ccd_ec_boot_mode_uut:off
dut-control --port=9999 ccd_ec_boot_mode_bitbang:off
dut-control --port=9999 cold_reset:on
Signed-off-by: Namyoon Woo <namyoon@chromium.org>
Change-Id: I1120c828ddb33f327cce46435ec9fa26b10d1908
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2340088
Reviewed-by: Edward Hill <ecgh@chromium.org>
Commit-Queue: Edward Hill <ecgh@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Flash it8xxx2_pdevb code by SPI.
BUG=none
BRANCH=none
TEST=can flash code by SPI on board it81202_pdevb.
Signed-off-by: Ruibin Chang <ruibin.chang@ite.com.tw>
Change-Id: Ibc83bd5596f65fe8f9558f9575677feeb3da2f91
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2334435
Commit-Queue: Ruibin Chang <Ruibin.Chang@ite.com.tw>
Tested-by: Ruibin Chang <Ruibin.Chang@ite.com.tw>
Reviewed-by: Jett Rink <jettrink@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When FW image size is less than flash rom SPI size, the temp image
should be placed after FW image for ite_spi programming mode.
BUG=none
BRANCH=none
TEST=zephyr.bin(size=18.4k) is successfully burned to it8xxx2_evb
to print hello world.
Signed-off-by: tim <tim2.lin@ite.corp-partner.google.com>
Change-Id: I163d954e91d31a598d0957f7a4de67cef13223f9
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2335525
Reviewed-by: Jett Rink <jettrink@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
All devices with a servo v1 connector are AUE... assume we can drop
this old code from ToT.
BUG=none
BRANCH=none
TEST=run with dry run params for scarlet and attached servo v4... no
output diff
Change-Id: I09df37e2e287337f7962055c3244eab4afacead8
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2313597
Reviewed-by: Keith Short <keithshort@chromium.org>
Reviewed-by: Jett Rink <jettrink@chromium.org>
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
I've found it useful discover what commands are being run to actually
flash the EC, without actually flashing it.
This CL adds a new flag, --dry_run, which prints the commands
necessary to reproduce the flash, instead of running them. Commands
which probe hardware presence (e.g., dut_control_get) are not printed.
BUG=none
BRANCH=none
TEST=manual, observe operation with scarlet connected, both with and
without --dry_run
Change-Id: Ib7de66176625878370d5b24a5fb7a32b37965cb8
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2226505
Reviewed-by: Jett Rink <jettrink@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch removes the verification of the whole firmware area for
npcx_spi and npcx_int_spi chip. The reason is flash_ec programs WP_RO
and EC_RW area only so it should verify partially on those area only,
not the whole area. The option "--fast-verify" already was used for that
purpose in flash_ec script.
BUG=b:158864362
BRANCH=none
TEST=ran flash_ec on nami.
Signed-off-by: Namyoon Woo <namyoon@google.com>
Change-Id: If08194697e1b15b13c592be94d5268359edd6b5a
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2254739
Tested-by: Namyoon Woo <namyoon@chromium.org>
Reviewed-by: Jett Rink <jettrink@chromium.org>
Commit-Queue: Namyoon Woo <namyoon@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Get rid of deprecation warning.
BRANCH=master
BUG=b:145175076
TEST=none
Change-Id: I4fe9adc3811f8dcd6a75fe9481d7e44a29d5126e
Signed-off-by: Nicolas Boichat <drinkcat@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2234042
Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
Commit-Queue: Edward O'Callaghan <quasisec@chromium.org>
Tested-by: Edward O'Callaghan <quasisec@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Updates the Servo V4.1 name from 'servo_v41' to 'servo_v4p1'
and the corresponding files and fields. As the VID:PID is
used to identify the device, no other changes are required.
BUG=b:157059356
BRANCH=servod
TEST=Updated the ServoV4.1 from 'servo_v41_v2.0.3735+440cf71e0' to
'servo_v4p1_v2.0.4232-514cb4e92' to verify the servo_updater
supports renames.
TEST=Verified servo_v4p1 manually: Validated console, firmware
update, and servod can connect to the device.
Signed-off-by: Brian Nemec <bnemec@chromium.org>
Depends-On: Ia05134179fab4ff118355ba9b3b1b92cdf0748f2
Change-Id: Ie470469bf9115bbfef14a08c02b156dcd5aed849
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2219124
Tested-by: Brian Nemec <bnemec@chromium.org>
Reviewed-by: Ruben Rodriguez Buchillon <coconutruben@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The H1 controls the DUT-side i2c muxes that the C2D2 programming path
need to stay active. If the H1 goes to sleep during the flash process
the flash will fail.
Use new dut-control for cr50 that will keep the cr50 from going into a
deep low power mode during flashing
Also initialize the c2d2 i2c before turning on the DUT-side i2c muxes;
this is not strictly necessary, but seems prudent to change.
BRANCH=none
BUG=b:153475851
TEST=flash waddledee multiple times without issue
Cq-Depend: chromium:2188853
Signed-off-by: Jett Rink <jettrink@chromium.org>
Change-Id: I39fac618dc6436f547d723364a2273cc03563593
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2189070
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Based on the resistors on Dedede (and most likely other future
platforms), reduce the i2c bus speed to ensure that our i2c waveform
stays within time spec.
BRANCH=none
BUG=b:153475851
TEST=none
Signed-off-by: Jett Rink <jettrink@chromium.org>
Change-Id: Icc8de0ea0d2af7d75efce696e96b2c0db67c0fee
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2161447
Reviewed-by: Matthew Blecker <matthewb@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Adds the Servo V4.1 to the servo updater as the target 'servo_v41'.
Some minor cleanup was done on the servo_updater logic to make it
clearer which issue is occurring and to address common substrings
in 'servo_v4' and 'servo_v41' by extracting the binary name from
the config files directly rather than inferring from the name.
BUG=b:153391164
TEST=sudo emerge chromeos-base/ec-devutils
TEST=flash_ec --board=servo_v41 --image ec.bin
Verify the flash_ec using the STM32 DFU to flash the image on
reworked board with compatible BC1.2 change
TEST=sudo servo_updater -b servo_v41
Verify the servo_updater finds the latest servo_v4.1 version and
flashes it
TEST=Attempted to flash V4 and V41 devices with each other's images
verified that the checks prevent flashing the other version.
Change-Id: I77d94ce9a641f39b7ee446af05e52441b7762c96
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2138638
Tested-by: Brian Nemec <bnemec@chromium.org>
Reviewed-by: Ruben Rodriguez Buchillon <coconutruben@chromium.org>
Commit-Queue: Brian Nemec <bnemec@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
We removed the warm reset code for it I2C flashing recent, so we should
remove the warm reset clean up section. The cold reset is a superset of
warm reset.
BRANCH=none
BUG=b:153165576
TEST=waddledee flashing works
Signed-off-by: Jett Rink <jettrink@chromium.org>
Change-Id: Iac691bfa127dac0f279ac92519c58b0e4211873b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2137922
Tested-by: David Schneider <dnschneid@chromium.org>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When we call cold_reset on waddledee, it actually pulls the H1 down,
which will make h1 stop driving the I2C mux, which makes i2c
communication fail. We already have a way to hold only the EC in reset
from recent Doo changes, so make use of those now for Dee flashing
BRANCH=none
BUG=b:152936415,b:153165576
TEST=flash Dee and Doo
Signed-off-by: Jett Rink <jettrink@chromium.org>
Change-Id: I0cafcf1696216ef9ea2ee2169a0b0094140bccc3
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2135139
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The board name was changed in mistake, CL : 2107147.
Revert the name back.
BUG=none
BRANCH=none
TEST=can flash board it8xxx2_pdevb
Signed-off-by: Ruibin Chang <ruibin.chang@ite.com.tw>
Change-Id: I11aa31f3987fd10c3c41ce19c7de44e383d4b67a
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2115899
Commit-Queue: Ruibin Chang <Ruibin.Chang@ite.com.tw>
Tested-by: Ruibin Chang <Ruibin.Chang@ite.com.tw>
Reviewed-by: Eric Yilun Lin <yllin@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
replace whitespace by tab in a line
BUG=none
TEST=make sure `flash_ec` still works
BRANCH=none
Signed-off-by: Ting Shen <phoenixshen@google.com>
Change-Id: I811bc3b88f94186c07e90e78d46c82eeb56bebea
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2107147
Tested-by: Ting Shen <phoenixshen@chromium.org>
Reviewed-by: Eric Yilun Lin <yllin@chromium.org>
Commit-Queue: Eric Yilun Lin <yllin@chromium.org>
Auto-Submit: Ting Shen <phoenixshen@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
A close hammer derivative.
BRANCH=kukui
BUG=b:150268720, b:151098124
TEST=make BOARD=moonball
Flash into masterball, see the board boot:
util/flash_ec --image /build/kukui/firmware/moonball/ec.bin
Signed-off-by: Chen-Tsung Hsieh <chentsung@google.com>
Change-Id: I015ea6ecaa76505df611935e7b81f819f9b9bbce
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2094861
Reviewed-by: Chen-Tsung Hsieh <chentsung@chromium.org>
Tested-by: Chen-Tsung Hsieh <chentsung@chromium.org>
Commit-Queue: Chen-Tsung Hsieh <chentsung@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
If the flash script detects an older version of hdctools or c2d2 fw,
then it tells the user which command to run to get to latest binaries.
BUG=none
BRANCH=none
TEST=tested with old c2d2 image and old hdctools and got new error
message
Change-Id: I415abcad6c88e5b7a0d4eb96448ca1e9b661c47e
Signed-off-by: Jett Rink <jettrink@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2101207
Commit-Queue: Justin TerAvest <teravest@chromium.org>
Reviewed-by: Justin TerAvest <teravest@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The development board of it83xx and it8xxx2 have common code
and config options which are moved to baseboard ite_evb.
And we create another board for PD EVB based on baseboard ite_evb.
BUG=none
BRANCH=none
TEST=on baseboard ite_evb:
1.test board it83xx_evb and it8xxx2_evb:
successfully Flash EC image and boot on chip it8320 and
it83202.
2.flashrom by ite_spi test:
$ sudo ./util/flash_ec --board=it8xxx2_evb --verbose
INFO: Using servo_v2.
INFO: Using ec image : /mnt/host/source/src/platform/ec/build/
it8xxx2_evb/ec.bin
dut-control --port=9999 i2c_mux_en:on
dut-control --port=9999 i2c_mux:remote_adc
INFO: Flashing chip ite_spi.
dut-control --port=9999 cold_reset:on
dut-control --port=9999 fw_up:on
dut-control --port=9999 cold_reset:off
dut-control --port=9999 fw_up:off
dut-control --port=9999 spi1_vref:pp1800 spi1_buf_en:on
dut-control --port=9999 spi1_buf_on_flex_en:on
INFO: Running flashrom:
sudo /usr/sbin/flashrom -p ft2232_spi:type=servo-v2,port=B,
serial=911416-00012 --flash-size
flashrom v0.9.9 : : on Linux 4.15.0-76-generic (x86_64)
flashrom v0.9.9 : : on Linux 4.15.0-76-generic (x86_64)
INFO: Programming EC firmware image.
INFO: Running flashrom:
/usr/sbin/flashrom -p ft2232_spi:type=servo-v2,port=B,
serial=911416-00012 -w /tmp/flash_spi_6163
flashrom v0.9.9 : : on Linux 4.15.0-76-generic (x86_64)
flashrom v0.9.9 : : on Linux 4.15.0-76-generic (x86_64)
Calibrating delay loop... OK.
Erasing and writing flash chip... Verifying flash... VERIFIED.
SUCCESS
INFO: Flashing done.
INFO: Restoring servo settings...
dut-control --port=9999 cold_reset:off
dut-control --port=9999 i2c_mux_en:on
dut-control --port=9999 i2c_mux:remote_adc
dut-control --port=9999 spi1_vref:off
dut-control --port=9999 spi1_buf_en:off
dut-control --port=9999 spi1_buf_on_flex_en:off
dut-control --port=9999 cold_reset:on
dut-control --port=9999 cold_reset:off
3.test board it8xxx2_pdevb:
successfully Flash EC image and boot on chip it83202.
Connection with adapter and dongle are able to ready state.
Change-Id: Ib6371b61c27980eb9977548177efb8c896e72d47
Signed-off-by: Ruibin Chang <ruibin.chang@ite.com.tw>
Signed-off-by: tim <tim2.lin@ite.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2071551
Reviewed-by: Jett Rink <jettrink@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Remove sleeps from C2D2 flash path and ensure the EC doesn't come out of
reset long enough to do damage before we start flashing it.
BRANCH=none
BUG=b:150796623
TEST=Verify that no console prints from EC occur before flashing happens
(this is a positive change in behavior with this CL)
Cq-Depend: chromium:2090124, chromium:2090576
Signed-off-by: Jett Rink <jettrink@chromium.org>
Change-Id: I76560dcb6e7483ae36dc8c0f37ef99da126b0be3
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2090077
Reviewed-by: David Schneider <dnschneid@chromium.org>
Reviewed-by: Raul E Rangel <rrangel@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add necessary console command to allow C2D2 to pass through i2c bus for
ec and ap. Also hook into common ite programming mode code.
BRANCH=servo
BUG=b:148610186,b:147381671
TEST=flash ampton with C2D2 adapter
Change-Id: I1d9b20684b45ff0d101b9cfff8b0b0a85e6c0c70
Signed-off-by: Jett Rink <jettrink@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2064594
Reviewed-by: David Schneider <dnschneid@chromium.org>
Reviewed-by: Matthew Blecker <matthewb@chromium.org>
Reviewed-by: Diana Z <dzigterman@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
If we cannot find the linux i2c pseudo module then it
may have never been installed. The iteflash.md document
walks the users how to set up everything correctly.
BRANCH=none
BUG=none
TEST=none
Change-Id: I97de487b2d495772d77d7d6085905be64cdf9ec5
Signed-off-by: Jett Rink <jettrink@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2064590
Reviewed-by: Matthew Blecker <matthewb@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch removes stderr redirection in running flashrom
to flash-size, so that flash_ec log would contain more
information on error cases. It could be verbose even
for success case, but flash_ec script would take the last
output in number as SPI_SIZE.
BUG=none
BRANCH=none
TEST=manually ran flash_ec with Suzy-Q and Servo_Micro on reef.
- success case
$ ./util/flash_ec --chip=npcx_spi --image ${IMG} --verbose
INFO: EC build system didn't recognize . Assuming no baseboard.
INFO: Using ccd_cr50.
...
INFO: Running flashrom:
sudo /usr/sbin/flashrom -p raiden_debug_spi:target=EC,
serial=0580300D-91984377 --flash-size
flashrom v0.9.9 : : on Linux 5.2.17-1rodete3-amd64 (x86_64)
flashrom v0.9.9 : : on Linux 5.2.17-1rodete3-amd64 (x86_64)
bus=0x01,address=0x43 | Cr50
INFO: Programming EC firmware image.
INFO: Running flashrom:
...
- failure case: servo_micro was not connected to the dut.
$ ./util/flash_ec --chip=npcx_spi --image ${IMG} --verbose
INFO: EC build system didn't recognize . Assuming no baseboard.
INFO: Using servo_v4_with_servo_micro.
...
INFO: Running flashrom:
sudo /usr/sbin/flashrom -p raiden_debug_spi:serial=SNCQ03109
--flash-size
flashrom v0.9.9 : : on Linux 5.2.17-1rodete3-amd64 (x86_64)
flashrom v0.9.9 : : on Linux 5.2.17-1rodete3-amd64 (x86_64)
bus=0x01,address=0x17 | Servo Micro
No EEPROM/flash device found.
ERROR: Failed to determine chip size!
INFO: Restoring servo settings...
dut-control --port=9999 cold_reset:off
dut-control --port=9999 spi1_vref:off
dut-control --port=9999 spi1_buf_en:off
dut-control --port=9999 cold_reset:on
dut-control --port=9999 cold_reset:off
Change-Id: I642f62081e92bec68d01dcf4e2a4bb71a0131163
Signed-off-by: Namyoon Woo <namyoon@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2031644
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
C2D2 is a debug board bring that uses an 8-pin debug header that is pin
compatible with the em100 flash emulator.
BRANCH=none
BUG=b:145314772
TEST=UART communication for EC and H1
TEST=UART flashing of EC
TEST=SPI reading and writing
TEST=Automatic Vref detection for UART upon connect and disconnect
Change-Id: I023994ed78942f2307e4adb802b5cc96afdf7e24
Signed-off-by: Jett Rink <jettrink@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1991849
Reviewed-by: Diana Z <dzigterman@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
crosbug.com/444931 naturally has me wanting to run flash_ec outside of
the chroot, which means potentially newer system utilities.
I don't know when exactly it changed, but somewhere between lsof version
4.85 (in the chroot) and version 4.89 (my system), lsof auto-selects the
fd field (labeled f) to always be output, which gets mixed in with the
PIDs and PPIDs the script wants.
Filtering out the f field allows the flash_ec tool to proceed as normal.
BRANCH=none
BUG=none
TEST=flashed an EC outside of the chroot
Change-Id: Iee6ee7dfb338ffae900ff8b4cc70d7a6c1afab22
Signed-off-by: David Schneider <dnschneid@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/673724
Reviewed-by: Shawn N <shawnn@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Following features are enabled and verified.
1. Power sequencing
2. Host communication
3. Battery
4. Charger
5. USB TYPE-C MUX, DP/HDMI, USB2/3
6. TPM-SOC communication
7. LED
8. Keyboard
BRANCH=none
BUG=b:146693933
TEST=Build, flash and boot the Jasperlake RVP platform to OS
make BOARD=jslrvp_ite; sudo util/flash_ec --board=jslrvp_ite
Change-Id: I80227833fcfca5636ac8f30abc099db5717bfa05
Signed-off-by: Divagar Mohandass <divagar.mohandass@intel.com>
Signed-off-by: Vijay Hiremath <vijay.p.hiremath@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1980091
Reviewed-by: Justin TerAvest <teravest@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Upstream decided the argument '--flash-size' is more consistent
and so we added support to that in both our flashrom and upstream.
Rename here so that when we switch to upstream mosys doesn't break.
BUG=b:142436013
BRANCH=none
TEST=none
Change-Id: I4ae50109b7cb3fd001188ef86072d1f221f73062
Signed-off-by: Edward O'Callaghan <quasisec@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1936072
Reviewed-by: Sam McNally <sammc@chromium.org>
Reviewed-by: Patrick Georgi <pgeorgi@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
There's a typo when calling dut_control in CL:1884252, which causes
"--port" argument is missing when executing flash_ec.
BUG=b:145103343
BRANCH=kukui
TEST="util/flash_ec --image ${IMG} --board ${BOARD} --port 9998" works
Change-Id: I8c79797be4a665bd9ab8c3770c5199f2f798c6c4
Signed-off-by: Fei Shao <fshao@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1932869
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Reviewed-by: Jett Rink <jettrink@chromium.org>
Commit-Queue: Daisuke Nojiri <dnojiri@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This CL fixes servo micro flashing for fpmcu and usbpd.
This broke after crrev.com/c/1884252.
The error seen was the following:
./util/flash_ec: line 496: servo_micro_usbpd_boot0: command not found
BRANCH=nocturne,hatch
BUG=none
TEST=./util/flash_ec --board=dartmonkey --image=./build/nocturne_fp/ec.bin
Signed-off-by: Craig Hesling <hesling@chromium.org>
Change-Id: Ic98fb31e29ee25d5397d38d5e742727a909994e7
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1924990
Reviewed-by: Jett Rink <jettrink@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
CL:1884410 adds the necessary dut control for servo micro that depends
on the new servo micro console command (CL:1884190).
If you make the appropriate rework on servo micro to control the DIR2
pin on the level shifter for the EC UART with TP1, then flash EC will
successfully flash an EC using UUT (UART) with servo micro device.
BRANCH=none
BUG=b:143163043
TEST=flashed phaser using reworked servo_micro
Cq-Depend:chromium:1884410
Change-Id: Ic45abb32d20f5c357d1fef154feea31cabb17672
Signed-off-by: Jett Rink <jettrink@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1884252
Reviewed-by: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
/usr/sbin should have lower priority than $PATH.
This allows pointing to a different version of flashrom by setting the
path variable.
It shouldn't have any impact because by default flashrom is installed in
/usr/sbin.
BUG=none
BRANCH=none
TEST=PATH=/tmp/zork:$PATH flash_ec --board=zork --image=foo.bin
Change-Id: Ie656bec10145734bdec1f067b08f164afcf89e90
Signed-off-by: Raul E Rangel <rrangel@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1842034
Commit-Queue: Edward Hill <ecgh@chromium.org>
Reviewed-by: Edward Hill <ecgh@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
| |
BUG=none
BRANCH=none
TEST=Flashed a zork ec image with a space in the name
Change-Id: I9915f04f222de7a34e757fddcb30563d66093c71
Signed-off-by: Raul E Rangel <rrangel@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1842033
Reviewed-by: Edward Hill <ecgh@chromium.org>
Commit-Queue: Edward Hill <ecgh@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This adds the aforementioned aliases to the flash_ec
script. These aliases already exist as boards,
thanks to crrev.com/c/1715638.
Aliases:
dartmonkey --> nocturne_fp
bloonchipper --> hatch_fp
BRANCH=none
BUG=b:140059271,b:136678758,b:137108509
TEST=sudo servod -b dragonclaw
./util/flash_ec --board=bloonchipper --image=build/bloonchipper/ec.bin
TEST=sudo servod -b dragontalon
./util/flash_ec --board=dartmonkey --image=build/dartmonkey/ec.bin
Change-Id: Id4476da4cab9e72092b529c1bfc52acb4edd44cd
Signed-off-by: Craig Hesling <hesling@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1769491
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Reviewed-by: Tom Hughes <tomhughes@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
flash_ec used to get a flash memory size from EC UART command
"flashinfo", and pass it to uartudatetool with read command.
If EC is in a bad status, then it failed to read EC binary,
because flashinfo wasn't responded.
Thanks to the patch crrev.com/c/1763888, flash_ec doesn't need to
pass the flash memory size to uartupdatetool to read binary.
Instead, it just passes "--read-flash".
This CL also handles the comparison between the different sized
binaries.
BUG=b:139752920
BRANCH=null
TEST=manually ran flash_ec on platforms.
$ util/flash_ec --board ${BRD} --image ${IMG} --verify
- Checked on hatch with ccd and servo_v2.
- Checked on liara with ccd, servo_v2 and servo_micro.
- Checked on fleex with ccd and servo_micro.
- Checked on scarlet with ccd.
Cq-Depend:chromium:1763888
Change-Id: I196420dc29ce95c6737dbc241ba92660557d2bc5
Signed-off-by: Namyoon Woo <namyoon@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1766095
Reviewed-by: Wai-Hong Tam <waihong@google.com>
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Commit-Queue: Mary Ruthven <mruthven@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Servo may be using ccd and servo micro. Update the flash_ec servo type
to reflect which device actually has control of the DUT, so flash_ec can
make the correct decisions about how to flash the device. Add the device
prefix to all dut-control commands.
If servo is using ccd and servo_micro, ccd controls will be prefixed
with 'ccd_cr50.'. Add this prefix to all dut-control commands.
BUG=b:35579416
BRANCH=none
TEST=flash phaser ec ec using servo_v4_with_servo_micro_and_ccd_cr50,
servo_v4_with_servo_micro, and servo_v4_with_ccd_cr50
Change-Id: I3d561ceb3c0ef0d95678c8346fb9922fd44378bf
Signed-off-by: Mary Ruthven <mruthven@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1757272
Reviewed-by: Namyoon Woo <namyoon@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
A close hammer derivative.
BRANCH=none
BUG=b:138968914
TEST=make BOARD=magnemite -j
Flash into staff, see the board boot:
util/flash_ec --board=magnemite --port=9000
Change-Id: Ibe5c3f4b0fb4a31d4667d5dc4d76a691b0e64e39
Signed-off-by: Nicolas Boichat <drinkcat@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1741599
Reviewed-by: Yilun Lin <yllin@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
flash_ec fails when npcx_uut chip in a bad status doesn't respond
at all, especially upon ec_flash_size query.
This patch subpress the exit on ec_flash_size query failure, because
that information is not mandatory in flashing EC.
BUG=none
BRANCH=none
TEST=manualy tested on kohaku.
1. programmed kohaku EC with a wrong binary.
2. checked kohaku EC in a bad status, and was not able to respond.
3. ran flash_ec and checked flash_ec finished EC FW program.
e.g. flash_ec --board kohaku --image ${IMG}
4. read EC firmware back.
e.g. flash_ec --board kohaku --read ${TMP_IMG}
Change-Id: Ic853dd9f827217621cd598c799c68fbbf970078a
Signed-off-by: Namyoon Woo <namyoon@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1753009
Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Added TGL-U/Y RVP base code using ITE EC.
Following features are enabled.
1. TCPC + retimer
2. Charger
3. Battery
4. Power sequencing
5. Host communication
6. LED
7. Keyboard
BUG=b:138597987
BRANCH=none
TEST=Both TGLRVP U&Y can boot to ChromeOS
Change-Id: Idf6be38796c26b31be6e13485a63ec13487bf954
Signed-off-by: Daniel Gonzalez <daniel.d.gonzalez@intel.com>
Signed-off-by: Vijay Hiremath <vijay.p.hiremath@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1726943
Reviewed-by: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch enables flash_ec to read EC image from npcx_uut type chip,
and to verify the flash programmed image.
BUG=b:133265593
BRANCH=none
TEST=manually ran flash_ec on fleex and careena.
flash_ec --board flex --image ${IMG} --verify
flash_ec --board flex --read ${TMP_IMG}
flash_ec --board careena --image ${IMG} --verify
flash_ec --board careena --read ${TMP_IMG}
Cq-Depend: chromium:1748803
Change-Id: Ifaefa64b0efed6c875c99ede59a3a1e0dfe0bf7f
Signed-off-by: Namyoon Woo <namyoon@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1749554
Reviewed-by: CH Lin <chlin56@nuvoton.com>
Reviewed-by: Raul E Rangel <rrangel@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
A close hammer derivative.
BRANCH=none
BUG=b:138968914
TEST=make BOARD=masterball -j
Flash into staff, see the board boot:
util/flash_ec --board=masterball --port=9000
Change-Id: I9f8d897c23d0f53557c6d6789c33e5b776dca982
Signed-off-by: Nicolas Boichat <drinkcat@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1741589
Reviewed-by: Wei-Han Chen <stimim@chromium.org>
Reviewed-by: Yilun Lin <yllin@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The issue in http://b/126189871 has been fixed thanks to pseudo_i2c
driver. There is no need to retry 'dut-control dut_i2c_mux:ec_prog'.
BUG=b:126189871
BRANCH=none
TEST=ran flash_ec on Ampton twice in a raw using CCD, and servo_v4 as
well.
Change-Id: I72e2bf8eb48dff7a3c81545221ac71a44469c033
Signed-off-by: Namyoon Woo <namyoon@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1746974
Reviewed-by: Matthew Blecker <matthewb@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch lets flash_ec die on any of program, read and verification
errors. Intends to help testers recognize those failures easier.
BUG=b:137386185
BRANCH=None
TEST=Ran flash_ec on several platforms with program and verify args.
Also checked the exit code for each case, and temp file deletion
as well:
- Fleex (Octopus) with servo_micro, and ccd, covering npcx_int_spi and
npcx_uut
- Ampton(Octopus) with servo_micro, and ccd, covering it83xx
- Atlas with servo_v2, servo_micro, and ccd, covering npcx_int_spi
- Scarlet with ccd, covering stm32
- DragonTalon with servo_v2 and servo_micro, covering stm32
- Coral with servo_v2, servo_micro, and ccd, covering npcx_spi
Change-Id: I5a545f6ac6f4b09f405a51bb69c3adf2d3d6cb6e
Signed-off-by: Namyoon Woo <namyoon@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1745348
Reviewed-by: Wai-Hong Tam <waihong@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This contains the initial firmware for Fluffy rev 1.1 boards.
Fluffy is a 20:1 USB-C power mux. For more information, see
go/usbc-fluffy.
BUG=b:136671092,b:134075217,b:134074302,b:134074465,b:134075521,
b:134075834
BRANCH=None
TEST=flash fluffy, verify it boots and functions.
Change-Id: Ica6817e7cfa4481aa98fed1c24ea243bf622eb2a
Signed-off-by: Aseda Aboagye <aaboagye@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1535117
Tested-by: Aseda Aboagye <aaboagye@chromium.org>
Reviewed-by: Jett Rink <jettrink@chromium.org>
Commit-Queue: Jett Rink <jettrink@chromium.org>
Auto-Submit: Aseda Aboagye <aaboagye@chromium.org>
|