Jump to content

Orange Pi+ 2 & rpi-tv & hardware transcoding


DJJo14

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

/dts-v1/;
/plugin/;

/ {
	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

Hi,

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.

Thanks 

Luigi

P_20200930_200510.jpg

Link to comment
Share on other sites

10 hours ago, Arci said:

You have to use SPI1 not SPI0.

 

For Orange PI PC2 you have to use SPI1, but it is not working on OPI PC2.

Is it there anybody who can modify this .dts with correct definition?

 

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

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines