Skip to content

Commit e60eb1f

Browse files
committed
devnotes: add developer notes from porting efforts
Signed-off-by: Michał Żygowski <[email protected]>
1 parent 8a9dc68 commit e60eb1f

20 files changed

+12992
-0
lines changed

devnotes/Nest_configuration.md

+1,789
Large diffs are not rendered by default.

devnotes/documentation.md

+155
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,155 @@
1+
class: center, middle, intro
2+
3+
## OpenPOWER coreboot
4+
5+
## Documentation
6+
7+
### v1.0.0
8+
9+
---
10+
11+
## Environment preparation
12+
13+
In order to build coreboot, we use docker container. So in order to setup
14+
environment, ensure that:
15+
16+
1. You have docker installed as described on [docker site](https://docs.docker.com/engine/install/)
17+
for your Linux distro.
18+
2. When you have the docker installed pull the container:
19+
20+
```
21+
docker pull coreboot/coreboot-sdk:65718760fa
22+
```
23+
24+
In order to start from a common point, flash the original OpenPOWER firmware
25+
for Talos II.
26+
27+
1. Log into the BMC via SSH:
28+
29+
```
30+
31+
```
32+
33+
> The password is `wfv978h4JSG`
34+
35+
2. Download the stock firmware image:
36+
37+
```
38+
wget https://cloud.3mdeb.com/index.php/s/canxPx5d4X8c2wk/download \
39+
-O /tmp/flash.pnor
40+
```
41+
42+
3. Flash the firmware:
43+
44+
```
45+
pflash -E -p /tmp/flash.pnor
46+
```
47+
48+
> You will see warning like `About to erase chip !` and
49+
> `WARNING ! This will modify your HOST flash chip content !`. When the
50+
> `Enter "yes" to confirm:` prompt appears, type `yes` and press enter.
51+
52+
At the end of the process (it may take several minutes) you should have
53+
something like this:
54+
55+
```
56+
About to program "/tmp/flash.pnor" at 0x00000000..0x04000000 !
57+
Programming & Verifying...
58+
[==================================================] 100% ETA:0s
59+
```
60+
61+
4. Log into the BMC GUI at https://23.155.224.90/. Enter the
62+
[Server power operations](https://23.155.224.90/#/server-control/power-operations)
63+
and invoke warm reboot. Then move to [Serial over LAN remote console](https://23.155.224.90/#/server-control/remote-console)
64+
to observe whether the platform is booting. It should boot up to Debian.
65+
66+
---
67+
68+
## Buidling coreboot image
69+
70+
In order to build coreboot image, follow the steps below:
71+
72+
1. Clone the coreboot repository:
73+
74+
```
75+
git clone [email protected]:InsurgoTech/coreboot.git -b power_bootblock
76+
# or HTTPS alternatively
77+
git clone https://github.com/InsurgoTech/coreboot.git -b power_bootblock
78+
```
79+
80+
2. Get the submodules:
81+
82+
```
83+
cd coreboot
84+
git submodule update --init --checkout
85+
```
86+
87+
3. Start docker container (assuming you are already in coreboot root
88+
directory):
89+
90+
```
91+
docker run --rm -it -v $PWD:/home/coreboot/coreboot \
92+
-w /home/coreboot/coreboot coreboot/coreboot-sdk:65718760fa /bin/bash
93+
```
94+
95+
4. When inside of the container, configure the build for Talos II:
96+
97+
```
98+
make menuconfig
99+
```
100+
101+
Navigate to the Mainboard submenu and select the:
102+
`Raptor Computign Systems -> Talos II`. Then save the configuration and
103+
exit.
104+
105+
.center[.image-90[![](images/cb_menuconfig.png)]]
106+
107+
5. Start the build process of coreboot inside the container:
108+
109+
```
110+
make
111+
```
112+
113+
---
114+
115+
## Running the coreboot on Talos II
116+
117+
1. At the end of build process you should see `Built raptor-cs/talos-2 (Talos II)`.
118+
Copy the result binary from `<coreboot_dir>/build/coreboot.rom` to the BMC
119+
(assuming in the coreboot root directory):
120+
121+
```
122+
scp build/coreboot.rom [email protected]:/tmp
123+
```
124+
125+
2. Backup the HBB partition (for faster later recovery) by invoking this
126+
command on BMC:
127+
128+
```
129+
pflash -P HBB -r /tmp/hbb.bin
130+
```
131+
132+
3. Flash the binary by replacing HBB partition (execute from BMC):
133+
134+
```
135+
pflash -e -P HBB -p /tmp/coreboot.rom
136+
```
137+
138+
Answer yes to the prompt and wait for the process to finish.
139+
140+
4. Log into the BMC GUI again at https://23.155.224.90/. Enter the
141+
[Server power operations](https://23.155.224.90/#/server-control/power-operations)
142+
and invoke warm reboot. Then move to [Serial over LAN remote console](https://23.155.224.90/#/server-control/remote-console)
143+
144+
Wait for a while until coreboot shows up:
145+
146+
.center[.image-90[![](images/cb_bootblock.png)]]
147+
148+
5. Enjoy coreboot bootblock running on Talos II.
149+
150+
> OPTIONAL: in order to recovery the platform quickly to healthy state, flash
151+
> the HBB partition back with:
152+
> `pflash -e -P HBB -p /tmp/hbb.bin`
153+
154+
---
155+
class: center, middle, outro

0 commit comments

Comments
 (0)