Skip to content

Instantly share code, notes, and snippets.

@KunYi
KunYi / qemu-with-openbmc-romulus.2.11.0.log
Created August 17, 2022 06:28
qemu booting with OpenBMC 2.11.0 for romulus
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 / openbmc_operation.txt
Created August 16, 2022 10:56
pull openbmc and build
$ 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 / romulus_boot.log
Created August 16, 2022 08:54
OpenBMC romulus booting log
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:
@KunYi
KunYi / docker.md
Created May 20, 2022 04:34 — forked from FreddieOliveira/docker.md
This tutorial shows how to run docker natively on Android, without VMs and chroot.

Docker on Android 🐋📱

Edit 🎉

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.


Summary

@KunYi
KunYi / Monitor2SerialPort.cpp
Created April 28, 2022 06:34
Monitor Two Serial Port for Windows
// 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"
@KunYi
KunYi / FX3U Protocol snippet ASCII.md
Created April 28, 2022 06:22
FX3U Protocol record ASCII
@KunYi
KunYi / FX3U Protocl snippet.md
Last active September 11, 2024 10:12
FX3U Protocol Record, Binary Format

FX3U Protocol record

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
@KunYi
KunYi / dsdt.asl
Last active April 18, 2022 11:12
Custom DSDT for VirtualBox 6/Windows ACPI driver study
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
@KunYi
KunYi / UxConn.log
Last active April 2, 2022 13:30
Visual Serial/COM port log with TeraTerm
kd> g
KDTARGET: Refreshing KD connection
[3]0004.0040::01/01/1601-08:01:29.343 [UxConn]-->UxConn DriverEntry
[3]0004.0040::01/01/1601-08:01:29.345 [UxConn]<--UxConn DriverEntry
[3]0004.0040::01/01/1601-08:01:29.345 [UxConn]-->SerialEvtDeviceAdd
[3]0004.0040::01/01/1601-08:01:29.345 [UxConn]-->SerialGetFdoRegistryKeyValue (SerialRelinquishPowerPolicy)
[3]0004.0040::01/01/1601-08:01:29.345 [UxConn]<--SerialGetFdoRegistryKeyValue(SerialRelinquishPowerPolicy 0)
[3]0004.0040::01/01/1601-08:01:29.345 [UxConn]Created device (78F66380) \Device\UxCom0
[3]0004.0040::01/01/1601-08:01:29.345 [UxConn]-->SerialGetRegistryKeyValue(MultiportDevice)
[3]0004.0040::01/01/1601-08:01:29.345 [UxConn]<--SerialGetRegistryKeyValue MultiportDevice 0
@KunYi
KunYi / pico-nijia on win10.log
Created March 2, 2022 09:46
build Raspberry PICO 2040 on Windows 10, need platform toolchain and cross arm toolchain
cmake -DCMAKE_MAKE_PROGRAM=ninja.exe -G "Ninja" ..
Using PICO_SDK_PATH from environment ('C:\Users\kunic\source\repos\pico\pico-sdk')
PICO_SDK_PATH is C:/Users/kunic/source/repos/pico/pico-sdk
Defaulting PICO_PLATFORM to rp2040 since not specified.
Defaulting PICO platform compiler to pico_arm_gcc since not specified.
-- Defaulting build type to 'Release' since not specified.
PICO compiler is pico_arm_gcc
-- The C compiler identification is GNU 10.3.1
-- The CXX compiler identification is GNU 10.3.1