flippy Posted February 28, 2020 Share Posted February 28, 2020 In the mainline kernel, meson-gxl-s905d-phicomm-n1.dts has been around for a long time, but there has been a problem of high CPU load. I fixed it and it has been stable for several months, so it is shared for reference . I think the cause of the problem is that the IRQ is wrong. The original value is 29 and needs to be changed to 25. // SPDX-License-Identifier: (GPL-2.0+ OR MIT) /* * Copyright (c) 2018 He Yangxuan */ /dts-v1/; #include "meson-gxl-s905d-p230.dts" / { compatible = "phicomm,n1", "amlogic,s905d", "amlogic,meson-gxl"; model = "Phicomm N1"; cvbs-connector { status = "disabled"; }; leds { compatible = "gpio-leds"; status { label = "n1:white:status"; gpios = <&gpio_ao GPIOAO_9 GPIO_ACTIVE_HIGH>; default-state = "on"; }; }; }; &cvbs_vdac_port { status = "disabled"; }; &external_phy { /delete-property/ reset-gpios; interrupts = <25 IRQ_TYPE_LEVEL_LOW>; }; 1 Link to comment Share on other sites More sharing options...
Huifeng Shen Posted March 3, 2020 Share Posted March 3, 2020 I like your work. I use your OpenWRT for beikeyun. I think Armbian team has its own guide for contribution. 1 Link to comment Share on other sites More sharing options...
lewis Posted March 6, 2020 Share Posted March 6, 2020 Hi flippy, thank you very much for your sharing about N1 and Beikeyun. i found that armbian for RK3328 can support video decode by a script , may i use the script on Baikeyun with your image? thank you. Link to comment Share on other sites More sharing options...
flippy Posted April 30, 2020 Author Share Posted April 30, 2020 On 3/6/2020 at 8:55 PM, lewis said: Hi flippy, thank you very much for your sharing about N1 and Beikeyun. i found that armbian for RK3328 can support video decode by a script , may i use the script on Baikeyun with your image? thank you. hi lewis: Yes, i am happy to share it。 The main body of those mirrors is from the ambien community. I just recompiled the kernel on the results of others, using the kernel source code from 150balbes, and added the dtb file for beikeyun, you can use it at will. rk3328-beikeyun-1200mhz.dts rk3328-beikeyun-1296mhz.dts rk3328-beikeyun-1392mhz.dts rk3328-l1pro-1296mhz.dts rk3328-l1pro-1392mhz.dts rk3328-l1pro-1512mhz.dts Link to comment Share on other sites More sharing options...
flippy Posted April 30, 2020 Author Share Posted April 30, 2020 I improved the dts of Phicomm N1 again. The reasons are: 1. The Ethernet card of N1 is not very compatible with some switches. When the ethernet phy is activated, the flow control sometimes cannot be turned on, so will get bad results during the speedtest.net . For this reason, I added a dts separately force_thresh_dma_mode, which is equivalent to flow control in software mode. But there are also side effects: tx performance is reduced. In addition, as auxiliary optimization items, set snps, aal; snps, txpbl = <0x8>; snps, rxpbl = <0x4>; their role is to improve the performance of the network card. 2. The phy reset-delay-us value of N1 is sometimes not enough. When running openwrt, sometimes the ethernet phy cannot be enabled, so the reset-delay-us value is increased. Provide two dts files: meson-gxl-s905d-phicomm-n1.dts: This is the default dts, used in most occasions, when the flow control can be turned on normally, this is the best choice meson-gxl-s905d-phicomm-n1-thresh.dts: This is a dts with the force_thresh_dma_mode option enabled. It is applicable when flow control cannot be turned on. You can use force_thresh_dma_mode to control flow at the cost of a small amount of performance loss. meson-gxl-s905d-phicomm-n1.dts meson-gxl-s905d-phicomm-n1-thresh.dts 1 Link to comment Share on other sites More sharing options...
ChuanjunLau Posted September 16, 2020 Share Posted September 16, 2020 thx for your sharing, really appreciate it! Link to comment Share on other sites More sharing options...
Tao173 Posted October 14, 2020 Share Posted October 14, 2020 On 5/1/2020 at 2:32 AM, flippy said: I improved the dts of Phicomm N1 again. The reasons are: 1. The Ethernet card of N1 is not very compatible with some switches. When the ethernet phy is activated, the flow control sometimes cannot be turned on, so will get bad results during the speedtest.net . For this reason, I added a dts separately force_thresh_dma_mode, which is equivalent to flow control in software mode. But there are also side effects: tx performance is reduced. In addition, as auxiliary optimization items, set snps, aal; snps, txpbl = <0x8>; snps, rxpbl = <0x4>; their role is to improve the performance of the network card. 2. The phy reset-delay-us value of N1 is sometimes not enough. When running openwrt, sometimes the ethernet phy cannot be enabled, so the reset-delay-us value is increased. Provide two dts files: meson-gxl-s905d-phicomm-n1.dts: This is the default dts, used in most occasions, when the flow control can be turned on normally, this is the best choice meson-gxl-s905d-phicomm-n1-thresh.dts: This is a dts with the force_thresh_dma_mode option enabled. It is applicable when flow control cannot be turned on. You can use force_thresh_dma_mode to control flow at the cost of a small amount of performance loss. meson-gxl-s905d-phicomm-n1.dts 1.03 kB · 97 downloads meson-gxl-s905d-phicomm-n1-thresh.dts 213 B · 77 downloads On 5/1/2020 at 2:32 AM, flippy said: I improved the dts of Phicomm N1 again. The reasons are: 1. The Ethernet card of N1 is not very compatible with some switches. When the ethernet phy is activated, the flow control sometimes cannot be turned on, so will get bad results during the speedtest.net . For this reason, I added a dts separately force_thresh_dma_mode, which is equivalent to flow control in software mode. But there are also side effects: tx performance is reduced. In addition, as auxiliary optimization items, set snps, aal; snps, txpbl = <0x8>; snps, rxpbl = <0x4>; their role is to improve the performance of the network card. 2. The phy reset-delay-us value of N1 is sometimes not enough. When running openwrt, sometimes the ethernet phy cannot be enabled, so the reset-delay-us value is increased. Provide two dts files: meson-gxl-s905d-phicomm-n1.dts: This is the default dts, used in most occasions, when the flow control can be turned on normally, this is the best choice meson-gxl-s905d-phicomm-n1-thresh.dts: This is a dts with the force_thresh_dma_mode option enabled. It is applicable when flow control cannot be turned on. You can use force_thresh_dma_mode to control flow at the cost of a small amount of performance loss. meson-gxl-s905d-phicomm-n1.dts 1.03 kB · 97 downloads meson-gxl-s905d-phicomm-n1-thresh.dts 213 B · 77 downloads Can you add a Bluetooth driver for Armbian_20.09_Arm-64_buster_current_5.8.10? Bluetooth will always be unavailable. Link to comment Share on other sites More sharing options...
Recommended Posts