/openbmc/obmc-console/ |
H A D | console-server.c | 592 int console_data_out(struct console *console, const uint8_t *data, size_t len) in console_data_out() argument 594 return write_buf_to_fd(console->server->tty.fd, data, len); in console_data_out() 598 static int set_socket_info(struct console *console, struct config *config, in set_socket_info() argument 604 console->console_id = config_resolve_console_id(config, console_id); in set_socket_info() 607 len = console_socket_path(console->socket_name, console->console_id); in set_socket_info() 614 console->socket_name_len = len; in set_socket_info() 619 static void handlers_init(struct console *console, struct config *config) in handlers_init() argument 630 console->handlers = calloc(n_types, sizeof(struct handler *)); in handlers_init() 631 if (!console->handlers) { in handlers_init() 650 handler = type->init(type, console, config); in handlers_init() [all …]
|
H A D | console-dbus.c | 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() 53 rc = type->baudrate(handler, console->server->tty.uart.baud); in tty_change_baudrate() 66 struct console *console = userdata; in set_baud_handler() local 71 if (!console) { in set_baud_handler() 86 assert(console->server->tty.type == TTY_DEVICE_UART); in set_baud_handler() 87 console->server->tty.uart.baud = speed; in set_baud_handler() 88 tty_change_baudrate(console); in set_baud_handler() [all …]
|
H A D | meson.build | 2 'obmc-console', 19 'conf/obmc-console@.service.in', 20 'conf/obmc-console@.socket.in', 21 rename: ['obmc-console@.service', 'obmc-console@.socket'], 26 'conf/obmc-console-ssh@.service.in', 27 rename: ['obmc-console-ssh@.service'], 41 'conf/obmc-console-ssh.socket.in', 42 rename: ['obmc-console-ssh.socket'], 46 'conf/obmc-console-ssh@.service.d/use-socket.conf.in', 48 install_dir: systemdsystemunitdir / 'obmc-console-ssh@.service.d', [all …]
|
H A D | console-server.h | 28 struct console; 52 struct console *console, struct config *config); 79 int console_data_out(struct console *console, const uint8_t *data, size_t len); 131 struct console *active; 133 struct console **consoles; 145 struct console { struct 181 struct poller *console_poller_register(struct console *console, argument 187 void console_poller_unregister(struct console *console, struct poller *poller); 189 void console_poller_set_events(struct console *console, struct poller *poller, 192 void console_poller_set_timeout(struct console *console, struct poller *poller, [all …]
|
H A D | console-mux.c | 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() 203 console->console_id, key_mux_index); in console_mux_init() 208 console->mux_index = strtoul(gpio_value, NULL, 0); in console_mux_init() 229 static int console_print_timestamped(struct console *console, in console_print_timestamped() argument 249 ringbuffer_queue(console->rb, (uint8_t *)buf, strlen(buf)); in console_print_timestamped() 256 static int console_mux_set_lines(struct console *console) in console_mux_set_lines() argument [all …]
|
H A D | README.md | 1 # 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 …]
|
H A D | CHANGELOG.md | 42 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 54 1. console-server: Add PTY support for testing purposes 55 2. console-server: Add --console-id option 56 3. console-server: Add DBUS interface to find console unix socket FD. 62 1. The `xyz.openbmc_project.console` interface is only published if the 66 2. console-server: Don't require a configuration file 69 `obmc-console-server`. 73 1. obmc-console: Introduce console-id, deprecate socket-id 76 `socket-id` should be directly replaced with `console-id`. [all …]
|
/openbmc/linux/drivers/net/ethernet/cavium/liquidio/ |
H A D | octeon_console.c | 422 struct octeon_console *console; in octeon_console_handle_result() local 424 console = &oct->console[console_num]; in octeon_console_handle_result() 426 console->waiting = 0; in octeon_console_handle_result() 432 struct octeon_console *console, in output_console_line() argument 453 if (console->leftover[0] && in output_console_line() 454 (line != console->leftover)) { in output_console_line() 455 if (console->print) in output_console_line() 456 (*console->print)(oct, (u32)console_num, in output_console_line() 457 console->leftover, in output_console_line() 459 console->leftover[0] = '\0'; in output_console_line() [all …]
|
/openbmc/linux/Documentation/admin-guide/ |
H A D | serial-console.rst | 6 To use a serial port as console you need to compile the support into your 14 It is possible to specify multiple devices for console output. You can 16 use for console output. 20 console=device,options 22 device: tty0 for the foreground virtual console 23 ttyX for any other virtual console 35 You can specify multiple console= options on the kernel command line. 39 the last device will be used when you open ``/dev/console``. 42 console=ttyS1,9600 console=tty0 44 defines that opening ``/dev/console`` will get you the current foreground [all …]
|
/openbmc/openbmc/meta-arm/meta-arm-systemready/lib/oeqa/runtime/cases/ |
H A D | arm_systemready_debian_unattended.py | 7 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/openbmc/meta-facebook/meta-minerva/recipes-phosphor/console/obmc-console/ |
H A D | server.ttyS5.conf | 3 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/linux/Documentation/arch/ia64/ |
H A D | serial.rst | 18 as a serial console. If the user specified "console=ttyS0" 31 and "console=" arguments. Without an HCDP, device names didn't 41 (EFI console (EFI console 54 EFI knows what your console devices are, but it doesn't tell the 56 table[1] does tell the kernel where potential serial console 61 So how do you tell Linux which console device to use? 65 card) as the console. Then you don't need to tell Linux 66 anything; the kernel will automatically use the EFI console. 69 to specify "console=ttyS0" to get a serial console.) 71 - Without an HCDP, Linux defaults to a VGA console unless you [all …]
|
/openbmc/linux/include/linux/ |
H A D | vt_kern.h | 26 int vc_allocate(unsigned int console); 27 int vc_cons_allocated(unsigned int console); 29 struct vc_data *vc_deallocate(unsigned int console); 150 int vt_do_kdskbmode(unsigned int console, unsigned int arg); 151 int vt_do_kdskbmeta(unsigned int console, unsigned int arg); 155 unsigned int console); 157 int vt_do_kdskled(unsigned int console, int cmd, unsigned long arg, int perm); 158 int vt_do_kdgkbmode(unsigned int console); 159 int vt_do_kdgkbmeta(unsigned int console); 160 void vt_reset_unicode(unsigned int console); [all …]
|
H A D | console.h | 191 struct console { struct 193 void (*write)(struct console *co, const char *s, unsigned int count); argument 194 int (*read)(struct console *co, char *s, unsigned int count); argument 195 struct tty_driver *(*device)(struct console *co, int *index); argument 197 int (*setup)(struct console *co, char *options); argument 198 int (*exit)(struct console *co); argument 199 int (*match)(struct console *co, char *name, int idx, char *options); argument 250 static inline short console_srcu_read_flags(const struct console *con) in console_srcu_read_flags() 273 static inline void console_srcu_write_flags(struct console *con, short flags) in console_srcu_write_flags() 282 static inline bool console_is_registered_locked(const struct console *con) in console_is_registered_locked() [all …]
|
/openbmc/openbmc-tools/dbus-vis/ |
H A D | ipmi_capture.js | 51 console.log('[' + line + ']') 55 console.log('File size: ' + tot_size + ' ' + sp[0]); 100 console.log('Error decompressing .tar.gz file:' + err); 104 console.log('Done! will load file contents'); 108 console.log('Error in readFile: ' + err); 138 console.log('OnTransferCompleted'); 159 console.log('Removed file: ' + fn); 168 console.log('[rz] received ' + data.length + ' B'); 169 console.log(data); 170 console.log(data + ''); [all …]
|
/openbmc/openbmc/poky/bitbake/lib/toaster/toastergui/static/js/ |
H A D | libtoaster.js | 52 console.error("Error getting data from server: " + data.error); 109 console.warn(_data.error); 115 console.warn("Call failed"); 116 console.warn(_data); 138 console.warn(_data.error); 144 console.warn("Call failed"); 145 console.warn(_data); 158 onsuccess ? onsuccess(data) : console.log(data); 161 onfail ? onfail(data) : console.error(data); 174 console.warn(_data.error); [all …]
|
/openbmc/obmc-console/docs/ |
H A D | mux-support.md | 4 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/linux/kernel/printk/ |
H A D | braille.h | 24 _braille_register_console(struct console *console, struct console_cmdline *c); 27 _braille_unregister_console(struct console *console); 43 _braille_register_console(struct console *console, struct console_cmdline *c) in _braille_register_console() argument 49 _braille_unregister_console(struct console *console) in _braille_unregister_console() argument
|
H A D | braille.c | 38 _braille_register_console(struct console *console, struct console_cmdline *c) in _braille_register_console() argument 43 console->flags |= CON_BRL; in _braille_register_console() 44 rtn = braille_register_console(console, c->index, c->options, in _braille_register_console() 52 _braille_unregister_console(struct console *console) in _braille_unregister_console() argument 54 if (console->flags & CON_BRL) in _braille_unregister_console() 55 return braille_unregister_console(console); in _braille_unregister_console()
|
/openbmc/docs/ |
H A D | console.md | 1 # 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 17 ## Local console connections 19 If you're already logged into an OpenBMC machine, you can start a console 22 $ obmc-console-client 24 To exit from a console, type: 33 This is because obmc-console-client is an ssh session, and a double `~` is [all …]
|
/openbmc/qemu/semihosting/ |
H A D | console.c | 39 static SemihostingConsole console; variable 71 SemihostingConsole *c = &console; in qemu_semihosting_console_ready() 79 SemihostingConsole *c = &console; in qemu_semihosting_console_block_until_ready() 95 SemihostingConsole *c = &console; in qemu_semihosting_console_read() 111 if (console.chr) { in qemu_semihosting_console_write() 112 int r = qemu_chr_write_all(console.chr, (uint8_t *)buf, len); in qemu_semihosting_console_write() 121 console.chr = chr; in qemu_semihosting_console_init() 123 fifo8_create(&console.fifo, FIFO_SIZE); in qemu_semihosting_console_init() 124 qemu_chr_fe_init(&console.backend, chr, &error_abort); in qemu_semihosting_console_init() 125 qemu_chr_fe_set_handlers(&console.backend, in qemu_semihosting_console_init() [all …]
|
/openbmc/u-boot/common/ |
H A D | iomux.c | 13 void iomux_printdevs(const int console) in iomux_printdevs() argument 18 for (i = 0; i < cd_count[console]; i++) { in iomux_printdevs() 19 dev = console_devices[console][i]; in iomux_printdevs() 26 int iomux_doenv(const int console, const char *arg) in iomux_doenv() argument 79 switch (console) { in iomux_doenv() 120 if (console_assign(console, start[j]) < 0) in iomux_doenv() 132 console_devices[console] = in iomux_doenv() 133 (struct stdio_dev **)realloc(console_devices[console], in iomux_doenv() 135 if (console_devices[console] == NULL) { in iomux_doenv() 139 memcpy(console_devices[console], cons_set, cs_idx * in iomux_doenv() [all …]
|
/openbmc/linux/drivers/hwtracing/stm/ |
H A D | console.c | 20 struct console console; member 31 stm_console_write(struct console *con, const char *buf, unsigned len) in stm_console_write() 33 struct stm_console *sc = container_of(con, struct stm_console, console); in stm_console_write() 42 strcpy(sc->console.name, "stm_console"); in stm_console_link() 43 sc->console.write = stm_console_write; in stm_console_link() 44 sc->console.flags = CON_ENABLED | CON_PRINTBUFFER; in stm_console_link() 45 register_console(&sc->console); in stm_console_link() 54 unregister_console(&sc->console); in stm_console_unlink()
|
/openbmc/linux/drivers/tty/hvc/ |
H A D | Kconfig | 6 Generic "hypervisor virtual console" infrastructure for various 8 It will automatically be selected if one of the back-end console drivers 21 console. This driver allows each pSeries partition to have a console 35 PowerNV machines running under OPAL need that driver to get a console 45 bool "z/VM IUCV Hypervisor console support (VM only)" 51 This driver provides a Hypervisor console (HVC) back-end to access 52 a Linux (console) terminal via a z/VM IUCV communication path. 61 Xen virtual console device driver 72 bool "udbg based fake hypervisor console" 77 no other console mechanism exist but udbg, to get you a quick [all …]
|
/openbmc/linux/Documentation/fb/ |
H A D | fbcon.rst | 5 The framebuffer console (fbcon), as its name implies, is a text 6 console running on top of the framebuffer device. It has the functionality of 7 any standard text console driver, such as the VGA console, with the added 10 In the x86 architecture, the framebuffer console is optional, and 14 What are the features of fbcon? The framebuffer console supports 22 The framebuffer console can be enabled by using your favorite kernel 43 framebuffer console. Depending on the driver, you may get a blanked or 46 will still get a VGA console. 55 Usually, fbcon will automatically take over your console. The notable 61 Depending on the driver, you either get a standard console, or a [all …]
|