[U-Boot] [PATCH 3/3 v4] mips: mt76xx: gardena-smart-gateway: Add factory data variable handling

Daniel Schwierzeck daniel.schwierzeck at gmail.com
Fri Nov 30 16:16:59 UTC 2018



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 at denx.de>
> Cc: Daniel Schwierzeck <daniel.schwierzeck at 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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20181130/1e918bcf/attachment.sig>


More information about the U-Boot mailing list