Home
last modified time | relevance | path

Searched refs:images (Results 1 – 25 of 143) sorted by relevance

123456

/rk3399_rockchip-uboot/common/
H A Dbootm.c48 bootm_headers_t images; /* pointers to os/initrd/fdt images */ variable
61 char * const argv[], bootm_headers_t *images,
65 static void boot_start_lmb(bootm_headers_t *images) in boot_start_lmb() argument
68 lmb_init(&images->lmb); in boot_start_lmb()
73 lmb_add(&images->lmb, gd->bd->bi_dram[i].start, in boot_start_lmb()
82 lmb_add(&images->lmb, (phys_addr_t)mem_start, mem_size); in boot_start_lmb()
84 arch_lmb_reserve(&images->lmb); in boot_start_lmb()
85 board_lmb_reserve(&images->lmb); in boot_start_lmb()
89 static inline void boot_start_lmb(bootm_headers_t *images) { } in boot_start_lmb() argument
95 memset((void *)&images, 0, sizeof(images)); in bootm_start()
[all …]
H A Dbootm_os.c18 bootm_headers_t *images) in do_bootm_standalone() argument
26 env_set_hex("filesize", images->os.image_len); in do_bootm_standalone()
29 appl = (int (*)(int, char * const []))images->ep; in do_bootm_standalone()
54 bootm_headers_t *images) in do_bootm_netbsd() argument
65 if (!images->legacy_hdr_valid) { in do_bootm_netbsd()
70 hdr = images->legacy_hdr_os; in do_bootm_netbsd()
84 if (image_check_type(&images->legacy_hdr_os_copy, IH_TYPE_MULTI)) { in do_bootm_netbsd()
104 loader = (void (*)(bd_t *, image_header_t *, char *, char *))images->ep; in do_bootm_netbsd()
126 bootm_headers_t *images) in do_bootm_lynxkdi() argument
128 image_header_t *hdr = &images->legacy_hdr_os_copy; in do_bootm_lynxkdi()
[all …]
H A Dimage.c916 int genimg_has_config(bootm_headers_t *images) in genimg_has_config() argument
919 if (images->fit_uname_cfg) in genimg_has_config()
947 int boot_get_ramdisk(int argc, char * const argv[], bootm_headers_t *images, in boot_get_ramdisk() argument
960 const char *fit_uname_config = images->fit_uname_cfg; in boot_get_ramdisk()
974 buf = map_sysmem(images->os.start, 0); in boot_get_ramdisk()
989 } else if (select || genimg_has_config(images)) { in boot_get_ramdisk()
998 if (images->fit_uname_os) in boot_get_ramdisk()
999 default_addr = (ulong)images->fit_hdr_os; in boot_get_ramdisk()
1027 rd_addr = map_to_sysmem(images->fit_hdr_os); in boot_get_ramdisk()
1028 rd_noffset = fit_get_node_from_config(images, in boot_get_ramdisk()
[all …]
H A Dboot_fit.c18 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()
H A Dimage-fdt.c379 bootm_headers_t *images, char **of_flat_tree, ulong *of_size) in boot_get_fdt() argument
390 const char *fit_uname_config = images->fit_uname_cfg; in boot_get_fdt()
403 if (select || genimg_has_config(images)) { in boot_get_fdt()
412 if (images->fit_uname_rd) in boot_get_fdt()
413 default_addr = (ulong)images->fit_hdr_rd; in boot_get_fdt()
414 else if (images->fit_uname_os) in boot_get_fdt()
415 default_addr = (ulong)images->fit_hdr_os; in boot_get_fdt()
439 fdt_addr = map_to_sysmem(images->fit_hdr_os); in boot_get_fdt()
440 fdt_noffset = fit_get_node_from_config(images, in boot_get_fdt()
511 fdt_noffset = boot_get_fdt_fit(images, in boot_get_fdt()
[all …]
/rk3399_rockchip-uboot/arch/powerpc/lib/
H A Dbootm.c43 static void boot_jump_linux(bootm_headers_t *images) in boot_jump_linux() argument
48 char *of_flat_tree = images->ft_addr; in boot_jump_linux()
52 ulong, ulong, ulong))images->ep; in boot_jump_linux()
99 ulong cmd_start = images->cmdline_start; in boot_jump_linux()
100 ulong cmd_end = images->cmdline_end; in boot_jump_linux()
101 ulong initrd_start = images->initrd_start; in boot_jump_linux()
102 ulong initrd_end = images->initrd_end; in boot_jump_linux()
103 bd_t *kbd = images->kbd; in boot_jump_linux()
162 static void boot_prep_linux(bootm_headers_t *images) in boot_prep_linux() argument
170 flush_cache((unsigned long)images->ft_addr, images->ft_len); in boot_prep_linux()
[all …]
/rk3399_rockchip-uboot/arch/x86/lib/
H A Dbootm.c73 static int boot_prep_linux(bootm_headers_t *images) in boot_prep_linux() argument
83 if (images->ft_len) { in boot_prep_linux()
85 if (image_setup_linux(images)) { in boot_prep_linux()
91 if (images->legacy_hdr_valid) { in boot_prep_linux()
92 hdr = images->legacy_hdr_os; in boot_prep_linux()
107 } else if (images->fit_uname_os) { in boot_prep_linux()
108 ret = fit_image_get_data(images->fit_hdr_os, in boot_prep_linux()
109 images->fit_noffset_os, in boot_prep_linux()
124 images->os.load = load_address; in boot_prep_linux()
126 images->ep = (ulong)base_ptr; in boot_prep_linux()
[all …]
/rk3399_rockchip-uboot/arch/mips/lib/
H A Dbootm.c77 static void linux_cmdline_legacy(bootm_headers_t *images) in linux_cmdline_legacy() argument
117 static void linux_cmdline_append(bootm_headers_t *images) in linux_cmdline_append() argument
128 rd_start = images->initrd_start; in linux_cmdline_append()
129 rd_size = images->initrd_end - images->initrd_start; in linux_cmdline_append()
170 static void linux_env_legacy(bootm_headers_t *images) in linux_env_legacy() argument
186 rd_start = UNCACHED_SDRAM(images->initrd_start); in linux_env_legacy()
187 rd_size = images->initrd_end - images->initrd_start; in linux_env_legacy()
219 static int boot_reloc_ramdisk(bootm_headers_t *images) in boot_reloc_ramdisk() argument
221 ulong rd_len = images->rd_end - images->rd_start; in boot_reloc_ramdisk()
227 if (images->state & BOOTM_STATE_RAMDISK) { in boot_reloc_ramdisk()
[all …]
/rk3399_rockchip-uboot/arch/arm/lib/
H A Dbootm.c73 __weak void board_quiesce_devices(void *images) in board_quiesce_devices() argument
82 static void announce_and_cleanup(bootm_headers_t *images, int fake) in announce_and_cleanup() argument
98 board_quiesce_devices(images); in announce_and_cleanup()
233 static void boot_prep_linux(bootm_headers_t *images) in boot_prep_linux() argument
237 if (IMAGE_ENABLE_OF_LIBFDT && images->ft_len) { in boot_prep_linux()
240 if (image_setup_linux(images)) { in boot_prep_linux()
264 if (images->initrd_start && images->initrd_end) { in boot_prep_linux()
265 setup_initrd_tag(gd->bd, images->initrd_start, in boot_prep_linux()
266 images->initrd_end); in boot_prep_linux()
267 } else if (images->rd_start && images->rd_end) { in boot_prep_linux()
[all …]
/rk3399_rockchip-uboot/cmd/
H A Dbooti.c35 static int booti_setup(bootm_headers_t *images) in booti_setup() argument
41 ih = (struct Image_header *)map_sysmem(images->ep, 0); in booti_setup()
69 dst = images->ep - text_offset; in booti_setup()
77 if (images->ep != dst) { in booti_setup()
80 debug("Moving Image from 0x%lx to 0x%llx\n", images->ep, dst); in booti_setup()
82 src = (void *)images->ep; in booti_setup()
83 images->ep = dst; in booti_setup()
94 char * const argv[], bootm_headers_t *images) in booti_start() argument
100 images, 1); in booti_start()
104 images->ep = load_addr; in booti_start()
[all …]
H A Dbootz.c26 char * const argv[], bootm_headers_t *images) in bootz_start() argument
32 images, 1); in bootz_start()
36 images->ep = load_addr; in bootz_start()
40 images->ep = simple_strtoul(argv[0], NULL, 16); in bootz_start()
42 images->ep); in bootz_start()
45 ret = bootz_setup(images->ep, &zi_start, &zi_end); in bootz_start()
49 lmb_reserve(&images->lmb, images->ep, zi_end - zi_start); in bootz_start()
68 if (bootz_start(cmdtp, flag, argc, argv, &images)) in do_bootz()
77 images.os.os = IH_OS_LINUX; in do_bootz()
84 &images, 1); in do_bootz()
H A Dbootrkp.c132 static void boot_start_lmb(bootm_headers_t *images) in boot_start_lmb() argument
134 lmb_init(&images->lmb); in boot_start_lmb()
139 lmb_add(&images->lmb, gd->bd->bi_dram[i].start, in boot_start_lmb()
148 lmb_add(&images->lmb, (phys_addr_t)mem_start, mem_size); in boot_start_lmb()
150 arch_lmb_reserve(&images->lmb); in boot_start_lmb()
151 board_lmb_reserve(&images->lmb); in boot_start_lmb()
154 static inline void boot_start_lmb(bootm_headers_t *images) { } in boot_start_lmb() argument
157 static void boot_lmb_init(bootm_headers_t *images) in boot_lmb_init() argument
159 boot_start_lmb(images); in boot_lmb_init()
160 images->state = BOOTM_STATE_OS_GO; in boot_lmb_init()
[all …]
/rk3399_rockchip-uboot/arch/arc/lib/
H A Dbootm.c50 static void boot_prep_linux(bootm_headers_t *images) in boot_prep_linux() argument
52 if (image_setup_linux(images)) in boot_prep_linux()
60 static void boot_jump_linux(bootm_headers_t *images, int flag) in boot_jump_linux() argument
66 kernel_entry = (void (*)(int, int, uint))images->ep; in boot_jump_linux()
78 if (IMAGE_ENABLE_OF_LIBFDT && images->ft_len) { in boot_jump_linux()
80 r2 = (unsigned int)images->ft_addr; in boot_jump_linux()
93 int do_bootm_linux(int flag, int argc, char *argv[], bootm_headers_t *images) in do_bootm_linux() argument
100 boot_prep_linux(images); in do_bootm_linux()
105 boot_jump_linux(images, flag); in do_bootm_linux()
109 boot_prep_linux(images); in do_bootm_linux()
[all …]
/rk3399_rockchip-uboot/arch/microblaze/lib/
H A Dbootm.c21 bootm_headers_t *images) in do_bootm_linux() argument
42 if (images->ft_len) in do_bootm_linux()
43 of_flat_tree = images->ft_addr; in do_bootm_linux()
46 thekernel = (void (*)(char *, ulong, ulong))images->ep; in do_bootm_linux()
49 ret = boot_get_ramdisk(argc, argv, images, IH_ARCH_MICROBLAZE, in do_bootm_linux()
60 if (images->rd_start && images->rd_end && of_flat_tree) in do_bootm_linux()
61 ret = fdt_initrd(of_flat_tree, images->rd_start, in do_bootm_linux()
62 images->rd_end); in do_bootm_linux()
/rk3399_rockchip-uboot/arch/m68k/lib/
H A Dbootm.c51 int do_bootm_linux(int flag, int argc, char * const argv[], bootm_headers_t *images) in do_bootm_linux() argument
56 struct lmb *lmb = &images->lmb; in do_bootm_linux()
75 ret = image_setup_linux(images); in do_bootm_linux()
79 kernel = (void (*)(bd_t *, ulong, ulong, ulong, ulong))images->ep; in do_bootm_linux()
95 (*kernel)(kbd, images->initrd_start, images->initrd_end, in do_bootm_linux()
96 images->cmdline_start, images->cmdline_end); in do_bootm_linux()
/rk3399_rockchip-uboot/arch/sh/lib/
H A Dbootm.c53 int do_bootm_linux(int flag, int argc, char * const argv[], bootm_headers_t *images) in do_bootm_linux() argument
56 void (*kernel) (void) = (void (*)(void))images->ep; in do_bootm_linux()
59 = (unsigned char *)image_get_load(images->legacy_hdr_os); in do_bootm_linux()
63 unsigned long size = images->ep - (unsigned long)param; in do_bootm_linux()
82 if (images->rd_start || images->rd_end) { in do_bootm_linux()
101 GET_INITRD_START(images->rd_start, CONFIG_SYS_SDRAM_BASE)); in do_bootm_linux()
103 images->rd_end - images->rd_start); in do_bootm_linux()
/rk3399_rockchip-uboot/arch/nios2/lib/
H A Dbootm.c12 int do_bootm_linux(int flag, int argc, char * const argv[], bootm_headers_t *images) in do_bootm_linux() argument
14 void (*kernel)(int, int, int, char *) = (void *)images->ep; in do_bootm_linux()
16 ulong initrd_start = images->rd_start; in do_bootm_linux()
17 ulong initrd_end = images->rd_end; in do_bootm_linux()
21 if (images->ft_len) in do_bootm_linux()
22 of_flat_tree = images->ft_addr; in do_bootm_linux()
/rk3399_rockchip-uboot/scripts/
H A Dandroid2fit.sh62 rm images/ -rf && mkdir -p images/
63 cp ${OUT}/kernel images/
64 cp ${OUT}/resource images/second
65 cp ${OUT}/ramdisk images/
66 cp ${OUT}/rk-kernel.dtb images/dtb
H A Dfit-unpack.sh59 for NAME in `fdtget -l ${ITB} /images`
116 for NAME in `fdtget -l ${ITB} /images`; do
117 COMPRESSION=`fdtget -ts ${ITB} /images/${NAME} compression`
118 …if [ "${COMPRESSION}" == "gzip" ] && fdtget -l "${TMP_ITB}" /images/${NAME}/digest >/dev/null 2>&1…
119 fdtput -t s ${TMP_ITB} /images/${NAME} data "/INCBIN/(${NAME}.gz)"
124 fdtput -t s ${TMP_ITB} /images/${NAME}/digest digest "/INCBIN/(${NAME}.digest)"
125 …elif [ "${COMPRESSION}" == "lzma" ] && fdtget -l "${TMP_ITB}" /images/${NAME}/digest >/dev/null 2>…
126 fdtput -t s ${TMP_ITB} /images/${NAME} data "/INCBIN/(${NAME}.lzma)"
135 fdtput -t s ${TMP_ITB} /images/${NAME}/digest digest "/INCBIN/(${NAME}.digest)"
137 fdtput -t s ${TMP_ITB} /images/${NAME} data "/INCBIN/(${NAME})"
/rk3399_rockchip-uboot/tools/binman/
H A Dcontrol.py22 images = OrderedDict() variable
35 images = OrderedDict()
38 images[node.name] = Image(node.name, node)
40 images['image'] = Image('image', binman_node)
41 return images
66 global images
100 images = _ReadImageDesc(node)
101 for image in images.values():
/rk3399_rockchip-uboot/arch/arm/mach-rockchip/
H A Dmake_fit_boot.sh11 if [ ! -f ${srctree}/images/ramdisk ]; then
12 touch ${srctree}/images/ramdisk
16 gzip -k -f -9 ${srctree}/images/kernel
19 ${srctree}/scripts/compress.sh lz4 ${srctree}/images/kernel
44 images {
105 sign-images = "fdt", "kernel", "ramdisk", "multi";
/rk3399_rockchip-uboot/common/spl/
H A Dspl_fit.c38 static int spl_fit_get_image_name(const void *fit, int images, in spl_fit_get_image_name() argument
92 static int spl_fit_get_image_node(const void *fit, int images, in spl_fit_get_image_node() argument
99 err = spl_fit_get_image_name(fit, images, type, index, &str); in spl_fit_get_image_node()
105 node = fdt_subnode_offset(fit, images, str); in spl_fit_get_image_node()
401 void *fit, int images, ulong base_offset) in spl_fit_append_fdt() argument
407 node = spl_fit_get_image_node(fit, images, FIT_FDT_PROP, 0); in spl_fit_append_fdt()
437 node = spl_fit_get_image_node(fit, images, FIT_FDT_PROP, 1); in spl_fit_append_fdt()
452 static int spl_fit_record_loadable(const void *fit, int images, int index, in spl_fit_record_loadable() argument
460 ret = spl_fit_get_image_name(fit, images, "loadables", in spl_fit_record_loadable()
465 node = spl_fit_get_image_node(fit, images, "loadables", index); in spl_fit_record_loadable()
[all …]
/rk3399_rockchip-uboot/arch/xtensa/lib/
H A Dbootm.c135 int do_bootm_linux(int flag, int argc, char *argv[], bootm_headers_t *images) in do_bootm_linux() argument
146 if (images->rd_start) { in do_bootm_linux()
147 initrd_start = images->rd_start; in do_bootm_linux()
148 initrd_end = images->rd_end; in do_bootm_linux()
165 if (images->ft_addr) in do_bootm_linux()
166 params = setup_fdt_tag(params, images->ft_addr); in do_bootm_linux()
176 (ulong)images->ep); in do_bootm_linux()
190 : : "a" (params_start), "a" (images->ep) in do_bootm_linux()
/rk3399_rockchip-uboot/arch/nds32/lib/
H A Dbootm.c39 int do_bootm_linux(int flag, int argc, char *argv[], bootm_headers_t *images) in do_bootm_linux() argument
59 theKernel = (void (*)(int, int, uint))images->ep; in do_bootm_linux()
72 if (IMAGE_ENABLE_OF_LIBFDT && images->ft_len) { in do_bootm_linux()
75 if (image_setup_linux(images)) { in do_bootm_linux()
100 if (images->rd_start && images->rd_end) in do_bootm_linux()
101 setup_initrd_tag(bd, images->rd_start, images->rd_end); in do_bootm_linux()
117 if (IMAGE_ENABLE_OF_LIBFDT && images->ft_len) in do_bootm_linux()
118 theKernel(0, machid, (unsigned long)images->ft_addr); in do_bootm_linux()
/rk3399_rockchip-uboot/include/
H A Dbootm.h36 bootm_headers_t *images);
47 bootm_headers_t *images, boot_os_fn *boot_fn);
55 int states, bootm_headers_t *images, int boot_progress);
57 void arch_preboot_os(uint32_t bootm_state, bootm_headers_t *images);

123456