OpenWrt Patch for HiWiFi HC5661 / HC5761 / HC5861 (based on "barrier_breaker" branch)
极路由 HC5661 / HC5761 / HC5861 (极1S、极2、极3)OpenWrt补丁(基于barrier_breaker分支)
Chaos Calmer - 15.05 版本请参考本项目的 chaos_calmer 分支: https://github.com/rssnsj/openwrt-hc5x61/tree/chaos_calmer
# 安装必需的软件包(仅限Ubuntu/Debian)
sudo apt-get install build-essential git subversion wget flex gettext libncurses5-dev unzip gawk liblzma-dev zlib1g-dev ccache u-boot-tools
# Checkout项目代码
git clone https://github.com/rssnsj/openwrt-hc5x61.git
cd openwrt-hc5x61
make
# 编译成功后,固件文件位于: openwrt-ramips/bin/oopenwrt-ramips-mt7620a-hiwifi-hc5761-squashfs-sysupgrade.bin
cd openwrt-hc5x61/ImageBuilder
# 解压ImageBuilder和SDK(事先从downloads.openwrt.org下载好)
tar jxvf xxx/OpenWrt-ImageBuilder-ramips_mt7620a-for-linux-x86_64.tar.bz2
tar jxvf xxx/OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2.tar.bz2
# 生成极2固件:
make HC5761 FEEDS=1 RALINK=1
# 生成极3固件:
make HC5861 FEEDS=1 RALINK=1
# FEEDS=1 表示包含项目 rssnsj/network-feeds 的功能在内
# RALINK=1 表示包含5G驱动在固件中
以极2为例,openwrt-ramips-mt7620a-hiwifi-hc5761-squashfs-sysupgrade.bin 是sysupgrade格式的固件,传到路由器的/tmp下,通过SSH或串口登录路由器Shell。
首先最好将U-boot替换成解锁版(tftp刷机时U-boot不对固件做校验)的,以防止万一刷砖无法直接tftp刷root固件:
# 极1S
cd /tmp
wget http://rssn.cn/roms/uboot/HC5661-uboot.bin
mtd write HC5661-uboot.bin u-boot
# 极2
cd /tmp
wget http://rssn.cn/roms/uboot/HC5761-uboot.bin
mtd write HC5761-uboot.bin u-boot
# 极3
cd /tmp
wget http://rssn.cn/roms/uboot/HC5861-uboot.bin
mtd write HC5861-uboot.bin u-boot
如果上面的地址失效,也可以从这里获取U-boot映像: https://github.com/rssnsj/firmware-tools/tree/hiwifi
然后刷入固件:
sysupgrade -F -n openwrt-ramips-mt7620a-hiwifi-hc5761-squashfs-sysupgrade.bin