Add ap143 support to OpenWrt source

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.