Skip to content

Commit

Permalink
Merge pull request #610 from Dasharo/talos-2-update
Browse files Browse the repository at this point in the history
Talos II: update build instructions
  • Loading branch information
macpijan authored Jul 26, 2023
2 parents 6eeb37f + 582dd99 commit fd926ce
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions docs/variants/talos_2/building-manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ To build coreboot image, follow the steps below:
1. Clone the coreboot repository:

```bash
git clone https://github.com/Dasharo/coreboot.git -b raptor-cs_talos-2/release
git clone --depth=1 https://github.com/Dasharo/coreboot.git -b raptor-cs_talos-2/rel_v0.7.0
```

1. Get the submodules:
Expand All @@ -23,13 +23,20 @@ To build coreboot image, follow the steps below:
docker run --rm -it \
-v $PWD:/home/coreboot/coreboot \
-w /home/coreboot/coreboot \
3mdeb/coreboot-sdk:mkimage /bin/bash
-u "$(id -u):$(id -g)" \
coreboot/coreboot-sdk:0ad5fbd48d /bin/bash
```

1. Inside of the container, configure and start the build process:

```bash
(docker)cp configs/config.raptor-cs-talos-2 .config
(docker)cat > .config <<EOF
CONFIG_VENDOR_RAPTOR_CS=y
CONFIG_TALOS_2_INFINEON_TPM_1=y
CONFIG_TPM_LOG_TPM2=y
CONFIG_PAYLOAD_SKIBOOT=y
CONFIG_LOCALVERSION="v0.7.0"
EOF
(docker)make olddefconfig
(docker)make
```
Expand All @@ -39,17 +46,17 @@ To build coreboot image, follow the steps below:
1. Clone the heads repository:
```bash
git clone https://github.com/Dasharo/heads.git -b raptor-cs_talos-2/release
git clone --depth=1 https://github.com/Dasharo/heads.git -b raptor-cs_talos-2/release
```
1. Start docker container:
```bash
docker run --rm -it -v $PWD:$PWD -w $PWD 3mdeb/heads-docker:2.3.0 /bin/bash
docker run --rm -it -v $PWD:$PWD -w $PWD -u "$(id -u):$(id -g)" 3mdeb/heads-docker:2.4.0 /bin/bash
```
1. Build:
```bash
make BOARD=talos-2_server
make BOARD=talos-2
```

0 comments on commit fd926ce

Please sign in to comment.