Open caiwang opened 9 years ago
Comment by caiwang Sunday Mar 01, 2015 at 07:24 GMT
wget http://dl.radxa.com/rock/source/RTL8723A_WiFi_linux_v4.1.7_8023_BTCOEX20130528_ver3.3_beta.rar apt-get install unrar-free unrar x RTL8723A_WiFi_linux_v4.1.7_8023_BTCOEX20130528_ver3.3_beta.rar 45 Failed
apt-get install build-essential
Comment by caiwang Sunday Mar 01, 2015 at 11:22 GMT
http://dl.radxa.com/rock/source/RTL8723A_WiFi_linux_v4.1.7_8023_BTCOEX20130528_ver3.3_beta.rar 下载到windows,解压,压缩成zip,传到 ihost 上 /home/rock (apt-get install unrar-free 直接下载rar到rock,unrar出现45 failed)
apt-get install unizp unzip RTL8723A_WiFi_linux_v4.1.7_8023_BTCOEX20130528_ver3.3_beta.zip
apt-get install build-essential cd RTL8723A_WiFi_linux_v4.1.7_8023_BTCOEX20130528_ver3.3_beta/ cd wpa_supplicant_hostapd/ tar xzf wpa_supplicant_hostapd-0.8_rtw_r7048.20130424.tar.gz cd wpa_supplicant_hostapd-0.8_rtw_r7048.20130424/hostapd make make install
root@radxa:/home/rock/RTL8723A_WiFi_linux_v4.1.7_8023_BTCOEX20130528_ver3.3_beta/wpa_supplicant_hostapd/wpa_supplicant_hostapd-0.8_rtw_r7048.20130424/hostapd# make install mkdir -p /usr/local/bin for i in hostapd hostapd_cli; do cp -f $i /usr/local/bin/$i; done root@radxa:/home/rock/RTL8723A_WiFi_linux_v4.1.7_8023_BTCOEX20130528_ver3.3_beta/wpa_supplicant_hostapd/wpa_supplicant_hostapd-0.8_rtw_r7048.20130424/hostapd#
mkdir -p /etc/hostapd
Comment by caiwang Monday Mar 02, 2015 at 00:20 GMT
root@radxa:/home/rock/RTL8723A_WiFi_linux_v4.1.7_8023_BTCOEX20130528_ver3.3_beta/driver/rtl8723A_WiFi_linux_v4.1.7_8023.20130628_BTCOEX20130528_ver3.3_beta# nano Makefile
CONFIG_PLATFORM_I386_PC = n CONFIG_PLATFORM_ANDROID_X86 = n CONFIG_PLATFORM_JB_X86 = n CONFIG_PLATFORM_ARM_S3C2K4 = n CONFIG_PLATFORM_ARM_PXA2XX = n CONFIG_PLATFORM_ARM_S3C6K4 = n CONFIG_PLATFORM_MIPS_RMI = n CONFIG_PLATFORM_RTD2880B = n CONFIG_PLATFORM_MIPS_AR9132 = n CONFIG_PLATFORM_RTK_DMP = n CONFIG_PLATFORM_MIPS_PLM = n CONFIG_PLATFORM_MSTAR389 = n CONFIG_PLATFORM_MT53XX = n CONFIG_PLATFORM_ARM_MX51_241H = n CONFIG_PLATFORM_ACTIONS_ATJ227X = n CONFIG_PLATFORM_TEGRA3_CARDHU = n CONFIG_PLATFORM_TEGRA4_DALMORE = n CONFIG_PLATFORM_ARM_TCC8900 = n CONFIG_PLATFORM_ARM_TCC8920 = n CONFIG_PLATFORM_ARM_TCC8920_JB42 = n CONFIG_PLATFORM_ARM_RK2818 = y CONFIG_PLATFORM_ARM_URBETTER = n CONFIG_PLATFORM_ARM_TI_PANDA = n CONFIG_PLATFORM_MIPS_JZ4760 = n CONFIG_PLATFORM_DMP_PHILIPS = n CONFIG_PLATFORM_TI_DM365 = n CONFIG_PLATFORM_MSTAR_TITANIA12 = n CONFIG_PLATFORM_SZEBOOK = n CONFIG_PLATFORM_ARM_SUNxI = n CONFIG_PLATFORM_ARM_SUN6I = n CONFIG_PLATFORM_ACTIONS_ATM702X = n CONFIG_PLATFORM_MN10300 = n CONFIG_PLATFORM_ACTIONS_ATV5201 = n
ifeq ($(CONFIG_PLATFORM_ARM_RK2818), y)
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN -DCONFIG_PLATFORM_ANDROID -DCONFIG_PLATFORM_ROCKCHIPS -DCONFIG_MINIMAL_MEMORY_USAGE
ifeq ($(CONFIG_SDIO_HCI), y)
EXTRA_CFLAGS += -DCONFIG_DETECT_CPWM_AND_C2H_BY_POLLING
endif
ARCH := arm
CROSS_COMPILE := arm-eabi-
KSRC := /home/rock/linux-rockchip MODULE_NAME := wlan endif
Comment by caiwang Monday Mar 02, 2015 at 08:45 GMT
root@radxa:/home/rock/RTL8723A_WiFi_linux_v4.1.7_8023_BTCOEX20130528_ver3.3_beta/driver/rtl8723A_WiFi_linux_v4.1.7_8023.20130628_BTCOEX2013052 8_ver3.3_beta# make
root@radxa:/home/rock/RTL8723A_WiFi_linux_v4.1.7_8023_BTCOEX20130528_ver3.3_beta/driver/rtl8723A_WiFi_linux_v4.1.7_8023.20130628_BTCOEX2013052 8_ver3.3_beta# cp /lib/modules/3.0.36+/kernel/drivers/net/wireless/rtl8723au_lwfinger/8723au.ko /home/rock/
root@radxa:/home/rock/RTL8723A_WiFi_linux_v4.1.7_8023_BTCOEX20130528_ver3.3_beta/driver/rtl8723A_WiFi_linux_v4.1.7_8023.20130628_BTCOEX2013052 8_ver3.3_beta# rm /lib/modules/3.0.36+/kernel/drivers/net/wireless/rtl8723au_lwfinger/8723au.ko
root@radxa:/home/rock/RTL8723A_WiFi_linux_v4.1.7_8023_BTCOEX20130528_ver3.3_beta/driver/rtl8723A_WiFi_linux_v4.1.7_8023.20130628_BTCOEX20130528_ver3.3_beta# cp wlan.ko /lib/modules/3.0.36+/kernel/drivers/net/wireless/rtl8723au_lwfinger/8723au.ko
dmesg [ 6.783865] usbcore: registered new interface driver rtl8723au [ 7.421381] enter func vmac_open... [ 8.032521] power on phy [ 9.604372] vmac_mii_bus: probed [ 9.604576] rk29 vmac rk29 vmac.0: PHY driver [Generic PHY](mii_bus:phy_addr=0:00, irq=-1) [ 9.605177] ADDRCONF(NETDEV_UP): eth0: link is not ready [ 10.296364] ADDRCONF(NETDEV_UP): wlan0: link is not ready [ 11.603168] PHY: 0:00 - Link is Down [ 12.312907] RTL8723AU: ERROR nolinked power save enter [ 13.615261] PHY: 0:00 - Link is Up - 100/Full [ 13.616044] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready [ 18.595237] init: failsafe main process (544) killed by TERM signal [ 22.922005] init: plymouth-upstart-bridge main process ended, respawning [ 23.092413] init: tty1 main process (945) killed by TERM signal [ 23.892497] eth0: no IPv6 routers present
root@radxa:~# ifconfig
eth0 Link encap:Ethernet HWaddr de:ad:de:ad:be:ef
inet addr:192.168.1.103 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::dcad:deff:fead:beef/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:160 errors:0 dropped:0 overruns:0 frame:0
TX packets:158 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:16295 (16.2 KB) TX bytes:48700 (48.7 KB)
Interrupt:51
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:32 errors:0 dropped:0 overruns:0 frame:0
TX packets:32 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2368 (2.3 KB) TX bytes:2368 (2.3 KB)
wlan0 Link encap:Ethernet HWaddr 54:e4:bd:10:19:f5
inet addr:172.16.0.1 Bcast:172.16.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
root@radxa:~# iwconfig lo no wireless extensions.
eth0 no wireless extensions.
sit0 no wireless extensions.
ip6tnl0 no wireless extensions.
wlan0 unassociated Nickname:"WIFI@REALTEK"
Mode:Auto Frequency=2.412 GHz Access Point: Not-Associated
Sensitivity:0/0
Retry:off RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
root@radxa:~#
reboot
[ 6.039860] RTL871X: rtl8723as-vau driver version=v4.1.7_8023.20130628_BTCOEX20130528_ver3.3_beta
root@radxa:~# ifconfig
eth0 Link encap:Ethernet HWaddr de:ad:de:ad:be:ef
inet addr:192.168.1.103 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::dcad:deff:fead:beef/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:562 errors:0 dropped:0 overruns:0 frame:0
TX packets:147 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:35355 (35.3 KB) TX bytes:55408 (55.4 KB)
Interrupt:51
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:32 errors:0 dropped:0 overruns:0 frame:0
TX packets:32 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2368 (2.3 KB) TX bytes:2368 (2.3 KB)
wlan0 Link encap:Ethernet HWaddr 54:e4:bd:10:19:f5
inet addr:172.16.0.1 Bcast:172.16.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Comment by caiwang Tuesday Mar 03, 2015 at 02:32 GMT
echo "interface=wlan0 ctrl_interface=/var/run/hostapd ssid=RR channel=6 wpa=2 wpa_passphrase=password" > /etc/hostapd/hostapd.conf
用station设置静态IP地址172.16.0.105,连接RR
Comment by caiwang Tuesday Mar 03, 2015 at 02:41 GMT
channel 改成 14
root@radxa:~# cat /etc/hostapd/hostapd.conf interface=wlan0 ctrl_interface=/var/run/hostapd ssid=RR channel=14 wpa=2 wpa_passphrase=password root@radxa:~#
Comment by caiwang Tuesday Mar 03, 2015 at 02:50 GMT
root@radxa:/home/rock/RTL8723A_WiFi_linux_v4.1.7_8023_BTCOEX20130528_ver3.3_beta/wpa_supplicant_hostapd/wpa_supplicant_hostapd-0.8_rtw_r7048.2 0130424/hostapd# make uninstall make: *\ No rule to make target `uninstall'. Stop. root@radxa:/home/rock/RTL8723A_WiFi_linux_v4.1.7_8023_BTCOEX20130528_ver3.3_beta/wpa_supplicant_hostapd/wpa_supplicant_hostapd-0.8_rtw_r7048.20130424/hostapd#
root@radxa:~# apt-get install pkg-config
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
pkg-config
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 38.0 kB of archives.
After this operation, 123 kB of additional disk space will be used.
Get:1 http://ports.ubuntu.com/ubuntu-ports/ trusty/main pkg-config armhf 0.26-1ubuntu4 [38.0 kB]
Fetched 38.0 kB in 1s (24.1 kB/s)
Selecting previously unselected package pkg-config.
(Reading database ... 26968 files and directories currently installed.)
Preparing to unpack .../pkg-config_0.26-1ubuntu4_armhf.deb ...
Unpacking pkg-config (0.26-1ubuntu4) ...
Processing triggers for man-db (2.6.7.1-1) ...
Setting up pkg-config (0.26-1ubuntu4) ...
root@radxa:~# pkg-config --list-all | grep hostapd
root@radxa:~# pkg-config --list-all | grep host*
root@radxa:~#
根据make install的信息
root@radxa:/usr/local/bin# rm hostapd*
root@radxa:~# hostapd The program 'hostapd' is currently not installed. You can install it by typing: apt-get install hostapd root@radxa:~#
rm /etc/hostapd/hostapd.conf
Issue by caiwang Sunday Mar 01, 2015 at 07:17 GMT Originally opened as https://github.com/caiwang/ihostsrc/issues/40
http://radxa.com/Rock/Wireless AP mode(RR as the wireless router) You can also configure wifi as AP mode manually, please refer AP mode manually.
http://radxa.com/Rock/Wireless/AP_mode_manually AP mode(RR acts as wireless router)
https://groups.google.com/forum/#!topic/radxa/8mLiK_R3rME
http://talk.radxa.com/topic/246/rock-as-a-wireless-access-point-solved/4