Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with fTPM in "Interaction between Measured Boot and an fTPM (PoC)" #237

Open
mlazarou-git opened this issue Apr 19, 2023 · 0 comments

Comments

@mlazarou-git
Copy link

I am trying to use Interaction between Measured Boot and an fTPM (PoC) but ftpm TA seems that is not compiling with the rest implementation.

-- Build files have been written to: /home/paradox-dev/stuff/fvp-project/out-br/build/optee_client_ext-1.0
ftpm_optee_ext 1.0 Installing to target
PATH="/home/paradox-dev/stuff/fvp-project/out-br/per-package/ftpm_optee_ext/host/bin:/home/paradox-dev/stuff/fvp-project/out-br/per-package/ftpm_optee_ext/host/sbin:/home/paradox-dev/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin" /usr/bin/make DESTDIR=/home/paradox-dev/stuff/fvp-project/out-br/per-package/ftpm_optee_ext/target install/fast -C /home/paradox-dev/stuff/fvp-project/out-br/build/ftpm_optee_ext-1.0/
Install the project...
-- Install configuration: "Release"
-- Installing: /home/paradox-dev/stuff/fvp-project/out-br/per-package/ftpm_optee_ext/target/dev/null/null
echo "Installing fTPM based on OPTEE" && mkdir -p /home/paradox-dev/stuff/fvp-project/out-br/per-package/ftpm_optee_ext/target/lib/optee_armtz && /usr/bin/install -v -p --mode=444 --target-directory=/home/paradox-dev/stuff/fvp-project/out-br/per-package/ftpm_optee_ext/target/lib/optee_armtz "/home/paradox-dev/stuff/fvp-project/build/../ms-tpm-20-ref"/"Samples/ARM32-FirmwareTPM/optee_ta"/out/fTPM/bc50d971-d4c9-42c4-82cb-343fb7f37896.ta
Installing fTPM based on OPTEE
/usr/bin/install: cannot stat '/home/paradox-dev/stuff/fvp-project/build/../ms-tpm-20-ref/Samples/ARM32-FirmwareTPM/optee_ta/out/fTPM/bc50d971-d4c9-42c4-82cb-343fb7f37896.ta': No such file or directory

linux_ftpm_mod_ext 1.0 Installing to target
make[2]: *** [package/pkg-generic.mk:382: /home/paradox-dev/stuff/fvp-project/out-br/build/ftpm_optee_ext-1.0/.stamp_target_installed] Error 1
make[2]: *** Waiting for unfinished jobs....
PATH="/home/paradox-dev/stuff/fvp-project/out-br/per-package/linux_ftpm_mod_ext/host/bin:/home/paradox-dev/stuff/fvp-project/out-br/per-package/linux_ftpm_mod_ext/host/sbin:/home/paradox-dev/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin" /usr/bin/make DESTDIR=/home/paradox-dev/stuff/fvp-project/out-br/per-package/linux_ftpm_mod_ext/target install/fast -C /home/paradox-dev/stuff/fvp-project/out-br/build/linux_ftpm_mod_ext-1.0/
Install the project...
-- Install configuration: "Release"
-- Installing: /home/paradox-dev/stuff/fvp-project/out-br/per-package/linux_ftpm_mod_ext/target/dev/null/null
echo "Installing TPM kernel module" && mkdir -p /home/paradox-dev/stuff/fvp-project/out-br/per-package/linux_ftpm_mod_ext/target/lib/modules/extra
Installing TPM kernel module
/usr/bin/install -v -p --mode=444 --target-directory=/home/paradox-dev/stuff/fvp-project/out-br/per-package/linux_ftpm_mod_ext/target/lib/modules/extra "/home/paradox-dev/stuff/fvp-project/build/../linux"/drivers/char/tpm/tpm_ftpm_tee.ko
'/home/paradox-dev/stuff/fvp-project/build/../linux/drivers/char/tpm/tpm_ftpm_tee.ko' -> '/home/paradox-dev/stuff/fvp-project/out-br/per-package/linux_ftpm_mod_ext/target/lib/modules/extra/tpm_ftpm_tee.ko'

I followed the instructions given and used $ MEASURED_BOOT=y make -j `nproc` to compile the PoC. I will track the configuration and try to manually compile the fTPM TA as a way to bypass the error and maybe a way to fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant