Embedded softAP + DHCP

Source: Internet
Author: User

Development Platform: ubuntu 12.04

Development Board: friendly arm mini2440

Usb wireless NIC: TL-WN725N

1. Install the usb wireless NIC Driver RTL8188CUS (insert the usb wireless Nic to the PC and use lsusb-v to view the NIC type)

In http://www.realtek.com.tw/downloads/downloadsView.aspx? Langid = 1 & PNid = 21 & PFid = 48 & Level = 5 & Conn = 4 & DownTypeID = 3 & GetDown = false & Downloads = true
Download RTL8188CUS for linux.
2. Check whether the Driver is installed in the/document/Quick Start Guide for Driver Compilation and Installation.pdf file of the downloaded compressed package.
2.1 adding or selecting target platform
Modify the Makefile file:
Change config_platform_i1__pc = y to config_platform_i1__pc = n
Add: CONFIG_PLATFORM_NEW = y
Ifeq ($ (CONFIG_PLATFORM_NEW), y) EXTRA_CFLAGS + =-DCONFIG_LITTLE_ENDIANARCH: = armcros_compile: =/opt/FirendlyARM/toolchain/4.4.3/bin/arm-linux-(path for cross compiler) KSRC: =/opt/new/kernel (the kernel path compiled by the Development Board) endif
2.2 run the make command
2.3 copy 8192cu. ko to the Development Board, insmod 8192cu. ko
Note: Add insmod/test/8192cu. ko
3. Configure softAP
Follow document/Quick Start Guide for starting Soft-AP mode.pdf to configure
3.1 copy hostapd in/wpa_supplicant_hostapad-0.8/wpa_supplicant_hostapad-0.8/hostapd TO THE DEVELOPMENT BOARD
3.2 copy/wpa_supplicant_hostapad-0.8/rtl_hostapd_2G.conf to the Development Board.
3.3 ifconfig wlan0 192.168.1.1 and check whether the eth0 IP address conflicts with wlan0. If the IP address is the same, modify the IP address of wlan0.
3.4./hostapd rtl_hostapd_2G.conf-B (-B Indicates running in the background)
4. Configure dhcp
According to the needs of the http://blog.csdn.net/zhangboyj/article/details/6153233 side re-compile the kernel and File System (busybox), but my Development Board has been configured for me this part of the content, so save these two steps, you only need to set the configuration file. (Check whether the udhcpc and udhcpd commands are available on the Development Board .)
4.1 In example/udhcpd. conf in busybox, modify the file
start192.168.1.20#default: 192.168.0.20end192.168.1.254#default: 192.168.0.254
interfacewlan0#default: eth0
#Examlesoptdns192.168.1.1 192.168.1.10optionsubnet255.255.255.0optrouter192.168.1.1optwins192.168.1.10#optiondns129.219.13.81# appened to above DNS servers for a total of 3optiondns192.168.1.1optiondomainlocaloptionlease864000# 10 days of seconds
4.2 copy udhcpd. conf to the Development Board and run udhcpd. conf
5. Use another PC to connect to rtwap with the password 87654321. These configurations can be modified in rtl_hostapd_2G.conf. Ping 192.168.1.1.

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.