Skip to content

Instantly share code, notes, and snippets.

View mbohun's full-sized avatar
🙃
How do you do?

Martin Bohun Hormann mbohun

🙃
How do you do?
  • Canberra, ACT, Australia
View GitHub Profile
@mbohun
mbohun / NOTES.md
Created October 15, 2023 03:44
Okular certutils digital_sign
  1. create a new certificate with certutil command:
    certutil -S \
    -s "CN=[ your full name ],O= [ Business or School ],OU=[ Deparment or position ],L= [ Location ],ST=[ State ],C= [ Country code ],E= [ your email ]" \
    -g 2048 \
    -d sql:$HOME/.pki/nssdb \
    -n [ new name of certificate ] \
    -x \
    

-t "Cu,Cu,Cu" \

@mbohun
mbohun / NOTES.md
Created October 14, 2023 08:34
PineTab-V stopped charging battery when ON
pinetabv:~$ while true; do echo "`date +%Y-%m-%d_%H:%M`, `cat /sys/class/power_supply/cw2015-battery/capacity`"; sleep 120; done 
2023-10-14_18:29, 39
2023-10-14_18:31, 39
2023-10-14_18:33, 39
2023-10-14_18:35, 39
2023-10-14_18:37, 39
^C
pinetabv:~$ while true; do echo "`date +%Y-%m-%d_%H:%M`, `cat /sys/class/power_supply/cw2015-battery/status`, `cat /sys/cl
ass/power_supply/cw2015-battery/capacity`%"; sleep 120; done 
@mbohun
mbohun / NOTES.md
Last active September 23, 2023 00:23

BROKEN PineTab-V

  1. 2023-07-28 08:30 PineTab-V delivered to Canberra, ACT
  2. I did connect the PineTab-V with the UART adapter to my PineBookPro, opened a terminal on the PineBookPro
    [mbohun@mbohunpinebookpro ~]$ minicom -b 115200 -D /dev/ttyUSB0
    
  3. Turned the PineTab-V ON, everything was running fine (as expected) for the next apx. 12-24 hours before I noticed the PineTab-V display "is off" and won't resume normal operation after a reboot, or a poweroff + START (Because the PineTab-V ships without a GUI interface at the moment (no xorg, no Wayland), I was obviously interacting with PineTab-V via the UART from my PineBookPro.
  4. I was not making any changes to the configuration, etc. In fact i did discover the content of the /root dir (with number of different tests/demos) only AFTER the display problem happened, so in fact i have never seen any of those test scripts in action while the PineTab-V display was still working OK
  5. 2023-09-23 10:22 attempting to fix the PineTab-V ...
@mbohun
mbohun / 2023-06-05_dmesg.log
Created June 5, 2023 04:55
PineTab2 dmesg
[Mon Jun 5 13:46:06 2023] Booting Linux on physical CPU 0x0000000000 [0x412fd050]
[Mon Jun 5 13:46:06 2023] Linux version 6.3.0-2-danctnix (builduser@alarm) (aarch64-unknown-linux-gnu-gcc (GCC) 12.1.0, GNU ld (GNU Binutils) 2.38) #1 SMP PREEMPT_DYNAMIC Fri May 26 07:05:36 UTC 2023
[Mon Jun 5 13:46:06 2023] Machine model: Pine64 PineTab2 v2.0
[Mon Jun 5 13:46:06 2023] NUMA: No NUMA configuration found
[Mon Jun 5 13:46:06 2023] NUMA: Faking a node at [mem 0x0000000000200000-0x00000001ffffffff]
[Mon Jun 5 13:46:06 2023] NUMA: NODE_DATA [mem 0x1fefdafc0-0x1fefdcfff]
[Mon Jun 5 13:46:06 2023] Zone ranges:
[Mon Jun 5 13:46:06 2023] DMA [mem 0x0000000000200000-0x00000000ffffffff]
[Mon Jun 5 13:46:06 2023] DMA32 empty
[Mon Jun 5 13:46:06 2023] Normal [mem 0x0000000100000000-0x00000001ffffffff]
@mbohun
mbohun / APKBUILD
Created May 26, 2023 09:48 — forked from shtirlic/APKBUILD
APKBUILD for nvtop for alpine with ardeno gpu support
# Maintainer: Serg Podtynnyi <[email protected]>
pkgname=nvtop
pkgver=3.0.2
pkgrel=1
pkgdesc="GPUs process monitoring for AMD, Intel,NVIDIA and Adreno"
url="https://github.com/Syllo/nvtop"
arch="aarch64"
license="GPL3"
depends="
ncurses
@mbohun
mbohun / NOTES.md
Last active December 30, 2024 17:39
EDID

old-fashioned way to get EDID does not work

install read-edid utils
  • parse-edid is required
mbohun@mamlas:~> zypper info read-edid
Loading repository data...
Reading installed packages...

@mbohun
mbohun / P80_cpu_info_mystery.md
Created March 5, 2023 14:02
P80 /proc/cpuinfo mystery
Processor	: ARMv7 Processor rev 4 (v7l)
processor	: 0
BogoMIPS	: 22.40
Features	: swp half thumb fastmult vfp edsp thumbee neon vfpv3 tls vfpv4 idiva idivt 
CPU implementer	: 0x41
CPU architecture: 7
CPU variant	: 0x0
CPU part	: 0xc07
CPU revision	: 4
@mbohun
mbohun / NOTES.md
Created March 1, 2023 08:24
Pine64 Pinephone1.2 PinePhonePro flatpak
pine64-pinephonepro:~$ flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
error: Flatpak system operation ConfigureRemote not allowed for user
@mbohun
mbohun / NOTES.md
Last active February 28, 2023 07:17
PinePhonePro Megapixels

what do we want? MEGAPIXELS! when do we want it? NOW!

  1. i am trying this on the latest stable postmarketOS/phosh for PinePhonePro
  2. i did uninstall the pre-installed Megapixels (does not work on PPP anyway)
  3. after that i git clone https://gitlab.com/postmarketOS/megapixels.git
  4. and tried to build & install
pine64-pinephonepro:~/src/megapixels.git$ git remote show origin
* remote origin
  Fetch URL: https://gitlab.com/postmarketOS/megapixels.git
@mbohun
mbohun / NOTES.md
Created December 18, 2022 03:13
riscv hifive-unmatched fedora-rawhide
[riscv@mbohun-unmatched ~]$ sudo dnf update --skip-broken --best --allowerasing
                                                                                                                                                                                               
Fedora RISC-V                                                                                                                                                                                                                                                                                                                                                                                                 0.0  B/s |   0  B     00:00    
Errors during downloading metadata for repository 'fedora-riscv':
  - Curl error (7): Couldn't connect to server for http://fedora.riscv.rocks/repos-dist/rawhide/latest/riscv64/repodata/repomd.xml [Failed to connect to fedora.riscv.rocks port 80 after 241 ms: Connection refused]
  - Curl error (7): Couldn't connect t