1. 程式人生 > >factory 命令參考

factory 命令參考

/*
 * factory - Realtek factory command
 *
 * Copyright (c) 2018 Realtek Semiconductor Corp.
 */

1. Change u-boot environment:

    $ factory (load|set|save|list) [variable] [value]

Set without value to unset the env variable.
You could do multiple set command before save.

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 to clear alarm. timestamp format: YYYYMMDDhhmmss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm (seconds
will be set to 00) YYYY-MM-DD (time will be set to 00:00:00) hh:mm:ss (date will be set to today) hh:mm (date will be set to today, seconds to 00) tomorrow (time is set to 00:00:00) +5min Ex: ./factory alarm set +5min On RTC alarm set, the timestamp value will be written into
the file named RTC in factory on RTC alarm set. And the RTC file will be removed on alarm reset.