aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lepore <ian@FreeBSD.org>2018-06-23 23:08:25 +0000
committerIan Lepore <ian@FreeBSD.org>2018-06-23 23:08:25 +0000
commit110d4e2df3fefbb7a99eb4e990fab98d6948aa9e (patch)
tree4e348b6c8f3ee51eb3554aeaa3e61dd2b04bfbbd
parent95e390b6660aea73baf97aa5911496f2104520da (diff)
downloadsrc-110d4e2df3fefbb7a99eb4e990fab98d6948aa9e.tar.gz
src-110d4e2df3fefbb7a99eb4e990fab98d6948aa9e.zip
Add an example for displaying the manufacturer and size info from a
standard spiflash chip.
Notes
Notes: svn path=/head/; revision=335593
-rw-r--r--usr.sbin/spi/spi.86
1 files changed, 6 insertions, 0 deletions
diff --git a/usr.sbin/spi/spi.8 b/usr.sbin/spi/spi.8
index 240a97ed10d1..0335f0ccbe6f 100644
--- a/usr.sbin/spi/spi.8
+++ b/usr.sbin/spi/spi.8
@@ -191,6 +191,12 @@ as binary data, piped through
displaying it as two hexadecimal unsigned short integer values.
.Pp
echo "00 01" | spi -A -b -d rw -c 4 | od -t x2
+.It
+Query the manufacturer ID and size from a standard spiflash device, by
+sending the command byte 0x9f and displaying the 3-byte reply in ASCII hex.
+.Pp
+spi -f spigen0.0 -m 0 -s 1000000 -d r -c 3 -A -C 9f
+
.El
.Pp
.Sh SEE ALSO