嵌入式技术分享

Embedded Technology Sharing

使用OpenWRT官方源码编译luci-app-unblockmusic教程

前言

因网友反馈OpenWRT官方源码部分路由器不显示luci-app-unblockmusic插件,特此编写本教程,供参考

克隆OpenWRT源码

git clone https://github.com/openwrt/openwrt.git

克隆luci-app-unblockmusic插件源码

cd openwrt/package
git clone https://github.com/maxlicheng/luci-app-unblockmusic.git

更新OpenWRT源

./scripts/feeds update -a
./scripts/feeds install -a

添加node插件源

vi feeds.conf.default

打开文件后,在最后一行添加如下内容

src-git node https://github.com/nxhack/openwrt-node-packages.git

更新node插件源

./scripts/feeds update node
rm ./package/feeds/packages/node
rm ./package/feeds/packages/node-*
./scripts/feeds install -a -p node

配置

进入make menuconfig,选择路由器,退出make menuconfig,打开.config文件,第240行,设置成y,保存。

CONFIG_KERNEL_MIPS_FPU_EMULATOR=y

编译

  • 再次进入 make menuconfig,选中luci-app-unblockmusic;
  • 保存退出 make menuconfig,执行make V=99进行编译。

结束语

以上则为OpenWRT官方源码编译luci-app-unblockmusic插件的全过程

如果文章对您有帮助,欢迎移至上方按钮打赏博主;

点赞
  1. jon说道:

    编译在lean大的R9.10.24之中无法运行:

    Sun Nov 3 21:12:29 2019 daemon.notice procd: /etc/rc.d/S99v2ray_server: * Set tcp_window_scaling to on
    Sun Nov 3 21:12:29 2019 daemon.notice procd: /etc/rc.d/S99v2ray_server: * Running script '/etc/zerotier.start'
    Sun Nov 3 21:12:29 2019 daemon.notice procd: /etc/rc.d/S99v2ray_server: * Running script '/usr/share/miniupnpd/firewall.include'
    Sun Nov 3 21:12:29 2019 daemon.notice procd: /etc/rc.d/S99v2ray_server: * Running script '/usr/share/adbyby/firewall.include'
    Sun Nov 3 21:12:29 2019 daemon.notice procd: /etc/rc.d/S99v2ray_server: * Running script '/etc/ipsec.include'
    Sun Nov 3 21:12:29 2019 daemon.notice procd: /etc/rc.d/S99v2ray_server: * Running script '/usr/share/softethervpn/firewall.include'
    Sun Nov 3 21:12:29 2019 daemon.notice procd: /etc/rc.d/S99v2ray_server: * Running script '/usr/share/v2ray_server/firewall.include'
    Sun Nov 3 21:12:29 2019 daemon.notice procd: /etc/rc.d/S99v2ray_server: * Running script '/var/etc/shadowsocksr.include'
    Sun Nov 3 21:12:29 2019 daemon.notice procd: /etc/rc.d/S99v2ray_server: * Running script '/etc/mia.include'
    Sun Nov 3 21:12:29 2019 daemon.notice procd: /etc/rc.d/S99v2ray_server: * Running script '/etc/pptpd.include'
    Sun Nov 3 21:12:29 2019 daemon.notice procd: /etc/rc.d/S99v2ray_server: * Running script '/var/etc/unblockmusic.include'
    Sun Nov 3 21:12:30 2019 user.notice dnsmasq: found already running DHCP-server on interface 'br-lan' refusing to start, use 'option force 1' to override
    Sun Nov 3 21:12:30 2019 cron.info crond[5061]: crond (busybox 1.30.0) started, log level 5
    Sun Nov 3 21:12:30 2019 user.notice dnsmasq: found already running DHCP-server on interface 'br-lan' refusing to start, use 'option force 1' to override
    Sun Nov 3 21:12:30 2019 cron.info crond[5171]: crond (busybox 1.30.0) started, log level 5
    Sun Nov 3 21:12:30 2019 user.notice dnsmasq: found already running DHCP-server on interface 'br-lan' refusing to start, use 'option force 1' to override
    Sun Nov 3 21:12:31 2019 daemon.info procd: - init complete -Sun Nov 3 21:17:30 2019 user.notice dnsmasq: Allowing 127.0.0.0/8 responses
    Sun Nov 3 21:17:30 2019 user.notice dnsmasq: found already running DHCP-server on interface 'br-lan' refusing to start, use 'option force 1' to override
    Sun Nov 3 21:17:41 2019 user.notice dnsmasq: found already running DHCP-server on interface 'br-lan' refusing to start, use 'option force 1' to override
    Sun Nov 3 21:17:41 2019 cron.info crond[18690]: crond (busybox 1.30.0) started, log level 5
    Sun Nov 3 21:17:41 2019 user.notice dnsmasq: found already running DHCP-server on interface 'br-lan' refusing to start, use 'option force 1' to override
    Sun Nov 3 21:17:41 2019 cron.info crond[18801]: crond (busybox 1.30.0) started, log level 5
    Sun Nov 3 21:17:41 2019 user.notice dnsmasq: DNS rebinding protection is active, will discard upstream RFC1918 responses!
    Sun Nov 3 21:17:41 2019 user.notice dnsmasq: Allowing 127.0.0.0/8 responses
    Sun Nov 3 21:17:41 2019 user.notice dnsmasq: found already running DHCP-server on interface 'br-lan' refusing to start, use 'option force 1' to override
    Sun Nov 3 21:17:52 2019 user.notice dnsmasq: found already running DHCP-server on interface 'br-lan' refusing to start, use 'option force 1' to override
    Sun Nov 3 21:17:52 2019 cron.info crond[19148]: crond (busybox 1.30.0) started, log level 5
    Sun Nov 3 21:17:52 2019 user.notice dnsmasq: found already running DHCP-server on interface 'br-lan' refusing to start, use 'option force 1' to override
    Sun Nov 3 21:17:52 2019 cron.info crond[19285]: crond (busybox 1.30.0) started, log level 5
    Sun Nov 3 21:17:52 2019 user.notice dnsmasq: DNS rebinding protection is active, will discard upstream RFC1918 responses!
    Sun Nov 3 21:17:52 2019 user.notice dnsmasq: Allowing 127.0.0.0/8 responses
    Sun Nov 3 21:17:53 2019 user.notice dnsmasq: found already running DHCP-server on interface 'br-lan' refusing to start, use 'option force 1' to override

    上面是系统日志。
    在web界面勾选启用解锁后,仍然有红字提示UnblockNeteaseMusic 未运行。
    看日志是ubm需要启用dnsmasq的某些功能,但dhcpserver功能被其他什么程序给先占用了,不知道有没有办法解决。

发表评论

电子邮件地址不会被公开。 必填项已用*标注