Commit Graph

23 Commits

Author SHA1 Message Date
888ed0dc86 mk-image.sh: Support size in hex
Tested with:
./mk-image.sh . /tmp/test.ubi ubi 0x6400000K

Change-Id: Ic850906f47f83f0e2a176241481ba39bce3606be
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
2022-05-27 15:56:39 +08:00
a8a798e928 mkfirmware.sh: Cleanup a bit
1/ Fix partition size check for image with holes.
2/ Support new partition table variable:
<dev>:<mount point>:<fs type>:<mount flags>:<source dir>:<image size(M|K|auto)>:[options]

Change-Id: I913f2bce85a40766768007e745f37e4fbe2d490c
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
2022-04-22 12:44:06 +08:00
49c423a5b5 mk-image.sh: Support part label
mk-image.sh <src_dir> <target_image> <fs_type> <size(M|K)|auto(0)> [label]

NOTE:
Label is ignored in squashfs and jffs2.

Change-Id: Ia54ee33d108dbb68b25c90a0df3cabcb3d033731
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
2022-04-21 15:40:42 +08:00
c06590954b mkfirmware.sh/mk-image.sh: Support sizes in KB
mk-image.sh <src_dir> <target_image> <fs_type> <size(M|K)|auto(0)>"

Change-Id: I0aa7545c806816a9cc02727c4a2c2f34e7717685
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
2022-04-21 15:31:10 +08:00
55a771db2c common: mk-image.sh: support jffs2 type
Signed-off-by: Wei Chen <wei.chen@rock-chips.com>
Change-Id: I656858b68bdfaa630a0ab8c4592dd721ec94dea2
2021-01-16 15:59:54 +08:00
bc93f2e606 common: mk-image.sh: support build different page/block size for ubi image
Signed-off-by: Weiwen Chen <cww@rock-chips.com>
Change-Id: Ic04f8780846c9480ace4c124a59a398baf69f08f
2021-01-09 11:49:36 +08:00
f547f6a3d0 common: fix make ubi filesystem
Signed-off-by: Weiwen Chen <cww@rock-chips.com>
Change-Id: Id2d6cff58968c9388af3877ff031f7cc92dbe26a
2020-11-12 20:14:04 +08:00
8ba44a90c8 common: mk-image.sh: support make ubi image
Change-Id: I9144997c2330ac5bba59889b13dd751d76fdac34
Signed-off-by: Mark Huang <huangjc@rock-chips.com>
2020-11-05 22:21:06 +08:00
ede69964f7 mk-image.sh: perfer lz4 compress
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
Change-Id: I7ff550988e6947892b27c080c3c42c3990ccb416
2020-10-02 15:39:07 +08:00
8fee18be45 mk-image.sh: Prefer using mke2fs -d when available
Otherwise it would require root permission to generate image.

Also with some minor changes.

Change-Id: Ia5eae46a9a4af1bc3631af944c91835ecd6ae90c
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
2019-11-22 15:34:48 +08:00
64a19cd327 common: mk-image: disable the debug
Fixes: 74a4b38e2a ("common: mk-image: mkfs with the specified the filesystem type")
Change-Id: Iac2e71dc3f4b8e38e00e352d37d63193277577d4
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
2019-09-16 10:28:20 +00:00
74a4b38e2a common: mk-image: mkfs with the specified the filesystem type
The if the '-t <fs_type>' is not specified, the default fs is ext2. It's
important if somebody wanna to use the real ext4.

Change-Id: I6ecb8e321595755c7441a0d59b6aba2bfee8e696
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
2019-09-16 10:21:59 +00:00
1fd2c71fdc common: mkimage: Make sure retry size not smaller than 4M
Change-Id: I276ebbc859f19b62a80a087352c5d889e1e450a2
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
2019-08-12 15:38:50 +08:00
efeb3e553f common: mkimage: Increase retry size
Larger images needs larger extra size, let's increase the retry size
for that.

Change-Id: I7dbf8255df19d4777a6f1bd2f7c45b84eaee5d32
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
2019-08-12 09:41:09 +08:00
0c0cba38c6 common: mkimage: Check ntfscp for making ntfs image
Change-Id: I8d295349045a1e0522c970d92a44ee86ee8a53d8
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
2019-05-05 19:14:46 +08:00
714049cfd0 common: mkimage: Support making image without buildroot
Support makeing image without buildroot host tools.
Note:
Root permission required in this case.

Change-Id: I6f5fef0087cbd13219ac6af8802aff69f90e1fa4
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
2019-02-28 18:13:17 +08:00
9772eb4f68 common: mkimage: Calling mkimage function directly
Change-Id: I57bc64bb57e7eff9d25dc9978664778f58bdd9a1
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
2019-02-28 18:10:55 +08:00
6217bef0d1 common: mkimage: Set e2fs max-mount-count to 0
Act like other file systems

Change-Id: I93a6726855fdcc4b9da42d0da6a2205b19a715da
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
2019-01-11 20:45:59 +08:00
0415735900 common: mkimage: Support special file name for ntfs
Change-Id: I2db62610bb523c5c8b30c8a7cf83d4abf3c94d78
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
2019-01-04 11:58:55 +08:00
a264ab8cef mkfirmware.sh&mk-image.sh: Make sure using buildroot host tools
Change-Id: I3037ec2d5b91b34a9b31aa1a0887a4f47f7162b8
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
2019-01-02 15:09:55 +08:00
18f6c4affc common: mkimage: Fix mkimage failed with non root user
For ntfs, the buildroot should contains:
83c061e7c9 rockchip: Select host-ntfs-3g
93224ddae4 ntfs-3g: Add host package
b034138f2d ntfs-3g: Support directory copy

Change-Id: Iaa5daf89272409904bb35b638b4c042246820b6e
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
2018-12-29 18:36:47 +08:00
c791e04f98 Merge "common: mkimage: Refactor mkimage scripts"
Change-Id: I18ae441d83e12149926ff110271e238b7d9ff7bf
2018-12-26 20:29:00 +08:00
4c8c9fb15b common: mkimage: Refactor mkimage scripts
Change-Id: I13a642e3ba9f943924d1666391fd7032bbbb6392
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
2018-12-26 20:19:55 +08:00