Skip to content
Snippets Groups Projects
image.c 82.1 KiB
Newer Older
  • Learn to ignore specific revisions
  • 
    	/* Optional properties */
    	uname = (char *)fdt_getprop (fit, noffset, FIT_RAMDISK_PROP, NULL);
    	if (uname)
    		printf ("%s  Init Ramdisk: %s\n", p, uname);
    
    	uname = (char *)fdt_getprop (fit, noffset, FIT_FDT_PROP, NULL);
    	if (uname)
    		printf ("%s  FDT:          %s\n", p, uname);
    }
    
    
    /**
     * fit_check_ramdisk - verify FIT format ramdisk subimage
     * @fit_hdr: pointer to the FIT ramdisk header
     * @rd_noffset: ramdisk subimage node offset within FIT image
     * @arch: requested ramdisk image architecture type
     * @verify: data CRC verification flag
     *
     * fit_check_ramdisk() verifies integrity of the ramdisk subimage and from
     * specified FIT image.
     *
     * returns:
     *     1, on success
     *     0, on failure
     */
    #ifndef USE_HOSTCC
    static int fit_check_ramdisk (const void *fit, int rd_noffset, uint8_t arch, int verify)
    {
    	fit_image_print (fit, rd_noffset, "   ");
    
    	if (verify) {
    		puts ("   Verifying Hash Integrity ... ");
    		if (!fit_image_check_hashes (fit, rd_noffset)) {
    			puts ("Bad Data Hash\n");
    
    	if (!fit_image_check_os (fit, rd_noffset, IH_OS_LINUX) ||
    	    !fit_image_check_arch (fit, rd_noffset, arch) ||
    	    !fit_image_check_type (fit, rd_noffset, IH_TYPE_RAMDISK)) {
    		printf ("No Linux %s Ramdisk Image\n",
    				genimg_get_arch_name(arch));