summaryrefslogtreecommitdiff
path: root/docs/fingerprint/fingerprint.md
diff options
context:
space:
mode:
authorTom Hughes <tomhughes@chromium.org>2020-11-05 10:23:05 -0800
committerCommit Bot <commit-bot@chromium.org>2020-11-06 00:30:55 +0000
commit1a7aded92c86873f07f5d3c4d29b50808a04f735 (patch)
tree2dd0bf3f00d9463f20c70568fe856d7b8dba782f /docs/fingerprint/fingerprint.md
parent9d157db4aaa9cb04f33809f170712a244b627b56 (diff)
downloadchrome-ec-1a7aded92c86873f07f5d3c4d29b50808a04f735.tar.gz
docs/fingerprint: Workaround mdformat and gitiles note syntax
mdformat incorrectly formats "*** note" blocks, so disable mdformat on those blocks. BRANCH=none BUG=none TEST=View in gitiles Signed-off-by: Tom Hughes <tomhughes@chromium.org> Change-Id: I4a7894402373a4c91688263454d33554b324aece Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2521452 Reviewed-by: Craig Hesling <hesling@chromium.org>
Diffstat (limited to 'docs/fingerprint/fingerprint.md')
-rw-r--r--docs/fingerprint/fingerprint.md16
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/fingerprint/fingerprint.md b/docs/fingerprint/fingerprint.md
index 67f7b4bf1f..8d987a45c7 100644
--- a/docs/fingerprint/fingerprint.md
+++ b/docs/fingerprint/fingerprint.md
@@ -2,16 +2,20 @@
[TOC]
+<!-- mdformat off(b/139308852) -->
*** note
NOTE: The build commands assume you are in the `~/trunk/src/platform/ec`
directory inside the chroot.
***
+<!-- mdformat on -->
+<!-- mdformat off(b/139308852) -->
*** note
WARNING: When switching branches in the EC codebase, you probably want to nuke
the `build` directory or at least the board you're working on: `rm -rf
build/<board>` or `make clobber` to prevent compilation errors.
***
+<!-- mdformat on -->
## Software
@@ -45,11 +49,13 @@ in the chroot to determine the FPMCU:
(chroot) $ cros_config_host -c /build/<BOARD>/usr/share/chromeos-config/yaml/config.yaml -m <MODEL> get /fingerprint board
```
+<!-- mdformat off(b/139308852) -->
*** note
**NOTE**: If you get an empty response when running these commands, the
[Chrome OS Config] properties for fingerprint may not have been set up yet. See
the [section on updating Chrome OS Config](#update-chromeos-config).
***
+<!-- mdformat on -->
## Building FPMCU Firmware Locally
@@ -82,10 +88,12 @@ Before uploading a change to Gerrit via `repo upload`, you'll need to build
*all* the boards in the EC codebase to make sure your changes do not break any
others.
+<!-- mdformat off(b/139308852) -->
*** note
NOTE: If you forget to do this, do not worry. `repo upload` will warn you and
prevent you from uploading.
***
+<!-- mdformat on -->
```bash
(chroot) ~/trunk/src/platform/ec $ make buildall -j
@@ -146,11 +154,13 @@ kernel:
### `fp_updater.sh` and `bio_fw_updater`
+<!-- mdformat off(b/139308852) -->
*** note
**NOTE**: The auto-update process requires a working version of the firmware
running on the FPMCU. See [Fingerprint Factory Requirements] for details on
flashing in the factory.
***
+<!-- mdformat on -->
[`fp_updater.sh`] and [`bio_fw_updater`] are wrappers around [`flashrom`] and
require already-functioning RO firmware running on the FPMCU. It’s meant to be
@@ -168,12 +178,14 @@ user disables [hardware write protection]).
### `flash_fp_mcu`
+<!-- mdformat off(b/139308852) -->
*** note
**NOTE**: This tool is really just for us to use during development or during
the RMA flow (must go through finalization again in that case). We never update
RO in the field (can’t by design). See [Fingerprint Factory Requirements] for
details on flashing in the factory.
***
+<!-- mdformat on -->
[`flash_fp_mcu`] enables spidev and toggles some GPIOs to put the FPMCU (STM32)
into bootloader mode. At that point it uses [`stm32mon`] to rewrite the entire
@@ -318,10 +330,12 @@ fingerprint development boards.
### Dragontalon
+<!-- mdformat off(b/139308852) -->
*** note
**NOTE**: The sensor doesn't work on Dragontalon, so the measurements below show
zero for the sensor.
***
+<!-- mdformat on -->
```bash
(chroot) $ dut-control -t 60 pp3300_h7_mv pp3300_h7_mw pp1800_fpc_mv pp1800_fpc_mw
@@ -392,9 +406,11 @@ See the [Hatch baseboard `make.defaults`] for an example.
Once you have added the `FPMCU_FIRMWARE` flag and rebuilt the
[`chromeos-firmware-fpmcu` ebuild], the firmware will show up in the the chroot:
+<!-- mdformat off(b/139308852) -->
*** note
**NOTE**: This requires access to the [internal manifest].
***
+<!-- mdformat on -->
```bash
(chroot) $ emerge-<BOARD> chromeos-firmware-fpmcu