If the Cboot supports uimage loading

Hi,

From the code, it seems that only raw kernel image and Android image loading are supported by cboot

Can I load the uimage file?

	hdr = (union tegrabl_bootimg_header *)boot_img_load_addr;
	if (HAS_BOOT_IMG_HDR(hdr)) {
		/* Get kernel addr and size from boot img header */
		payload_addr = (uintptr_t)hdr + hdr->pagesize;
		kernel_size = hdr->kernelsize;
	} else {  /*  In extinux boot, raw kernel image gets loaded */
		ahdr = boot_img_load_addr;
		if (ahdr->magic == ARM64_MAGIC) {
			kernel_text_offset = ahdr->text_offset;
		}
		payload_addr = (uintptr_t)boot_img_load_addr;
		kernel_size = kernel_bin_size;
	}
#define HAS_BOOT_IMG_HDR(ptr)	\
			((memcmp((ptr)->magic, ANDROID_MAGIC, ANDROID_MAGIC_SIZE) == 0) ? true : false)

Hi,

Sorry, currently no support for uimage.

1 Like

Note that several years ago (in the 32-bit days) one could use either Image (uncompressed) or “zImage” (compressed) formats. The uimage format was not used even then. Somewhere in the transition to 64-bit even the zImage was no longer used (I believe because 64-bit compression/decompression was not supported in the bootloader, which was still 32-bit despite the Linux kernel being 64-bit).

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.