Jump to content

Orange Pi+ 2 & rpi-tv & hardware transcoding


Recommended Posts

In  a brainfart i thought the rpi gpio is compatible with most arm boards. so i took one witch i had laying around and i connected the Raspberry pi DVB-T HAT module (TV uHAT).


I checked if the SPI bus pins where compatible and with the help of the "Hardware_Allwinner_overlays guide" i created a overlay for the rpi-tv (used the original from the raspberry pi github).

to my surprise (after some struggle) it  work.


// rpi-tv HAT


/ {
	compatible = "allwinner,sun4i-a10", "allwinner,sun7i-a20", "allwinner,sun8i-h3", "allwinner,sun50i-a64", "allwinner,sun50i-h5";

	fragment@0 {
		target = <&spi0>;
		__overlay__ {
			/* needed to avoid dtc warning */
			#address-cells = <1>;
			#size-cells = <0>;

			status = "okay";

			cxd2880@0 {
				compatible = "sony,cxd2880";
				reg = <0>; /* CE0 */
				spi-max-frequency = <50000000>;
				status = "okay";

sudo armbian-add-overlay rpi-tv-overlay.dts

I quickly install tvheadend and went to watch some TV :p


Why i did this because the H3 GPU/CPU has h265 encoding (in the Nederlands tv is transmitted with the h265 1080p 50fps)

with the recent Sunxi-cedrus update libav can work with hardware encoding (in theory, i don't know it is fast enough )

But i can not find a proper recent guide the install then,  does any one installed the Sunxi-cedrus? And do i have to compile the complete  custom kernel to do this? or is this already in the main line?

onlything is can find is this: https://linux-sunxi.org/Sunxi-cedrus


ref: https://docs.armbian.com/Hardware_Allwinner_overlays/

Link to comment
Share on other sites


I tried to do your suggestion (I installed the overlay rpi-tv-overlay)  on mi OrangePI 2+ and the Raspberry DVB TV uHAT correctly inserted (green led on).

Anyway not working.  No new device /dev/dvb and no adapters present in tvheadend configuration box.

Any other suggestion ? 
One other question:   the aerial on the uHAT connector is unaccessible because the OrangePI board layout.  At the begin I would to see the device to work. After I'll find a solution for the connector.




Link to comment
Share on other sites

The dts definition shoud work, fi set corrct SPI port. For Orange PI PC2 (H5) is using SPI 1 as default SPI port.

I see uncompatibilty SPI Allwinner drivers wit cxd2880_spi driver.  

Loading driver cxd2880_spi ending with err:


dvbdev: DVB: registering new adapter (CXD2880)
DVB: Unable to find symbol cxd2880_attach()
cxd2880_spi: cxd2880_spi_probe: cxd2880_attach failed



Link to comment
Share on other sites

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.

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.

  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines