天天看點

【荔枝派zero】開啟DHCP

參考http://zero.lichee.pro/完成基本系統搭建,并添加以太網支援。

通過buildroot增加dhcp支援。

進入buildroot-2017.08,make ARCH=arm menuconfig進入配置菜單,按照如下配置:

->Target packages
    [*]   Show packages that are also provided by busybox
    -> Networking applications
        [*] dhcp (ISC)
        [*]   dhcp server
        [*]   dhcp client
           

聯網狀态下make編譯,将編譯好的檔案系統解壓到SD卡。

将以下内容加入到開機啟動:

ifconfig eth0 up
dhclient eth0
           

效果如下:

【荔枝派zero】開啟DHCP

參考https://blog.csdn.net/qq_41309717/article/details/105528578

繼續閱讀