Skip to content

Commit dd148e0

Browse files
dev-environment: improve readability of qemu commands
The QEMU commands are so long that they are nearly impossible to read or review when changes are made. Attempt to make review easier by splitting the lines up a bit. Signed-off-by: Patrick Williams <[email protected]> Change-Id: I4f348bc61f5d81d643839ef33be7135b0741c102
1 parent b2f9e05 commit dd148e0

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

development/dev-environment.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,15 +160,21 @@ That's it, you now have a working development environment for OpenBMC!
160160
up some host ports to the REST, SSH and IPMI ports in your QEMU session. In this
161161
example, it just uses 2222, 2443, 2623. You can use whatever you prefer.
162162
```
163-
./qemu-system-arm -m 256 -M romulus-bmc -nographic -drive file=./obmc-phosphor-image-romulus.static.mtd,format=raw,if=mtd -net nic -net user,hostfwd=:127.0.0.1:2222-:22,hostfwd=:127.0.0.1:2443-:443,hostfwd=udp:127.0.0.1:2623-:623,hostname=qemu
163+
./qemu-system-arm -m 256 -M romulus-bmc -nographic \
164+
-drive file=./obmc-phosphor-image-romulus.static.mtd,format=raw,if=mtd \
165+
-net nic \
166+
-net user,hostfwd=:127.0.0.1:2222-:22,hostfwd=:127.0.0.1:2443-:443,hostfwd=udp:127.0.0.1:2623-:623,hostname=qemu
164167
```
165168

166169
**Note** - By default, Jenkins and openbmc-test-automation use SSH and HTTPS
167170
ports 22 and 443, respectively. For the IPMI port 623 is used. SSH connection
168171
to use a user-defined port 2222 might not be successful. To use SSH port 22,
169172
HTTPS port 443 and IPMI port 623:
170173
```
171-
./qemu-system-arm -m 256 -machine romulus-bmc -nographic -drive file=./obmc-phosphor-image-romulus.static.mtd,format=raw,if=mtd -net nic -net user,hostfwd=:127.0.0.1:22-:22,hostfwd=:127.0.0.1:443-:443,hostfwd=tcp:127.0.0.1:80-:80,hostfwd=tcp:127.0.0.1:2200-:2200,hostfwd=udp:127.0.0.1:623-:623,hostfwd=udp:127.0.0.1:664-:664,hostname=qemu
174+
./qemu-system-arm -m 256 -machine romulus-bmc -nographic \
175+
-drive file=./obmc-phosphor-image-romulus.static.mtd,format=raw,if=mtd \
176+
-net nic \
177+
-net user,hostfwd=:127.0.0.1:22-:22,hostfwd=:127.0.0.1:443-:443,hostfwd=tcp:127.0.0.1:80-:80,hostfwd=tcp:127.0.0.1:2200-:2200,hostfwd=udp:127.0.0.1:623-:623,hostfwd=udp:127.0.0.1:664-:664,hostname=qemu
172178
```
173179

174180
4. Wait for your QEMU-based BMC to boot

0 commit comments

Comments
 (0)