/*
* factory - Realtek factory command
*
* Copyright (c) 2018 Realtek Semiconductor Corp.
*/1. Change u-boot environment:
$ factory (load|set|save|list) [variable] [value]
Set withoutvalueto unset the env variable.
You could do multiple setcommandbeforesave.
Ex: ./factory load
./factory set nasargs loglevel=7
./factory save
2. Set flag:
$ factory (flag|unflag) FLAGNAME
Ex: ./factory flag SHUTDOWN
3. Set RTC alarm,
$ factory alarm (read|set) [timestamp]
Set without timestamp toclear alarm.
timestamp format:
YYYYMMDDhhmmss
YYYY-MM-DD hh:mm:ss
YYYY-MM-DD hh:mm (seconds will be setto00)
YYYY-MM-DD (time will be setto00:00:00)
hh:mm:ss (date will be setto today)
hh:mm (date will be setto today, secondsto00)
tomorrow (time is setto00:00:00)
+5min
Ex: ./factory alarm set +5min
On RTC alarm set, the timestamp value will be written intothefile
named RTC in factory onRTCalarmset.
And the RTC file will be removed onalarmreset.