lichee-pi zero 主线 linux-5.3.15 ethernet 驱动 dtb 修改笔记
参考修改笔记:
[url=http://zero.lichee.pro/%E8%B4%A1%E7%8C%AE/article%206.html#u-bootethernet]Licheepi Zero Ethernet 适配指南[/url]
[url=http://linux-sunxi.org/Linux_mainlining_effort] linux-sunxi.org/Linux_mainlining_effort [/url]参考文件修改
dwmac-sun8i.c
sunxi-h3-h5.dtsi修改文件:
arch/arm/boot/dts/sun8i-v3s.dtsi
arch/arm/boot/dts/sun8i-v3s-licheepi-zero.dts[url=https://whycan.cn/files/members/1206/sun8i-v3s-licheepi-zero 设备树.rar] sun8i-v3s-licheepi-zero 设备树 [/url]
重新编译生产设备树 dtb 文件
[code]
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- dtbs
[/code]udhcpc 配置 ip 失败解决办法,从buildroot 编译好的 rootfs 复制 /usr/share 目录下所有配置文件到对应目录下。
修改 etc/network/interfaces
[code]
auto lo
iface lo inet loopbackauto eth0
iface eth0 inet dhcp[/code]
[code]
localhost:~# ifconfig
eth0 Link encap:Ethernet HWaddr B6:38:A2:0E:28:25inet 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)
[/code]