基于D1s的以太网调试
-
调试验证成功了
1:把gmac驱动选上,make kernel_menuconfig -> Device Drivers -> Network device support -> Ethernet driver support 目录下的Allwinner GMAC support和Use extern phy
把make kernel_menuconfig -> Device Drivers -> Network device support的PHY Device support and infrastructure也选上
2:修改tina-f133/device/config/chips/f133/configs/evb1/linux-5.4/board.dts
gmac_pins_a: gmac@0 {
pins = "PG0", "PG1", "PG2", "PG3",
"PG4", "PG5", "PG12", "PG13",
"PG14", "PG15";
drive-strength = <10>;
};
gmac_pins_b: gmac@1 {
pins = "PG0", "PG1", "PG2", "PG3",
"PG4", "PG5", "PG12", "PG13",
"PG14", "PG15";
function = "gpio_in";
};
&gmac0 {
phy-mode = "rmii";
use_ephy25m = <0>;
pinctrl-0 = <&gmac_pins_a>;
pinctrl-1 = <&gmac_pins_b>;
pinctrl-names = "default", "sleep";
/phy-rst = <&pio PE 16 GPIO_ACTIVE_HIGH>;/
status = "okay";
}; -
这是哪个PHY芯片呢?
-
牛逼 接方案定制吗
-
@memory RTL8305NB-CG
-
@xiaowenge 接的啊,养家糊口,来来来
-
@ricky 我也用以太网方案,能支持吗?
-
@zibon 支持啊,加Q 554191789
-
@ricky 在 基于D1s的以太网调试 中说:
把make kernel_menuconfig -> Device Drivers -> Network device support的PHY Device support and infrastructure也选上
这里需要选具体的芯片吗?我用的是DP83848,能出现以下情况:
但是执行udhcpc,是以下结果
-
调过rgmii的吗,要怎么调,我调不动
-
此回复已被删除! -
@kevin_allwinner 一般通用驱动就能满足大部分需求,如果有特殊功能则需要使用专用PHY驱动
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号