Skip to content
Snippets Groups Projects
image-ubi.c 515 B
Newer Older
  • Learn to ignore specific revisions
  • #include <stdlib.h>
    #include <unistd.h>
    #include <stdio.h>
    #include <stdint.h>
    #include <errno.h>
    #include <time.h>
    #include <string.h>
    
    #include "crc32.h"
    #include "linux/jffs2.h"
    #include <board.h>
    #include "bcmTag.h"
    #include "bcmnet.h"
    #include <bcm_sdk_version.h>
    
    #define je16_to_cpu				je16_to_cpu_bcm
    #define getCrc32(x, y, z)		crc32(z, x, y)
    #include <endian.h>
    #include "bcm_ubi.h"
    
    
    // Generate Broadcom "METADATA" UBI volume.
    int gen_image_ubi(const char *in_file, char *sequence_number)
    {
    	return 0;
    }