-
Posts
477 -
Joined
-
Last visited
Content Type
Forums
Store
Crowdfunding
Applications
Events
Raffles
Community Map
Everything posted by Nick A
-
Hi Javad, if you are playing youtube videos. 720p works fine for me. 1080 freeezes. robertoj was able to get hardware video decocding working with ffmpeg-v4l2request. I haven't tested this method yet.
-
Hi Javad, Did you apply the GPU enable patch in your u-boot? https://github.com/NickAlilovic/build/blob/v20241125/patch/u-boot/u-boot-sunxi/allwinner-h616-GPU-enable-hack.patch
-
You can find patches for A523/A527 here. Just need to port them over to Armbian. https://github.com/warpme/minimyth2/tree/master/script/bootloaders/board-t527.orangepi_4a/files https://github.com/warpme/minimyth2/tree/master/script/kernel/linux-6.12/files https://github.com/warpme/minimyth2/blob/master/script/kernel/linux-6.12/files/1172-arm64-dts-allwinner-t527-add-orangepi-4a-dts.patch
-
The solution I found to enable stereo after googling for a few days is: editing a pulseaudio conf file sudo nano /usr/share/pulseaudio/alsa-mixer/profile-sets/default.conf In this file look for a section starting with: [Mapping analog-mono] and ending with: priority=7 It will be about 6 or 8 lines long Comment these lines out by preceding them with a " ; " (without the " " of course) This will disable the analog-mono section Save the file, sudo reboot and voila: your device profiles will contain stereo output (as well as multichanel, wich I did not try out) And, even better, your sound IS in stereo Regards, aert077 https://forums.raspberrypi.com/viewtopic.php?t=293459 I found this.. I haven't tried it.
-
TX95 Max - Allwinner H618 Quadcore Cortex - A53
Nick A replied to Mark Waples's topic in Allwinner CPU Boxes
You need the header files from my build.. https://github.com/NickAlilovic/build/releases/tag/20241125 -
Cannot run ARMbian on my tv box (TX10 PRO)
Nick A replied to erebus041's topic in Allwinner CPU Boxes
You need to build u-boot with your DRAM settings. You can find the settings in Android DT file or you can extract it from a factory update using sunxi-tools. -
TX95 Max - Allwinner H618 Quadcore Cortex - A53
Nick A replied to Mark Waples's topic in Allwinner CPU Boxes
This is the box I'm using.. Everything works. Bluetooth still has some bugs. (Works only after I enable it in android). https://linux-sunxi.org/Transpeed_8K618-T -
How to get Wifi working on Draco H3 TV stick
Nick A replied to Karthik T's topic in Allwinner CPU Boxes
[ 7.279210] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430a0-sdio for chip BCM43430/0 [ 7.284105] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43430a0-sdio.sinovoip,bpi-m2-plus.bin failed with error -2 [ 7.284142] brcmfmac mmc1:0001:1: Falling back to sysfs fallback for: brcm/brcmfmac43430a0-sdio.sinovoip,bpi-m2-plus.bin You need to rename "brcmfmac43430a0-sdio.bin" to "brcmfmac43430a0-sdio.sinovoip,bpi-m2-plus.bin" -
How to get Wifi working on Draco H3 TV stick
Nick A replied to Karthik T's topic in Allwinner CPU Boxes
I don't think it needs the blob.. at least my wifi works fine without it. -
TX95 Max - Allwinner H618 Quadcore Cortex - A53
Nick A replied to Mark Waples's topic in Allwinner CPU Boxes
I haven't seen any mainline linux drivers for SV6256P chip. -
TX95 Max - Allwinner H618 Quadcore Cortex - A53
Nick A replied to Mark Waples's topic in Allwinner CPU Boxes
Wifi: I don't see anything in your dmesg that helps. You need to open your box and take a picture of the wifi chip. HDMI audio: I think you need to switch the pulseaudio output device. It's probably set to your AV port right now. IR remote: sudo apt update ; sudo apt upgrade -y Yes it will break the custom kernel. You need to block kernel updates with the armbian config tool. You should read this thread. You'll find a lot of infomation here. https://forum.armbian.com/topic/29794-how-to-install-armbian-in-h618/page/18/ -
TX95 Max - Allwinner H618 Quadcore Cortex - A53
Nick A replied to Mark Waples's topic in Allwinner CPU Boxes
To get wifi working we need to figure out which wifi chip your box has. The kernel might have already detected your wifi chip but you need to install the proper firmware. Can you post a copy of your dmesg. -
TX95 Max - Allwinner H618 Quadcore Cortex - A53
Nick A replied to Mark Waples's topic in Allwinner CPU Boxes
Hi Mark, Try this image. First extract the image. Then use balenaEtcher software to write the image onto your SD card. A toothpick can be used to trigger FEL mode on an TX95 Max by pressing the FEL button on the PCB with the non-conductive tool. The FEL button is located inside the 3.5 mm headphone socket. To trigger FEL mode, press the button while the device is booting. https://etcher.balena.io/#download-etcher https://github.com/NickAlilovic/build/releases/download/20241125/Armbian-20241125-unofficial_24.11.0-trunk_Transpeed-8k618-t_bookworm_edge_6.10.10_xfce_desktop.tar.gz -
The official armbian build hasn't patched HDMI in kernel's 6.10 and above. It's a 1000 lines of source that needs to be edited to apply cleanly. Not sure if there are other patches needed. kernel 6.7 was the last kernel version to use the patch. https://github.com/armbian/build/blob/main/patch/kernel/archive/sunxi-6.7/patches.armbian/drivers-hack-for-h616-hdmi-video-output.patch Most of the patches I use are from warpme's miniarch kernel build. I had to remove a few megous patches so warpme's patches would apply cleanly.
-
Cannot run ARMbian on my tv box (TX10 PRO)
Nick A replied to erebus041's topic in Allwinner CPU Boxes
The usb ttl device will show you where your box stops booting using debug messages. Access to the serial console on ARM devices is even more important than on the PC. Even if you do not intend to do much U-Boot or kernel work, access to the serial console will be a life-saver when anything goes wrong. The UART pins are clearly marked with RX, TX, GND on three easy to solder pins on the PCB. This is where you connect your usb ttl device. You are adding a serial port. Remember, your RX and TX pins are crossed over. RX on your device is connected to TX on your PCB. Also, TX on your device is connected to RX on your PCB. GND on your device is connected to GND on your PCB. Every Allwinner SoC has a (BROM). You can't delete this. When your box boots up it executes the BROM which then checks the buttons for FEL mode. The BROM first checks SD-card boot availability, then NAND. The BROM will try to load the SPL (secondary program loader) from U-Boot in each of these devices, which in turn loads the kernel. There is a FEL button on the PCB (behind the AV socket), it can be reached by a non-conductive tool like a toothpick through the AV socket. Alternatively, enter FEL mode with the fel-sdboot.sunxi image written to an SD card. A non-standard USB A-to-A cable can be used to connect using FEL. https://linux-sunxi.org/FEL https://linux-sunxi.org/FEL/USBBoot https://linux-sunxi.org/UART https://github.com/linux-sunxi/sunxi-tools Your board might have secure boot enabled. Could be the reason why your board doesn't boot. Should be an easy fix. Just need to generate any RSA key and change the u-boot image type to TOC0. Most Allwinner sunxi SoCs have separate boot ROMs in non-secure and secure mode. The "non-secure" or "normal" boot ROM (NBROM) uses the existing sunxi_egon image type. The secure boot ROM (SBROM) uses a completely different image type, known as TOC0. Most secure-boot enabled devices do not burn the VENDOR_ID eFUSE, you can use any RSA key. https://linux-sunxi.org/TOC0 -
Cannot run ARMbian on my tv box (TX10 PRO)
Nick A replied to erebus041's topic in Allwinner CPU Boxes
You should install Serial console then post your logs here -
How to get Wifi working on Draco H3 TV stick
Nick A replied to Karthik T's topic in Allwinner CPU Boxes
If you are sure Banana Pi M2 + has the same wifi chip as yours then it should work. Can post your dmesg. -
How to get Wifi working on Draco H3 TV stick
Nick A replied to Karthik T's topic in Allwinner CPU Boxes
Maybe you are missing the drivers for your wifi. You can find the firmware in your original Android backup. Not sure if this has been patched already. You may need this. https://patchwork.kernel.org/project/linux-wireless/patch/20210509233010.2477973-1-mike.rudenko@gmail.com/#24164605 -
Is it possible to play videos with Kodi on Orange Pi 3 LTS ?
Nick A replied to gop3k's topic in Allwinner sunxi
Hi Jernej. I have some questions about allwinner H6 and h616 HW decoding. I searched around and found out the H6 SOC's have a second VPU that uses the hantro-vpu decoder for VP9. video-codec-g2@1c00000 { compatible = "allwinner,sun50i-h6-vpu-g2"; reg = <0x01c00000 0x1000>; interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>; clocks = <&ccu CLK_BUS_VP9>, <&ccu CLK_VP9>; clock-names = "bus", "mod"; resets = <&ccu RST_BUS_VP9>; iommus = <&iommu 5>; }; I couldn't find these CLK_BUS_VP9 and CLK_VP9 clocks in the H616/618 manuals. I guess allwinner took away this secondary vpu? Do we need to patch cedrus to include VP9 support? Trying to get HW decoding to work on chromium. -
I think only the H6 SoC has a second VPU. This second VPU uses the hantro-vpu decoder for VP9. So this should work on H6.
-
I was looking at the v4l2 patches for chromium. I think we can apply this to cedrus. First, we apply these two patches. https://github.com/armbian/build/blob/f55a87d469b0634f72bc857f773a52a466f66292/patch/kernel/archive/rockchip64-6.6/media-0001-dma-mapping-let-dma_alloc_noncontiguous-allow-DMA_AT.patch https://github.com/armbian/build/blob/f55a87d469b0634f72bc857f773a52a466f66292/patch/kernel/archive/rockchip64-6.6/media-0002-Enable-non-coherent-dst-bufs-for-Hantro-V4L2-driver.patch For the last patch we replace it with our own by editing /drivers/staging/media/sunxi/cedrus/cedrus_video.c and adding "dst_vq->allow_cache_hints = 1;". You will see it at the very bottom of the cedrus_video.c file. https://github.com/armbian/build/blob/f55a87d469b0634f72bc857f773a52a466f66292/patch/kernel/archive/rockchip64-6.6/media-0003-Enable-non-coherent-dst-bufs-for-Rkvdec-V4L2-driver.patch From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: amazingfate <liujianfeng1994@gmail.com> Date: Fri, 3 Nov 2023 18:07:24 +0800 Subject: Enable non-coherent dst bufs for Rkvdec V4L2 driver --- drivers/staging/media/rkvdec/rkvdec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/media/rkvdec/rkvdec.c b/drivers/staging/media/rkvdec/rkvdec.c index 84a41792cb4b..b35f7e1b8a20 100644 --- a/drivers/staging/media/rkvdec/rkvdec.c +++ b/drivers/staging/media/rkvdec/rkvdec.c @@ -755,6 +755,7 @@ static int rkvdec_queue_init(void *priv, dst_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; dst_vq->lock = &rkvdec->vdev_lock; dst_vq->dev = rkvdec->v4l2_dev.dev; + dst_vq->allow_cache_hints = 1; return vb2_queue_init(dst_vq); } -- Armbian https://github.com/torvalds/linux/blob/master/drivers/staging/media/sunxi/cedrus/cedrus_video.c dst_vq->dev = ctx->dev->dev; dst_vq->allow_cache_hints = 1; return vb2_queue_init(dst_vq); } https://github.com/armbian/build/pull/5883 Then we have to create our own udev rules. SUBSYSTEM=="video4linux", ATTR{name}=="rockchip,rk3568-vpu-dec", SYMLINK+="video-dec%n" SUBSYSTEM=="media", ATTR{model}=="hantro-vpu", SYMLINK+="media-dec%n" This is from H6 dtsi... I think we need to add this to the h616 dtsi to get the hantro-vpu module to load. https://github.com/torvalds/linux/blob/master/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi video-codec-g2@1c00000 { compatible = "allwinner,sun50i-h6-vpu-g2"; reg = <0x01c00000 0x1000>; interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>; clocks = <&ccu CLK_BUS_VP9>, <&ccu CLK_VP9>; clock-names = "bus", "mod"; resets = <&ccu RST_BUS_VP9>; iommus = <&iommu 5>; }; if you see something like this in your dmesg then we are on right track. https://forum.banana-pi.org/t/bpi-r2-pro-ubuntu-vpu-support-decode-and-encode/13776/16 We might need to use ubuntu's version of chromium? Not sure if the debian version is patched for v4l2. https://github.com/saiarcot895/chromium-ubuntu-build/issues/65
-
Yes, you need it.
-
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 = <®_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
-
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.
-
Remember you have a custom kernel. You need to block kernel updates with the armbian config tool.
