|
本帖最后由 hyn 于 2017-6-1 10:48 编辑
256M K2固件编译成功了
极1S编译还是出错:
- make[2]: Leaving directory '/home/hyn/asus/rt-n56u/trunk/user/httpd'
- make[2]: Entering directory '/home/hyn/asus/rt-n56u/trunk/user/www'
- make[2]: Nothing to be done for 'all'.
- make[2]: Leaving directory '/home/hyn/asus/rt-n56u/trunk/user/www'
- make[2]: Entering directory '/home/hyn/asus/rt-n56u/trunk/user/rc'
- /home/hyn/asus/rt-n56u/toolchain-mipsel/toolchain-3.4.x/bin/mipsel-linux-uclibc-gcc -mips32r2 -march=mips32r2 -Os -fomit-frame-pointer -pipe -Dlinux -D__linux__ -Dunix -DEMBED -I/home/hyn/asus/rt-n56u/trunk/stage/include -Wall -Wno-trigraphs -Wno-strict-aliasing -Wno-format-security -Wno-pointer-sign -DBOARD_AC1200 -DVENDOR_ASUS -DBOARD_2G_IN_SOC=1 -DBOARD_5G_IN_SOC=0 -DBOARD_HAS_5G_RADIO=0 -DBOARD_NUM_USB_PORTS=1 -DUSE_IPV6 -DUSE_SINGLE_MAC -DUSE_MT7628_AP -DUSE_IGMP_SNOOP -DUSE_MTK_MMC -DUSE_MTK_AES -DUSE_MATCH_CONNTRACK -DBOARD_RAM_SIZE=128 -DCONFIG_RALINK_MT7628 -DAP_MODE_LAN_TAGGED -DRSTATS_SKIP_ESW -DUSE_MTK_ESW -DCONFIG_RT_MAX_CLIENTS=32 -DUSE_WID_2G=7628 -DFWBLDSTR="099" -DFWREVSTR="7875ee5" -DUSE_MMC_SUPPORT -DUSE_BLK_DEV_SD -DUTL_HDPARM -DUSE_STORAGE -DAPP_FTPD -DAPP_SMBD -DAPP_NFSD -DAPP_TRMD -DAPP_ARIA -DUSE_USB_SUPPORT -DSRV_LPRD -DSRV_U2EC -DAPP_OPENvirtual** -DAPP_XUPNPD -DAPP_SSHD -DAPP_RPL2TP -DSUPPORT_DDNS_SSL -DSUPPORT_PEAP_SSL -DSUPPORT_HTTPS -s -I. -I/home/hyn/asus/rt-n56u/trunk/user/shared -I/home/hyn/asus/rt-n56u/trunk/user/shared/include -I/home/hyn/asus/rt-n56u/trunk/user/wireless_tools -I/home/hyn/asus/rt-n56u/trunk/linux-3.4.x/include/ralink -I/home/hyn/asus/rt-n56u/trunk/user/libdisk -I/home/hyn/asus/rt-n56u/trunk/linux-3.4.x/drivers/net/raeth -c -o rc.o rc.c
- In file included from /home/hyn/asus/rt-n56u/trunk/user/shared/include/ralink_boards.h:21,
- from rc.h:26,
- from rc.c:30:
- /home/hyn/asus/rt-n56u/trunk/user/shared/include/ralink_board.h:15:33: warning: extra tokens at end of #undef directive
- /home/hyn/asus/rt-n56u/trunk/user/shared/include/ralink_board.h:18:33: warning: extra tokens at end of #undef directive
- rc.c: In function 'init_gpio_leds_buttons':
- rc.c:210: error: expected expression before ',' token
- rc.c:211: error: expected expression before ',' token
- rc.c:212: error: expected expression before ',' token
- rc.c:226: error: expected expression before ',' token
- rc.c:227: error: expected expression before ',' token
- rc.c:256: error: expected expression before ',' token
- rc.c: In function 'LED_CONTROL':
- rc.c:705: error: expected expression before ':' token
- rc.c:722: error: expected expression before ':' token
- rc.c: In function 'shutdown_router':
- rc.c:888: error: expected expression before ',' token
- <builtin>: recipe for target 'rc.o' failed
- make[2]: *** [rc.o] Error 1
- make[2]: Leaving directory '/home/hyn/asus/rt-n56u/trunk/user/rc'
- Makefile:152: recipe for target 'all' failed
- make[1]: *** [all] Error 2
- make[1]: Leaving directory '/home/hyn/asus/rt-n56u/trunk/user'
- Makefile:185: recipe for target 'user_only' failed
- make: *** [user_only] Error 2
复制代码
trunk/configs/boards/HC5661A/board.h 的 15行和18行及几个无效define修改一下:
- 3 #define BOARD_PID "HC5661A"
- 4 #define BOARD_NAME "HC5661A"
- 5 #define BOARD_DESC "HIWIFI 1S Wireless Router"
- 6 #define BOARD_VENDOR_NAME "ASUSTek Computer Inc."
- 7 #define BOARD_VENDOR_URL "http://www.asus.com/"
- 8 #define BOARD_MODEL_URL "http://www.asus.com/Networking/RT-AC1200/"
- 9 #define BOARD_BOOT_TIME 25
- 10 #define BOARD_FLASH_TIME 120
- 11 #define BOARD_GPIO_BTN_RESET 38
- 12 #undef BOARD_GPIO_LED_INVERTED
- 13 #undef BOARD_GPIO_BTN_WPS
- 14 #undef BOARD_GPIO_LED_ALL
- 15 #define BOARD_GPIO_LED_WIFI 44
- 16 #define BOARD_GPIO_LED_POWER 37
- 17 #undef BOARD_GPIO_LED_LAN
- 18 #define BOARD_GPIO_LED_WAN 1
- 19 #undef BOARD_GPIO_LED_USB
- 20 #undef BOARD_GPIO_LED_ROUTER
- 21 #undef BOARD_GPIO_PWR_USB
- 22 #define BOARD_HAS_5G_11AC 0
- 23 #define BOARD_NUM_ANT_5G_TX 0
- 24 #define BOARD_NUM_ANT_5G_RX 0
- 25 #define BOARD_NUM_ANT_2G_TX 2
- 26 #define BOARD_NUM_ANT_2G_RX 2
- 27 #define BOARD_NUM_ETH_LEDS 1
- 28 #define BOARD_HAS_EPHY_L1000 0
- 29 #define BOARD_HAS_EPHY_W1000 0
复制代码
(昨天开始没法上传附件了,大家有没有?)
google搜索发现这个,跟楼主的有差异,没确认哪个是正确的
https://github.com/AdvancedWRT/RT-N56U-Profiles/blob/master/HC5661-v2/boards/HC5661-v2/board.h |
|