相对官方固件,修改以下几点:
固件仅仅是对官方的重新打包,所以可以使用官方所有的 kmod
version="17.01.0"
wget "https://downloads.lede-project.org/releases/${version}/targets/ar71xx/nand/lede-imagebuilder-${version}-ar71xx-nand.Linux-x86_64.tar.xz"
tar -axf "lede-imagebuilder-${version}-ar71xx-nand.Linux-x86_64.tar.xz"
cd "lede-imagebuilder-${version}-ar71xx-nand.Linux-x86_64"
cat >wndr4300-lede-17.01.0.patch<<'EOF'
--- target/linux/ar71xx/image/legacy.mk 2017-02-25 20:36:05.945981306 +0800
+++ target/linux/ar71xx/image/legacy.mk 2017-02-25 20:39:39.015888878 +0800
@@ -281,7 +281,8 @@
wnr2000v4_mtdlayout=mtdparts=spi0.0:192k(u-boot)ro,64k(u-boot-env)ro,3776k(firmware),64k(art)ro
r6100_mtdlayout=mtdparts=ar934x-nfc:128k(u-boot)ro,256k(caldata)ro,256k(caldata-backup),512k(config),512k(pot),2048k(kernel),122240k(ubi),25600k@0x1a0000(firmware),2048k(language),3072k(traffic_meter)
tew823dru_mtdlayout=mtdparts=spi0.0:192k(u-boot)ro,64k(nvram)ro,15296k(firmware),192k(lang)ro,512k(my-dlink)ro,64k(mac)ro,64k(art)ro
-wndr4300_mtdlayout=mtdparts=ar934x-nfc:256k(u-boot)ro,256k(u-boot-env)ro,256k(caldata)ro,512k(pot),2048k(language),512k(config),3072k(traffic_meter),2048k(kernel),23552k(ubi),25600k@0x6c0000(firmware),256k(caldata_backup),-(reserved)
+#wndr4300_mtdlayout=mtdparts=ar934x-nfc:256k(u-boot)ro,256k(u-boot-env)ro,256k(caldata)ro,512k(pot),2048k(language),512k(config),3072k(traffic_meter),2048k(kernel),23552k(ubi),25600k@0x6c0000(firmware),256k(caldata_backup),-(reserved)
+wndr4300_mtdlayout=mtdparts=ar934x-nfc:256k(u-boot)ro,256k(u-boot-env)ro,256k(caldata)ro,512k(pot),2048k(language),512k(config),3072k(traffic_meter),2048k(kernel),121856k(ubi),123904k@0x6c0000(firmware),256k(caldata_backup),-(reserved)
zcn1523h_mtdlayout=mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,6208k(rootfs),1472k(kernel),64k(configure)ro,64k(mfg)ro,64k(art)ro,7680k@0x50000(firmware)
mynet_rext_mtdlayout=mtdparts=spi0.0:256k(u-boot)ro,7808k(firmware),64k(nvram)ro,64k(ART)ro
zyx_nbg6716_mtdlayout=mtdparts=spi0.0:256k(u-boot)ro,64k(env)ro,64k(RFdata)ro,-(nbu);ar934x-nfc:2048k(zyxel_rfsd),2048k(romd),1024k(header),2048k(kernel),-(ubi)
EOF
patch -p0 < wndr4300-lede-17.01.0.patch
mkdir -p v2ex/etc/config
cat > v2ex/etc/config/wireless<<'EOF'
config wifi-device 'radio0'
option type 'mac80211'
option hwmode '11g'
option path 'platform/ar934x_wmac'
option htmode 'HT20'
option channel 'auto'
option country 'US'
option txpower '27'
option disabled '0'
config wifi-iface
option device 'radio0'
option network 'lan'
option mode 'ap'
option encryption 'psk2+ccmp'
option key 'v2exv2ex'
option ssid 'WNDR4300'
option wmm '0'
config wifi-device 'radio1'
option type 'mac80211'
option hwmode '11a'
option path 'pci0000:00/0000:00:00.0'
option channel 'auto'
option country 'US'
option disabled '0'
option htmode 'HT40'
option txpower '17'
config wifi-iface
option device 'radio1'
option mode 'ap'
option network 'lan'
option encryption 'psk2+ccmp'
option key 'v2exv2ex'
option ssid 'WNDR4300-5G'
option wmm '0'
EOF
name="lede-17.01.0-ar71xx-nand-wndr4300"
make image PROFILE=WNDR4300V1 PACKAGES="luci luci-theme-bootstrap luci-app-firewall uci dnsmasq-full wpad-mini -dnsmasq" FILES=v2ex
cd bin/targets/ar71xx/nand/
mv lede-17.01.0-r3205-59508e3-ar71xx-nand-wndr4300-squashfs-sysupgrade.tar ${name}-squashfs-sysupgrade.tar
mv lede-17.01.0-r3205-59508e3-ar71xx-nand-wndr4300-ubi-factory.img ${name}-ubi-factory.img
tar Jcf "${name}.tar.xz" ${name}-squashfs-sysupgrade.tar ${name}-ubi-factory.img
mv "${name}.tar.xz" ../../../../
cd ../../../../
刷固件之后,可以连接路由的 wifi, SSID 和密码分别是
WNDR4300
v2exv2ex
1
ddqp 2017-02-27 05:12:30 +08:00 via iPhone
楼主能否解答一下, Lede 和 openwrt 有什么区别?为什么要用 lede?而不用 openwrt?
|
2
terence4444 2017-02-27 07:13:43 +08:00 via iPhone
@ddqp 原版改的能用硬件路由, openwrt 只能软路由?我猜的。
|
3
honeyshine75 2017-02-27 07:28:14 +08:00 via Android
终于来 lede 了,不过石像鬼已经很稳定了啊
|
4
ProjectAmber 2017-02-27 07:40:44 +08:00 via iPhone
@ddqp 原核心开发者中的一部分人突然离开不干了,创建了 LEDE 。经过友好的协商后,未来两个项目会合并,继续使用 OpenWrt 这一名字。
|
5
ddqp 2017-02-27 11:51:38 +08:00
|
6
kneep 2017-02-27 13:02:55 +08:00
openwrt 还更新吗?
|
9
depress 2017-02-27 13:12:21 +08:00 via Android
借楼问下现在 4300 的第三方固件好像无线速率都跑不满?有线我还没听人抱怨,毕竟千兆一般用不到。所以我一直没敢刷。
|
10
lhbc OP @depress 无线性能太弱了,而且不支持 AC 。我都是用专门的 AP 的, 4300 只做网关、交换机和翻墙。
|
11
rshun 2017-02-27 13:32:25 +08:00
我装完自带的 luci-app-shadowsocket 就可以用了呀,为什么还要装 dnsmasq-full?
|