summaryrefslogtreecommitdiffstats
path: root/fs/Kconfig
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2013-10-03 12:01:53 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2013-10-06 13:31:55 +0200
commit2f677b9b1ed510612b72799ec6eb65a6c6a3c172 (patch)
treeb044efe28c7337d02d9c7b630bf53875834eb8c8 /fs/Kconfig
parent32d88d9a86f947de0253334e2822219457adfc7c (diff)
downloadbarebox-2f677b9b1ed510612b72799ec6eb65a6c6a3c172.tar.gz
barebox-2f677b9b1ed510612b72799ec6eb65a6c6a3c172.tar.xz
fs: add BPKFS support
Simple update file format developed for Somfy, tools and library are available under LGPLv2 (https://www.gitorious.org/libbpk). This format in the v1.0 allow you to store 6 types a binary stream for a unique hardware id: - bootloader - bootloader_version - description.gz - kernel - rootfs - firmware_version and you can easly add more binary stream type. The fs will display you in a directory per hw id and if a binary stream type is unknown will be display as unknown_%08x # mount image.bpk /tmp # ls -l /tmp/hw_id_0/ -rwxrwxrwx 10 firmware_version -rwxrwxrwx 8 firmware_version.crc -rwxrwxrwx 1845968 kernel -rwxrwxrwx 8 kernel.crc -rwxrwxrwx 5062656 rootfs -rwxrwxrwx 8 rootfs.crc -rwxrwxrwx 248 bootloader -rwxrwxrwx 8 bootloader.crc -rwxrwxrwx 248925 description.gz -rwxrwxrwx 8 description.gz.crc -rwxrwxrwx 4 bootloader_version -rwxrwxrwx 8 bootloader_version.crc -rwxrwxrwx 4 unknown_1234567g -rwxrwxrwx 8 unknown_1234567g.crc Why BPK and not CPIO or uImage 1) CPIO cpio does not handle > 4GiB image and does not have any crc checksum 2) uImage uImage only provide one crc32 for the all data part and only a list of binary stream with no information about what is what (in multi-image format) 3) BPK BPK provide a crc32 for the header part and one crc32 per binary stream so if you does not care of some data you are not force to check them And you known exactly the binary stream type and for which hw to use it. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Fargier Sylvain <sylvain.fargier@somfy.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'fs/Kconfig')
-rw-r--r--fs/Kconfig15
1 files changed, 15 insertions, 0 deletions
diff --git a/fs/Kconfig b/fs/Kconfig
index be4797f0e6..a2f7ce160d 100644
--- a/fs/Kconfig
+++ b/fs/Kconfig
@@ -44,6 +44,21 @@ config FS_NFS
source fs/fat/Kconfig
source fs/ubifs/Kconfig
+config FS_BPKFS
+ bool
+ prompt "BPKFS support"
+ help
+ Simple update file format developed for Somfy, tools and library are
+ available under LGPLv2 (https://www.gitorious.org/libbpk).
+ This format in the v1.0 allow you to store 6 types a binary stream for
+ a unique hardware id:
+ - bootloader
+ - bootloader_version
+ - description.gz
+ - kernel
+ - rootfs
+ - firmware_version
+
config PARTITION_NEED_MTD
bool