From 399bd0356e0ff6ccf312f3949b88e407ae4c3fa1 Mon Sep 17 00:00:00 2001 From: Ronny Nilsson <ronny.nilsson@iopsys.eu> Date: Wed, 11 Sep 2019 13:17:41 +0200 Subject: [PATCH] Add empty sources for generating Broadcom UBI METADATA volume. --- brcm_fw_tool/image-ubi.c | 26 ++++++++++++++++++++++++++ brcm_fw_tool/image-ubi.h | 8 ++++++++ 2 files changed, 34 insertions(+) create mode 100644 brcm_fw_tool/image-ubi.c create mode 100644 brcm_fw_tool/image-ubi.h diff --git a/brcm_fw_tool/image-ubi.c b/brcm_fw_tool/image-ubi.c new file mode 100644 index 0000000..f263a00 --- /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 0000000..f1dd933 --- /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 -- GitLab