Category Archives: Hardware

Unable to complete install: internal error: cannot load AppArmor profile libvirt

ARM64 系統 + Ubuntu 20.04 裝 virt-manager 碰到一些問題,第一關是碰到 libvirtd 被 mask 掉了,這個簡單

Read more »

Stable Diffusion webui CPU only on ARM64 Platform

Stable Diffusion webui is a web service based on Gradio library for Stable Diffusion. The installation process can automatically set up the environment and install Stable Diffusion, which can save a lot of time. However, it requires an NVIDIA or AMD GPU to install it. If you want to install Stable Diffusion WebUI without a GPU, some modifications are necessary.

Using a CPU to run Stable Diffusion can be painful, so this article is just for fun.

Platform is Ampere Altra Mt. Collins system with 2 Ampere Altra CPU, total 160 cores.
OS: ubuntu 22.04.02 LTS
Seems Stable Diffustion webui needs python 3.10, so, ubuntu 22.04 is good choice.

Read more »

Raspberry Pi Pico W + PicoOLED 2.23 + Arduino 顯示天氣預報降雨機率和空污指數

有時候人生就是不能亂買東西,一步錯步步錯,然後就弄了這個出來,當然不是圖中大螢幕的屋內屋外溫濕度狀況,而是左上角小小的溫度預測

至於怎麼來的,一切都要從邪惡的阿媽爽60元免運說起,因為60元免運,有時候就會將有些小東西放到購物車內,因為有時候即使加了稅金,從美亞(美國亞馬遜Amazon)網站買東西還比淘寶買便宜,更不要說很多東西只有美亞有,這時候小東西湊60元免運頗方便的

原來是我有二張 Arduino 的板子,本來也只是接來做溫度偵測,也沒有什麼用,想說接個小螢幕顯示一下天氣預報,但是這東西又不是很必要,就想想而已,就隨便找了一個看起來順眼的 SPI LCD 和 OLED (想說比較省電)就放到購物車了,上個月美國很多東西都特價,兩雙鞋子才 30 元美金,這塊 OLED 好像也才 15 上下,就被拿來湊運費了,沒想到我手上並沒有東西可以接

Read more »

幫 NVME SSD 穿衣服

最近自已用的電腦一直莫名其妙的重開機,檢查了半天也沒看到什麼特別的狀況,猜測有可能是因為最近電腦搬地方,天氣又涼一點我就沒開冷氣,電腦通風不良

Read more »

BMC Watchdog

這個時間有點久了,我也忘了很多細節,畢竟用到的次數太少,不過就將記得的寫一篇,以後可以自己回來查資料
如果是有 BMC 的機器,BMC 內部有一個 watchdog 可以監視 host 系統運行的狀況,這個拿來放在遠端重啟 host 非常好用

Read more »

Linux Kernel Install Fail Because Broadcom NetXtreme 100G DKMS Driver Build Failed.

Environment is CentOS 8, broadcom 100G NetXtreme-E series driver .
Host : Ampere Altra Platform

if rebuild the CentOS kernel and there was previous Broadcom nic driver alredy installed, it will trigger dkms to rebuild the driver on current kernel.

make install error as following

Read more »

Multi-socket is doomed

Brendan Gregg 在 2021 年的演講提到的 Multi-socket is doomed
他的理由是如果在 cloud 上擴展 CPU ,可以再加開 instance 就好,沒有必要一定要讓該機器的 CPU 數變多,因為跨 CPU 的存取的工程非常浩大,而且會有很多問題產生

今天我們就看到有人就這樣幹了

Read more »

Thinkpad KT-1255 Bluetooth Keyboard Pairing

I don’t know why press the power key over 3 seconds cannot make this keyboard enter pairing mode.
LED will flash quickly around 2 second then blinked

So there is another option can make it enter pairing mode, it’s keyboard’s NFC function

Unlock SmartPhone, and use SmartPhone NFC zone to touch the keyboard’s NFC zone (close to ThinkPad Logo),
then keyboard will enter pairing mode.
Done.

Ampere Altra Mt. Jade OpenBMC and EDKII build guide on ARM64 platform

Ampere announce Altra CPU, it’s a 80 cores ARM64v8 CPU for cloud native workloads. Altra Max CPU is 128 cores. Follow the CPU, Ampere also has a CRB (customer reference board) named Mt. Jade, and Ampere also open source OpenBMC and EDKII source code for Mt. Jade platform.

This article is personal note, all information can be found from internet. And open source project keeps going, it might be some minor differences when you find this article.

Read more »

Build Ampere CentOS Kernel

Personal Note

Read more »