commit | ab64dadd9506d6f93ff98b9e1d51d12a9df76523 | [log] [tgz] |
---|---|---|
author | Andrew Jeffery <andrew@codeconstruct.com.au> | Wed Jul 10 09:12:34 2024 +0930 |
committer | Andrew Jeffery <andrew@codeconstruct.com.au> | Wed Jul 10 09:12:34 2024 +0930 |
tree | 9d926773afba9e3fa01ebe7014b30ee209d646a3 | |
parent | 1e04f449b7f00a7b426615533a44519149d2ea38 [diff] |
subprojects: iniparser: Address meson run_command() warning The `run_command()` invocations in the iniparser meson.build lacked the `check` parameter: ``` iniparser| WARNING: You should add the boolean check kwarg to the run_command call. iniparser| It currently defaults to false, iniparser| but it will default to true in future releases of meson. iniparser| See also: https://github.com/mesonbuild/meson/issues/9300 ``` Add `check` and set it to true to make sure the build configuration only succeeds if these commands also succeed. Fixes: 1e04f449b7f0 ("use iniparser dependency for config file parsing") Change-Id: I97841398fc899e876b97e4e28e18cd8dd3b13222 Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
To build this project, run the following shell commands:
meson setup build meson compile -C build
To test:
meson test -C build
Running the server requires a serial port (e.g. /dev/ttyS0):
touch obmc-console.conf ./obmc-console-server --config obmc-console.conf ttyS0
To connect to the server, simply run the client:
./obmc-console-client
To disconnect the client, use the standard ~.
combination.
This shows how the host UART connection is abstracted within the BMC as a Unix domain socket.
+---------------------------------------------------------------------------------------------+ | | | obmc-console-client unix domain socket obmc-console-server | | | | +----------------------+ +------------------------+ | | | client.2200.conf | +---------------------+ | server.ttyVUART0.conf | | +---+--+ +----------------------+ | | +------------------------+ +--------+-------+ Network | 2200 +--> +->+ @obmc-console.host0 +<-+ <--+ /dev/ttyVUART0 | UARTs +---+--+ | console-id = "host0" | | | | console-id = "host0" | +--------+-------+ | | | +---------------------+ | | | | +----------------------+ +------------------------+ | | | | | | | +---------------------------------------------------------------------------------------------+
This supports multiple independent consoles. The console-id
is a unique portion for the unix domain socket created by the obmc-console-server instance. The server needs to know this because it needs to know what to name the pipe; the client needs to know it as it needs to form the abstract socket name to which to connect.