You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2021/07/28 18:32:52 UTC

[GitHub] [incubator-nuttx] gustavonihei commented on a change in pull request #4233: board/ctrl: Add BOARDIOC_BOOT_IMAGE for loading an application image

gustavonihei commented on a change in pull request #4233:
URL: https://github.com/apache/incubator-nuttx/pull/4233#discussion_r678556077



##########
File path: include/nuttx/board.h
##########
@@ -331,6 +331,28 @@ int board_uniquekey(FAR uint8_t *uniquekey);
 int board_switch_boot(FAR const char *system);
 #endif
 
+/****************************************************************************
+ * Name:  board_load_appimage
+ *
+ * Description:
+ *   Load an application image from a given load address and perform the
+ *   required actions for executing it (e.g. loading the Program Counter
+ *   register with the application image entry point address).
+ *
+ * Input Parameters:
+ *   loadaddr - Load address of the application image
+ *
+ * Returned Value:
+ *   If this function returns, then it was not possible to load the
+ *   application image due to some constraints. The return value in this case
+ *   is a board-specific reason for the failure.
+ *
+ ****************************************************************************/
+
+#ifdef CONFIG_BOARDCTL_LOAD_APPIMAGE
+int board_load_appimage(uintptr_t loadaddr);

Review comment:
       I've changed `board_boot_image` to receive a string path instead of the address.
   
   > It's general question to get the block device offset and size, we can reference how BSD or Linux define the IOCTL. At least FIOC_MMAP/MTDIOC_XIPBASE can answer some query.
   
   See https://github.com/apache/incubator-nuttx/pull/4248, there I've proposed a new IOCTL for addressing this requirement.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org