commit | 6424cc3bca708fefa1c4f00e309ad8460554760e | [log] [tgz] |
---|---|---|
author | Kun Yi <kunyi731@gmail.com> | Thu Jun 14 14:09:28 2018 -0700 |
committer | Kun Yi <kunyi731@gmail.com> | Mon Jul 02 20:33:59 2018 -0700 |
tree | ecdbcbb1a9174f9582c07cdd92286100b8071510 | |
parent | c7fbcd480fb03840a4c44e546af878e84400b6fe [diff] |
log-handler: Add a config option for log size. Allow a configuration option to specify a log size. The parameter takes and interprets common size suffixes k/M/G. 1kB = 1024B, 1MB=1024kB, 1GB=1024MB. Default unit is byte. If "B" is specified at the end it will be ignored. Tested: Tested that "logsize = 567kB" correctly sets up a 567KB log buffer. Tested that invalid/overflow values will be ignored and 16KB will be used. Tested that if log size smaller than pagesize is rounded up. Change-Id: I2fb50462c6ff7873130be80f7d57ef8065acc5da Signed-off-by: Kun Yi <kunyi731@gmail.com>
Note: In addition to a toolchain and autoconf tools, this requires autotools-archive
to be installed.
To build this project, run the following shell commands:
./bootstrap.sh ./configure ${CONFIGURE_FLAGS} make
To fully clean the repository, run:
./bootstrap.sh clean
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.