diff --git a/brcm_fw_tool/image-ubi.c b/brcm_fw_tool/image-ubi.c new file mode 100644 index 0000000000000000000000000000000000000000..f263a0071547dffc0f7b239850fc65f2d34f305e --- /dev/null +++ b/brcm_fw_tool/image-ubi.c @@ -0,0 +1,26 @@ +#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; +} diff --git a/brcm_fw_tool/image-ubi.h b/brcm_fw_tool/image-ubi.h new file mode 100644 index 0000000000000000000000000000000000000000..f1dd93373e13df9d712552c27dbe5253dc09886f --- /dev/null +++ b/brcm_fw_tool/image-ubi.h @@ -0,0 +1,8 @@ +#ifndef IMAGE_JFFS2_H +#define IMAGE_JFFS2_H + + + +int gen_image_ubi(const char *in_file, char *sequence_number); + +#endif