On Fri, 13 Aug 2021 01:39:36 +0200 Luka Kovacic <luka.kova...@sartura.hr> wrote:
> The mac command is implemented to enable parsing Marvell hw_info formatted > environments. This format is often used on Marvell Armada A37XX based > devices to store parameters like the board serial number, factory > MAC addresses and some other information. > These parameters are usually written to the flash in the factory. > > Currently the mac command supports reading/writing parameters and dumping > the current hw_info parameters. > EEPROM config pattern and checksum aren't supported. > > This functionality has been tested on the GST ESPRESSOBin-Ultra board > successfully, both reading the stock U-Boot parameters in mainline U-Boot > and reading the parameters written by this command in the stock U-Boot. > > Usage example: > => mac read > => saveenv I think the mac/fuse commands should be killed and nvmem API should be implemented as is in Linux, with a corresponding nvmem command. Marek