openbmc / ipmi-fru-parser

GNU General Public License v3.0
10 stars 25 forks source link

【use "ipmitool fru edit" Command sent successfully, but EEPROM data has not changed 】 #28

Closed Chendd123 closed 8 months ago

Chendd123 commented 8 months ago

Use “ipmitool fru edit”,want to modify the information of a certain domain;Then ipmitool fru list to check ,The data viewed using ipmitool is OK [it is the modified data]; But:

  1. Abnormal l printing information has occurred here

Mar 09 16:06:01 test-evb ipmid[327]: FRU file is incomplete Mar 09 16:06:01 test-evb ipmid[327]: Populating FRU areas failed Mar 09 16:06:01 test-evb ipmid[327]: Incomplete FRU file Mar 09 16:06:01 test-evb ipmid[327]: Populating FRU areas failed Mar 09 16:06:01 test-evb ipmid[327]: Incomplete FRU file Mar 09 16:06:01 test-evb ipmid[327]: Populating FRU areas failed Mar 09 16:06:01 test-evb ipmid[327]: Incomplete FRU file Mar 09 16:06:01 test-evb ipmid[327]: Populating FRU areas failed

  1. eeprom EEPROM data not synchronized

test befoe: root@test-evb:~# ipmitool fru list FRU Device Description : Builtin FRU Device (ID 0) Board Mfg Date : Wed Jan 10 04:58:00 2024 UTC Board Mfg : AnyCompany Board Product : HangZhou Board Serial : pn123456789987654321 Board Part Number : Cloudnineinfo123456789 root@test-evb:~# EEPROM Data: root@test-evb:~# hexdump -Cv /sys/class/i2c-dev/i2c-28/device/28-0050/eeprom 00000000 01 00 00 01 00 00 00 fe 01 0a 19 aa ea e0 ca 41 |...............A| 00000010 6e 79 43 6f 6d 70 61 6e 79 c8 48 61 6e 67 5a 68 |nyCompany.HangZh| 00000020 6f 75 d4 70 6e 31 32 33 34 35 36 37 38 39 39 38 |ou.pn12345678998| 00000030 37 36 35 34 33 32 31 d6 43 6c 6f 75 64 6e 69 6e |7654321.Cloudnin| 00000040 65 69 6e 66 6f 31 32 33 34 35 36 37 38 39 c7 4e |einfo123456789.N| 00000050 6f 74 68 69 6e 67 c1 e8 ff ff ff ff ff ff ff ff |othing..........| 00000060 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 00000070 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 00000080 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 00000090 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................|

test after: root@test-evb:~# ipmitool fru list FRU Device Description : Builtin FRU Device (ID 0) Board Mfg Date : Wed Jan 10 04:58:00 2024 UTC Board Mfg : CloudNineInfo Board Product : HangZhou Board Serial : pn123456789987654321 Board Part Number : Cloudnineinfo123456789 root@test-evb:~# EEPROM Data: root@test-evb:~# hexdump -Cv /sys/class/i2c-dev/i2c-28/device/28-0050/eeprom 00000000 01 00 00 01 00 00 00 fe 01 0a 19 aa ea e0 ca 41 |...............A| 00000010 6e 79 43 6f 6d 70 61 6e 79 c8 48 61 6e 67 5a 68 |nyCompany.HangZh| 00000020 6f 75 d4 70 6e 31 32 33 34 35 36 37 38 39 39 38 |ou.pn12345678998| 00000030 37 36 35 34 33 32 31 d6 43 6c 6f 75 64 6e 69 6e |7654321.Cloudnin| 00000040 65 69 6e 66 6f 31 32 33 34 35 36 37 38 39 c7 4e |einfo123456789.N| 00000050 6f 74 68 69 6e 67 c1 e8 ff ff ff ff ff ff ff ff |othing..........| 00000060 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 00000070 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 00000080 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 00000090 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................|