Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View avafinger's full-sized avatar
👻
I may be slow to respond.

avafinger

👻
I may be slow to respond.
View GitHub Profile
rock@nanopi5:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.4 LTS
Release: 20.04
Codename: focal
rock@nanopi5:~$
rock@nanopi5:~$ uname -ra
@avafinger
avafinger / sample code to reproduce memory leak
Last active December 27, 2021 22:09
libpodofo memory leak (some cleanup - UPDATED)
//
//
// =====================================================================
// g++ sign.cpp -o sign -I/usr/include/openssl -lssl -lpodofo -lcrypto
// =====================================================================
//
// OpenSSL includes
#include <openssl/err.h>
#include <openssl/evp.h>
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x412fd050]
[ 0.000000] Linux version 4.19.193 (rock@rock3a) (gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04), GNU ld (GNU Binutils for Ubuntu) 2.34) #2 SMP Tue Oct 19 20:06:24 -03 2021
[ 0.000000] Machine model: Radxa ROCK 3 Model A
[ 0.000000] OF: fdt: Reserved memory: failed to reserve memory for node 'drm-logo@00000000': base 0x0000000000000000, size 0 MiB
[ 0.000000] OF: fdt: Reserved memory: failed to reserve memory for node 'drm-cubic-lut@00000000': base 0x0000000000000000, size 0 MiB
[ 0.000000] Reserved memory: created CMA memory pool at 0x00000001f8000000, size 128 MiB
[ 0.000000] OF: reserved mem: initialized node rknpu, compatible id shared-dma-pool
[ 0.000000] cma: Reserved 384 MiB at 0x00000000d8000000
[ 0.000000] On node 0 totalpages: 1048064
[ 0.000000] DMA32 zone: 15352 pages used for memmap
@avafinger
avafinger / HDMI sound broken (distro issue?)
Last active February 2, 2021 00:32
Dual Camera ov4689
Feb 1 21:35:14 nanopi-m4 kernel: [ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
Feb 1 21:35:14 nanopi-m4 kernel: [ 0.000000] Linux version 5.11.0-rc6 (alex@svn) (aarch64-linux-gnu-gcc (Linaro GCC 7.5-2019.12-rc1) 7.5.0, GNU ld (Linaro_Binutils-2019.12-rc1) 2.28.2.20170706) #2 SMP PREEMPT Mon Feb 1 17:57:17 -03 2021
Feb 1 21:35:14 nanopi-m4 kernel: [ 0.000000] Machine model: FriendlyElec NanoPi M4
Feb 1 21:35:14 nanopi-m4 kernel: [ 0.000000] efi: UEFI not found.
Feb 1 21:35:14 nanopi-m4 kernel: [ 0.000000] NUMA: No NUMA configuration found
Feb 1 21:35:14 nanopi-m4 kernel: [ 0.000000] NUMA: Faking a node at [mem 0x0000000000200000-0x000000007fffffff]
Feb 1 21:35:14 nanopi-m4 kernel: [ 0.000000] NUMA: NODE_DATA [mem 0x7fba1100-0x7fba2fff]
Feb 1 21:35:14 nanopi-m4 kernel: [ 0.000000] Zone ranges:
Feb 1 21:35:14 nanopi-m4 kernel: [ 0.000000] DMA [mem 0x0000000000200000-0x000000007fffffff]
Feb 1 21:35:14 nanopi-m4 kernel: [ 0.000000] DMA32 emp
@avafinger
avafinger / Bootlog with eth1
Created November 1, 2020 21:06
NanoPi R2S eth1
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[ 0.000000] Linux version 5.10.0-rc1 (alex@svn) (aarch64-linux-gnu-gcc (Linaro GCC 7.5-2019.12-rc1) 7.5.0, GNU ld (Linaro_Binutils-2019.12-rc1) 2.28.2.20170706) #1 SMP PREEMPT Sat Oct 31 20:27:10 -03 2020
[ 0.000000] Machine model: FriendlyElec NanoPi R2S
[ 0.000000] efi: UEFI not found.
[ 0.000000] cma: Reserved 16 MiB at 0x000000003f000000
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x0000000000200000-0x000000003fffffff]
[ 0.000000] DMA32 empty
[ 0.000000] Normal empty
[ 0.000000] Movable zone start for each node
@avafinger
avafinger / Benchmarking Kernel 5.10.0-rc1 NanoPi R2s
Created November 1, 2020 20:21
Benchmarking NanoPi R2S 7z b
ubuntu@nanopi-r2s:~$ 7z b
7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=C.UTF-8,Utf16=on,HugeFiles=on,64 bits,4 CPUs LE)
LE
CPU Freq: - - - - - - - - -
RAM size: 979 MB, # CPU hardware threads: 4
RAM usage: 882 MB, # Benchmark threads: 4
@avafinger
avafinger / bootlog Kernel 5.10.0-rc1
Created November 1, 2020 20:17
Kernel 5.10.0-rc1 on NanoPi R2S
alex@svn:~$ ssh ubuntu@192.168.254.28
ubuntu@192.168.254.28's password:
Welcome to Ubuntu 19.10 (GNU/Linux 5.10.0-rc1 aarch64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
Last login: Sun Nov 1 20:13:05 2020 from 192.168.254.253
ubuntu@nanopi-r2s:~$ dmesg
@avafinger
avafinger / RockPi E - 100Mbit
Created August 20, 2020 23:14
RockPi E Kernel 5.9.0-rc1 - 100Mbit / 1 GBit
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[ 0.000000] Linux version 5.9.0-rc1 (alex@svn) (aarch64-linux-gnu-gcc (Linaro GCC 7.5-2019.12-rc1) 7.5.0, GNU ld (Linaro_Binutils-2019.12-rc1) 2.28.2.20170706) #3 SMP PREEMPT Wed Aug 19 09:56:54 -03 2020
[ 0.000000] Machine model: Radxa RockPiE Eng
[ 0.000000] efi: UEFI not found.
[ 0.000000] cma: Reserved 16 MiB at 0x000000003f000000
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x0000000000200000-0x000000003fffffff]
[ 0.000000] DMA32 empty
[ 0.000000] Normal empty
[ 0.000000] Movable zone start for each node
@avafinger
avafinger / BSP Kernel 4.19.11 - NanoPi M4
Created July 30, 2020 22:35
NanoPi M4 with Kernel 4.19.111
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[ 0.000000] Linux version 4.19.111 (alex@svn) (gcc version 7.5.0 (Linaro GCC 7.5-2019.12-rc1)) #3 SMP Thu Jul 30 19:00:37 -03 2020
[ 0.000000] Machine model: FriendlyElec NanoPi M4
[ 0.000000] efi: Getting EFI parameters from FDT:
[ 0.000000] efi: UEFI not found.
[ 0.000000] OF: fdt: Reserved memory: failed to reserve memory for node 'drm-logo@00000000': base 0x0000000000000000, size 0 MiB
[ 0.000000] cma: Reserved 128 MiB at 0x0000000075c00000
[ 0.000000] On node 0 totalpages: 523776
[ 0.000000] DMA32 zone: 8184 pages used for memmap
[ 0.000000] DMA32 zone: 0 pages reserved
@avafinger
avafinger / Kernel 5.8.0-rc1 nanoPi R2S
Created June 15, 2020 13:40
NanoPi R2S with Kernel 5.8.0-rc1
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[ 0.000000] Linux version 5.8.0-rc1 (alex@svn) (aarch64-linux-gnu-gcc (Linaro GCC 7.5-2019.12-rc1) 7.5.0, GNU ld (Linaro_Binutils-2019.12-rc1) 2.28.2.20170706) #3 SMP PREEMPT Mon Jun 15 10:07:48 -03 2020
[ 0.000000] Machine model: FriendlyElec NanoPi R2S
[ 0.000000] efi: UEFI not found.
[ 0.000000] cma: Reserved 16 MiB at 0x000000003f000000
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x0000000000200000-0x000000003fffffff]
[ 0.000000] DMA32 empty
[ 0.000000] Normal empty
[ 0.000000] Movable zone start for each node