| /u-boot/board/freescale/common/ |
| A D | fsl_validate.c | 251 img->key_len = img->srk_tbl[key_num - 1].key_len; in read_validate_srk_tbl() 253 memcpy(&img->img_key, &(img->srk_tbl[key_num - 1].pkey), in read_validate_srk_tbl() 299 install_ie_tbl(img->ie_addr, img); in read_validate_ie_tbl() 508 (u8 *)(uintptr_t)(img->ehdrloc + img->hdr.srk_tbl_off), in calc_img_key_hash() 515 img->img_key, img->key_len, 1); in calc_img_key_hash() 567 (u8 *)(uintptr_t)(img->ehdrloc + img->hdr.srk_tbl_off), in calc_esbchdr_esbc_hash() 580 img->img_key, img->hdr.key_len, 0); in calc_esbchdr_esbc_hash() 591 (u8 *)(*(img->img_addr_ptr)), img->img_size, 1); in calc_esbchdr_esbc_hash() 839 if (!img) in secboot_init() 909 hdr = &img->hdr; in fsl_secboot_validate() [all …]
|
| /u-boot/tools/ |
| A D | mksunxiboot.c | 67 struct boot_img img; in main() local 74 if ((sizeof(img.header) % 32) != 0) { in main() 113 memset(&img, 0, sizeof(img)); in main() 131 count = read(fd_in, img.code, file_size); in main() 138 img.header.b_instruction = /* b instruction */ in main() 143 img.header.length = in main() 145 img.header.b_instruction = cpu_to_le32(img.header.b_instruction); in main() 146 img.header.length = cpu_to_le32(img.header.length); in main() 154 img.header.dt_name_offset = in main() 163 gen_check_sum(&img.header); in main() [all …]
|
| A D | imx8image.c | 536 boot_img_t *img = &container->img[container->num_images]; in set_image_array_entry() local 539 img->size = size; in set_image_array_entry() 568 img->dst = entry; in set_image_array_entry() 570 img->meta = meta; in set_image_array_entry() 594 img->dst = entry; in set_image_array_entry() 596 img->meta = meta; in set_image_array_entry() 603 img->dst = entry; in set_image_array_entry() 610 img->dst = entry; in set_image_array_entry() 623 img = &container->img[container->num_images]; in set_image_array_entry() 628 img->offset = offset + img->size; in set_image_array_entry() [all …]
|
| A D | kwboot.c | 577 void *img; in kwboot_mmap_image() local 580 img = NULL; in kwboot_mmap_image() 594 img = NULL; in kwboot_mmap_image() 603 img = NULL; in kwboot_mmap_image() 608 return img; in kwboot_mmap_image() 632 hdr = img; in kwboot_img_patch_hdr() 714 void *img; in main() local 723 img = NULL; in main() 810 if (!img) { in main() 838 if (img) { in main() [all …]
|
| /u-boot/test/fs/ |
| A D | fat-noncontig-test.sh | 56 img=${odir}/fat-noncontig.img 59 testfn=noncontig.img 74 if [ ! -f ${img} ]; then 75 fallocate -l 40M ${img} 84 mkfs.fat ${img} 90 sudo mount -o loop,uid=$(id -u) ${img} ${mnt} 97 fn=${mnt}/keep-${sects}.img 99 fn=${mnt}/remove-${sects}.img 103 rm -f ${mnt}/remove-*.img 116 sudo mount -o ro,loop,uid=$(id -u) ${img} ${mnt} [all …]
|
| /u-boot/lib/efi_selftest/ |
| A D | efi_selftest_exception.c | 57 static struct compressed_file_image img = EFI_ST_DISK_IMG; variable 76 ret = boottime->allocate_pool(EFI_LOADER_DATA, img.length, in decompress() 82 boottime->set_mem(buf, img.length, 0); in decompress() 85 if (!img.lines[i].line) in decompress() 87 addr = img.lines[i].addr; in decompress() 89 if (addr + len > img.length) in decompress() 90 len = img.length - addr; in decompress() 91 boottime->copy_mem(buf + addr, img.lines[i].line, len); in decompress() 129 img.length, &handle); in execute()
|
| A D | efi_selftest_startimage_return.c | 37 static struct compressed_file_image img = EFI_ST_DISK_IMG; variable 56 ret = boottime->allocate_pool(EFI_LOADER_DATA, img.length, in decompress() 62 boottime->set_mem(buf, img.length, 0); in decompress() 65 if (!img.lines[i].line) in decompress() 67 addr = img.lines[i].addr; in decompress() 69 if (addr + len > img.length) in decompress() 70 len = img.length - addr; in decompress() 71 boottime->copy_mem(buf + addr, img.lines[i].line, len); in decompress() 128 img.length, &handle); in execute()
|
| A D | efi_selftest_startimage_exit.c | 37 static struct compressed_file_image img = EFI_ST_DISK_IMG; variable 56 ret = boottime->allocate_pool(EFI_LOADER_DATA, img.length, in decompress() 62 boottime->set_mem(buf, img.length, 0); in decompress() 65 if (!img.lines[i].line) in decompress() 67 addr = img.lines[i].addr; in decompress() 69 if (addr + len > img.length) in decompress() 70 len = img.length - addr; in decompress() 71 boottime->copy_mem(buf + addr, img.lines[i].line, len); in decompress() 131 img.length, &handle); in execute()
|
| A D | efi_selftest_load_file.c | 188 if (!img.lines[i].line) in decompress() 190 addr = img.lines[i].addr; in decompress() 192 if (addr + len > img.length) in decompress() 193 len = img.length - addr; in decompress() 227 if (*buffer_size < img.length) { in load_file() 228 *buffer_size = img.length; in load_file() 231 memcpy(buffer, image, img.length); in load_file() 232 *buffer_size = img.length; in load_file() 268 if (*buffer_size < img.length) { in load_file2() 269 *buffer_size = img.length; in load_file2() [all …]
|
| A D | efi_selftest_loadimage.c | 61 static struct compressed_file_image img = EFI_ST_DISK_IMG; variable 280 if (priv.file_pos >= img.length) in read() 282 else if (priv.file_pos + *buffer_size > img.length) in read() 283 *buffer_size = img.length - priv.file_pos; in read() 389 boottime->set_mem(buf, img.length, 0); in decompress() 392 if (!img.lines[i].line) in decompress() 394 addr = img.lines[i].addr; in decompress() 396 if (addr + len > img.length) in decompress() 397 len = img.length - addr; in decompress() 401 priv.file_size = img.length; in decompress() [all …]
|
| A D | efi_selftest_block_device.c | 51 static const struct compressed_disk_image img = EFI_ST_DISK_IMG; variable 85 if ((lba << LB_BLOCK_SIZE) + buffer_size > img.length) in read_blocks() 110 if ((lba << LB_BLOCK_SIZE) + buffer_size > img.length) in write_blocks() 144 ret = boottime->allocate_pool(EFI_LOADER_DATA, img.length, in decompress() 150 boottime->set_mem(buf, img.length, 0); in decompress() 153 if (!img.lines[i].line) in decompress() 155 addr = img.lines[i].addr; in decompress() 157 if (addr + len > img.length) in decompress() 158 len = img.length - addr; in decompress() 159 boottime->copy_mem(buf + addr, img.lines[i].line, len); in decompress() [all …]
|
| /u-boot/test/ |
| A D | nokia_rx51_test.sh | 129 image=ubifs.img 190 truncate -s 50MiB emmc_uboot.img 195 truncate -s 50MiB emmc_emmc.img 201 truncate -s 50MiB emmc_nand.img 206 rm -f mtd_uboot.img 210 rm -f mtd_ram.img 211 …sher -v -x xloader-qemu.bin -s secondary-qemu.bin -k combined.bin -r ubi.img -m rx51 -o mtd_ram.img 214 rm -f mtd_emmc.img 215 …asher -v -x xloader-qemu.bin -s secondary-qemu.bin -k u-boot.bin -r ubi.img -m rx51 -o mtd_emmc.img 220 rm -f mtd_nand.img [all …]
|
| /u-boot/arch/arm/mach-imx/imx8/ |
| A D | ahab.c | 52 struct boot_img_t *img; in authenticate_os_container() local 93 img = (struct boot_img_t *)(addr + in authenticate_os_container() 98 i, (uint32_t) img->dst, img->offset + addr, img->size); in authenticate_os_container() 100 memcpy((void *)img->dst, (const void *)(img->offset + addr), in authenticate_os_container() 101 img->size); in authenticate_os_container() 103 s = img->dst & ~(CONFIG_SYS_CACHELINE_SIZE - 1); in authenticate_os_container() 104 e = ALIGN(img->dst + img->size, CONFIG_SYS_CACHELINE_SIZE) - 1; in authenticate_os_container() 111 printf("Error: can't find memreg for image load address 0x%llx, error %d\n", img->dst, err); in authenticate_os_container()
|
| A D | parse-container.c | 20 static int authenticate_image(struct boot_img_t *img, int image_index) in authenticate_image() argument 28 image_index, (uint32_t)img->dst, img->offset, img->size); in authenticate_image() 32 img->dst & ~(CONFIG_SYS_CACHELINE_SIZE - 1), in authenticate_image() 33 ALIGN(img->dst + img->size, CONFIG_SYS_CACHELINE_SIZE) - 1); in authenticate_image() 37 image_index, img->dst & ~(CONFIG_SYS_CACHELINE_SIZE - 1), err); in authenticate_image()
|
| /u-boot/board/vamrs/rock960_rk3399/ |
| A D | README | 80 > tools/mkimage -n rk3399 -T rksd -d spl/u-boot-spl.bin idbspl.img 82 Get idbspl.img in this step. 87 > ./tools/loaderimage --pack --uboot u-boot/u-boot-dtb.bin uboot.img 0x200000 90 > cat ./rk33/rk3399_miniloader_v1.06.bin >> idbloader.img 92 Get uboot.img and idbloader.img in this step. 107 > rkdeveloptool wl 64 u-boot/idbspl.img 115 > rkdeveloptool wl 0x40 idbloader.img 116 > rkdeveloptool wl 0x4000 uboot.img 117 > rkdeveloptool wl 0x6000 ./img/rk3399/trust.img 123 The idbspl.img contains the first stage, and the u-boot.img the second stage. [all …]
|
| /u-boot/board/variscite/dart_6ul/ |
| A D | README | 10 This will generate SPL and u-boot-dtb.img images. 13 - The SPL and u-boot-dtb.img images need to be flashed into the micro SD card: 16 $ sudo dd if=u-boot-dtb.img of=/dev/mmcblk0 bs=1k seek=69; sync 28 - Flash the SPL and u-boot-dtb.img to mmcblk1boot0 30 $ sudo dd if=u-boot-dtb.img of=/dev/mmcblk1boot0 bs=1k seek=69; sync
|
| /u-boot/doc/board/freescale/ |
| A D | mx6sabresd.rst | 30 This will generate the SPL and u-boot-dtb.img binaries. 38 - Flash the u-boot-dtb.img binary into the SD card: 42 $ sudo dd if=u-boot-dtb.img of=/dev/sdX bs=1K seek=69 conv=notrunc && sync 52 This will generate the SPL and u-boot-dtb.img binaries. 64 - Flash SPL and u-boot-dtb.img binaries into the eMMC: 69 $ sudo dd if=u-boot-dtb.img of=/dev/sdX bs=1K seek=69 conv=notrunc && sync 81 This will generate the SPL image called SPL and the u-boot-dtb.img. 89 - Flash the u-boot-dtb.img image into the SD card 93 $ sudo dd if=u-boot-dtb.img of=/dev/sdX bs=1K seek=69 oflag=sync status=none conv=notrunc && sync
|
| /u-boot/board/udoo/ |
| A D | README | 10 This will generate the SPL image called SPL and the u-boot.img. 16 - Flash the u-boot.img image into the SD card: 18 sudo dd if=u-boot.img of=/dev/mmcblk0 bs=1k seek=69; sync
|
| /u-boot/doc/board/rockchip/ |
| A D | rockchip.rst | 163 sudo fastboot -i 0x2207 flash loader1 idbloader.img 167 is u-boot-dtb.img 186 load mmc 1:1 $kernel_addr_r idbloader.img 198 Create idbloader.img 204 cat rkbin/bin/rk33/px30_miniloader_v1.22.bin >> idbloader.img 205 sudo dd if=idbloader.img of=/dev/sda seek=64 207 Create trust.img 213 sudo dd if=trust.img of=/dev/sda seek=24576 215 Create uboot.img 219 rbink/tools/loaderimage --pack --uboot u-boot-dtb.bin uboot.img 0x200000 [all …]
|
| /u-boot/board/solidrun/mx6cuboxi/ |
| A D | README | 10 This will generate the SPL image called SPL and the u-boot.img. 16 - Flash the u-boot.img image into the SD card: 18 sudo dd if=u-boot.img of=/dev/mmcblk0 bs=1k seek=69; sync
|
| /u-boot/board/BuR/brppt2/ |
| A D | config.mk | 15 dd bs=1 if=u-boot-dtb.img of=$@ seek=$(payload_off) 2>/dev/null 22 cp u-boot-dtb.img misc/ && \ 32 $(hw-platform-y)_prog.bin: u-boot-dtb.img spl SPL
|
| /u-boot/board/BuR/brsmarc1/ |
| A D | config.mk | 15 dd bs=1 if=u-boot-dtb.img of=$@ seek=$(payload_off) 2>/dev/null 23 cp u-boot-dtb.img misc/ && \ 29 $(hw-platform-y)_prog.bin: u-boot-dtb.img spl/u-boot-spl.bin
|
| /u-boot/board/congatec/cgtqmx6eval/ |
| A D | README | 18 - u-boot.img 23 Copy SPL and u-boot.img to the exported TFTP directory of the 38 => tftp 0x12000000 u-boot.img 53 - Flash the u-boot.img image into the SD card: 55 sudo dd if=u-boot.img of=/dev/mmcblk0 bs=1k seek=69; sync
|
| /u-boot/arch/arm/dts/ |
| A D | rockchip-u-boot.dtsi | 21 filename = "idbloader.img"; 24 u-boot-img {
|
| /u-boot/board/phytec/pcl063/ |
| A D | README | 10 This will generate SPL and u-boot-dtb.img images. 12 - The SPL and u-boot-dtb.img images need to be flashed into the micro SD card: 15 $ sudo dd if=u-boot-dtb.img of=/dev/mmcblk0 bs=1k seek=69; sync
|