WRTnode2Q U-Boot编译

来自WRTnode Wiki
跳转至: 导航搜索

下载WRTnode2Q U-Boot源码

我们已经上传WRTnode2Q U-Boot源码到github上,链接 https://github.com/WRTnode/wrtnode2q_uboot
Linux命令行下载:

git clone https://github.com/WRTnode/wrtnode2q_uboot.git

编译WRTnode2Q U-Boot源码

进入编译目录:

cd wrtnode2q_uboot

复制下面的代码并粘贴到命令行,配置编译参数:

export AG7240_BROADCAST_ENABLE=0
export ATH_SUPPORT_LED=1
export BUILD_OPTIMIZED=y
export BUILD_TYPE=squashfs
export BUS=AHB
export CFG_BOARD_TYPE=ap143
export COMPRESSED_UBOOT=0
export CONFIG_HORNET_1_1_WAR=1
export CONFIG_HORNET_XTAL=25
export DUAL_FIRMWAREIMAGE_SUPPORT=0
export FLASH_SIZE=16
export GPIO_PIN_FUNC_0=0
export GPIO_PIN_FUNC_1=0
export GPIO_PIN_FUNC_2=0
export NEW_DDR_TAP_CAL=1
export ETH_CONFIG=_s27
make board953x_config

编译U-Boot:

make CROSS_COMPILE=$(sdk)/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/bin/mips-openwrt-linux- V=s

这里$(sdk)是你的SDK的位置,如果你之前编译过WRTnode2Q的固件,编译器是$(TOPDIR)/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/bin/mips-openwrt-linux-