Reference Address: http://www.pppei.net/blog/post/536
1. Add the ap143 type to the file \target\linux\ar71xx\generic\profiles\atheros.mk
Define profile/ap143
name:=Atheros AP143 Reference Board //corresponds to the display of the single board type selection at make Menuconfig
Packages:=kmod-usb-core KMOD-USB2 Kmod-usb-storage
Endef
Define Profile/ap143/description
Package set optimized for the Atheros AP143 Reference board.
Endef
$ (eval $ (call profile,ap143))
Save the file after you modify it, and then delete the TMP directory.
Command: RM-RF tmp
Once you re-enter the single board type, there will be a ap143 single board type.
2.
This step I provided patch, download and put target/linux/ar71xx/patches-3.18/ under.
File name is: 730-mips-ath79-add-ap143-support.patch
Manual modification is troublesome, so did patch auto complete, only modified three files kernel source directory of arch/mips/ath79/machtypes.h and Makefile As well as Kconfig, the specific changes to the content to open a patch to know.
3, This step to modify these scripts are in the brush machine, the firmware is used during the boot process, but also to add the identification of the AP143 veneer .
Open target/linux/ar71xx/base-files/lib/ar71xx.sh to find the Ar71xx_board_detect function, add a single board type:
* "AP143 Reference Board")
Name= "ap143"
;;
Note: The mw4530r in the quotation marks are identical to the contents of the other scripts below .
target/linux/ar71xx/base-files/lib/upgrade/platform.sh
Platform_check_image Add "ap143" to the function in the file
ap136-010 | \
ap136-020 | \
ap135-020 | \
ap143 | \
ap96 | \
BXU2000N-2-A1 | \
db120 | \
Note: Do not modify this file Web page Brush chance prompt firmware is incorrect.
Target/linux/ar71xx/base-files/etc/uci-defaults/leds
Found it:
ap113)
Ucidef_set_led_usbdev "USB" "USB" "Ap113:green:usb" "1-1"
;;
Add the following
ap143)
Ucidef_set_led_default "Wan" "wan" "Ap143:green:wan" "1"
Ucidef_set_led_switch "Lan1" "LAN1" "Ap143:green:lan1" "Switch0" "0x1"
Ucidef_set_led_wlan "WLAN" "WLAN" "Ap143:green:wlan" "PHY0TPT"
;;
Add ap143 support to OpenWrt source