0. 安装依赖软件包
#sudo apt-get install subversion
#sudo apt-get install git-core
#sudo apt-get install gcc g++ binutils patch bzip2 flex bison make autoconf
#sudo apt-get install gettext texinfo unzip sharutils subversi-dev ncurses-term zlib1g-dev
1. 通过git 同步代码
#git clone git://git.openwrt.org/openwrt.git
#git checkout
2. 更新安装软件包
#./scripts/feeds update -a 更新软件包
#./scripts/feeds install -a 安装软件包
3. 配置
#make menuconfig
Target System (Ralink RT288x/RT3xxx) --->
(X) Ralink RT288x/RT3xxx
Subtarget (RT3x5x/RT5350 based boards) --->
(X) RT3x5x/RT5350 based boards
Target Profile (HILINK HLK-RM04) --->
(X) HILINK HLK-RM04
Target Images --->
[*] squashfs
修改内核命令行