commit | 511a2bbc5540fccb883b8d0005c2b387a23c9d05 | [log] [tgz] |
---|---|---|
author | Yang Cheng <cheng.c.yang@linux.intel.com> | Wed Mar 06 22:20:35 2019 +0800 |
committer | Yang Cheng <cheng.c.yang@linux.intel.com> | Wed Mar 06 22:20:35 2019 +0800 |
tree | 25595446e3c68c65119d24620af2bfade41a492d | |
parent | eedf0b929ea5e8e0c638ffe569f680b08dc6f6a5 [diff] |
Set SOL Screen dynamically To make EWS SOL Screen size match the real BIOS console, need to set the screen dynamically. Web page get terminal resolution from config.json and calculate frame width and height base on the resolution and fontsize. Web page use this width and height to change the screen size. If no related configuration in config.json the SOL Screen will keep the original size before this code change. Tested By: Add "customConsoleDisplaySize": {"width": 100, "height": 32} to config.json, and open EWS Server Serial over LAN console page, the size of console client can match 100*32 characters. Set console redirection to 100*32 in BIOS setup page, the page show correctly in this SOL client in EWS. After enter OS, the linux console can show correctly in SOL client. After remove "customConsoleDisplaySize" in config.json, the size of console client in EWS show the same as the code change in this patch. Change-Id: I09bfe4e67db1387abcd57ee3a13b912957cf95b0 Signed-off-by: Yang Cheng <cheng.c.yang@linux.intel.com>
The OpenBMC WebUI is a Web-based user interface for the OpenBMC firmware stack. The WebUI uses AngularJS. Features include:
nodejs (>= 4.2.6) npm (>= 5.6.0)
Note The default installation of your Linux distro may not come with the required versions above. See the following for more information on updating:
https://docs.npmjs.com/troubleshooting/try-the-latest-stable-version-of-node https://docs.npmjs.com/troubleshooting/try-the-latest-stable-version-of-npm
npm install
Note This must be run from within the phosphor-webui git repository.
npm run-script server
This will start a server instance and begin listening for connections at http://localhost:8080
. This development server provides live reloading on code changes. NOTE: Browsing to https://<BMC>
and accepting the self-signed certificate might be required to prevent your browser from blocking traffic to the BMC.
Enter the BMC Host or BMC IP address, username, and password. The default username and password are root
/0penBmc
.
Note that some OpenBMC implementations use bmcweb for its backend. For security reasons, bmcweb will need to be recompiled and loaded onto the target BMC Host before the above redirect command will work. The option to turn on within bmcweb is BMCWEB_INSECURE_DISABLE_XSS_PREVENTION
.