Note: all data format is hexadecimal
we know some character mean is the below
- 02 is STX
- 03 is ETX
- 05 is ENQ
- 06 is ACK
| DefinitionBlock("DSDT.AML", "DSDT", 0x02, "VBOX ", "VBOXBIOS", 0x00000002) | |
| { | |
| OperationRegion(DBG0, SystemIO, 0x3000, 0x4) | |
| Field(DBG0, ByteAcc, NoLock, Preserve) | |
| { | |
| DHE1, 8 | |
| } | |
| Field(DBG0, WordAcc, NoLock, Preserve) | |
| { | |
| DHE2, 16 |
read first https://gist.github.com/KunYi/93aa68d816eb923baf1044ec59632f01 just convert
==>ENQ
<==ACK
==>STX,00E0202,ETX,6C
<==STX,A85E,ETX,F6
==>STX,00ECA02,ETX,8E
<==STX,683F,ETX,EA
| // MonitorSerialPort.cpp : This file contains the 'main' function. Program execution begins and ends there. | |
| // | |
| #include <windows.h> | |
| #include <iostream> | |
| #include <conio.h> | |
| #include <iomanip> | |
| // Want to open communcation port | |
| #define HOST_COMPORT L"COM4" |
All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker. This will install the whole docker suite, left only Tini to be compiled manually.
| U-Boot 2019.04 (Aug 09 2022 - 05:12:55 +0000) | |
| SOC : AST2500-A1 | |
| RST : Power On | |
| 2nd Boot : Enable | |
| LPC Mode : SIO:Enable : SuperIO-2e | |
| Eth : MAC0: RMII/NCSI, , MAC1: RMII/NCSI, | |
| Model: Romulus BMC | |
| DRAM: 192 MiB (capacity:256 MiB, VGA:64 MiB, ECC:off) | |
| MMC: |
| $ git clone https://github.com/openbmc/openbmc.git | |
| $ git checkout 988bd1f2101c5f618addf180a95c94428ede7305 # 2.11.0 | |
| $ git switch -c 2.11 | |
| $ cd openbmc | |
| $ mkdir build # make build folder | |
| $ . setup romulus build # setup build environments | |
| $ bitbake obmc-phosphor-image # run build | |
| Loading cache: 100% | | ETA: --:--:-- | |
| Loaded 0 entries from dependency cache. |
| kunyi@kunyi-ThinkPad-P53:~/openbmc/openbmc/build/tmp/deploy/images/romulus$ ./qemu-system-arm -m 256 -machine romulus-bmc -nographic -drive file=./obmc-phosphor-image-romulus.static.mtd,format=raw,if=mtd -net nic -net user,hostfwd=:127.0.0.1:2022-:22,hostfwd=:127.0.0.1:2443-:443,hostfwd=tcp:127.0.0.1:2080-:80,hostfwd=tcp:127.0.0.1:2200-:2200,hostfwd=udp:127.0.0.1:2623-:623,hostfwd=udp:127.0.0.1:2664-:664,hostname=qemu | |
| qemu-system-arm: warning: Aspeed iBT has no chardev backend | |
| qemu-system-arm: warning: nic ftgmac100.1 has no peer | |
| U-Boot 2016.07 (Aug 17 2022 - 03:19:19 +0000) | |
| Watchdog enabled | |
| DRAM: 240 MiB | |
| Flash: 32 MiB |
| kunyi@kunyi-ThinkPad-P53:~/$ ipmitool -I lanplus -p 2623 -C 17 -H 127.0.0.1 -vvv -U root -P 0penBmc mc info | |
| >> Sending IPMI command payload | |
| >> netfn : 0x06 | |
| >> command : 0x38 | |
| >> data : 0x8e 0x04 | |
| BUILDING A v1.5 COMMAND | |
| >> IPMI Request Session Header | |
| >> Authtype : NONE |
| kunyi@kunyi-ThinkPad-P53:~/openbmc/openbmc-build-scripts$ WORKSPACE=~/ombc_2.11.0 num_cpu=4 target=romulus img_tag=bionic ./build-setup.sh | |
| +++ dirname ./build-setup.sh | |
| ++ cd . | |
| ++ pwd | |
| + build_scripts_dir=/home/kunyi/openbmc/openbmc-build-scripts | |
| + http_proxy= | |
| + WORKSPACE=/home/kunyi/ombc_2.11.0 | |
| + num_cpu=4 | |
| + UBUNTU_MIRROR= | |
| + ENV_LOCAL_CONF= |