First run chkhash it without any option: it will show possible options.
Example of running chkhash with -L option:
Code: Select all
./chkhash -k 2b7e151628aed2a6abf7158809cf4f3c -L 0x0000 5 BSP-C6900WWB-1021.2.dir/part_09.cmac.bin BSP-C6900WWB-1021.2.dir/*
hash[ 0] = ecb6ae326156eef9bfbffd1b77b378d8 length = 41054208 : BSP-C6900WWB-1021.2.dir/part_01.exe.img
hash[ 1] = 5fc772558c80567e9474a58855c7982b length = 37826560 : BSP-C6900WWB-1021.2.dir/part_04.appdata.img
hash[ 2] = 60a8d999f3b6da20c58a3eb2056d43d6 length = 3104328 : BSP-C6900WWB-1021.2.dir/part_02.Image
hash[ 3] = 59326c34975e53f92eedc2388c6a288f length = 4190228 : BSP-C6900WWB-1021.2.dir/part_03.rootfs.img
hash[ 4] = 7bca4cf5f259475adac2c57965d7d6f1 length = 123510 : BSP-C6900WWB-1021.2.dir/part_06.onboot
In your case
mkey = 7CED26D8CA2FA0F80BC637E2FF07EC46
offset = 0x1000
hash_file = bml0/3
So, the command could be like:
Code: Select all
./chkhash -k 7CED26D8CA2FA0F80BC637E2FF07EC46 -L 0x1000 8 bml0/3 *