LEDE/OpenWRT添加新设备支持

/target/linux/ramips/base-files/etc 这个目录下的文件应该被集成到 firmware的/etc目录

board.d
01_leds

        set_usb_led "$board:blue:usb"
        ucidef_set_led_netdev "wifi" "WIFI" "$board:yellow:wifi" "wlan1"
        ucidef_set_led_netdev "wifi5g" "WIFI5G" "$board:blue:wifi" "wlan0"
        ucidef_set_led_netdev "wan" "WAN" "$board:blue:internet" "eth0.2" "tx rx"

02_network

ramips_setup_interfaces()
...
                ucidef_add_switch "switch0" \
                        "0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "6@eth0"
                ;;
...

ramips_setup_macs()

target/linux/ramips/base-files/lib/upgrade/platform.sh
target/linux/ramips/base-files/lib/ramips.sh
target/linux/ramips/base-files/etc/board.d/02_network
target/linux/ramips/base-files/etc/board.d/01_leds
target/linux/ramips/base-files/etc/diag.sh
target/linux/ramips/image/mt7620.mk
target/linux/ramips/dts/x.dts

本文章由作者:佐须之男 整理编辑,原文地址: LEDE/OpenWRT添加新设备支持
本站的文章和资源来自互联网或者站长的原创,按照 CC BY -NC -SA 3.0 CN协议发布和共享,转载或引用本站文章应遵循相同协议。如果有侵犯版权的资 源请尽快联系站长,我们会在24h内删除有争议的资源。欢迎大家多多交流,期待共同学习进步。

相关推荐