20180829_jeffrey - silenceuncrio/diary GitHub Wiki

0905

驗收昨天下班執行的每 60 分鐘的 schedule reboot

image

PASS

今天 release 我負責驗收的版本有

  • Generic(TG)
  • Azuretec(TG)
  • Xentino(MR401-TPG)
  • Advice

目前手上測試的為 Generic(TG)

0950

ariel 希望我的 schedule reboot 在 apply 的時候就寫個 log 提醒甚麼時候會 reboot

1015

image

commit cb1e7c027fac562bedac51eb5366a5ad56d0c573
Refs: [release/v1.71], {origin/release/v1.71}
Author: jeffrey <[email protected]>
Date:   Wed Aug 29 10:15:05 2018 +0800

    give some system log while user apply the schedule reboot

 .../icos/icoslib/schedule_reboot/schedule_reboot.c | 42 ++++++++++++++++++++++
 1 file changed, 42 insertions(+)

1040

來測 Xentino 寬溫的版本

1115

測一下 schedule reboot 的 per day

由 log 來驗收

意外發現我開機時 schedule reboot 會 apply 兩次

image

趕緊修修

diff --git a/proscend/prosrc/icos/icoslib/schedule_reboot/schedule_reboot.c b/proscend/prosrc/icos/icoslib/schedule_reboot/schedule_reboot.c
index d809ac9..cf582c1 100644
--- a/proscend/prosrc/icos/icoslib/schedule_reboot/schedule_reboot.c
+++ b/proscend/prosrc/icos/icoslib/schedule_reboot/schedule_reboot.c
@@ -426,7 +426,6 @@ static int _notify_handler(PRO_EVENT *pevent)
 {
     switch(pevent->event_id)
     {
-        case ICOS_BOOTINIT_DONE:
         case ICOS_UCAST_MODULE_APPLY:
             {
                 schedule_reboot_t setting;

成功

image

上 code

commit e86d4467d515868b7c513791df62d05637ced7b5
Refs: [release/v1.71], {origin/release/v1.71}
Author: jeffrey <[email protected]>
Date:   Wed Aug 29 11:27:24 2018 +0800

    ignore the ICOS_BOOTINIT_DONE event, or we will apply twice

 proscend/prosrc/icos/icoslib/schedule_reboot/schedule_reboot.c | 1 -
 1 file changed, 1 deletion(-)

1720

今天的 release 都驗證完畢