Lines Matching +full:x86 +full:- +full:openbsd

1 // SPDX-License-Identifier: GPL-2.0+
5 * (C) Copyright 2000-2006
30 #include <u-boot/md5.h>
31 #include <u-boot/sha1.h>
47 #include <u-boot/md5.h>
56 #include <u-boot/crc.h>
66 { IH_ARCH_I386, "x86", "Intel x86", },
88 { IH_ARCH_RISCV, "riscv", "RISC-V", },
89 { -1, "", "", },
94 { IH_OS_ARM_TRUSTED_FIRMWARE, "arm-trusted-firmware", "ARM Trusted Firmware" },
104 { IH_OS_U_BOOT, "u-boot", "U-Boot", },
119 { IH_OS_OPENBSD, "openbsd", "OpenBSD", },
129 { -1, "", "", },
145 { IH_TYPE_MULTI, "multi", "Multi-File Image", },
155 { IH_TYPE_ATMELIMAGE, "atmelimage", "ATMEL ROM-Boot Image",},
156 { IH_TYPE_X86_SETUP, "x86_setup", "x86 setup.bin", },
168 { IH_TYPE_PMMC, "pmmc", "TI Power Management Micro-Controller Firmware",},
171 { -1, "", "", },
181 { -1, "", "", },
206 /* Copy header so we can blank CRC field for re-calculation */ in image_check_hcrc()
225 * image_multi_count - get component (sub-image) count
254 * image_multi_getimg - get component data address and size
294 /* add up i-th component size, rounding up to 4 bytes */ in image_multi_getimg()
298 /* calculate idx-th component data address */ in image_multi_getimg()
319 * image_print_contents - prints out the contents of the legacy format image
372 image_get_load(hdr) - image_get_header_size(), in image_print_contents()
374 - 0x1FE0); in image_print_contents()
382 * image_get_ramdisk - get and verify ramdisk image
443 /* Shared dual-format routines */
477 return gd->bd->bi_dram[0].start; in env_get_bootm_low()
494 start = gd->bd->bi_dram[0].start; in env_get_bootm_size()
495 size = gd->bd->bi_dram[0].size; in env_get_bootm_size()
497 start = gd->bd->bi_memstart; in env_get_bootm_size()
498 size = gd->bd->bi_memsize; in env_get_bootm_size()
507 return size - (tmp - start); in env_get_bootm_size()
540 to -= tail; in memmove_wd()
541 from -= tail; in memmove_wd()
548 len -= tail; in memmove_wd()
575 printf("%4d-%02d-%02d %2d:%02d:%02d UTC\n", in genimg_print_time()
586 for (; table->id >= 0; ++table) { in get_table_entry()
587 if (table->id == id) in get_table_entry()
600 sizeof(msg) - sizeof(unknown_str)); in unknown_msg()
606 * get_cat_table_entry_name - translate entry id to long name
623 return entry->lname; in genimg_get_cat_name()
625 return entry->lname + gd->reloc_off; in genimg_get_cat_name()
630 * get_cat_table_entry_short_name - translate entry id to short name
647 return entry->sname; in genimg_get_cat_short_name()
649 return entry->sname + gd->reloc_off; in genimg_get_cat_short_name()
664 * get_table_entry_name - translate entry id to long name
683 return table->lname; in get_table_entry_name()
685 return table->lname + gd->reloc_off; in get_table_entry_name()
711 return table->sname; in genimg_get_short_name()
713 return table->sname + gd->reloc_off; in genimg_get_short_name()
744 * get_table_entry_id - translate short entry name to id
755 * -1 otherwise
762 for (t = table; t->id >= 0; ++t) { in get_table_entry_id()
764 if (t->sname && strcasecmp(t->sname + gd->reloc_off, name) == 0) in get_table_entry_id()
766 if (t->sname && strcasecmp(t->sname, name) == 0) in get_table_entry_id()
768 return (t->id); in get_table_entry_id()
772 return -1; in get_table_entry_id()
797 * genimg_get_kernel_addr_fit - get the real kernel address and return 2
855 * genimg_get_format - get image format type
890 * fit_has_config - check if there is a valid FIT configuration
903 if (images->fit_uname_cfg) in genimg_has_config()
910 * boot_get_ramdisk - main ramdisk handling routine
920 * - multicomponent kernel/ramdisk image,
921 * - commandline provided address of decicated ramdisk image.
944 const char *fit_uname_config = images->fit_uname_cfg; in boot_get_ramdisk()
958 buf = map_sysmem(images->os.start, 0); in boot_get_ramdisk()
967 * Look for a '-' which indicates to ignore the in boot_get_ramdisk()
970 if (select && strcmp(select, "-") == 0) { in boot_get_ramdisk()
982 if (images->fit_uname_os) in boot_get_ramdisk()
983 default_addr = (ulong)images->fit_hdr_os; in boot_get_ramdisk()
1011 rd_addr = map_to_sysmem(images->fit_hdr_os); in boot_get_ramdisk()
1014 if (rd_noffset == -ENOENT) in boot_get_ramdisk()
1035 images->verify); in boot_get_ramdisk()
1057 images->fit_hdr_rd = map_sysmem(rd_addr, 0); in boot_get_ramdisk()
1058 images->fit_uname_rd = fit_uname_ramdisk; in boot_get_ramdisk()
1059 images->fit_noffset_rd = rd_noffset; in boot_get_ramdisk()
1064 android_image_get_ramdisk((void *)images->os.start, in boot_get_ramdisk()
1084 } else if (images->legacy_hdr_valid && in boot_get_ramdisk()
1085 image_check_type(&images->legacy_hdr_os_copy, in boot_get_ramdisk()
1089 * Now check if we have a legacy mult-component image, in boot_get_ramdisk()
1095 (ulong)images->legacy_hdr_os); in boot_get_ramdisk()
1097 image_multi_getimg(images->legacy_hdr_os, 1, &rd_data, &rd_len); in boot_get_ramdisk()
1120 * boot_ramdisk_high - relocate init ramdisk
1137 * 0 - success
1138 * -1 - failure
1164 if (!initrd_copy_to_ram) { /* zero-copy ramdisk support */ in boot_ramdisk_high()
1165 debug(" in-place initrd\n"); in boot_ramdisk_high()
1178 puts("ramdisk - allocation error\n"); in boot_ramdisk_high()
1211 return -1; in boot_ramdisk_high()
1221 return -ENOENT; in boot_get_setup()
1247 tmp_img_addr = map_to_sysmem(images->fit_hdr_os); in boot_get_fpga()
1255 conf_noffset = fit_conf_get_node(buf, images->fit_uname_cfg); in boot_get_fpga()
1266 &(images->fit_uname_cfg), in boot_get_fpga()
1323 if (fit_loadable_handler->type == img_type) in fit_loadable_process()
1325 fit_loadable_handler->handler(img_data, img_len); in fit_loadable_process()
1357 tmp_img_addr = map_to_sysmem(images->fit_hdr_os); in boot_get_loadable()
1365 conf_noffset = fit_conf_get_node(buf, images->fit_uname_cfg); in boot_get_loadable()
1376 &(images->fit_uname_cfg), arch, in boot_get_loadable()
1413 * boot_get_cmdline - allocate and initialize kernel cmdline
1419 * BOOTMAPSZ + env_get_bootm_low() address. If "bootargs" U-Boot environment
1424 * 0 - success
1425 * -1 - failure
1436 return -1; in boot_get_cmdline()
1455 * boot_get_kbd - allocate and initialize kernel copy of board info
1461 * with the current u-boot board info data.
1464 * 0 - success
1465 * -1 - failure
1472 return -1; in boot_get_kbd()
1474 **kbd = *(gd->bd); in boot_get_kbd()
1489 ulong of_size = images->ft_len; in image_setup_linux()
1490 char **of_flat_tree = &images->ft_addr; in image_setup_linux()
1491 struct lmb *lmb = &images->lmb; in image_setup_linux()
1498 ret = boot_get_cmdline(lmb, &images->cmdline_start, in image_setup_linux()
1499 &images->cmdline_end); in image_setup_linux()