It may be desirable to disable console output on the target in order free up the use of the serial port for other purposes. This can be especially important with the XPort Pro, as only one serial port is provided. Access to the Linux command shell will still be possible through telnet (if the static or DHCP assigned IP address is known). Instructions for disabling console output for Linux and dBUG are given below.
Disabling Linux Console Output
To disable Linux console output, the console shell must be disabled, and kernel console messages suppressed.
To disable the console shell, the /etc/inittab file will need to be edited. By default the last line of this file enables console output with:
ttyS0::askfirst:-/bin/sh
To disable console output, comment out this line by placing a '#' character at the beginning. Note that on systems using ROMFS for the root file system (default option), this file must be changed at build time. The inittab file is found under:
<install_dir>/linux/vendors/Lantronix/<Platform>/romfs_extra/etc/
Edit this file, perform a make from <install_dir>, and transfer the new image file to the target for the changes to take effect.
Note that switching between enabling and disabling Linux console output is much simpler when using either a NFS or JFFS2 root file system, as changes to inittab can be made at run time.
To suppress kernel console messages, it is necessary to append the string "console=" to the kernel command line. This can be done from the dBUG prompt with:
set kcl <existing_kcl_string> console=
Use the "show" command to confirm your changes. Changing the kernel command line can also be done from Linux with the dbug-config command (if included in the build) with:
dbug-config kcl "<existing_kcl_string> console="
Replace <existing_kcl_string> with the existing kcl string on your target.
Disabling dBUG Bootloader Console Output
To disable console output from the dBUG Bootloader, it is necessary to enable the "silentboot" option. This can be done from the dBUG command line with:
set silentboot on
Use the "show" command to confirm the change. The silentboot option can also be enabled through Linux using the dbug-config command (if included) with:
dbug-config silentboot on
Enabling the "silentboot" option will also disable the autoboot countdown. To get to the dBUG command prompt when "silentboot" is enabled, enter the <ctrl>-x sequence three times at the beginning of the target boot sequence (entering <ctrl>-x repeatedly at startup may be simpler for getting the timing right). Note that "silentboot" can also be disabled from Linux (telnet to the command shell may be needed if the Linux console is disabled) through dbug-config (if included) with:
dbug-config silentboot off
Disabling Linux Console Output
To disable Linux console output, the console shell must be disabled, and kernel console messages suppressed.
To disable the console shell, the /etc/inittab file will need to be edited. By default the last line of this file enables console output with:
ttyS0::askfirst:-/bin/sh
To disable console output, comment out this line by placing a '#' character at the beginning. Note that on systems using ROMFS for the root file system (default option), this file must be changed at build time. The inittab file is found under:
<install_dir>/linux/vendors/Lantronix/<Platform>/romfs_extra/etc/
Edit this file, perform a make from <install_dir>, and transfer the new image file to the target for the changes to take effect.
Note that switching between enabling and disabling Linux console output is much simpler when using either a NFS or JFFS2 root file system, as changes to inittab can be made at run time.
To suppress kernel console messages, it is necessary to append the string "console=" to the kernel command line. This can be done from the dBUG prompt with:
set kcl <existing_kcl_string> console=
Use the "show" command to confirm your changes. Changing the kernel command line can also be done from Linux with the dbug-config command (if included in the build) with:
dbug-config kcl "<existing_kcl_string> console="
Replace <existing_kcl_string> with the existing kcl string on your target.
Disabling dBUG Bootloader Console Output
To disable console output from the dBUG Bootloader, it is necessary to enable the "silentboot" option. This can be done from the dBUG command line with:
set silentboot on
Use the "show" command to confirm the change. The silentboot option can also be enabled through Linux using the dbug-config command (if included) with:
dbug-config silentboot on
Enabling the "silentboot" option will also disable the autoboot countdown. To get to the dBUG command prompt when "silentboot" is enabled, enter the <ctrl>-x sequence three times at the beginning of the target boot sequence (entering <ctrl>-x repeatedly at startup may be simpler for getting the timing right). Note that "silentboot" can also be disabled from Linux (telnet to the command shell may be needed if the Linux console is disabled) through dbug-config (if included) with:
dbug-config silentboot off
Comment