Hi, everyone,
When i used disk encryption and wanted to flash, it would recreate an image
every time, it lost much time, so i wanted to remove ECID and use a generic passphrase.
As follows, i comment ECID,
@@ -543,7 +543,8 @@ function build_enc_root_fsimg () {
if [ "${enc_rfs_keyfile}" != "" ]; then
genpass_opt+="-k \"${enc_rfs_keyfile}\" ";
fi;
- genpass_opt+="-u -e '${__ecid}' "
+ # do not need ecid for ourself
+ #genpass_opt+="-u -e '${__ecid}' "
genpass_opt+="-c '${__rootfsuuid}'";
GEN_LUKS_PASS_CMD+=" ${genpass_opt}";
@@ -655,7 +656,7 @@ function build_enc_fsimg () {
# Check ECID
if [ "${__ecid}" == "" ]; then
echo "ERROR: build_enc_fsimg: ECID is null .";
- exit 1;
+ #exit 1;
fi;
# Check gen_luks_passphrase.py
@@ -669,7 +670,7 @@ function build_enc_fsimg () {
if [ "${enc_rfs_keyfile}" != "" ]; then
genpass_opt+="-k \"${enc_rfs_keyfile}\" ";
fi;
- genpass_opt+="-u -e '${__ecid}' ";
+ #genpass_opt+="-u -e '${__ecid}' ";
genpass_opt+="-c '${__fsuuid}'";
GEN_LUKS_PASS_CMD+=" ${genpass_opt}";
After create image
, i could use ./tools/disk_encryption/gen_luks_passphrase.py -k ./ekb.key -c "${uuid}" | sudo cryptsetup luksOpen ${loopdev} ${l4t_enc_root_dm}
i could unencrypt raw image
to mount. But when i flash it, the NX cannot boot normally.
So what should i do, i can resolve this question.
BTW, cat /etc/nv_tegra_release
R35 (release), REVISION: 3.1, GCID: 32827747, BOARD: t186ref, EABI: aarch64, DATE: Sun Mar 19 15:19:21 UTC 2023
Thanks,
Best regards,
Ultwcz1997