Files
u-boot-bpi-r3/include
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-16 11:12:41 -05:00
2018-02-23 20:48:09 +01:00
2017-11-28 16:08:52 +01:00
2018-02-13 23:24:22 -05:00
2017-09-16 14:57:44 +08:00
2017-10-02 21:52:18 -04:00
2018-01-28 17:12:35 +01:00
2018-01-28 17:12:36 +01:00
2018-02-05 20:58:11 -05:00
2017-08-17 16:59:55 +09:00
2017-08-16 08:30:24 -04:00
2018-01-22 16:43:31 -05:00
2018-01-29 07:48:59 +01:00
2017-10-02 21:52:18 -04:00
2017-09-03 15:30:35 -04:00
2018-02-04 12:00:58 +01:00
2018-02-03 10:09:28 -07:00
2018-02-19 16:59:33 +09:00
2017-11-28 21:59:30 +01:00
2017-12-04 22:00:00 +09:00
2018-02-23 10:40:51 -05:00
2018-03-09 09:23:10 -05:00
2017-11-28 21:59:30 +01:00
2018-02-10 00:24:00 +01:00
2017-12-07 15:17:00 -05:00
2017-08-17 16:59:55 +09:00
2017-08-23 10:41:58 +02:00
2017-08-16 08:22:18 -04:00
2018-01-24 12:04:07 +05:30
2018-01-24 12:04:07 +05:30
2017-12-12 19:53:45 -07:00
2017-10-01 16:32:51 +02:00
2017-08-24 11:00:47 +08:00
2017-10-04 12:00:19 -04:00