Home Android Arch Linux Gentoo Linux LibreELEC Github Geo

Tanix TX6

Images

WLAN / BT

  • RTL8822BS
    • Source - compiles, not tested yet, use commit 38e702c9049f10f1cfa1f9a50d12fd21e08e306c

      LibreELEC - packages/linux-drivers/RTL8822BS/package.mk

      PKG_NAME="RTL8822BS"
      PKG_VERSION="38e702c9049f10f1cfa1f9a50d12fd21e08e306c"
      PKG_SHA256=""
      PKG_LICENSE="GPL"
      PKG_SITE=""
      PKG_URL="https://github.com/ChalesYu/rtl8822bs-aml/archive/$PKG_VERSION.tar.gz"
      PKG_DEPENDS_TARGET="toolchain linux"
      PKG_NEED_UNPACK="$LINUX_DEPENDS"
      PKG_LONGDESC="Realtek RTL8822BS Linux 5.2 driver"
      PKG_IS_KERNEL_PKG="yes"
      
      pre_make_target() {
        unset LDFLAGS
      }
      
      make_target() {
        make V=1 \
             ARCH=$TARGET_KERNEL_ARCH \
             KSRC=$(kernel_path) \
             CROSS_COMPILE=$TARGET_KERNEL_PREFIX \
             CONFIG_POWER_SAVING=n \
             USER_EXTRA_CFLAGS="-Wno-error=date-time"
      }
      
      makeinstall_target() {
        mkdir -p $INSTALL/$(get_full_module_dir)/$PKG_NAME
          cp *.ko $INSTALL/$(get_full_module_dir)/$PKG_NAME
      }

      android log

      [    0.949571] sunxi-bt bt: bt_power_name (vcc-wifi)
      [    0.954862] sunxi-bt bt: io_regulator_name (vcc-wifi-io)
      [    0.960891] sunxi-bt bt: bt_rst gpio=388  mul-sel=1  pull=-1  drv_level=-1  data=0
      [    0.969879] sunxi-wlan wlan: wlan_busnum (1)
      [    0.974681] sunxi-wlan wlan: Missing wlan_power.
      [    0.979863] sunxi-wlan wlan: wlan_power_name ((null))
      [    0.985551] sunxi-wlan wlan: Missing wlan_io_regulator.
      [    0.991425] sunxi-wlan wlan: io_regulator_name ((null))
      [    0.997318] sunxi-wlan wlan: wlan_regon gpio=387  mul-sel=1  pull=-1  drv_level=-1  data=0
      [    1.006623] sunxi-wlan wlan: get gpio chip_en failed
      [    1.012220] sunxi-wlan wlan: power_en gpio=228  mul-sel=1  pull=-1  drv_level=-1  data=0
      [    1.021349] sunxi-wlan wlan: wlan_hostwake gpio=384  mul-sel=0  pull=-1  drv_level=-1  data=0

GPIO

