All of lore.kernel.org
 help / color / mirror / Atom feed
* Proposal to Sync BMC's MAC Address to U-Boot environment
@ 2018-11-27 10:58 Nagaraju Goruganti
  2018-11-27 13:04 ` Alexander A. Filippov
  0 siblings, 1 reply; 6+ messages in thread
From: Nagaraju Goruganti @ 2018-11-27 10:58 UTC (permalink / raw)
  To: openbmc

[-- Attachment #1: Type: text/plain, Size: 1036 bytes --]

HI All,

As we want to get rid of python, making this proposal to sync BMC's MAC 
Address to U-Boot environment(assuming this is a common requirement across 
OpenBMC based systems).

Proposal:

Platform specific code :

a) Get MAC Address from platform specific NV storage (BMC VPD on OpenPOWER 
systems) into an inventory object. It is being done by 
openpower-vpd-parser on the openpower systems .

Common code:

b) A script (invoked by systemd on the way to BMC ready state) fetches BMC 
MAC Address from (platform specific) inventory object. If this MAC Address 
and the one in u-boot environment are different (or if the u-boot one is 
empty), then the script writes the inventory MAC Address to u-boot using 
fw_setenv.

c) The script can reside in a phosphor layer.

Existing Python script:

The existing python 
script(openbmc/skeleton/pyinventorymgr/sync_inventory_items.py) does the 
same thing.


We need a opinion from the community members on this proposal.

Best Regards,

Nagaraju G


[-- Attachment #2: Type: text/html, Size: 1862 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-11-28 13:27 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-27 10:58 Proposal to Sync BMC's MAC Address to U-Boot environment Nagaraju Goruganti
2018-11-27 13:04 ` Alexander A. Filippov
2018-11-28  5:35   ` Ratan Gupta
2018-11-28  9:19     ` Alexander A. Filippov
2018-11-28 12:33       ` Ratan Gupta
2018-11-28 13:27         ` Alexander A. Filippov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.