
30 Nov
2018
30 Nov
'18
5:16 p.m.
Am 30.11.18 um 07:46 schrieb Stefan Roese:
Some factory data is stored in the SPI NOR and needs to get extracted from there into U-Boot environment variables.
This patch also includes a board-specific command "fd_write" to provide some dummy / default values for this factory-data in the SPI NOR flash. This should only be necessary for testing purposes though.
Signed-off-by: Stefan Roese sr@denx.de Cc: Daniel Schwierzeck daniel.schwierzeck@gmail.com
v4:
- Change end-char for "linuxmoduleunielecid"
v3:
- Remove unnecessary ret = 0 assignment in do_fd_write()
- Change copy_or_generate_uuid() to not generate random values after the terminating char
v2:
- Use "const char *" where possible
- Avoid memset() by assigning value in variable declaration
- Fix goto's with correct cleanup (free, spi_flash_free)
- Change one printf to debug to be less verbose
Daniel, sorry for all these version. I really hope that this is the last version.
Thanks, Stefan
board/gardena/smart-gateway-mt7688/board.c | 269 +++++++++++++++++++++ 1 file changed, 269 insertions(+)
applied to u-boot-mips, thanks.
--
- Daniel