Skip to content
/ elx-pba Public

Pre-boot authentication image for TCG Storage devices

License

Notifications You must be signed in to change notification settings

elastx/elx-pba

Repository files navigation

elx-pba

GitHub commit checks state Go Report Card License

Pre-boot authentication image for TCG Storage devices

Building

NOTE: Use a Go version of 1.17 or higher.

$ sudo apt install \
    gnupg2 gpgv2 flex bison build-essential libelf-dev \
    curl libssl-dev bc zstd dosfstools fdisk gdisk mtools
$ gpg2 --locate-keys torvalds@kernel.org gregkh@kernel.org autosigner@kernel.org

# Make sure sgdisk is in the PATH
$ PATH=$PATH:/sbin make

Alternatively, use the containerized build tools:

$ docker build \
	-t elastx.se/elx-pba-builder:latest \
	-f builder.dockerfile .
$ docker run \
	--rm --volume ${PWD}:/src \
	elastx.se/elx-pba-builder:latest

Testing in a VM

$ sudo apt install qemu-system-x86
$ make qemu-x86_64

Testing on a real disk

$ OPAL_KEY=debug
$ sudo sedutil-cli --loadpbaimage "${OPAL_KEY}" elx-pba-x86_64.img /dev/sdb