root@intel-corei7-64:/sys/fs/pstore# echo 3 > /proc/sys/kernel/panic #秒數設定
root@intel-corei7-64:/sys/fs/pstore# echo c > /proc/sysrq-trigger
root@intel-corei7-64:/sys/fs/pstore# echo 3 > /proc/sys/kernel/panic #秒數設定
root@intel-corei7-64:/sys/fs/pstore# echo c > /proc/sysrq-trigger
1: download python 2.7.18
https://www.python.org/ftp/python/2.7.18/Python-2.7.18.tgz
2: change deb-src
software & Updates 裡面改source code到Taiwan
3: apt-get build-dep python3
4: sudo apt-get install \
curl \
gcc \
libbz2-dev \
libev-dev \
libffi-dev \
libgdbm-dev \
liblzma-dev \
libncurses-dev \
libreadline-dev \
libsqlite3-dev \
libssl-dev \
make \
tk-dev \
wget \
zlib1g-dev
5:: apt-get install zlib1g-dev libdb-dev libncurses5-dev libncursesw5-dev libsqlite3-dev libssl-dev
6: ./configure
7: make -j`nproc`
8: make install
9: wget https://bootstrap.pypa.io/pip/2.7/get-pip.py
10: python get-pip.py
stable-diffusion-webui-master\modules\launch_utils.py
torch_command = os.environ.get('TORCH_COMMAND', f"pip install torch==2.4.0 torchvision==0.19.0 --extra-index-url {torch_index_url}")
可以改版本安裝
https://github.com/tpm2-software/tpm2-tss/blob/master/doc/logging.md
export TSS2_LOG=all+ERROR,marshal+TRACE,tcti+DEBUG
G_MESSAGES_DEBUG=all tpm2-abrmd start --allow-root
netif_dbg
netif_dbg(pdata, drv, pdata->netdev, "???!!!\n"); 不會印
netif_dbg(pdata, link, pdata->netdev, "CL73 AN initialized hahaha ~~~\n"); 會印
#define netif_dbg(priv, type, netdev, format, args...) \
do { \
if (netif_msg_##type(priv)) \
dynamic_netdev_dbg(netdev, format, ##args); \
} while (0)
#define netif_msg_drv(p) ((p)->msg_enable & NETIF_MSG_DRV)
#define netif_msg_probe(p) ((p)->msg_enable & NETIF_MSG_PROBE)
#define netif_msg_link(p) ((p)->msg_enable & NETIF_MSG_LINK)
可以看的出來是priv的變數中決定哪一些要印的.
請以NETIF_MSG_LINK之類作為關鍵字搜尋, 把自己想印的加進去
enum {
NETIF_MSG_DRV = 0x0001,
NETIF_MSG_PROBE = 0x0002,
NETIF_MSG_LINK = 0x0004,
NETIF_MSG_TIMER = 0x0008,
NETIF_MSG_IFDOWN = 0x0010,
NETIF_MSG_IFUP = 0x0020,
NETIF_MSG_RX_ERR = 0x0040,
NETIF_MSG_TX_ERR = 0x0080,
NETIF_MSG_TX_QUEUED = 0x0100,
NETIF_MSG_INTR = 0x0200,
NETIF_MSG_TX_DONE = 0x0400,
NETIF_MSG_RX_STATUS = 0x0800,
NETIF_MSG_PKTDATA = 0x1000,
NETIF_MSG_HW = 0x2000,
NETIF_MSG_WOL = 0x4000,
};
https://www.freedesktop.org/software/systemd/man/latest/busctl.html
https://manpages.ubuntu.com/manpages/focal/zh_TW/man1/busctl.1.html
busctl get-property org.freedesktop.systemd1 /org/freedesktop/systemd1 org.freedesktop.systemd1.Manager FirmwareTimestampMonotonic