Files
u-boot/include/configs
Bryan O'Donoghue 852cc548b3 warp7: Set u-boot serial# based on OTP value
u-boot has a standard "serial#" environment variable that is suitable
for storing the iSerial number we will supply via the USB device
descriptor. serial# is automatically picked up by the disk subsystem in
u-boot - thus providing a handy unique identifier in /dev/disk/by-id as
detailed below.

Storing the hardware serial identifier in serial# means we can change the
serial# if we want before USB enumeration - thus making iSerial automatic
via OTP but overridable if necessary.

This patch reads the defined OTP fuse and sets environment variable
"serial#" to the value read.

With this patch in place the USB mass storage device will appear in
/dev/disk/by-id with a unique name based on the OTP value. For example

/dev/disk/by-id/usb-Linux_UMS_disk_0_WaRP7-0xf42400d3000001d4-0:0

Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Cc: Fabio Estevam <fabio.estevam@nxp.com>
Cc: Rui Miguel Silva <rui.silva@linaro.org>
Cc: Ryan Harkin <ryan.harkin@linaro.org>
Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
2018-04-15 11:44:13 +02:00
..
2018-02-13 23:00:47 -05:00
2018-02-23 21:44:22 -05:00
2018-02-23 21:44:22 -05:00
2017-12-12 18:16:05 -05:00
2018-02-14 12:14:13 -05:00
2018-02-23 21:44:22 -05:00
2018-02-13 23:00:47 -05:00
2018-02-11 09:30:09 -05:00
2018-02-23 21:44:22 -05:00
2018-03-09 09:23:10 -05:00
2018-02-23 21:44:22 -05:00
2018-01-26 07:46:34 -05:00
2018-02-23 21:44:22 -05:00
2018-02-11 09:30:09 -05:00
2018-02-13 23:00:47 -05:00
2018-02-23 21:44:22 -05:00
2018-02-23 21:44:22 -05:00
2018-02-23 21:44:22 -05:00
2018-02-23 21:44:22 -05:00
2018-02-14 12:14:13 -05:00
2018-02-23 21:44:22 -05:00
2018-02-23 21:44:22 -05:00
2018-02-08 10:17:16 -05:00
2018-02-23 21:44:22 -05:00
2018-02-11 09:30:09 -05:00
2018-02-23 21:44:22 -05:00
2018-02-23 21:44:22 -05:00
2018-01-28 12:27:32 -05:00
2018-02-23 21:44:22 -05:00
2017-07-31 12:21:40 -04:00
2018-02-23 21:44:22 -05:00
2018-02-23 21:44:22 -05:00
2018-02-23 21:44:22 -05:00
2018-02-23 21:44:22 -05:00
2018-02-13 23:00:47 -05:00
2018-02-23 21:44:22 -05:00
2018-02-23 21:44:22 -05:00
2018-02-13 23:00:47 -05:00
2018-03-09 09:23:10 -05:00
2018-02-23 21:44:22 -05:00
2018-02-11 09:30:09 -05:00
2018-02-23 21:44:22 -05:00
2018-02-13 23:01:44 -05:00
2018-02-23 21:44:22 -05:00
2018-02-11 09:30:09 -05:00
2018-02-23 21:44:22 -05:00
2017-12-12 18:16:05 -05:00
2018-02-23 21:44:22 -05:00
2017-08-11 15:41:56 -04:00
2018-02-11 09:30:09 -05:00
2018-02-23 21:44:22 -05:00
2017-08-11 15:41:50 -04:00
2017-08-07 15:22:28 -05:00