cat /sys/kernel/debug/pinctrl/*/pinmux-pins

Pinmux settings per pin
Format: pin (name): mux_owner|gpio_owner (strict) hog?
pin 0 (PA0): device 5020000.ethernet function emac group PA0
pin 1 (PA1): device 5020000.ethernet function emac group PA1
pin 2 (PA2): device 5020000.ethernet function emac group PA2
pin 3 (PA3): device 5020000.ethernet function emac group PA3
pin 4 (PA4): device 5020000.ethernet function emac group PA4
pin 5 (PA5): device 5020000.ethernet function emac group PA5
pin 6 (PA6): device 5020000.ethernet function emac group PA6
pin 7 (PA7): device 5020000.ethernet function emac group PA7
pin 8 (PA8): device 5020000.ethernet function emac group PA8
pin 9 (PA9): device 5020000.ethernet function emac group PA9
pin 32 (PB0): UNCLAIMED
pin 33 (PB1): UNCLAIMED
pin 34 (PB2): UNCLAIMED
pin 35 (PB3): UNCLAIMED
pin 36 (PB4): UNCLAIMED
pin 37 (PB5): UNCLAIMED
pin 38 (PB6): UNCLAIMED
pin 39 (PB7): UNCLAIMED
pin 40 (PB8): UNCLAIMED
pin 41 (PB9): UNCLAIMED
pin 42 (PB10): UNCLAIMED
pin 43 (PB11): UNCLAIMED
pin 44 (PB12): UNCLAIMED
pin 45 (PB13): UNCLAIMED
pin 46 (PB14): UNCLAIMED
pin 47 (PB15): UNCLAIMED
pin 48 (PB16): UNCLAIMED
pin 49 (PB17): device 5002c00.i2c function i2c3 group PB17
pin 50 (PB18): device 5002c00.i2c function i2c3 group PB18
pin 51 (PB19): device ac200_clk function pwm1 group PB19
pin 52 (PB20): UNCLAIMED
pin 64 (PC0): UNCLAIMED
pin 65 (PC1): device 4022000.mmc function mmc2 group PC1
pin 66 (PC2): UNCLAIMED
pin 67 (PC3): UNCLAIMED
pin 68 (PC4): device 4022000.mmc function mmc2 group PC4
pin 69 (PC5): device 4022000.mmc function mmc2 group PC5
pin 70 (PC6): device 4022000.mmc function mmc2 group PC6
pin 71 (PC7): device 4022000.mmc function mmc2 group PC7
pin 72 (PC8): device 4022000.mmc function mmc2 group PC8
pin 73 (PC9): device 4022000.mmc function mmc2 group PC9
pin 74 (PC10): device 4022000.mmc function mmc2 group PC10
pin 75 (PC11): device 4022000.mmc function mmc2 group PC11
pin 76 (PC12): device 4022000.mmc function mmc2 group PC12
pin 77 (PC13): device 4022000.mmc function mmc2 group PC13
pin 78 (PC14): device 4022000.mmc function mmc2 group PC14
pin 79 (PC15): UNCLAIMED
pin 80 (PC16): UNCLAIMED
pin 96 (PD0): UNCLAIMED
pin 97 (PD1): UNCLAIMED
pin 98 (PD2): UNCLAIMED
pin 99 (PD3): UNCLAIMED
pin 100 (PD4): UNCLAIMED
pin 101 (PD5): UNCLAIMED
pin 102 (PD6): UNCLAIMED
pin 103 (PD7): UNCLAIMED
pin 104 (PD8): UNCLAIMED
pin 105 (PD9): UNCLAIMED
pin 106 (PD10): UNCLAIMED
pin 107 (PD11): UNCLAIMED
pin 108 (PD12): UNCLAIMED
pin 109 (PD13): UNCLAIMED
pin 110 (PD14): UNCLAIMED
pin 111 (PD15): UNCLAIMED
pin 112 (PD16): UNCLAIMED
pin 113 (PD17): UNCLAIMED
pin 114 (PD18): UNCLAIMED
pin 115 (PD19): UNCLAIMED
pin 116 (PD20): UNCLAIMED
pin 117 (PD21): UNCLAIMED
pin 118 (PD22): UNCLAIMED
pin 119 (PD23): UNCLAIMED
pin 120 (PD24): UNCLAIMED
pin 121 (PD25): UNCLAIMED
pin 122 (PD26): UNCLAIMED
pin 160 (PF0): device 4020000.mmc function mmc0 group PF0
pin 161 (PF1): device 4020000.mmc function mmc0 group PF1
pin 162 (PF2): device 4020000.mmc function mmc0 group PF2
pin 163 (PF3): device 4020000.mmc function mmc0 group PF3
pin 164 (PF4): device 4020000.mmc function mmc0 group PF4
pin 165 (PF5): device 4020000.mmc function mmc0 group PF5
pin 166 (PF6): GPIO 300b000.pinctrl:166
pin 192 (PG0): UNCLAIMED
pin 193 (PG1): UNCLAIMED
pin 194 (PG2): UNCLAIMED
pin 195 (PG3): UNCLAIMED
pin 196 (PG4): UNCLAIMED
pin 197 (PG5): UNCLAIMED
pin 198 (PG6): UNCLAIMED
pin 199 (PG7): UNCLAIMED
pin 200 (PG8): UNCLAIMED
pin 201 (PG9): UNCLAIMED
pin 202 (PG10): UNCLAIMED
pin 203 (PG11): UNCLAIMED
pin 204 (PG12): UNCLAIMED
pin 205 (PG13): UNCLAIMED
pin 206 (PG14): UNCLAIMED
pin 224 (PH0): device 5000000.serial function uart0 group PH0
pin 225 (PH1): device 5000000.serial function uart0 group PH1
pin 226 (PH2): GPIO 300b000.pinctrl:226
pin 227 (PH3): UNCLAIMED
pin 228 (PH4): UNCLAIMED
pin 229 (PH5): UNCLAIMED
pin 230 (PH6): UNCLAIMED
pin 231 (PH7): UNCLAIMED
pin 232 (PH8): device 6000000.hdmi function hdmi group PH8
pin 233 (PH9): device 6000000.hdmi function hdmi group PH9
pin 234 (PH10): device 6000000.hdmi function hdmi group PH10
Pinmux settings per pin
Format: pin (name): mux_owner|gpio_owner (strict) hog?
pin 352 (PL0): UNCLAIMED
pin 353 (PL1): UNCLAIMED
pin 354 (PL2): UNCLAIMED
pin 355 (PL3): UNCLAIMED
pin 356 (PL4): UNCLAIMED
pin 357 (PL5): UNCLAIMED
pin 358 (PL6): UNCLAIMED
pin 359 (PL7): UNCLAIMED
pin 360 (PL8): UNCLAIMED
pin 361 (PL9): device 7040000.ir function s_cir_rx group PL9
pin 362 (PL10): UNCLAIMED
pin 384 (PM0): UNCLAIMED
pin 385 (PM1): UNCLAIMED
pin 386 (PM2): UNCLAIMED
pin 387 (PM3): UNCLAIMED
pin 388 (PM4): UNCLAIMED