
3

RK3399 GMAC 高速时候不稳定解决笔记
source link: https://www.taterli.com/8914/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

RK3399 GMAC 高速时候不稳定解决笔记
RK3399 GMAC 高速时候不稳定解决笔记
硬件是一个没有原理图的电视盒,有网口,大致移植后出现网口不稳定,表现为大流量自动断网.

提高vdd_log能临时解决.
echo 1050000 > /sys/kernel/debug/regulator/vdd_log/voltage

用户空间解决办法可以这样,但是并不优雅,打算改一下.
vdd_log: vdd-log {
compatible = "pwm-regulator";
pwms = <&pwm2 0 25000 1>;
regulator-name = "vdd_log";
/*
* the firefly hardware using 3.0 v as APIO2_VDD
* voltage, but the pwm divider resistance is designed
* based on hardware which the APIO2_VDD is 1.8v.
* The correct min-microvolt measure in hardware is 430mV
* and the max-microvolt is 1.4V.
*/
regulator-min-microvolt = <800000>;
regulator-max-microvolt = <1400000>;
/* 加入0.3V偏置,这样电压就能达标. */
regulator-microvolt-offset = <300000>;
regulator-always-on;
regulator-boot-on;
/* 加入电源树防止警告 */
pwm-supply = <&vcc5v0_sys>;
};
我使用的是RK维护内核,毕竟只有这个功能才比较齐全,比较老,不能设置初始电压,设置偏置一样的.
</article
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK