Regarding to file /mnt/platform/syseeprom

31 views
Skip to first unread message

Xianlong Qin

unread,
Mar 12, 2020, 1:24:19 PM3/12/20
to sonic-mgmt...@googlegroups.com
Hello,

Function getSysEepromFromFile() reads info from file
/mnt/platform/syseeprom, I know /mnt/platform is mounted from
/var/platform, but didn't find who creates syseeprom. Anybody know the
answer?

And does mgmt-framework expect vendors saving the eeprom info in Redis DB?

Thanks,
Xianlong

Ravi.V...@dell.com

unread,
Mar 12, 2020, 2:08:44 PM3/12/20
to rain...@gmail.com, sonic-mgmt...@googlegroups.com
Syseeprom file is getting populated from rc.local ("files/image_config/platform/rc.local") at bootup.
  • Rc.local contents:
# Write contents of system EEPROM as JSON file
/usr/bin/decode-syseeprom | /usr/bin/syseeprom-to-json > /var/platform/syseeprom
 
-----Original Message-----
From: sonic-mgmt...@googlegroups.com <sonic-mgmt...@googlegroups.com> On Behalf Of Xianlong Qin
Sent: Thursday, March 12, 2020 10:24 AM
To: sonic-mgmt...@googlegroups.com
Subject: Regarding to file /mnt/platform/syseeprom
 
 
[EXTERNAL EMAIL]
--
You received this message because you are subscribed to the Google Groups "sonic-mgmt-workgroup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonic-mgmt-workg...@googlegroups.com.
 

Xianlong Qin

unread,
Mar 12, 2020, 6:09:41 PM3/12/20
to Ravi.V...@dell.com, sonic-mgmt...@googlegroups.com
Thanks a lot.

Xianlong Qin

unread,
Mar 13, 2020, 3:06:24 PM3/13/20
to Ravi.V...@dell.com, sonic-mgmt...@googlegroups.com
Hi Ravi,

Which branch you checked? I don't see decode-syseeprom used in
files/image_config/platform/rc.local on master or 201911 branch.

Thanks,
Xianlong

On Thu, Mar 12, 2020 at 11:08 AM <Ravi.V...@dell.com> wrote:
>
Reply all
Reply to author
Forward
0 new messages