Home | History | Annotate | Download | only in installboot

Lines Matching refs:board

75  * The board database is implemented as a property list.  The base
82 * base board plist is specific to the $MACHINE (e.g. "evbarm"), and
95 * The schema of the base board plist is as follows:
101 * -- Value: dictionary representing a board object.
104 * <key>example,example-board</key>
108 * -- Value: string containing the board description.
112 * <string>Example Co. Example Board</string>
116 * -- Value: string representing the board-specific
163 * Each overlay includes complete board objects that entirely replace
164 * the system-provided board objects in memory. Some of the keys in
165 * overlay board objects are computed at run-time and should not appear
168 * The schema of the overlay board plists are as follows:
174 * -- Value: dictionary representing a board object.
177 * <key>example,example-board</key>
181 * -- Value: string containing the board description.
185 * <string>Example Co. Example Board</string>
196 * -- board uses a single set of steps for all boot media
335 * <!-- This board's SPI NOR flash is 16Mbit (2MB) in size,
412 * <-- Steps for eMMC are identical to SDMMC on this board. -->
447 * Returns the path to the base board db file.
501 * overwrite existing entries as we find them, thus the last board
633 validate_ubinstall_object(evb_board board, evb_ubinstall obj)
646 evb_ubinstall tobj = prop_dictionary_get(board,
721 * validated the board object, so simply make sure it's not
758 * Base board objects must have neither.
789 * Validate all of the board objects and add them to the board
794 prop_dictionary_t board;
796 board = prop_dictionary_get_keysym(overlay, key);
797 assert(board != NULL);
798 if (!validate_board_object(board, true)) {
799 warnx("invalid board object in '%s': '%s'", path,
808 prop_dictionary_set(board, board_u_boot_path_key, string);
811 /* Insert into board db. */
812 prop_dictionary_set_keysym(params->mach_data, key, board);
884 * Load the base board db.
911 warnx("unable to parse board db '%s'", path);
924 * Validate all of the board objects and remove any bad ones.
929 prop_dictionary_t board;
931 board = prop_dictionary_get_keysym(board_db, key);
932 assert(board != NULL);
933 if (!validate_board_object(board, false)) {
934 warnx("invalid board object in '%s': '%s'", path,
949 * Load the board database.
963 * Native board name guessing methods.
1066 evb_board board;
1086 board = prop_dictionary_get(params->mach_data, sp);
1087 if (board != NULL) {
1090 return board;
1105 * Host-tool and native board name guessing methods.
1143 evb_board board = NULL;
1180 board = prop_dictionary_get(params->mach_data, compatible);
1181 if (board != NULL) {
1191 return board;
1204 * Return the specified board object from the database.
1210 evb_board board = NULL;
1227 * Logic for determing board type that can be shared by host-tool
1235 board_name = params->board;
1240 board = evb_db_get_board_from_dtb(params, &board_name);
1241 if ((params->flags & IB_VERBOSE) && board != NULL)
1242 printf("Found board '%s' from DTB data.\n", board_name);
1246 * outcome, this is like specifying the board directly,
1256 * Non-host-tool logic for determining the board type goes here.
1261 board = evb_db_get_board_from_ofw(params, &board_name);
1262 if ((params->flags & IB_VERBOSE) && board != NULL)
1263 printf("Found board '%s' from OFW data.\n", board_name);
1278 warnx("Must specify board=...");
1281 board_name = params->board;
1286 if (board == NULL)
1287 board = prop_dictionary_get(params->mach_data, board_name);
1288 if (board == NULL)
1289 warnx("Unknown board '%s'", board_name);
1291 /* Ensure params->board is always valid. */
1292 params->board = board_name;
1295 printf("Board: %s\n", evb_board_get_description(params, board));
1298 return board;
1310 evb_board board;
1322 board = prop_dictionary_get_keysym(params->mach_data, key);
1323 assert(board != NULL);
1324 uboot_pkg = evb_board_get_uboot_pkg(params, board);
1325 uboot_path = evb_board_get_uboot_path(params, board);
1333 evb_board_get_description(params, board));
1349 * Return the description for the specified board.
1352 evb_board_get_description(ib_params *params, evb_board board)
1356 string = prop_dictionary_get(board, board_description_key);
1362 * Return the u-boot package name for the specified board.
1365 evb_board_get_uboot_pkg(ib_params *params, evb_board board)
1369 string = prop_dictionary_get(board, board_u_boot_pkg_key);
1377 * Return the u-boot installed package path for the specified board.
1380 evb_board_get_uboot_path(ib_params *params, evb_board board)
1384 string = prop_dictionary_get(board, board_u_boot_path_key);
1392 * Return the u-boot install object for the specified board,
1396 evb_board_get_uboot_install(ib_params *params, evb_board board)
1400 install = prop_dictionary_get(board, board_u_boot_install_key);
1404 warnx("Must specify media=... for board '%s'",
1405 params->board);
1414 warnx("media=... is not a valid option for board '%s'",
1415 params->board);
1424 install = prop_dictionary_get(board, install_key);
1432 install = prop_dictionary_get(board,
1441 prop_array_t array = evb_board_copy_uboot_media(params, board);
1456 * Return the valid media types for the given board as an array
1463 evb_board_copy_uboot_media(ib_params *params, evb_board board)
1466 prop_object_iterator_t iter = prop_dictionary_iterator(board);
1642 * Build a file path from the u-boot base path in the board object
1646 evb_uboot_file_path(ib_params *params, evb_board board, evb_ubstep step,
1649 const char *base_path = evb_board_get_uboot_path(params, board);
1865 evb_uboot_setboot(ib_params *params, evb_board board)
1873 * If we don't have a u-boot path for this board, it means
1877 if (evb_board_get_uboot_path(params, board) == NULL) {
1878 warnx("No u-boot package found for board '%s'",
1879 params->board);
1880 uboot_file = evb_board_get_uboot_pkg(params, board);
1887 evb_ubinstall install = evb_board_get_uboot_install(params, board);
1905 uboot_file = evb_uboot_file_path(params, board, step,
1955 uboot_file = evb_uboot_file_path(params, board, step,