/u-boot/common/ |
A D | bootm.c | 79 memset((void *)&images, 0, sizeof(images)); in bootm_start() 99 &images, &images.os.image_start, &images.os.image_len); in bootm_find_os() 150 images.os.end = fit_get_end(images.fit_hdr_os); in bootm_find_os() 168 images.ep = images.os.load; in bootm_find_os() 189 images.ep = image_get_ep(&images.legacy_hdr_os_copy); in bootm_find_os() 195 images.fit_noffset_os, &images.ep); in bootm_find_os() 221 images.os.load = images.os.image_start; in bootm_find_os() 222 images.ep += images.os.image_start; in bootm_find_os() 256 &images.rd_start, &images.rd_end); in bootm_find_images() 277 &images.ft_addr, &images.ft_len); in bootm_find_images() [all …]
|
A D | bootm_os.c | 63 bootm_headers_t *images) in do_bootm_netbsd() argument 79 hdr = images->legacy_hdr_os; in do_bootm_netbsd() 190 bootm_headers_t *images) in do_bootm_ose() argument 313 boot_prep_vxworks(images); in do_bootvx_fdt() 324 boot_jump_vxworks(images); in do_bootvx_fdt() 342 do_bootvx_fdt(images); in do_bootm_vxworks_legacy() 482 bootm_headers_t *images) in do_bootm_tee() argument 493 images->os.load, in do_bootm_tee() 510 bootm_headers_t *images) in do_bootm_efi() argument 543 images->ep); in do_bootm_efi() [all …]
|
A D | boot_fit.c | 18 int images, node, fdt_len, fdt_node, fdt_offset; in fdt_offset() local 25 images = fdt_path_offset(fit, FIT_IMAGES_PATH); in fdt_offset() 26 if (images < 0) { in fdt_offset() 27 debug("%s: Cannot find /images node: %d\n", __func__, images); in fdt_offset() 38 fdt_node = fdt_subnode_offset(fit, images, fdt_name); in fdt_offset()
|
A D | image-fdt.c | 298 if (select || genimg_has_config(images)) { in boot_get_fdt() 307 if (images->fit_uname_rd) in boot_get_fdt() 308 default_addr = (ulong)images->fit_hdr_rd; in boot_get_fdt() 309 else if (images->fit_uname_os) in boot_get_fdt() 310 default_addr = (ulong)images->fit_hdr_os; in boot_get_fdt() 406 fdt_noffset = boot_get_fdt_fit(images, in boot_get_fdt() 415 images->fit_uname_fdt = fit_uname_fdt; in boot_get_fdt() 416 images->fit_noffset_fdt = fdt_noffset; in boot_get_fdt() 438 } else if (images->legacy_hdr_valid && in boot_get_fdt() 448 (ulong)images->legacy_hdr_os); in boot_get_fdt() [all …]
|
A D | image.c | 1133 if (images->fit_uname_cfg) in genimg_has_config() 1212 if (images->fit_uname_os) in boot_get_ramdisk() 1265 images->verify); in boot_get_ramdisk() 1325 (ulong)images->legacy_hdr_os); in boot_get_ramdisk() 1469 if (!genimg_has_config(images)) { in boot_get_fpga() 1496 &(images->fit_uname_cfg), in boot_get_fpga() 1579 if (!genimg_has_config(images)) { in boot_get_loadable() 1606 &(images->fit_uname_cfg), arch, in boot_get_loadable() 1721 ulong of_size = images->ft_len; in image_setup_linux() 1723 struct lmb *lmb = &images->lmb; in image_setup_linux() [all …]
|
/u-boot/arch/powerpc/lib/ |
A D | bootm.c | 175 flush_cache((unsigned long)images->ft_addr, images->ft_len); in boot_prep_linux() 226 ret = boot_bd_t_linux(images); in boot_body_linux() 238 bootm_headers_t *images) in do_bootm_linux() argument 243 boot_cmdline_linux(images); in do_bootm_linux() 248 boot_bd_t_linux(images); in do_bootm_linux() 253 boot_prep_linux(images); in do_bootm_linux() 257 boot_prep_linux(images); in do_bootm_linux() 261 boot_jump_linux(images); in do_bootm_linux() 299 if (!images->ft_addr) in boot_prep_vxworks() 320 flush_cache((unsigned long)images->ft_addr, images->ft_len); in boot_prep_vxworks() [all …]
|
/u-boot/arch/x86/lib/ |
A D | bootm.c | 82 if (images->ft_len) { in boot_prep_linux() 90 if (images->legacy_hdr_valid) { in boot_prep_linux() 91 hdr = images->legacy_hdr_os; in boot_prep_linux() 108 images->fit_noffset_os, in boot_prep_linux() 129 images->ep = (ulong)base_ptr; in boot_prep_linux() 130 } else if (images->ep) { in boot_prep_linux() 139 0, images->rd_start, in boot_prep_linux() 140 images->rd_end - images->rd_start, 0); in boot_prep_linux() 205 images->ep, images->os.load); in boot_jump_linux() 207 return boot_linux_kernel(images->ep, images->os.load, in boot_jump_linux() [all …]
|
/u-boot/arch/arm/mach-nexell/ |
A D | cmd_boot_linux.c | 24 bootm_headers_t *images) in boot_go_set_os() argument 28 images->os.type = IH_TYPE_KERNEL; in boot_go_set_os() 29 images->os.comp = IH_COMP_NONE; in boot_go_set_os() 30 images->os.os = IH_OS_LINUX; in boot_go_set_os() 32 images->ep = images->os.load; in boot_go_set_os() 34 images->os.arch = IH_ARCH_ARM; in boot_go_set_os() 36 images->os.arch = IH_ARCH_ARM64; in boot_go_set_os() 68 lmb_init(&images->lmb); in boot_start_lmb() 75 arch_lmb_reserve(&images->lmb); in boot_start_lmb() 90 boot_start_lmb(images); in do_boot_linux() [all …]
|
/u-boot/arch/mips/lib/ |
A D | bootm.c | 133 rd_size = images->initrd_end - images->initrd_start; in linux_cmdline_append() 191 rd_size = images->initrd_end - images->initrd_start; in linux_env_legacy() 235 boot_fdt_add_mem_rsv_regions(&images->lmb, images->ft_addr); in boot_reloc_fdt() 236 return boot_relocate_fdt(&images->lmb, &images->ft_addr, in boot_reloc_fdt() 237 &images->ft_len); in boot_reloc_fdt() 255 images->initrd_start = virt_to_phys((void *)images->initrd_start); in boot_setup_fdt() 256 images->initrd_end = virt_to_phys((void *)images->initrd_end); in boot_setup_fdt() 257 return image_setup_libfdt(images, images->ft_addr, images->ft_len, in boot_setup_fdt() 258 &images->lmb); in boot_setup_fdt() 264 boot_reloc_fdt(images); in boot_prep_linux() [all …]
|
/u-boot/arch/riscv/lib/ |
A D | bootm.c | 67 if (IMAGE_ENABLE_OF_LIBFDT && images->ft_len) { in boot_prep_linux() 70 if (image_setup_linux(images)) { in boot_prep_linux() 89 kernel = (void (*)(ulong, void *))images->ep; in boot_jump_linux() 101 ret = smp_call_function(images->ep, in boot_jump_linux() 102 (ulong)images->ft_addr, 0, 0); in boot_jump_linux() 112 bootm_headers_t *images) in do_bootm_linux() argument 119 boot_prep_linux(images); in do_bootm_linux() 124 boot_jump_linux(images, flag); in do_bootm_linux() 128 boot_prep_linux(images); in do_bootm_linux() 129 boot_jump_linux(images, flag); in do_bootm_linux() [all …]
|
/u-boot/arch/arm/lib/ |
A D | bootm.c | 275 if (images->initrd_start && images->initrd_end) { in boot_prep_linux() 278 } else if (images->rd_start && images->rd_end) { in boot_prep_linux() 280 images->rd_end); in boot_prep_linux() 290 board_prep_linux(images); in boot_prep_linux() 330 (u64)images.ep, in switch_to_el1() 334 images.ep, in switch_to_el1() 373 (u64)images->ep, in boot_jump_linux() 377 images->ep, in boot_jump_linux() 448 boot_prep_linux(images); in do_bootm_linux() 459 if (images->ft_addr) { in boot_prep_vxworks() [all …]
|
/u-boot/arch/microblaze/lib/ |
A D | bootm.c | 69 ulong dt = (ulong)images->ft_addr; in boot_jump_linux() 70 ulong rd_start = images->initrd_start; in boot_jump_linux() 71 ulong cmdline = images->cmdline_start; in boot_jump_linux() 102 static void boot_prep_linux(bootm_headers_t *images) in boot_prep_linux() argument 104 if (IMAGE_ENABLE_OF_LIBFDT && images->ft_len) { in boot_prep_linux() 106 if (image_setup_linux(images)) { in boot_prep_linux() 114 bootm_headers_t *images) in do_bootm_linux() argument 123 boot_prep_linux(images); in do_bootm_linux() 128 boot_jump_linux(images, flag); in do_bootm_linux() 132 boot_prep_linux(images); in do_bootm_linux() [all …]
|
/u-boot/cmd/ |
A D | bootz.c | 28 char *const argv[], bootm_headers_t *images) in bootz_start() argument 34 images, 1); in bootz_start() 38 images->ep = image_load_addr; in bootz_start() 42 images->ep = simple_strtoul(argv[0], NULL, 16); in bootz_start() 44 images->ep); in bootz_start() 47 ret = bootz_setup(images->ep, &zi_start, &zi_end); in bootz_start() 51 lmb_reserve(&images->lmb, images->ep, zi_end - zi_start); in bootz_start() 57 if (bootm_find_images(flag, argc, argv, images->ep, zi_end - zi_start)) in bootz_start() 70 if (bootz_start(cmdtp, flag, argc, argv, &images)) in do_bootz() 79 images.os.os = IH_OS_LINUX; in do_bootz() [all …]
|
A D | booti.c | 24 char *const argv[], bootm_headers_t *images) in booti_start() argument 38 images, 1); in booti_start() 88 images->ep = relocated_addr; in booti_start() 89 images->os.start = relocated_addr; in booti_start() 90 images->os.end = relocated_addr + image_size; in booti_start() 92 lmb_reserve(&images->lmb, images->ep, le32_to_cpu(image_size)); in booti_start() 111 if (booti_start(cmdtp, flag, argc, argv, &images)) in do_booti() 120 images.os.os = IH_OS_LINUX; in do_booti() 122 images.os.arch = IH_ARCH_RISCV; in do_booti() 124 images.os.arch = IH_ARCH_ARM64; in do_booti() [all …]
|
A D | spl.c | 125 (void *)images.ft_addr); in spl_export() 126 env_set_addr("fdtargsaddr", images.ft_addr); in spl_export() 127 env_set_hex("fdtargslen", fdt_totalsize(images.ft_addr)); in spl_export() 129 if (fdt_totalsize(images.ft_addr) > in spl_export()
|
/u-boot/arch/arc/lib/ |
A D | bootm.c | 55 __weak int board_prep_linux(bootm_headers_t *images) { return 0; } in board_prep_linux() argument 58 static int boot_prep_linux(bootm_headers_t *images) in boot_prep_linux() argument 62 ret = image_setup_linux(images); in boot_prep_linux() 66 return board_prep_linux(images); in boot_prep_linux() 80 static void boot_jump_linux(bootm_headers_t *images, int flag) in boot_jump_linux() argument 86 kernel_entry = images->ep; in boot_jump_linux() 96 if (IMAGE_ENABLE_OF_LIBFDT && images->ft_len) { in boot_jump_linux() 98 r2 = (unsigned int)images->ft_addr; in boot_jump_linux() 110 int do_bootm_linux(int flag, int argc, char *argv[], bootm_headers_t *images) in do_bootm_linux() argument 117 return boot_prep_linux(images); in do_bootm_linux() [all …]
|
/u-boot/arch/m68k/lib/ |
A D | bootm.c | 55 bootm_headers_t *images) in do_bootm_linux() argument 60 struct lmb *lmb = &images->lmb; in do_bootm_linux() 79 ret = image_setup_linux(images); in do_bootm_linux() 83 kernel = (void (*)(struct bd_info *, ulong, ulong, ulong, ulong))images->ep; in do_bootm_linux() 99 (*kernel)(kbd, images->initrd_start, images->initrd_end, in do_bootm_linux() 100 images->cmdline_start, images->cmdline_end); in do_bootm_linux()
|
/u-boot/arch/nios2/lib/ |
A D | bootm.c | 17 bootm_headers_t *images) in do_bootm_linux() argument 19 void (*kernel)(int, int, int, char *) = (void *)images->ep; in do_bootm_linux() 21 ulong initrd_start = images->rd_start; in do_bootm_linux() 22 ulong initrd_end = images->rd_end; in do_bootm_linux() 26 if (images->ft_len) in do_bootm_linux() 27 of_flat_tree = images->ft_addr; in do_bootm_linux()
|
/u-boot/arch/sh/lib/ |
A D | bootm.c | 55 bootm_headers_t *images) in do_bootm_linux() argument 58 void (*kernel) (void) = (void (*)(void))images->ep; in do_bootm_linux() 61 = (unsigned char *)image_get_load(images->legacy_hdr_os); in do_bootm_linux() 65 unsigned long size = images->ep - (unsigned long)param; in do_bootm_linux() 84 if (images->rd_start || images->rd_end) { in do_bootm_linux() 103 GET_INITRD_START(images->rd_start, CONFIG_SYS_SDRAM_BASE)); in do_bootm_linux() 105 images->rd_end - images->rd_start); in do_bootm_linux()
|
/u-boot/arch/arm/mach-k3/ |
A D | sysfw-loader.c | 75 node_offset = fdt_subnode_offset(fit, images, name); in fit_get_data_by_name() 104 int images; in k3_sysfw_load_using_fit() local 110 images = fdt_path_offset(fit, FIT_IMAGES_PATH); in k3_sysfw_load_using_fit() 111 if (images < 0) in k3_sysfw_load_using_fit() 112 panic("Cannot find /images node (%d)\n", images); in k3_sysfw_load_using_fit() 130 int images; in k3_sysfw_configure_using_fit() local 136 images = fdt_path_offset(fit, FIT_IMAGES_PATH); in k3_sysfw_configure_using_fit() 137 if (images < 0) in k3_sysfw_configure_using_fit() 138 panic("Cannot find /images node (%d)\n", images); in k3_sysfw_configure_using_fit() 155 ret = fit_get_data_by_name(fit, images, SYSFW_CFG_PM, in k3_sysfw_configure_using_fit() [all …]
|
/u-boot/arch/xtensa/lib/ |
A D | bootm.c | 137 int do_bootm_linux(int flag, int argc, char *argv[], bootm_headers_t *images) in do_bootm_linux() argument 148 if (images->rd_start) { in do_bootm_linux() 149 initrd_start = images->rd_start; in do_bootm_linux() 150 initrd_end = images->rd_end; in do_bootm_linux() 167 if (images->ft_addr) in do_bootm_linux() 168 params = setup_fdt_tag(params, images->ft_addr); in do_bootm_linux() 178 (ulong)images->ep); in do_bootm_linux() 192 : : "a" (params_start), "a" (images->ep) in do_bootm_linux()
|
/u-boot/arch/nds32/lib/ |
A D | bootm.c | 43 int do_bootm_linux(int flag, int argc, char *argv[], bootm_headers_t *images) in do_bootm_linux() argument 63 theKernel = (void (*)(int, int, uint))images->ep; in do_bootm_linux() 76 if (IMAGE_ENABLE_OF_LIBFDT && images->ft_len) { in do_bootm_linux() 79 if (image_setup_linux(images)) { in do_bootm_linux() 104 if (images->rd_start && images->rd_end) in do_bootm_linux() 105 setup_initrd_tag(bd, images->rd_start, images->rd_end); in do_bootm_linux() 121 if (IMAGE_ENABLE_OF_LIBFDT && images->ft_len) in do_bootm_linux() 122 theKernel(0, machid, (unsigned long)images->ft_addr); in do_bootm_linux()
|
/u-boot/arch/arm/mach-socfpga/ |
A D | board.c | 116 void board_prep_linux(bootm_headers_t *images) in board_prep_linux() argument 124 if (!images->fit_uname_cfg) { in board_prep_linux() 129 env_set_hex("fdt_addr", (ulong)images->ft_addr); in board_prep_linux() 130 debug("images->ft_addr = 0x%08lx\n", (ulong)images->ft_addr); in board_prep_linux()
|
/u-boot/arch/arm/mach-imx/imx8/ |
A D | parse-container.c | 79 struct boot_img_t *images; in read_auth_image() local 88 images = (struct boot_img_t *)((u8 *)container + in read_auth_image() 91 if (images[image_index].offset % info->bl_len) { in read_auth_image() 97 sectors = roundup(images[image_index].size, info->bl_len) / in read_auth_image() 99 sector = images[image_index].offset / info->bl_len + in read_auth_image() 105 (void *)images[image_index].entry) != sectors) { in read_auth_image() 111 if (authenticate_image(&images[image_index], image_index)) { in read_auth_image() 117 return &images[image_index]; in read_auth_image()
|
/u-boot/include/ |
A D | bootm.h | 36 bootm_headers_t *images); 51 bootm_headers_t *images, boot_os_fn *boot_fn); 60 char *const argv[], int states, bootm_headers_t *images,
|