Generate alternative bios, LIBREBOOT
In order for everything to work properly, it is necessary to familiarize yourself with the information from the page
and have the necessary Git and Docker utilities ready. The system I use is Ubuntu.
Make sure git is installed.
git clone [email protected]:risapav/docker_libreboot.git && cd docker_libreboot
git clone https://github.com/risapav/docker_libreboot.git && cd docker_libreboot
Prepare Docker environment, Docker should be installed and running. The philosophy of creating the final bios file is searchable on the site:
# building pure sshd resvice with root access sourced from github
docker build https://github.com/risapav/docker_libreboot.git -t libreboot-sdk
# building pure sshd resvice with root access from local repository
docker build -t libreboot-sdk .
# or
docker build risapav/docker_libreboot -t libreboot-sdk
You should run container:
docker run \
--rm \
-it \
--user "$(id -u):$(id -g)" \
--entrypoint /bin/bash \
-v $PWD/project:/project \
-v $PWD/lbmk/tmp:/home/sdk/lbmk/tmp \
-v $PWD/lbmk/src:/home/sdk/lbmk/src \
-v $PWD/lbmk/bin:/home/sdk/lbmk/bin \
-v $PWD/lbmk/elf:/home/sdk/lbmk/elf \
-v $PWD/lbmk/resource:/home/sdk/lbmk/resource \
-v $PWD/lbmk/config:/home/sdk/lbmk/config \
-v $PWD/lbmk/include:/home/sdk/lbmk/include \
-v $PWD/lbmk/script:/home/sdk/lbmk/script \
-v $PWD/lbmk/util:/home/sdk/lbmk/util \
libreboot-sdk
docker run \
--rm \
-it \
--user "$(id -u):$(id -g)" \
--entrypoint /bin/bash \
-v $PWD/project:/project \
-v $PWD/lbmk:/home/sdk/lbmk \
libreboot-sdk
# -v $PWD/config:/home/sdk/lbmk/config \
# --mount type=bind,source="$(pwd)"/cfg,target=/home/sdk/lbmk/config \
Libreboot’s build system named lbmk is accessible within docker container. How to work with lbmk is described in the following link: