参考修改笔记:
Licheepi Zero Ethernet 适配指南
linux-sunxi.org/Linux_mainlining_effort
参考文件
dwmac-sun8i.c
sunxi-h3-h5.dtsi
修改文件:
arch/arm/boot/dts/sun8i-v3s.dtsi
arch/arm/boot/dts/sun8i-v3s-licheepi-zero.dts
重新编译生产设备树 dtb 文件
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- dtbs
修改 etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
localhost:~# ifconfig
eth0 Link encap:Ethernet HWaddr B6:38:A2:0E:28:25
inet addr:192.168.51.59 Bcast:192.168.51.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:886 errors:0 dropped:37 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:79914 (78.0 KiB) TX bytes:2736 (2.6 KiB)
Interrupt:31
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
最近编辑记录 Iron (2019-12-23 00:08:23)
离线