Home
last modified time | relevance | path

Searched full:console (Results 1 – 25 of 2375) sorted by relevance

12345678910>>...95

/openbmc/obmc-console/
H A Dconsole-dbus.c24 #include "console-mux.h"
25 #include "console-server.h"
31 #define DBUS_NAME "xyz.openbmc_project.Console.%s"
32 #define OBJ_NAME "/xyz/openbmc_project/console/%s"
33 #define UART_INTF "xyz.openbmc_project.Console.UART"
34 #define ACCESS_INTF "xyz.openbmc_project.Console.Access"
36 static void tty_change_baudrate(struct console *console) in tty_change_baudrate() argument
41 tty_init_termios(console->server); in tty_change_baudrate()
43 for (i = 0; i < console->n_handlers; i++) { in tty_change_baudrate()
47 handler = console->handlers[i]; in tty_change_baudrate()
[all …]
H A Dmeson.build2 'obmc-console',
21 'conf/obmc-console@.service.in',
22 'conf/obmc-console@.socket.in',
23 rename: ['obmc-console@.service', 'obmc-console@.socket'],
28 'conf/obmc-console-ssh@.service.in',
29 rename: ['obmc-console-ssh@.service'],
43 'conf/obmc-console-ssh.socket.in',
44 rename: ['obmc-console-ssh.socket'],
48 'conf/obmc-console-ssh@.service.d/use-socket.conf.in',
50 install_dir: systemdsystemunitdir / 'obmc-console-ssh@.service.d',
[all …]
H A DCHANGELOG.md42 1. Deprecated D-Bus interface `xyz.openbmc_project.console` is no longer used.
47 1. console-server: Fix configuration of lpc_address and sirq sysfs attributes
49 3. console-server: Fix pointer arithmetic in container_of() implementation
55 1. console-server: Add PTY support for testing purposes
56 2. console-server: Add --console-id option
57 3. console-server: Add DBUS interface to find console unix socket FD.
58 4. Implement D-Bus interface `xyz.openbmc_project.Console.UART` for UART TTY
63 1. The `xyz.openbmc_project.console` interface is only published if the
67 2. console-server: Don't require a configuration file
70 `obmc-console-server`.
[all …]
H A Dconsole-server.c2 * Console server process for OpenBMC
41 #include "console-mux.h"
43 #include "console-server.h"
61 " --console-id <NAME>\tUse NAME in the UNIX domain socket address\n" in usage()
180 * Allow hooking obmc-console-server up to PTYs for testing in tty_find_device()
182 * https://amboar.github.io/notes/2023/05/02/testing-obmc-console-with-socat.html in tty_find_device()
330 * Set termios attributes on the console tty.
349 /* Set console to raw mode: we don't want any processing to occur on in tty_init_termios()
624 int console_data_out(struct console *console, const uint8_t *data, size_t len) in console_data_out() argument
626 return write_buf_to_fd(console->server->tty.fd, data, len); in console_data_out()
[all …]
H A Dconsole-mux.c9 #include "console-server.h"
10 #include "console-mux.h"
154 max_ngpios = sizeof(((struct console *)0)->mux_index) * CHAR_BIT; in console_server_mux_init()
188 int console_mux_init(struct console *console, struct config *config) in console_mux_init() argument
190 if (!console->server->mux) { in console_mux_init()
194 if (console->server->mux->n_mux_gpios == 0) { in console_mux_init()
199 config, console->console_id, key_mux_index); in console_mux_init()
202 warnx("console %s does not have property %s in config", in console_mux_init()
203 console->console_id, key_mux_index); in console_mux_init()
208 console->mux_index = strtoul(gpio_value, NULL, 0); in console_mux_init()
[all …]
H A Dconsole-server.h28 struct console;
33 * Console data handlers: these implement the functions that process
52 struct console *console, struct config *config);
79 int console_data_out(struct console *console, const uint8_t *data, size_t len);
130 // the currently active console
131 struct console *active;
133 struct console **consoles;
145 struct console { struct
146 // point back to the console server
181 struct poller *console_poller_register(struct console *console, argument
[all …]
H A DREADME.md1 # obmc-console
18 touch obmc-console.conf
19 ./obmc-console-server --config obmc-console.conf ttyS0
25 ./obmc-console-client
36 … | obmc-console-client unix domain socket obmc-console-server |
41 …Network | 2200 +--> +->+ @obmc-console.host0 +<-+ <…
42 …+---+--+ | console-id = "host0" | | | | console-id = "host0" | +--------…
50 This supports multiple independent consoles. The `console-id` is a unique
51 portion for the unix domain socket created by the obmc-console-server instance.
60 [docs/mux-support.md](https://github.com/openbmc/obmc-console/blob/master/docs/mux-support.md)
[all …]
/openbmc/openbmc/meta-facebook/meta-minerva/recipes-phosphor/console/obmc-console/
H A Dserver.ttyS5.conf3 console-id = ttyS5
7 logfile = /var/log/obmc-console-compute_blade_1.log
11 logfile = /var/log/obmc-console-compute_blade_2.log
15 logfile = /var/log/obmc-console-compute_blade_3.log
19 logfile = /var/log/obmc-console-compute_blade_4.log
23 logfile = /var/log/obmc-console-compute_blade_5.log
27 logfile = /var/log/obmc-console-compute_blade_6.log
31 logfile = /var/log/obmc-console-compute_blade_7.log
35 logfile = /var/log/obmc-console-compute_blade_8.log
39 logfile = /var/log/obmc-console-compute_blade_9.log
[all …]
/openbmc/openbmc/meta-ampere/meta-common/recipes-extended/rsyslog/rsyslog/
H A Dhostconsole.conf1 #Host console log
8 action(type="omfile" file="/var/log/obmc-console-cpu.log" template="ConsoleTemplate")
11 action(type="omfile" file="/var/log/obmc-console-atf.log" template="ConsoleTemplate")
14 action(type="omfile" file="/var/log/obmc-console-secpro0.log" template="ConsoleTemplate")
17 action(type="omfile" file="/var/log/obmc-console-secpro1.log" template="ConsoleTemplate")
20 action(type="omfile" file="/var/log/obmc-console-mpro0.log" template="ConsoleTemplate")
23 action(type="omfile" file="/var/log/obmc-console-mpro1.log" template="ConsoleTemplate")
26 action(type="omfile" file="/var/log/obmc-console-scp0.log" template="ConsoleTemplate")
29 action(type="omfile" file="/var/log/obmc-console-scp1.log" template="ConsoleTemplate")
32 # Custom socket for serial console logs.
[all …]
/openbmc/obmc-console/docs/
H A Dmux-support.md4 requires obmc-console to select one at a time.
10 Then there will be one obmc-console-server process, and 2 consoles will be
13 The obmc-console-server will receive configuration for both consoles detailing
40 the same as the console-id. All of the section names need to be unique.
48 logfile = /var/log/console-host1.log
52 logfile = /var/log/console-host2.log
59 obmc-console-server --config server.conf /dev/ttyS0
65 console, the new connection is accepted and the console-server switches the mux
66 to this console. Any clients connected to other consoles are disconnected.
71 $ obmc-console-client -i host2 &
[all …]
/openbmc/docs/
H A Dconsole.md1 # OpenBMC host console support
3 This document describes how to connect to the host UART console from an OpenBMC
6 The console infrastructure allows multiple shared connections to a single host
10 ## Remote console connections
12 To connect to an OpenBMC console session remotely, just ssh to your BMC on
19 ## Local console connections
21 If you're already logged into an OpenBMC machine, you can start a console
25 obmc-console-client
28 To exit from a console, type:
41 This is because obmc-console-client is an ssh session, and a double `~` is
[all …]
/openbmc/u-boot/test/log/
H A Dlog_test.c39 ret = log_add_filter("console", cat_list, LOGL_MAX, NULL); in log_test()
43 ret = log_remove_filter("console", ret); in log_test()
54 ret = log_add_filter("console", cat_list, LOGL_MAX, NULL); in log_test()
58 ret = log_remove_filter("console", ret); in log_test()
69 ret = log_add_filter("console", cat_list, LOGL_MAX, NULL); in log_test()
73 ret = log_remove_filter("console", ret); in log_test()
80 ret = log_add_filter("console", NULL, LOGL_MAX, "file"); in log_test()
84 ret = log_remove_filter("console", ret); in log_test()
91 ret = log_add_filter("console", NULL, LOGL_MAX, "file"); in log_test()
95 ret = log_remove_filter("console", ret); in log_test()
[all …]
/openbmc/phosphor-net-ipmid/sol/
H A Dconsole_buffer.hpp16 * The console data is the buffer that holds the data that comes from the host
17 * console which is to be sent to the remote console. The buffer is needed due
24 /** @brief Get the current size of the host console buffer.
26 * @return size of the host console buffer.
33 /** @brief Read host console data.
36 * console data buffer.
45 /** @brief Write host console data.
47 * This API would append the input data to the host console buffer.
49 * @param[in] input - data to be written to the console buffer.
56 /** @brief Erase console buffer.
[all …]
/openbmc/openbmc/meta-arm/meta-arm-systemready/lib/oeqa/runtime/cases/
H A Darm_systemready_debian_unattended.py7 self.console = self.target.DEFAULT_CONSOLE
16 self.target.expect(self.console,
21 self.target.expect(self.console,
26 self.target.expect(self.console,
31 self.target.expect(self.console,
37 self.target.expect(self.console,
40 self.target.sendline(self.console, '')
42 self.target.expect(self.console,
45 self.target.sendline(self.console, '')
49 self.target.expect(self.console,
[all …]
/openbmc/docs/designs/
H A Duart-mux-support.md13 To support this configuration, obmc-console needs to provide a method for
14 console selection to avoid manually setting GPIOs.
18 There are already [open changes for obmc-console][obmc-console-uart-mux-series]
21 [obmc-console-uart-mux-series]:
22 https://gerrit.openbmc.org/c/openbmc/obmc-console/+/71864
30 - The user can select a console to be muxed
33 console depending on the host state and other information.
35 - It is clear to whoever is reading the logs of that console when a console was
41 - Console selection (implies mux control) must be possible from an external
44 The scope of this change is obmc-console and other projects which rely on the
[all …]
H A Dsol-sysrq.md20 requires special handling. A serial console usually invokes SysRq feature by
33 - The console with SSH (default) 2200 port.
37 In OpenBMC, the service `obmc-console-server` provides the host console and
42 console-server. In `obmc-console`, a state machine shall handle the sequence.
60 ### obmc-console
62 As the obmc-console server, in `console-server.h`, a simple state machine is
88 An alternative way to send the "break signal" between clients and console-server
91 modified to send `MSG_OOB` to obmc-console when the user enter the key code
92 sequence `\n~B`. When obmc-console receive `MSG_OOB`, it shall send the "break
95 However, in this solution, in some scenarios, obmc-console can not handle the
[all …]
/openbmc/obmc-console/test/
H A Dtest-multiple-consoles38 active-console = $TEST_A_NAME
41 console-id = $TEST_A_NAME
44 console-id = $TEST_B_NAME
53 while ! busctl status --user xyz.openbmc_project.Console."${TEST_A_NAME}"; do sleep 1; done
55 echo log-for-console-a > remote
59 grep -LF log-for-console-a "$TEST_A_LOG"
60 ! grep -F log-for-console-a "$TEST_B_LOG" || exit 1
62 # change the active console
63 socat -u "ABSTRACT:obmc-console.${TEST_B_NAME}" SYSTEM:'cat > /dev/null' &
68 echo log-for-console-b > remote
[all …]
/openbmc/qemu/semihosting/
H A Dconsole.c2 * Semihosting Console Support
7 * This provides support for outputting to a semihosting console.
10 * to arbitrary file descriptors we treat the console as something
20 #include "semihosting/console.h"
40 static SemihostingConsole console; variable
72 SemihostingConsole *c = &console; in qemu_semihosting_console_ready()
80 SemihostingConsole *c = &console; in qemu_semihosting_console_block_until_ready()
96 SemihostingConsole *c = &console; in qemu_semihosting_console_read()
112 if (console.chr) { in qemu_semihosting_console_write()
113 int r = qemu_chr_write_all(console.chr, (uint8_t *)buf, len); in qemu_semihosting_console_write()
[all …]
/openbmc/openbmc-test-automation/lib/serial_connection/
H A Dserial_console_client.robot12 Open Telnet Connection To BMC Serial Console
13 [Documentation] Open telnet connection session to BMC serial console
21 # i_host The host name or IP of the serial console.
22 # i_port The port of the serial console.
46 Read And Log BMC Serial Console Output
54 Execute Command On Serial Console
55 [Documentation] Execute a command on the BMC serial console.
61 Open Telnet Connection To BMC Serial Console
65 Read And Log BMC Serial Console Output
66 Close Serial Console Connection
[all …]
/openbmc/u-boot/common/
H A DKconfig253 menu "Console" menu
262 bool "Console recording"
264 This provides a way to record console output (and provide console
266 Console output is recorded even when the console is silent.
267 To enable console recording, call console_record_reset_enable()
275 Set the size of the console output buffer. When this fills up, no
284 Set the size of the console input buffer. When this contains data,
290 bool "Add functionality to disable console completely"
292 Disable console (in & out).
304 All Messages with a loglevel smaller than the console loglevel will
[all …]
/openbmc/openbmc/poky/scripts/lib/wic/canned-wks/
H A Ddirectdisk-bootloader-config.cfg11 DEFAULT Graphics console boot
13 LABEL Graphics console boot
17 LABEL Serial console boot
19 APPEND label=boot rootwait console=ttyS0,115200
21 LABEL Graphics console install
25 LABEL Serial console install
27 APPEND label=install rootwait console=ttyS0,115200
/openbmc/openbmc/meta-google/recipes-google/bare-metal-obmc-console/bare-metal-obmc-console/
H A Ddisable_obmc_console.sh3 ENABLE_CONSOLE_FILE="/var/google/config-package/enable-bm-console.flag"
4 READ_ONLY_CONSOLE_FLAG="/run/readonly-console.flag"
9 # re-enable obmc console
12 # stop bmc console client will start the host console
17 # stop host console client will start the bmc console
/openbmc/openbmc/meta-facebook/meta-yosemite4/recipes-phosphor/console/obmc-console/fb-compute-multihost/
H A Dserver.ttyS6.conf4 active-console = host6
8 logfile = /var/log/obmc-console-wf-bic6.log
9 console-id = wf_bic6
13 logfile = /var/log/obmc-console-host6.log
14 console-id = host6
18 logfile = /var/log/obmc-console-sd-bic6.log
19 console-id = sd_bic6
H A Dserver.ttyS5.conf4 active-console = host5
8 logfile = /var/log/obmc-console-wf-bic5.log
9 console-id = wf_bic5
13 logfile = /var/log/obmc-console-host5.log
14 console-id = host5
18 logfile = /var/log/obmc-console-sd-bic5.log
19 console-id = sd_bic5
H A Dserver.ttyS1.conf4 active-console = host2
8 logfile = /var/log/obmc-console-wf-bic2.log
9 console-id = wf_bic2
13 logfile = /var/log/obmc-console-host2.log
14 console-id = host2
18 logfile = /var/log/obmc-console-sd-bic2.log
19 console-id = sd_bic2

12345678910>>...95