Jump to content

Recommended Posts

Posted

Let me introduce my device:

- tanix tx68

- wifi/bluetooth not working - tried building modules for aw869a, failed to load, tried pre-built ones in form of .deb packages, didn't work either

- internal storage not working - failed mounting it from within armbian

- 1x USB2 port not working (works on default Android, doesn't work on slimboxTV Android)

- IR not working

- using an image from https://github.com/NickAlilovic/build/releases as is, great!

- using it for Home Assistant

- using external WiFi adapter

- headless, tried at first with an external display but it kept stalling/crashing the GPU every few seconds and kept getting lower resolution.

 

To be honest, an Intel N100 for 4x the price would have been a better choice, though tx68 is usable.

Posted

aw869a chip uses the aic8800 firmware. The drivers are old but have been ported to newer kernel. You can find patches here.

https://github.com/LYU4662/t95zplus-h618-build/tree/master/userpatches/kernel/archive/sunxi-6.7

 

For internal storage not working, You need to extract your dts and find the correct gpio settings.

 

USB2 probably needs to be enable in the DTS.

 

IR not working. There are posts a few pages back that enables IR.

 

Posted

Thanks, although the aic8800_fdrv module fails modprobe due to no device found error, Bluetooth module loads, but it was same when I compiled the module myself a month ago. It is fine for what it is though, maybe it will work without accessories in the future

Posted

regarding  openvfd.dts file

Tanix Tx6s PCB is mounted upside down in the case and thats why the openvfd.dts file is different.

swapping my SD card between Vontar (transpeed) and Tanix resulted in the time being displayed upside down lol.

Quote

openvfd.dts  for Tanix

 

/dts-v1/;
/plugin/;
/ {
   fragment@0 {
      target-path = "/";
      __overlay__ {
         openvfd {
        compatible = "open,vfd";
        dev_name = "openvfd";
        openvfd_gpio_clk = <&pio 8 11 6>;
        openvfd_gpio_dat = <&pio 8 12 6>;
        vfd_gpio_chip_name = "0300b000.pinctrl";
        openvfd_chars = [02 04 03 02 01];
        openvfd_dot_bits = [00 01 03 02 04 05 06];
        openvfd_display_type = <0x03000001>;
        status = "okay";
         };
      };
   };
};

 

openvfd.dts  for Vontar (Transpeed)

 

/dts-v1/;
/plugin/;
/ {
   fragment@0 {
      target-path = "/";
      __overlay__ {
         openvfd {
        compatible = "open,vfd";
        dev_name = "openvfd";
        openvfd_gpio_clk = <&pio 8 11 0>;
        openvfd_gpio_dat = <&pio 8 12 0>;
        vfd_gpio_chip_name = "0300b000.pinctrl";
        openvfd_chars = [02 01 02 03 04];
        openvfd_dot_bits = [00 01 03 02 04 05 06];
        openvfd_display_type = <0x03000000>;
        status = "okay";
         };
      };
   };
};

 

 

Posted (edited)
Quote

maybe it will work without accessories in the future

@UnhealthyTweak that's the thing about these TVBoxs.. It's community supported. Unless someone has the same box as yours and releases the image.  You might be waiting forever. I have a transpeed 8K618-T and even this box has more than one wifi/bluetooth chip. Usually it's a broadcom wifi chip and only needs firmware changes. Some boxes need a patch to include the firmware like broadcom 43342. Your box has a different wifi chip. 

 

https://github.com/LYU4662/t95zplus-h618-build/tree/master/userpatches/kernel/archive/sunxi-6.7

 

Try this image.. if it doesn't work it might be the GPIO # that's different. You would need to extract your gpio #  from the orignal android DTS.

Edited by Nick A
Posted (edited)

is it safe to do ?

sudo apt update

sudo apt upgrade

I have been unable to boot after doing this, had to burn fresh .img to sdcard to boot again. I have done this previously with no issues (is this due to ubuntu noble 24.11.0 >  24.11.2 updating ?)

here is update and upgrade list and update. No Boot after reboot. :(

 

Quote

firepower@transpeed-8k618-t:~$ sudo apt update
[sudo] password for firepower:
Get:2 https://packages.microsoft.com/repos/code stable InRelease [3,590 B]     
Get:1 https://cli.github.com/packages stable InRelease [3,917 B]               
Hit:4 http://ports.ubuntu.com noble InRelease              
Get:5 https://packages.microsoft.com/repos/code stable/main arm64 Packages [18.0 kB]
Get:6 https://packages.microsoft.com/repos/code stable/main amd64 Packages [17.9 kB]
Get:7 https://packages.microsoft.com/repos/code stable/main armhf Packages [18.1 kB]
Get:8 http://ports.ubuntu.com noble-security InRelease [126 kB]                
Get:9 https://cli.github.com/packages stable/main arm64 Packages [345 B]       
Get:3 http://netcup.armbian.com/apt noble InRelease [52.4 kB]                  
Get:10 http://ports.ubuntu.com noble-updates InRelease [126 kB]                
Get:11 http://ports.ubuntu.com noble-backports InRelease [126 kB]     
Get:12 http://ports.ubuntu.com noble-security/main arm64 Packages [616 kB]
Get:13 http://netcup.armbian.com/apt noble/main arm64 Packages [1,159 kB]
Get:14 http://ports.ubuntu.com noble-security arm64 Contents (deb) [40.0 MB]
Get:15 http://netcup.armbian.com/apt noble/main all Packages [15.6 kB]                                                                                                                                         
Get:16 http://netcup.armbian.com/apt noble/main all Contents (deb) [38.6 kB]                                                                                                                                   
Get:17 http://netcup.armbian.com/apt noble/main arm64 Contents (deb) [19.1 MB]                                                                                                                                 
Get:18 http://ports.ubuntu.com noble-security/universe arm64 Packages [707 kB]                                                                                                                                 
Get:19 http://ports.ubuntu.com noble-updates/main arm64 Packages [845 kB]                                                                                                                                      
Get:20 http://ports.ubuntu.com noble-updates arm64 Contents (deb) [41.6 MB]                                                                                                                                    
Get:21 http://ports.ubuntu.com noble-updates/restricted arm64 Packages [667 kB]                                                                                                                                
Get:22 http://ports.ubuntu.com noble-updates/universe arm64 Packages [915 kB]                                                                                                                                  
Get:23 http://ports.ubuntu.com noble-updates/multiverse arm64 Packages [15.1 kB]                                                                                                                               
Get:24 http://netcup.armbian.com/apt noble/noble-utils arm64 Packages [19.5 kB]                                                                                                                                
Get:25 http://netcup.armbian.com/apt noble/noble-utils arm64 Contents (deb) [30.8 kB]                                                                                                                          
Get:26 http://netcup.armbian.com/apt noble/noble-desktop arm64 Packages [529 kB]                                                                                                                               
Get:27 http://netcup.armbian.com/apt noble/noble-desktop all Packages [43.5 kB]                                                                                                                                
Get:28 http://netcup.armbian.com/apt noble/noble-desktop arm64 Contents (deb) [38.1 kB]                                                                                                                        
Fetched 107 MB in 39s (2,752 kB/s)                                                                                                                                                                             
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
10 packages can be upgraded. Run 'apt list --upgradable' to see them.
firepower@transpeed-8k618-t:~$ apt list --upgradable
Listing... Done
armbian-config/noble,noble 24.11.2 all [upgradable from: 24.11.0-trunk]
armbian-firmware/noble,noble 24.11.2 all [upgradable from: 24.11.0-trunk]
armbian-noble-desktop-cinnamon/noble,noble 24.11.1 all [upgradable from: 24.11.0-trunk]
armbian-plymouth-theme/noble,noble 24.11.2 all [upgradable from: 24.11.0-trunk]
armbian-zsh/noble,noble 24.11.2 all [upgradable from: 24.11.0-trunk]
base-files/noble 24.11.2-13ubuntu10-noble arm64 [upgradable from: 24.11.0-trunk-13ubuntu10-noble]
fake-ubuntu-advantage-tools/noble,noble 24.11.2 all [upgradable from: 24.11.0-trunk]
gh/noble,unknown 2.63.1 arm64 [upgradable from: 2.63.0]
linux-dtb-edge-sunxi64/noble 24.11.1 arm64 [upgradable from: 24.11.0-trunk]
linux-image-edge-sunxi64/noble 24.11.1 arm64 [upgradable from: 24.11.0-trunk]
firepower@transpeed-8k618-t:~$

firepower@transpeed-8k618-t:~$ sudo apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  geocode-glib-common gir1.2-adw-1 gir1.2-atspi-2.0 gir1.2-gck-2 gir1.2-gcr-4 gir1.2-gdesktopenums-3.0 gir1.2-gdm-1.0 gir1.2-geoclue-2.0 gir1.2-gnomebg-4.0 gir1.2-gnomebluetooth-3.0 gir1.2-gnomedesktop-4.0
  gir1.2-gst-plugins-base-1.0 gir1.2-gstreamer-1.0 gir1.2-gtk-4.0 gir1.2-gweather-4.0 gir1.2-ibus-1.0 gir1.2-javascriptcoregtk-4.1 gir1.2-javascriptcoregtk-6.0 gir1.2-mutter-14 gir1.2-nma4-1.0
  gir1.2-rsvg-2.0 gir1.2-snapd-2 gnome-bluetooth-3-common gnome-settings-daemon gnome-settings-daemon-common gnome-shell-common gstreamer1.0-pipewire libdjvulibre-text libdjvulibre21 libeis1
  libevdocument3-4t64 libgcc-14-dev libgccjit0 libgdm1 libgeoclue-2-0 libgeocode-glib-2-0 libgif7 libgjs0g libgnome-autoar-0-0 libgnome-bg-4-2t64 libgnome-bluetooth-3.0-13 libgnome-desktop-4-2t64
  libgweather-4-0t64 libgweather-4-common libgxps2t64 libharfbuzz-icu0 libhyphen0 libibus-1.0-5 libjavascriptcoregtk-4.1-0 libjavascriptcoregtk-6.0-1 libkpathsea6 libm17n-0 libmanette-0.2-0 libmousepad0
  libmozjs-115-0t64 libmutter-14-0 libnma-gtk4-0 libotf1 libspectre1 libsynctex2 libtree-sitter0 libwebpdecoder3 libwoff1 m17n-db mutter-common mutter-common-bin python3-debconf ubuntu-wallpapers
  ubuntu-wallpapers-noble update-notifier-common xdg-dbus-proxy
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
  whiptail
The following packages will be upgraded:
  armbian-config armbian-firmware armbian-noble-desktop-cinnamon armbian-plymouth-theme armbian-zsh base-files fake-ubuntu-advantage-tools gh linux-dtb-edge-sunxi64 linux-image-edge-sunxi64
10 to upgrade, 1 to newly install, 0 to remove and 0 not to upgrade.
Need to get 165 MB of archives.
After this operation, 3,389 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://netcup.armbian.com/apt noble/noble-utils arm64 base-files arm64 24.11.2-13ubuntu10-noble [68.8 kB]                       
Get:11 http://ports.ubuntu.com noble/main arm64 whiptail arm64 0.52.24-2ubuntu2 [17.5 kB]                                             
Get:2 http://armbian.tnahosting.net/apt noble/main arm64 armbian-config all 24.11.2 [127 kB]                     
Get:5 http://netcup.armbian.com/apt noble/main arm64 armbian-plymouth-theme all 24.11.2 [108 kB]                
Get:9 http://netcup.armbian.com/apt noble/main arm64 linux-dtb-edge-sunxi64 arm64 24.11.1 [129 kB]                                               
Get:6 http://fi.mirror.armbian.de/apt noble/main arm64 armbian-zsh all 24.11.2 [12.0 MB]                    
Get:3 http://armbian.tnahosting.net/apt noble/main arm64 armbian-firmware all 24.11.2 [91.7 MB]
Get:4 http://armbian.tnahosting.net/apt noble/noble-desktop arm64 armbian-noble-desktop-cinnamon all 24.11.1 [16.6 MB]                                                                                         
Get:7 http://armbian.tnahosting.net/apt noble/main arm64 fake-ubuntu-advantage-tools all 24.11.2 [1,356 B]                                                                                                     
Get:8 http://armbian.tnahosting.net/apt noble/noble-utils arm64 gh arm64 2.63.1 [12.7 MB]                                                                                                                      
Ign:6 http://fi.mirror.armbian.de/apt noble/main arm64 armbian-zsh all 24.11.2                                                                                                                                 
Get:10 http://fi.mirror.armbian.de/apt noble/main arm64 linux-image-edge-sunxi64 arm64 24.11.1 [31.9 MB]
Get:6 http://fi.mirror.armbian.de/apt noble/main arm64 armbian-zsh all 24.11.2 [12.0 MB]                                                                                                                       
Fetched 161 MB in 20min 30s (131 kB/s)                                                                                                                                                                         
(Reading database ... 151488 files and directories currently installed.)
Preparing to unpack .../base-files_24.11.2-13ubuntu10-noble_arm64.deb ...
Unpacking base-files (24.11.2-13ubuntu10-noble) over (24.11.0-trunk-13ubuntu10-noble) ...
Setting up base-files (24.11.2-13ubuntu10-noble) ...
motd-news.timer is a disabled or a static unit not running, not starting it.
motd-news.service is a disabled or a static unit not running, not starting it.
Selecting previously unselected package whiptail.
(Reading database ... 151487 files and directories currently installed.)
Preparing to unpack .../0-whiptail_0.52.24-2ubuntu2_arm64.deb ...
Unpacking whiptail (0.52.24-2ubuntu2) ...
Preparing to unpack .../1-armbian-config_24.11.2_all.deb ...
Unpacking armbian-config (24.11.2) over (24.11.0-trunk) ...
dpkg: warning: unable to delete old directory '/usr/lib/armbian-config': Directory not empty
Preparing to unpack .../2-armbian-firmware_24.11.2_all.deb ...
Unpacking armbian-firmware (24.11.2) over (24.11.0-trunk) ...
Preparing to unpack .../3-armbian-noble-desktop-cinnamon_24.11.1_all.deb ...
Unpacking armbian-noble-desktop-cinnamon (24.11.1) over (24.11.0-trunk) ...
Preparing to unpack .../4-armbian-plymouth-theme_24.11.2_all.deb ...
Unpacking armbian-plymouth-theme (24.11.2) over (24.11.0-trunk) ...
Preparing to unpack .../5-armbian-zsh_24.11.2_all.deb ...
Unpacking armbian-zsh (24.11.2) over (24.11.0-trunk) ...
Preparing to unpack .../6-fake-ubuntu-advantage-tools_24.11.2_all.deb ...
Unpacking fake-ubuntu-advantage-tools (24.11.2) over (24.11.0-trunk) ...
Preparing to unpack .../7-gh_2.63.1_arm64.deb ...
Unpacking gh (2.63.1) over (2.63.0) ...
Preparing to unpack .../8-linux-dtb-edge-sunxi64_24.11.1_arm64.deb ...
Armbian 'linux-dtb-edge-sunxi64' for '6.11.9-edge-sunxi64': 'preinst' starting.
Armbian 'linux-dtb-edge-sunxi64' for '6.11.9-edge-sunxi64': 'preinst' finishing.
Unpacking linux-dtb-edge-sunxi64 (24.11.1) over (24.11.0-trunk) ...
Preparing to unpack .../9-linux-image-edge-sunxi64_24.11.1_arm64.deb ...
Armbian 'linux-image-edge-sunxi64' for '6.10.10-edge-sunxi64': 'prerm' starting.
Armbian 'linux-image-edge-sunxi64' for '6.10.10-edge-sunxi64': 'prerm' finishing.
Armbian 'linux-image-edge-sunxi64' for '6.11.9-edge-sunxi64': 'preinst' starting.
Armbian 'linux-image-edge-sunxi64' for '6.11.9-edge-sunxi64': 'preinst' finishing.
Unpacking linux-image-edge-sunxi64 (24.11.1) over (24.11.0-trunk) ...
Armbian 'linux-image-edge-sunxi64' for '6.10.10-edge-sunxi64': 'postrm' starting.
Armbian 'linux-image-edge-sunxi64' for '6.10.10-edge-sunxi64': 'postrm' finishing.
Setting up fake-ubuntu-advantage-tools (24.11.2) ...
Setting up linux-image-edge-sunxi64 (24.11.1) ...
Armbian 'linux-image-edge-sunxi64' for '6.11.9-edge-sunxi64': 'postinst' starting.
 * dkms: autoinstall for kernel 6.11.9-edge-sunxi64 was skipped since the kernel headers for this kernel do not seem to be installed
update-initramfs: Generating /boot/initrd.img-6.11.9-edge-sunxi64
update-initramfs: Armbian: Converting to u-boot format: /boot/uInitrd-6.11.9-edge-sunxi64
Image Name:   uInitrd
Created:      Thu Dec  5 17:35:13 2024
Image Type:   AArch64 Linux RAMDisk Image (gzip compressed)
Data Size:    18088214 Bytes = 17664.27 KiB = 17.25 MiB
Load Address: 00000000
Entry Point:  00000000
update-initramfs: Armbian: Symlinking /boot/uInitrd-6.11.9-edge-sunxi64 to /boot/uInitrd
'/boot/uInitrd' -> 'uInitrd-6.11.9-edge-sunxi64'
update-initramfs: Armbian: done.
Remove unused generated file: /boot/uInitrd-6.10.10-edge-sunxi64
Remove unused generated file: /boot/initrd.img-6.10.10-edge-sunxi64
Armbian: update last-installed kernel symlink to 'Image'...
'/boot/Image' -> 'vmlinuz-6.11.9-edge-sunxi64'
Armbian: Debian compat: linux-update-symlinks install 6.11.9-edge-sunxi64 boot/vmlinuz-6.11.9-edge-sunxi64
I: /boot/vmlinuz.old is now a symlink to vmlinuz-6.11.9-edge-sunxi64
I: /boot/initrd.img.old is now a symlink to initrd.img-6.11.9-edge-sunxi64
I: /boot/vmlinuz is now a symlink to vmlinuz-6.11.9-edge-sunxi64
I: /boot/initrd.img is now a symlink to initrd.img-6.11.9-edge-sunxi64
Armbian 'linux-image-edge-sunxi64' for '6.11.9-edge-sunxi64': 'postinst' finishing.
Setting up armbian-zsh (24.11.2) ...
Setting up armbian-noble-desktop-cinnamon (24.11.1) ...
Armbian 'armbian-noble-desktop-cinnamon' for '1-V1220-Bed17-R448a': 'postinst' starting.
removed '/etc/dconf/db/local.d/00-desktop'
'/dev/null' -> '/etc/dconf/db/local.d/00-desktop'
removed '/etc/dconf/profile/user'
'/dev/null' -> '/etc/dconf/profile/user'
Armbian 'armbian-noble-desktop-cinnamon' for '1-V1220-Bed17-R448a': 'postinst' finishing.
Setting up gh (2.63.1) ...
Setting up armbian-firmware (24.11.2) ...
Setting up whiptail (0.52.24-2ubuntu2) ...
Setting up linux-dtb-edge-sunxi64 (24.11.1) ...
Armbian 'linux-dtb-edge-sunxi64' for '6.11.9-edge-sunxi64': 'postinst' starting.
Armbian: DTB: symlinking /boot/dtb to /boot/dtb-6.11.9-edge-sunxi64...
'dtb' -> 'dtb-6.11.9-edge-sunxi64'
Armbian 'linux-dtb-edge-sunxi64' for '6.11.9-edge-sunxi64': 'postinst' finishing.
Setting up armbian-plymouth-theme (24.11.2) ...
update-initramfs: deferring update (trigger activated)
Setting up armbian-config (24.11.2) ...
Processing triggers for install-info (7.1-3build2) ...
Processing triggers for man-db (2.12.0-4build2) ...
Processing triggers for cracklib-runtime (2.9.6-5.1build2) ...
Processing triggers for initramfs-tools (0.142ubuntu25.4) ...
update-initramfs: Generating /boot/initrd.img-6.11.9-edge-sunxi64
update-initramfs: Armbian: Converting to u-boot format: /boot/uInitrd-6.11.9-edge-sunxi64
Image Name:   uInitrd
Created:      Thu Dec  5 17:36:01 2024
Image Type:   AArch64 Linux RAMDisk Image (gzip compressed)
Data Size:    18088293 Bytes = 17664.35 KiB = 17.25 MiB
Load Address: 00000000
Entry Point:  00000000
update-initramfs: Armbian: Symlinking /boot/uInitrd-6.11.9-edge-sunxi64 to /boot/uInitrd
'/boot/uInitrd' -> 'uInitrd-6.11.9-edge-sunxi64'
update-initramfs: Armbian: done.
firepower@transpeed-8k618-t:~$

 

Edited by firepower
Posted (edited)
Quote

The following packages will be upgraded:
  armbian-config armbian-firmware armbian-noble-desktop-cinnamon armbian-plymouth-theme armbian-zsh base-files fake-ubuntu-advantage-tools gh linux-dtb-edge-sunxi64 linux-image-edge-sunxi64

Remember you have a custom kernel. You need to block kernel updates with the armbian config tool.

Edited by Nick A
Posted

I Have one transpeed 8k16-t (4GB Ram, 32GB EMMC) just like @Nick A, could I just compile the kernel and flash it and update the android kernel? I'm using as tvbox and i see it has about 2,5 GB ram free. I would like to use it on termux with docker, but i need to enable some features and recompile the kernel. Can anyone give me a hint? Thanks.

Posted

Reinaldo if you want to modify the android kernel visit the XDA forums. Android uses an old linux kernel with Board Support Package (BSP) provided by Allwinner. 

 

Armbian build uses the mainline linux kernel with patches. No support from Allwinner.  Just a few hackers that reversed engineered and back port sources from the BSP kernel. 

Posted (edited)

I been comparing the different bluetooth patches for transpeed, vontar and tanix TV  boxes. I made an overlay bluetooth.dts with the changes i need for my vontar tv box using transpped image. using overlay allows you make changes for testing. got the idea from the openvfd.dts overlay by @MMorales

 

cp bluetooth.dts  /boot/dtb/allwinner/overlay/

sudo armbian-add-overlay /boot/dtb/allwinner/overlay/bluetooth.dts

 

Quote

/* Tanix */

    bluetooth {
        compatible = "brcm,bcm43438-bt";
        clocks = <&rtc 1>;
        clock-names = "lpo";
        vbat-supply = <&reg_dldo1>;
        vddio-supply = <&reg_dldo1>;
        device-wakeup-gpios = <&r_pio 0 6 GPIO_ACTIVE_HIGH>; /* PL6 */
        host-wakeup-gpios = <&r_pio 0 5 GPIO_ACTIVE_HIGH>; /* PL5 */
        shutdown-gpios = <&r_pio 0 4 GPIO_ACTIVE_HIGH>; /* PL4 */
    };

/* Vontar */

    bluetooth {
        compatible = "brcm,bcm43438-bt";
        clocks = <&rtc 1>;
        clock-names = "lpo";
        vbat-supply = <&reg_dldo1>;
        vddio-supply = <&reg_dldo1>;
        device-wakeup-gpios = <&r_pio 0 6 GPIO_ACTIVE_HIGH>; /* PL6 */
        host-wakeup-gpios = <&r_pio 0 5 GPIO_ACTIVE_HIGH>; /* PL5 */
        shutdown-gpios = <&r_pio 0 4 GPIO_ACTIVE_HIGH>; /* PL4 */
    };

/* transpeed */

    bluetooth {
        compatible = "brcm,bcm43438-bt";
        clocks = <&rtc CLK_OSC32K_FANOUT>;

        clock-names = "lpo";
        vbat-supply = <&reg_dldo1>;
        vddio-supply = <&reg_aldo1>;
        device-wakeup-gpios = <&pio 6 17 GPIO_ACTIVE_HIGH>; /* PG17 */
        host-wakeup-gpios = <&pio 6 16 GPIO_ACTIVE_HIGH>; /* PG16 */
        shutdown-gpios = <&pio 6 19 GPIO_ACTIVE_HIGH>; /* PG19 */
    };
 

 

 

 

 

bluetooth.dts

Edited by firepower
Posted (edited)

for extra USB port.
Try adding this to your .dts

&ehci2 {
status = "okay";
};

&ohci2 {
status = "okay";
};

what is the &  for ?   overlay dont like it ?

 

I want to make the above in an overlay.

Edited by firepower
Posted

After playing around with overlays, seems they do not alter existing setting, only add new setting.

nothing changes by editing overlays and using sudo armbian-add-overlay /boot/dtb/allwinner/overlay/bluetooth.dts

 

 

Posted (edited)

Hello,

I want to activate the ethernet driver in Transpeed 8k H618 TV Box. Which patches should I apply. I have applied the following patches, but still it doesn't work. It is a custom 6.10 kernel that I only need ethernet for it.

0001-nvmem-sunxi_sid-add-sunxi_get_soc_chipid-sunxi_get_serial.patch  0505-net-phy-Add-support-for-AC200-EPHY.patch              0614-clk-sunxi-ng-ccu-sun6i-rtc-fix-32k-clk.patch
0002-drivers-pwm-Add-pwm-sunxi-enhance-driver-for-h616.patch          0531-iommu-sun50i-Allow-page-sizes-multiple-of-4096.patch  0615-drivers-iommu-sun50i-iommu-fix-iommu-on-h616.patch
0003-ASoC-AC200-Initial-driver.patch                                  0534-media-cedrus-Don-t-CPU-map-source-buffers.patch       Code-to-enable-Internal-OSC-Clock-Auto-Calibration.patch
0004-driver-allwinner-h618-emac.patch                                 0600-drivers-h616-wip-add-usb-emac2-support.patch          
0504-mfd-add-AC200.patch                                              0606-dma-sun6i-dma-add-h616-support.patch

 

Edited by Javad Rahimipetroudi
Posted (edited)

Javad,

Have you patched your u-boot? You need these three patch files.

https://github.com/NickAlilovhttps://github.com/NickAlilovic/build/blob/v20241125/patch/u-boot/u-boot-sunxi/106-Add-int-phy-eth-H313-h616-with-AC300.patch

https://github.com/NickAlilovic/build/blob/v20241125/patch/u-boot/u-boot-sunxi/106-Add-int-phy-eth-H313-h616-with-AC300.patch

https://github.com/NickAlilovic/build/blob/v20241125/patch/u-boot/u-boot-sunxi/dts-Transpeed-8K618-T-Enable-Ethernet.patch

 

For your custom Kernel you need

https://github.com/NickAlilovic/build/blob/v20241125/patch/kernel/archive/sunxi-6.10/patches.armbian/arm64-dts-allwinner-h618-add-Transpeed-8K618-T-support.patch

 

The last two patches adds this to your u-boot and kernel DTS.

 	aliases {
		ethernet0 = &emac1;
 		ethernet1 = &sdio_wifi;
 		serial0 = &uart0;
 	};

&emac1 {
	pinctrl-names = "default";
	pinctrl-0 = <&rmii_pins>;
	phy-mode = "rmii";
	phy-handle = <&rmii_phy>;
	phy-supply = <&reg_aldo1>;
	allwinner,rx-delay-ps = <3100>;
	allwinner,tx-delay-ps = <700>;
	status = "okay";
};

&mdio1 {
	rmii_phy: ethernet-phy@0 {
		compatible = "ethernet-phy-ieee802.3-c22";
		reg = <0>;
	};
};

 

 

You already have the EPHY 200 patched in your kernel. You have to edit your kernel config to enable it.

#
# MII PHY device drivers
#
CONFIG_AC200_PHY=m

 

#
# Multifunction device drivers
#

CONFIG_MFD_AC200=m

 

#
# PHY Subsystem
#

CONFIG_AC200_PHY_CTL=m

 

Edited by Nick A

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines