Tanix TX6
-
ukmark62 -
May 24, 2019 at 11:03 AM -
Thread is Unresolved
-
-
- Official Post
Yes, it should work. There is a question if "bs" has optimal size, but it only affects flashing speed.
Please note that you'll completely overwrite Android. Do a eMMC backup (also with dd) if you ever want to restore it.
-
I can also confirm eMMC is working ... here are two screenshots:
CodeLibreELEC:~ # dd if=LibreELEC-H6.arm-9.80-devel-20190824143152-5c3df44-tanix-tx6.img of=/dev/mmcblk1 bs=4M 137+1 records in 137+1 records out 575668224 bytes (549.0MB) copied, 2.173960 seconds, 252.5MB/s
But do not forget to "sync", else you will see this dmesg:
Code[ 23.342332] SQUASHFS error: zstd decompression error: 14 [ 23.342358] SQUASHFS error: zstd decompression failed, data probably corrupt
great work
-
- Official Post
All improvements has been merged into LibreELEC git master, so they will be available in next nightly image.
-
Code
Hello. Installed your image on your TX6 device. Everything is fine, the OS started up, but the processor started to get very hot, the TV screen began to turn off periodically until it turned off completely. I waited until the processor cools down, turned it on, tried to change the graphics modes, but it all repeated. No one had such an effect? There is passive cooling, the native radiator is replaced.
-
- Official Post
Vital_22 Such issue I experienced long ago with different H6 board but not recently. It might be temperature, but that also depends on your cooling solution and ambient temperature. Where I am, ambient temperature is 25°C, what's yours? I never experienced any issues with Tanix TX6. I use stock radiator but housing is removed (only bare PCB).
Temperature driver will be added at later time, once it's ready for mainline.
P.S. Please don't use code tag for normal text.
-
I have this TV BOX model, but they must be identical.
The temperature in the room is about 25 . Heating does not stop if I disconnect the HDMI wire. You can think of active cooling, but so far there are no details.
-
It's strange, I have two such TV BOXs, today I launched a memory card with Libreelec on the second TV BOX, there were no problems in operation. On the first device, when the HDMI wire was connected, the TV made a cracking sound periodically. When you connect a second box, on the same HDMI wire, no cod, everything works fine. Android on both boxes works fine, although on the first box the internal memory was previously out of order, this is perhaps the only difference between them.
-
- Official Post
Hard to say what could be wrong.
Currently we know that Eachlink boxes, albeit very similar to Tanix TX6, have problem with HDMI, to the point that HDMI connector status must be forced to "always connected" with kernel parameter in order to work.
There are for sure some issues with HDMI, but none of them occurs with HW I own.
-
I hurried up saying that the problem with HDMI was gone. The processor warmed up more under load and, like the first box, the TV began to crack occasionally. However, the second box does not turn off, which is already good. Jernej, I will monitor your work, thanks for the Libreelec image adapted for this box.
-
- Official Post
I will monitor your work, thanks for the Libreelec image adapted for this box.
Don't forget that I probably won't post new image here anytime soon, unless there is something to test. Use nightlies instead, they are build almost every day and include all improvements.
-
Here is a patch to support WIFI on the Tanix TX6 64GB version with the builitin Cdtech 47822BS (Realtek 8822BS) chip.
Diff
Display Morediff --git a/packages/linux-drivers/RTL8822BS/package.mk b/packages/linux-drivers/RTL8822BS/package.mk new file mode 100644 index 0000000000..73c78d4df6 --- /dev/null +++ b/packages/linux-drivers/RTL8822BS/package.mk @@ -0,0 +1,32 @@ +# SPDX-License-Identifier: GPL-2.0-or-later +# Copyright (C) 2009-2016 Stephan Raue ([email protected]) +# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv) + +PKG_NAME="RTL8822BS" +PKG_VERSION="38e702c9049f10f1cfa1f9a50d12fd21e08e306c" +PKG_SHA256="9f966d67e332bf1fc20c1bde6c2e8083aa62904805615b361ec6bbfe44b42709" +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 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 +} diff --git a/projects/Allwinner/devices/H6/options b/projects/Allwinner/devices/H6/options index 82487625c2..54fee0e91f 100644 --- a/projects/Allwinner/devices/H6/options +++ b/projects/Allwinner/devices/H6/options @@ -33,3 +33,6 @@ # Mali GPU family MALI_FAMILY="t720" + + # Additional drivers + ADDITIONAL_DRIVERS="${ADDITIONAL_DRIVERS} RTL8822BS" diff --git a/projects/Allwinner/devices/H6/patches/linux/16-Tanix-TX6-RTL8822BS.patch b/projects/Allwinner/devices/H6/patches/linux/16-Tanix-TX6-RTL8822BS.patch new file mode 100644 index 0000000000..8f173ede0c --- /dev/null +++ b/projects/Allwinner/devices/H6/patches/linux/16-Tanix-TX6-RTL8822BS.patch @@ -0,0 +1,75 @@ +--- a/arch/arm64/boot/dts/allwinner/sun50i-h6-tanix-tx6.dts ++++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-tanix-tx6.dts +@@ -34,12 +34,49 @@ + }; + }; + ++ reg_vcc5v: vcc5v { ++ /* board wide 5V supply directly from the DC jack */ ++ compatible = "regulator-fixed"; ++ regulator-name = "vcc-5v"; ++ regulator-min-microvolt = <5000000>; ++ regulator-max-microvolt = <5000000>; ++ regulator-always-on; ++ }; ++ + reg_vcc3v3: vcc3v3 { + compatible = "regulator-fixed"; + regulator-name = "vcc3v3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + }; ++ ++ reg_vcc33_wifi: vcc33-wifi { ++ /* Always on 3.3V regulator for WiFi and BT */ ++ compatible = "regulator-fixed"; ++ regulator-name = "vcc33-wifi"; ++ regulator-min-microvolt = <3300000>; ++ regulator-max-microvolt = <3300000>; ++ regulator-always-on; ++ vin-supply = <®_vcc5v>; ++ }; ++ ++ reg_vcc_wifi_io: vcc-wifi-io { ++ /* Always on 1.8V/300mA regulator for WiFi and BT IO */ ++ compatible = "regulator-fixed"; ++ regulator-name = "vcc-wifi-io"; ++ regulator-min-microvolt = <1800000>; ++ regulator-max-microvolt = <1800000>; ++ regulator-always-on; ++ vin-supply = <®_vcc33_wifi>; ++ }; ++ ++ wifi_pwrseq: wifi-pwrseq { ++ compatible = "mmc-pwrseq-simple"; ++ clocks = <&rtc 1>; ++ clock-names = "ext_clock"; ++ reset-gpios = <&r_pio 1 3 GPIO_ACTIVE_LOW>; /* PM3 */ ++ post-power-on-delay-ms = <500>; ++ }; + }; + + &ac200_pwm_clk { +@@ -100,6 +137,22 @@ + status = "okay"; + }; + ++&mmc1 { ++ vmmc-supply = <®_vcc33_wifi>; ++ vqmmc-supply = <®_vcc_wifi_io>; ++ mmc-pwrseq = <&wifi_pwrseq>; ++ bus-width = <4>; ++ non-removable; ++ status = "okay"; ++ ++ rtl8822bs: sdio-wifi@1 { ++ reg = <1>; ++ interrupt-parent = <&r_pio>; ++ interrupts = <1 0 IRQ_TYPE_LEVEL_LOW>; /* PM0 */ ++ interrupt-names = "host-wake"; ++ }; ++}; ++ + &mmc2 { + vmmc-supply = <®_vcc3v3>; + non-removable;
jernej - please have a look at this, it is working for me
So bluetooth could be on the horizon, because it should be supported by the driver.
-
The "post-power-on-delay-ms = <500>" could be removed ... will test this tomorrow.
-
- Official Post
vitalogy Thanks, but no new Realtek out-of-tree (non-mainline) drivers are accepted in official LE git, as was stated many times already (in Allwinner subforum and github PRs). However, this wifi module has a good chance being supported in mainline soon, as PCIE version is already supported. My info is that SDIO interface support will be added next year. It will be enabled soon as patch(es) will be available.
If you want to do community builds with wifi driver included and publish images here, it's up to you, but as I said, this package will not be accepted to upstream LE git.
-
Yeah, I saw this in the rtw -driver in mainline, that sdio should supported soon.
But for now i have wifi ...
I will pubish a build here, so other can use it, till its in mainline.
-
Image for Tanix TX6 64GB with WIFI: LibreELEC-H6.arm-9.80-devel-20190829143650-9d68e4b-tanix-tx6.img.gz
Changes: github
Note: I'm not the developer of the driver RTL8822BS and so, I can not give support for it.
-
Hi vitalogy
I'm trying to make the BT works on the RTL8822BS of my Beelink GS1 did you give it a try already ?
EDIT: I have extracted the fex file for the Tanix TX6 but it seems that a wlan_en gpio is defined but not used for the Wi-Fi: h6: add Tanix TX6 board by clementperon · Pull Request #67 · linux-sunxi/sunxi-boards · GitHub
Thanks,
Clément
-
ClementP Could test BT next week.
-