Jump to content

gcsuri

Members
  • Posts

    20
  • Joined

  • Last visited

Posts posted by gcsuri

  1. Hi,

     

     x96 max status:

    - ethernet: there is a problem with the dwmac driver in the kernel. There was a discussion about it. I hope someone fix the rx-delay in the 5.10 release

    - wifi: there is rtl8822cs driver in the kernel, but it's not completed - when realtek finish the driver (sdio part) it would work.

    - bluetooth: there is a driver in the kernel, but it depends on the wifi part

     

    best regards,

  2. 2 hours ago, sgrayban said:

    So no one knows how I can change the refresh from 30Hz to 60Hz? Hard to believe with all these smart people here.

     

    Also has anyone figure out how to get the Gigabit working for ethernet? 10/100 seems to work just fine just not the 1000

    Hi,

     

     you can set the refresh rate by video: options in the kernel parameter. https://wiki.archlinux.org/index.php/Kernel_mode_setting

    1G ethernet link is not available on some TV box regarding the driver (or the incomplete dtb definitions - who knows :) ).

     

  3. 9 hours ago, Uwu said:

    For my X96 Air which bricked after install-aml.sh on latest 20.09, I downloaded "X96Air_P3_20191220-2048.img" and burned it to sd-card.

    USB-stick seems not to work for this.

    I will attempt reinstall of 20.09, since the Android image can work to recover the box.

    Hi,

     

     remove the line from install-aml.sh contains /dev/zero then uncomment the line contains boot.ini. After this you can run install-aml.sh to boot from internal mmc.

     

    regards, Gabor

  4. On 4/10/2020 at 6:28 AM, gusnau said:

    These are the sections related to ethernet from the android firmware dtb file which 1Gbps is working well, I tried replaced them in the meson-sm1-sei610.dtb, armbian can boot but ethernet still didn't work.

     

    
    	ethernet@ff3f0000 {
    		compatible = "amlogic, g12a-eth-dwmac\0snps,dwmac";
    		reg = < 0xff3f0000 0x10000 0xff634540 0x08 0xff64c000 0xa0 >;
    		reg-names = "eth_base\0eth_cfg\0eth_pll";
    		interrupts = < 0x00 0x08 0x01 >;
    		interrupt-names = "macirq";
    		status = "okay";
    		clocks = < 0x02 0x38 >;
    		clock-names = "ethclk81";
    		pll_val = < 0x9c0040a 0x927e0000 0xac5f49e5 >;
    		analog_val = < 0x20200000 0xc000 0x23 >;
    		pinctrl-names = "external_eth_pins";
    		pinctrl-0 = < 0x11 >;
    		mc_val = < 0x1621 >;
    		cali_val = < 0x30000 >;
    		internal_phy = < 0x00 >;
    		phandle = < 0x96 >;
    	};
              
    		internal_eth_pins {
    			phandle = < 0xbf >;
    
    			mux {
    				function = "eth";
    			};
    		};
    
    		internal_gpio_pins {
    			phandle = < 0xc0 >;
    
    			mux {
    				function = "gpio_periphs";
    				bias-disable;
    				input-enable;
    			};
    		};
    
    		external_eth_pins {
    			phandle = < 0x11 >;
    
    			mux {
    				groups = "eth_mdio\0eth_mdc\0eth_rgmii_rx_clk\0eth_rx_dv\0eth_rxd0\0eth_rxd1\0eth_rxd2_rgmii\0eth_rxd3_rgmii\0eth_rgmii_tx_clk\0eth_txen\0eth_txd0\0eth_txd1\0eth_txd2_rgmii\0eth_txd3_rgmii";
    				function = "eth";
    				drive-strength = < 0x03 >;
    			};
    		};

     

    As more people mentioned before the sections from factory kernel is not working with the mainline kernel, for example: mc_val, analog_val, cali_val. The functions which handles this sections are missing from the mainline soc ethernet driver. You may try to put these function to the driver or "convert" the functions to the reg section if it's possible...

  5. Hi,

     

    here is the original dts coming:

    ethernet@ff3f0000 {
    		compatible = "amlogic, g12a-eth-dwmac\0snps,dwmac";
    		reg = <0xff3f0000 0x10000 0xff634540 0x08 0xff64c000 0xa0>;
    		reg-names = "eth_base\0eth_cfg\0eth_pll";
    		interrupts = <0x00 0x08 0x01>;
    		interrupt-names = "macirq";
    		status = "okay";
    		clocks = <0x02 0x38>;
    		clock-names = "ethclk81";
    		pll_val = <0x9c0040a 0x927e0000 0xac5f49e5>;
    		analog_val = <0x20200000 0xc000 0x23>;
    		pinctrl-names = "internal_eth_pins\0internal_gpio_pins";
    		pinctrl-0 = <0x11>;
    		pinctrl-1 = <0x12>;
    		mc_val = <0x4be04>;
    		internal_phy = <0x01>;
    		phandle = <0x98>;
    	};
    ...
            internal_eth_pins {
    			phandle = <0x11>;
    
    			mux {
    				groups = "eth_link_led\0eth_act_led";
    				function = "eth";
    			};
    		};
    
    		internal_gpio_pins {
    			phandle = <0x12>;
    
    			mux {
    				groups = "GPIOZ_14\0GPIOZ_15";
    				function = "gpio_periphs";
    				bias-disable;
    				input-enable;
    			};
    		};
    
    		external_eth_pins {
    			phandle = <0xbc>;
    
    			mux {
    				groups = "eth_mdio\0eth_mdc\0eth_rgmii_rx_clk\0eth_rx_dv\0eth_rxd0\0eth_rxd1\0eth_rxd2_rgmii\0eth_rxd3_rgmii\0eth_rgmii_tx_clk\0eth_txen
    \0eth_txd0\0eth_txd1\0eth_txd2_rgmii\0eth_txd3_rgmii";
    				function = "eth";
    				drive-strength = <0x03>;
    			};
    		};
    

    I think external_eth_pins is not relevant.

    I can't translate mc_val, pll_val and analog_val to the mainline dts ...

  6. Hi,

     

     I have been playing with this unit again, but no success. I tried some changes in dtb. RTL8211F is recognized by the dwmac driver but I think it's not initialized properly. Interface came up, but no link and no rx/tx.

    Could someone explain what is the "mc_val" entry in the dtb of the amlogic 3.14/4.9 kernel?

     

    Gabor

  7. On 5/31/2019 at 10:00 AM, Milan Kragujevic said:
     

    I'd like to do hardware-accelerated H.264 encoding on TX3 Mini. I compiled latest Armbian with kernel 5.1.0, however it is not working, when I try to use a h264_v4l2m2m encoder, I get this error:

     

    [h264_v4l2m2m @ 0xaaaae3bb2a20] driver 'meson-vdec' on card 'Amlogic Video Decoder'
    [h264_v4l2m2m @ 0xaaaae3bb2a20] Could not find a valid device
    [h264_v4l2m2m @ 0xaaaae3bb2a20] can't configure encoder

     

    On lsmod, I only see amlogic-vdec, not venc[oder]...

     

    Hi,

     

     the mainline kernel only supports hw decoding (yet). I hope it will change soon :)

  8. Hi,

     I have just made some decode test on my amlogic boxes. The result is strange because I got performance decrease on S905X board vs. S905 :(

    Does it have weaker VPU?

    The test was made with 150balbes kernel version 5.0.2+ and ffmpeg 4.1.3 v4lm2m hw decoder.

    Screenshot from 2019-05-07 18-58-22.png

  9. Hi,

     

     I'm on 5.77 S905X debian without X. My TV is HD ready  /1366x768/ but it can downscale 1080p picture. I can see the logo in 1080p on boot but the kernel switches to 1366x768 which is crappy. The fonts are broken, unreadable. How can I force or switch to 1080p resoulution on the HDMI port from console? I used fbset but nothing happened :(

     

    best regards, Gabor

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines