唤醒

Hibernation为最省电的休眠方式,在休眠时会关闭所有电源,因此想唤醒昉·惊鸿-7110 DevKit,唯有power键可用。

执行以下步骤唤醒:
  1. 昉·惊鸿-7110 DevKit进入休眠模式并关闭后,联网使用相同的image.fit文件启动开发板。
  2. 检查休眠恢复后是否可以恢复内核镜像。
以下为唤醒函数的调用过程:
|--late_initcall_sync(software_resume)
|  |--swsusp_check  #  Check is the image is valid of not from swsusp_resume_device device.If it is invalid, the following process
will not be excuted, you can exit and proceed with the normal startup process.
|  |--pm_prepare_console
|  |--__pm_notifier_call_chain
|  |--freeze_processes  # Freeze the processes of the current user space
|  |-load_image_and_restore
|  |  |--lock_device_hotplug
|  |  |--create_basic_memory_bitmaps
|  |  |--swsusp_read
|  |  |--swsusp_close
|  |  |--hibernation_restore  # Restore from the hibernate image
|  |  |  |--resume_target_kernel
|  |  |--swsusp_free
|  |  |--free_basic_memory_bitmaps
|  |  |--unlock_device_hotplug
|  |--thaw_processes  # Thaw the processes of the user sapce.And at this point, the process being thawed and restored is a process in
Hibernate.
|  |--__pm_notifier_call_chain
|  |--pm_restore_console
|  |--swsusp_close