Daisuke Nojiri
5946911129
CBI: Make data offset and size variable
...
Currently CBI data offset and size are fixed. This patch makes them
variable. Each data item consists of <tag><size><value> where <tag>
is a numeric value assigned to each data item, <size> is the number
of bytes used for <value>.
BUG=b:70294260
BRANCH=none
TEST=Use 'ectool cbi set' to set board version, oem, sku.
Verify the contents by cbi console command and ectool cbi get.
1. ectool cbi set 0 0x202 2 2 (Init CBI and write board ver. of size 2)
2. ectool cbi set 1 1 1 (write oem id of size 1)
3. ectool cbi set 2 2 1 (write sku id of size 1)
4. ectool cbi get 0
514 (0x202)
5. ectool cbi get 1
1 (0x1)
6. ectool cbi get 2
2 (0x2)
7. Run cbi console command:
CBI_VERSION: 0x0000
TOTAL_SIZE: 18
BOARD_VERSION: 514 (0x202)
OEM_ID: 1 (0x1)
SKU_ID: 2 (0x2)
43 42 49 8c 00 00 12 00 00 02 02 02 01 01 01 02
01 02
Change-Id: I5a30a4076e3eb448f4808d2af8ec4ef4c016ae5e
Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org >
Reviewed-on: https://chromium-review.googlesource.com/920905
Reviewed-by: Aaron Durbin <adurbin@chromium.org >
2018-02-16 18:47:52 -08:00
..
2018-02-03 02:38:10 -08:00
2018-02-09 07:55:33 -08:00
2016-08-24 16:30:10 +00:00
2017-12-28 14:50:29 -08:00
2016-08-24 16:30:10 +00:00
2018-01-18 05:09:37 -08:00
2017-09-12 16:17:03 -07:00
2018-02-09 07:55:33 -08:00
2016-08-11 14:46:33 -07:00
2016-08-24 16:30:10 +00:00
2016-11-16 19:04:31 -08:00
2018-02-05 23:05:39 -08:00
2017-12-18 22:55:02 -08:00
2016-04-18 17:32:40 -07:00
2018-02-16 18:47:52 -08:00
2018-02-08 23:42:33 -08:00
2017-11-28 15:44:18 -08:00
2017-11-01 16:47:21 -07:00
2017-10-19 12:56:42 -07:00
2018-02-09 07:55:34 -08:00
2017-02-10 19:02:55 -08:00
2016-08-24 16:30:10 +00:00
2016-08-24 16:30:10 +00:00
2015-05-19 02:46:27 +00:00
2016-10-01 03:13:43 +00:00
2017-08-08 14:56:13 -07:00
2016-03-18 22:16:53 -07:00
2014-08-08 03:11:38 +00:00
2017-11-16 23:32:11 -08:00
2017-07-03 21:44:34 -07:00
2017-07-03 21:44:34 -07:00
2017-06-30 03:08:42 -07:00
2017-08-08 17:34:09 -07:00
2017-02-14 14:50:36 -08:00
2018-02-07 11:55:57 -08:00
2018-02-07 11:55:57 -08:00
2017-11-21 18:53:35 -08:00
2015-07-17 03:17:50 +00:00
2018-01-02 15:48:20 -08:00
2017-08-02 15:02:34 -07:00
2017-06-16 21:10:54 -07:00
2016-09-02 07:11:33 -07:00
2017-11-06 13:48:38 -08:00
2017-07-13 19:45:57 -07:00
2017-07-13 19:45:57 -07:00
2017-11-09 19:16:33 -08:00
2018-01-10 12:58:55 -08:00
2018-02-16 18:47:47 -08:00
2016-11-15 17:41:53 -08:00
2016-08-31 17:20:26 +00:00
2017-12-28 12:35:08 -08:00
2018-02-02 10:17:30 -08:00
2016-08-24 16:30:10 +00:00
2017-08-08 14:56:13 -07:00
2018-01-22 18:50:11 -08:00
2017-12-06 03:45:57 -08:00
2017-12-07 05:09:28 -08:00
2017-04-26 13:37:04 -07:00
2016-08-24 16:30:10 +00:00
2017-11-07 17:52:15 -08:00
2016-04-18 17:32:40 -07:00
2017-05-18 18:07:29 -07:00
2017-10-19 14:56:09 -07:00
2017-11-21 18:53:35 -08:00
2018-02-05 19:08:21 -08:00
2013-03-22 11:24:29 -07:00
2017-09-11 11:14:24 -07:00
2018-01-31 18:01:04 -08:00
2017-11-28 15:44:19 -08:00
2018-02-15 21:43:53 -08:00
2016-03-02 13:39:47 -08:00
2018-02-08 06:57:51 -08:00
2016-08-24 16:30:10 +00:00
2015-10-13 05:28:54 -07:00
2018-02-08 12:58:20 -08:00
2015-10-13 05:28:54 -07:00
2015-10-13 05:28:54 -07:00
2017-06-19 15:33:09 -07:00
2016-10-01 00:02:01 -07:00
2017-07-28 15:04:24 -07:00
2017-07-13 08:32:58 -07:00
2018-02-01 14:55:17 -08:00
2017-06-02 10:38:57 -07:00
2017-02-27 18:50:12 -08:00
2017-02-23 01:19:07 -08:00
2013-08-02 18:22:57 -07:00
2017-11-30 11:48:57 -08:00
2017-08-02 15:02:34 -07:00
2018-01-12 03:27:08 -08:00
2017-10-31 13:04:59 -07:00
2018-02-12 18:59:36 -08:00
2016-08-24 16:30:10 +00:00
2017-12-25 17:17:25 -08:00
2017-01-03 15:13:58 -08:00
2016-08-24 16:30:10 +00:00
2016-09-08 17:57:51 -07:00
2017-12-18 20:32:58 -08:00
2015-07-15 21:57:36 +00:00
2017-10-24 12:57:45 -07:00
2017-06-14 01:19:31 -07:00
2016-11-10 21:28:28 -08:00
2017-09-26 18:24:07 -07:00
2017-08-08 14:56:13 -07:00
2014-05-17 20:14:17 +00:00
2017-09-11 04:42:59 -07:00
2016-08-31 17:20:26 +00:00
2018-02-09 05:24:46 -08:00
2016-03-21 16:35:33 -07:00
2016-08-24 16:30:10 +00:00
2017-12-28 14:50:32 -08:00
2016-10-05 20:58:37 -07:00
2017-02-09 05:04:56 +00:00
2017-05-09 23:20:07 -07:00
2017-12-11 15:16:23 -08:00
2017-01-04 18:07:12 -08:00
2016-08-24 16:30:10 +00:00
2016-08-24 16:30:10 +00:00
2017-11-06 13:48:38 -08:00
2016-08-24 16:30:10 +00:00
2017-09-01 14:41:52 -07:00
2017-08-10 22:47:24 -07:00
2018-02-15 21:43:57 -08:00
2017-08-03 19:23:22 -07:00
2017-05-12 13:09:54 -07:00
2017-09-15 10:50:27 -07:00
2018-01-31 22:38:56 -08:00
2017-12-18 20:32:58 -08:00
2018-01-31 11:14:01 -08:00
2018-02-12 18:59:34 -08:00
2017-10-24 15:30:15 -07:00
2017-05-01 21:54:10 -07:00
2017-08-28 15:24:10 -07:00
2017-12-18 20:32:58 -08:00
2018-02-01 18:08:36 -08:00
2017-11-21 18:53:35 -08:00
2017-09-29 23:25:38 -07:00
2015-10-13 05:28:54 -07:00
2017-04-06 03:29:38 -07:00
2017-09-25 21:06:52 -07:00
2016-01-25 21:46:48 -08:00
2017-09-22 10:18:50 -07:00
2016-08-24 16:30:10 +00:00