)]}' { "commit": "23148bd56ea408b6ee4a7fb53b8405c738db2055", "tree": "65c1490195dbf58ed6e653994adf905a74b7abfc", "parents": [ "74946010ffb0b679bdf4341d8e1f012b61181ccc" ], "author": { "name": "Chau Ly", "email": "chaul@amperecomputing.com", "time": "Fri Jan 13 04:18:51 2023 +0000" }, "committer": { "name": "Chau Ly", "email": "chaul@amperecomputing.com", "time": "Fri Jan 13 06:57:41 2023 +0000" }, "message": "meta-ampere: mtmitchell: Support host consoles logger\n\nThis commit supports phosphor-hostlogger in STREAM mode, to forward\nthe byte stream from obmc-console to rsyslog via the imuxsock module.\nThe logs can be obtained in /var/log/. The logs are rotated by\nlogrotate. The size threshold of cpu console is 256KB and the others are\n64KB. Each log is polled every 1 minute to check if its file size\nexceeds the threshold to rotate it to the new file. Each console can be\nsaved in up to 2 log files.\n\nTested (CPU console):\n\n1. Change the mux of CPU console to BMC\n $ ampere_uartmux_ctrl.sh 1 2\n2. Connect to CPU SOL console\n $ ssh root@\u003cBMC_IP\u003e -p 2200\n3. Execute commands in the CPU SOL console\n \u003d\u003e The console output on CPU SOL console will all be logged to\n /var/log/obmc-console-cpu.log\n \u003d\u003e The log will be rotated to /var/log/obmc-console-cpu.log.1 if the\n original log file size exceeds 256KB every 1min poll\n\nSigned-off-by: Chau Ly \u003cchaul@amperecomputing.com\u003e\nChange-Id: I336bde09c4ef61ea68e05bef2c0b4e4298ea7959\n", "tree_diff": [ { "type": "modify", "old_id": "387cfcf92cad07fdade7963499100666f9a28da2", "old_mode": 33188, "old_path": "meta-ampere/meta-mitchell/recipes-phosphor/console/obmc-console/ampere_uartmux_ctrl.sh", "new_id": "1d1fbed121cf065fac10b25ded6cb0101a9faf28", "new_mode": 33188, "new_path": "meta-ampere/meta-mitchell/recipes-phosphor/console/obmc-console/ampere_uartmux_ctrl.sh" }, { "type": "modify", "old_id": "763161a24cfcb2d79af412a1bd4a029b992cc912", "old_mode": 33188, "old_path": "meta-ampere/meta-mitchell/recipes-phosphor/console/obmc-console/obmc-console-server-setup.sh", "new_id": "946c92bc3c3785f37cf77a94ffe3e872032dedff", "new_mode": 33188, "new_path": "meta-ampere/meta-mitchell/recipes-phosphor/console/obmc-console/obmc-console-server-setup.sh" }, { "type": "add", "old_id": "0000000000000000000000000000000000000000", "old_mode": 0, "old_path": "/dev/null", "new_id": "bdbf562585fbc90ca24ff1f69732b4bb1555ab66", "new_mode": 33188, "new_path": "meta-ampere/meta-mitchell/recipes-phosphor/console/obmc-console/obmc-console-ttyS1-ssh.socket" }, { "type": "add", "old_id": "0000000000000000000000000000000000000000", "old_mode": 0, "old_path": "/dev/null", "new_id": "697c2427113405a6a4e468cf9fa1d8f703b168b2", "new_mode": 33188, "new_path": "meta-ampere/meta-mitchell/recipes-phosphor/console/obmc-console/obmc-console-ttyS1-ssh@.service" }, { "type": "add", "old_id": "0000000000000000000000000000000000000000", "old_mode": 0, "old_path": "/dev/null", "new_id": "f8934fd41cb01d173a176d0366d54b7fde29a1fc", "new_mode": 33188, "new_path": "meta-ampere/meta-mitchell/recipes-phosphor/console/obmc-console/obmc-console-ttyS2-ssh.socket" }, { "type": "add", "old_id": "0000000000000000000000000000000000000000", "old_mode": 0, "old_path": "/dev/null", "new_id": "7d7f31490a6437e68341288f119c0a32173bfba4", "new_mode": 33188, "new_path": "meta-ampere/meta-mitchell/recipes-phosphor/console/obmc-console/obmc-console-ttyS2-ssh@.service" }, { "type": "add", "old_id": "0000000000000000000000000000000000000000", "old_mode": 0, "old_path": "/dev/null", "new_id": "fd7f3e3f9752fbc9612e94664e481b999db189a7", "new_mode": 33188, "new_path": "meta-ampere/meta-mitchell/recipes-phosphor/console/obmc-console/obmc-console-ttyS3-ssh.socket" }, { "type": "add", "old_id": "0000000000000000000000000000000000000000", "old_mode": 0, "old_path": "/dev/null", "new_id": "261f3a12ef10b3ae139348e9a80b73409370f119", "new_mode": 33188, "new_path": "meta-ampere/meta-mitchell/recipes-phosphor/console/obmc-console/obmc-console-ttyS3-ssh@.service" }, { "type": "add", "old_id": "0000000000000000000000000000000000000000", "old_mode": 0, "old_path": "/dev/null", "new_id": "de670bafb6bcd1392c42b9af9d658415a7d976f6", "new_mode": 33188, "new_path": "meta-ampere/meta-mitchell/recipes-phosphor/console/obmc-console/obmc-console-ttyS7-ssh.socket" }, { "type": "add", "old_id": "0000000000000000000000000000000000000000", "old_mode": 0, "old_path": "/dev/null", "new_id": "8ce8ba0b39b74e69fbdb91e04888a2aa3d51a600", "new_mode": 33188, "new_path": "meta-ampere/meta-mitchell/recipes-phosphor/console/obmc-console/obmc-console-ttyS7-ssh@.service" }, { "type": "add", "old_id": "0000000000000000000000000000000000000000", "old_mode": 0, "old_path": "/dev/null", "new_id": "b2ad91799d2ecc891c28e72617e4707f8a7b4cb4", "new_mode": 33188, "new_path": "meta-ampere/meta-mitchell/recipes-phosphor/console/obmc-console/obmc-console-ttyS8-ssh.socket" }, { "type": "add", "old_id": "0000000000000000000000000000000000000000", "old_mode": 0, "old_path": "/dev/null", "new_id": "cd5bda3f268af73affa2d0fd658e39363c10b13d", "new_mode": 33188, "new_path": "meta-ampere/meta-mitchell/recipes-phosphor/console/obmc-console/obmc-console-ttyS8-ssh@.service" }, { "type": "modify", "old_id": "4025be341d89da97eb5a9b3c2d91983bafe994ef", "old_mode": 33188, "old_path": "meta-ampere/meta-mitchell/recipes-phosphor/console/obmc-console/server.ttyS0.conf", "new_id": "2d80850416b9a1d0d0ba1660214079ba4a126b88", "new_mode": 33188, "new_path": "meta-ampere/meta-mitchell/recipes-phosphor/console/obmc-console/server.ttyS0.conf" }, { "type": "modify", "old_id": "086ff94a84880a7fae3b91d7ac62e886ecb7c958", "old_mode": 33188, "old_path": "meta-ampere/meta-mitchell/recipes-phosphor/console/obmc-console/server.ttyS1.conf", "new_id": "6421f9339774ede2ed332b1231f0d56a34b1aec6", "new_mode": 33188, "new_path": "meta-ampere/meta-mitchell/recipes-phosphor/console/obmc-console/server.ttyS1.conf" }, { "type": "add", "old_id": "0000000000000000000000000000000000000000", "old_mode": 0, "old_path": "/dev/null", "new_id": "f8be872f255bc038b06d1c38e34a6cbe62c18285", "new_mode": 33188, "new_path": "meta-ampere/meta-mitchell/recipes-phosphor/console/obmc-console/server.ttyS2.conf" }, { "type": "add", "old_id": "0000000000000000000000000000000000000000", "old_mode": 0, "old_path": "/dev/null", "new_id": "8f1ebbac732970042f743160162e81697a4fa69f", "new_mode": 33188, "new_path": "meta-ampere/meta-mitchell/recipes-phosphor/console/obmc-console/server.ttyS3.conf" }, { "type": "add", "old_id": "0000000000000000000000000000000000000000", "old_mode": 0, "old_path": "/dev/null", "new_id": "decc72f2936ffe23b669a07947b1b292f1a19083", "new_mode": 33188, "new_path": "meta-ampere/meta-mitchell/recipes-phosphor/console/obmc-console/server.ttyS7.conf" }, { "type": "add", "old_id": "0000000000000000000000000000000000000000", "old_mode": 0, "old_path": "/dev/null", "new_id": "df56992ad9f1bfb0509aa7ee2204bf3eb58d0c25", "new_mode": 33188, "new_path": "meta-ampere/meta-mitchell/recipes-phosphor/console/obmc-console/server.ttyS8.conf" }, { "type": "modify", "old_id": "2e0ac9803426aac2d7df53a41aa0884576cd80d0", "old_mode": 33188, "old_path": "meta-ampere/meta-mitchell/recipes-phosphor/console/obmc-console_%.bbappend", "new_id": "2b7673ef38a63feaeaecbec1564006df6ebe0975", "new_mode": 33188, "new_path": "meta-ampere/meta-mitchell/recipes-phosphor/console/obmc-console_%.bbappend" }, { "type": "add", "old_id": "0000000000000000000000000000000000000000", "old_mode": 0, "old_path": "/dev/null", "new_id": "e0c10a42ed8040399f449333ee3960e85e553bdb", "new_mode": 33188, "new_path": "meta-ampere/meta-mitchell/recipes-phosphor/hostlogger/phosphor-hostlogger/ttyS0.conf" }, { "type": "add", "old_id": "0000000000000000000000000000000000000000", "old_mode": 0, "old_path": "/dev/null", "new_id": "c2218e5eb0b4e58c60f6de9fef85acf1f58c753d", "new_mode": 33188, "new_path": "meta-ampere/meta-mitchell/recipes-phosphor/hostlogger/phosphor-hostlogger/ttyS1.conf" }, { "type": "add", "old_id": "0000000000000000000000000000000000000000", "old_mode": 0, "old_path": "/dev/null", "new_id": "5d3cfb68280cc9ba8ea1d68256005f87b1397521", "new_mode": 33188, "new_path": "meta-ampere/meta-mitchell/recipes-phosphor/hostlogger/phosphor-hostlogger/ttyS2.conf" }, { "type": "add", "old_id": "0000000000000000000000000000000000000000", "old_mode": 0, "old_path": "/dev/null", "new_id": "7c4f5e98f0cf9b7f1be7111ca628f250679de3ac", "new_mode": 33188, "new_path": "meta-ampere/meta-mitchell/recipes-phosphor/hostlogger/phosphor-hostlogger/ttyS3.conf" }, { "type": "add", "old_id": "0000000000000000000000000000000000000000", "old_mode": 0, "old_path": "/dev/null", "new_id": "b811dcf031c8960c62122b0d53affe5a33a33ccc", "new_mode": 33188, "new_path": "meta-ampere/meta-mitchell/recipes-phosphor/hostlogger/phosphor-hostlogger/ttyS7.conf" }, { "type": "add", "old_id": "0000000000000000000000000000000000000000", "old_mode": 0, "old_path": "/dev/null", "new_id": "dfe25d3f01c6258ae332f333b2cd48297ea0e60d", "new_mode": 33188, "new_path": "meta-ampere/meta-mitchell/recipes-phosphor/hostlogger/phosphor-hostlogger/ttyS8.conf" }, { "type": "add", "old_id": "0000000000000000000000000000000000000000", "old_mode": 0, "old_path": "/dev/null", "new_id": "977f7cc819ddca12479ad49e792c1997cbfe74d6", "new_mode": 33188, "new_path": "meta-ampere/meta-mitchell/recipes-phosphor/hostlogger/phosphor-hostlogger_%.bbappend" } ] }