Skip to content

Instantly share code, notes, and snippets.

View heitbaum's full-sized avatar

Rudi Heitbaum heitbaum

  • Melbourne, Australia
  • 15:20 (UTC +11:00)
View GitHub Profile
@heitbaum
heitbaum / proxmox.md
Last active September 18, 2025 13:55

To share a Proxmox host folder into an LXC container, first mount the desired host folder to a temporary location on the PVE host, then use the pct.set command or modify the LXC's configuration file to bind-mount this temporary directory into the container. Ensure the container's user has the correct permissions for the mounted folder, adjusting User ID (UID) and Group ID (GID) as necessary, which can be done in the container's configuration file.

Step-by-Step Guide

  • Mount the folder on the Proxmox host:

    • Ensure you have the necessary network share (NFS or SMB/CIFS) mounted on your PVE host.
    • Create a directory on the host to serve as a temporary mount point for your shared folder.

mkdir /mnt/my-shared-folder

  • Configure the LXC Container:

@heitbaum
heitbaum / rtw88-tests.md
Last active February 27, 2023 08:28
RTW88 Tests

Tanix TX6 with rtw_8822cs // second device is a NUC12 connected via 1Gb

tx6:~ # dmesg | more
[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 6.1.12 (docker@28560942fd46) (aarch64-none-elf-gcc-12.2.0 (GCC) 12.2.0, GNU ld (GNU Binutils) 2.39) #1 SMP PREEMPT Sat Feb 25 20:41:36 UTC 2023
[    0.000000] Machine model: Tanix TX6
...
[    7.019860] rtw_8822cs mmc1:0001:1: WOW Firmware version 9.9.4, H2C version 15
[    7.023515] rtw_8822cs mmc1:0001:1: Firmware version 9.9.14, H2C version 15
[    7.852418] Bluetooth: hci0: RTL: examining hci_ver=08 hci_rev=000c lmp_ver=08 lmp_subver=8822
DDR Version V1.08 20220617
LPDDR4X, 2112MHz
channel[0] BW=16 Col=10 Bk=8 CS0 Row=17 CS1 Row=17 CS=2 Die BW=8 Size=4096MB
channel[1] BW=16 Col=10 Bk=8 CS0 Row=17 CS1 Row=17 CS=2 Die BW=8 Size=4096MB
channel[2] BW=16 Col=10 Bk=8 CS0 Row=17 CS1 Row=17 CS=2 Die BW=8 Size=4096MB
channel[3] BW=16 Col=10 Bk=8 CS0 Row=17 CS1 Row=17 CS=2 Die BW=8 Size=4096MB
Manufacturer ID:0x6
CH0 RX Vref:31.7%, TX Vref:21.8%,21.8%
CH1 RX Vref:30.7%, TX Vref:21.8%,21.8%
CH2 RX Vref:30.7%, TX Vref:22.8%,22.8%
[11898.325387] ------------[ cut here ]------------
[11898.325405] WARNING: CPU: 1 PID: 1220 at drivers/mmc/core/sdio_irq.c:253 sdio_release_irq+0x124/0x140
[11898.325431] Modules linked in: 8021q garp mrp stp llc bnep rtw88_8822cs(-) rtw88_8822c sunxi_cir rtw88_sdio hci_uart crct10dif_ce rtw88_core btqca btrtl btbcm mac80211 dwmac_sun8i libarc4 btintel bluetooth hantro_vpu(C) ecdh_generic panfrost v4l2_vp9 ecc v4l2_h264 drm_shmem_helper gpu_sched sun50i_di cfg80211 rfkill pkcs8_key_parser fuse
[11898.325528] CPU: 1 PID: 1220 Comm: rmmod Tainted: G WC 5.18.7 #1
[11898.325535] Hardware name: Tanix TX6 (DT)
[11898.325540] pstate: 60000005 (nZCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[11898.325547] pc : sdio_release_irq+0x124/0x140
[11898.325555] lr : rtw_sdio_remove+0x7c/0xd0 [rtw88_sdio]
[11898.325570] sp : ffff80000a74bc20
[11898.325573] x29: ffff80000a74bc20 x28: ffff000002933600 x27: 0000000000000000
tx6:~ # dmesg
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[ 0.000000] Linux version 5.18.7 (docker@29e7d7ae2354) (aarch64-none-elf-gcc-11.3.0 (GCC) 11.3.0, GNU ld (GNU Binutils) 2.38) #1 SMP PREEMPT Sat Jun 25 14:21:39 UTC 2022
[ 0.000000] Machine model: Tanix TX6
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x0000000040000000-0x00000000ffffffff]
[ 0.000000] DMA32 empty
[ 0.000000] Normal empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
@heitbaum
heitbaum / NeZha-bringup.txt
Last active November 3, 2021 04:36
NeZha-bringup.txt
[ 117.825464] systemd-journal[566]: unhandled signal 11 code 0x2 at 0x0000003fd550e114 in libc.so.6[3fd54a9000+114000]
[ 117.854481] CPU: 0 PID: 566 Comm: systemd-journal Not tainted 5.14.0-rc5 #1
[ 117.876685] Hardware name: Allwinner D1 NeZha (DT)
[ 117.889554] epc : 0000003fd550e114 ra : 0000003fd550e0ee sp : 0000003fd50e8790
[ 117.908524] gp : 000000000002e800 tp : 0000003fd50e9810 t0 : 0000003fffc7ed80
[ 117.929476] t1 : 00000000007ff8e0 t2 : 000000000000000a s0 : 0000003fd50e88d0
[ 117.947969] s1 : 0000003fd50e948c a0 : 0000000000000000 a1 : 0000003fd50e9760
[ 117.968682] a2 : 0000000000000000 a3 : 0000000000000008 a4 : 0000000000000000
[ 117.989472] a5 : 0000000000000000 a6 : 0000003fd50e9140 a7 : 0000000000000087
[ 118.011394] s2 : 0000003fffc7fc0e s3 : 0000003fffc7fc0f s4 : 0000000000000000
[238]HELLO! BOOT0 is starting!
[241]BOOT0 commit : 27369ab
[243]set pll start
[245]periph0 has been enabled
[248]set pll end
[250][pmu]: bus read error
[252]board init ok
[254]DRAM only have internal ZQ!!
[257]get_pmu_exist() = -1
[260]ddr_efuse_type: 0x0
@heitbaum
heitbaum / Tanix-TX6s-fdt-devicetree-from-android.txt
Created June 5, 2021 13:10
Tanix-TX6s-fdt-devicetree-from-android
/dts-v1/;
/memreserve/ 0x0000000048000000 0x0000000001000000;
/memreserve/ 0x0000000043000000 0x00000000000bc501;
/ {
interrupt-parent = <0x1>;
#address-cells = <0x2>;
#size-cells = <0x2>;
model = "sun50iw9";
compatible = "allwinner,h616", "arm,sun50iw9p1";
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[ 0.000000] Linux version 5.12.7 (rudi@7716491ae936) (aarch64-minimyth-linux-gnu-gcc (GCC) 10.3.0, GNU ld (GNU Binutils) 2.36) #1 SMP PREEMPT Sun May 30 11:02:46 UTC 2021
[ 0.000000] Machine model: Tanix TX6s
[ 0.000000] efi: UEFI not found.
[ 0.000000] earlycon: uart0 at MMIO32 0x0000000005000000 (options '115200n8')
[ 0.000000] printk: bootconsole [uart0] enabled
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x0000000040000000-0x00000000ffffffff]
[ 0.000000] DMA32 empty
[ 0.000000] Normal empty
@heitbaum
heitbaum / Tanix-TX6s-uboot-2021.04.txt
Created May 30, 2021 07:05
Tanix TX6s uboot 2021.04
U-Boot SPL 2021.04 (May 16 2021 - 14:37:09 +0000)
DRAM: 4096 MiB
Trying to boot from MMC1
NOTICE: BL31: v2.4(debug):v11.19.1-v32-Pre-2751-7-g9ab862fc
NOTICE: BL31: Built : 14:37:06, May 16 2021
NOTICE: BL31: Detected Allwinner H616 SoC (1823)
NOTICE: BL31: Found U-Boot DTB at 0x4a086940, model: Tanix TX6s
INFO: ARM GICv2 driver initialized
INFO: Configuring SPC Controller