User's Manual
Set the environmental variable bootcmd to specify the boot type. The following script shows the values of the boot
variables for USB (usbboot) and TFTP (tftpboot) server required to boot the kernel.
bootcmd=run usbboot
bootargs=root=/dev/ram rw console=ttyS0,115200
usbboot=usb start;setenv bootargs;fatload usb 0:1 1000000 uImage-t1023rdb.bin;fatload
usb 0:1 4000000 fsl-image-core-t1023rdb.ext2.gz.u-boot;fatload usb 0:1 c00000
t1023wlan.dtb;bootm 1000000 4000000 c00000
tftpboot=setenv bootargs root=/dev/ram rw ramdisk_size=10240000
console=ttyS0,115200;tftp 0x1000000 uImage;tftp 0x4000000 fsl-image-core-
t1023rdb.ext2.gz.u-boot;tftp 0xc00000 t1023wlan.dtb;bootm 0x1000000 0x4000000 0xc00000
3. Set up the access point in kernel
Perform the following steps to set up access point in kernel using the scripts given below:
a. Load the module to optimize the CPU utilization
Use the following command to load the module for the optimum utilization of CPU:
modprobe br_ol
echo 1 > /proc/sys/net/core/ol_forward_enable
b. Bring up the Wi-Fi cards
Use the following script to bring up the 802.11ac Wave 2 Wi-Fi cards.
cd
export PATH=$PATH:/etc/ath
cfg -x
cfg -a AP_STARTMODE=dual
cfg -a AP_MODE=ap-wds
cfg -a AP_RADIO_ID=0
cfg -a AP_PRIMARY_CH=36
cfg -a AP_CHMODE=11ACVHT80
cfg -a AP_SSID=QCA_11AC_5G_1
cfg -a RX_CHAINMASK=15
cfg -a TX_CHAINMASK=15
iwconfig ath0 txpower 21
iwpriv ath0 wds 1
cfg -a AP_MODE_2=ap-wds
cfg -a AP_RADIO_ID_2=1
cfg -a AP_PRIMARY_CH_2=149
cfg -a AP_CHMODE_2=11ACVHT80
cfg -a AP_SSID_2=QCA_11AC_5G_2
cfg -a RX_CHAINMASK_2=15
cfg -a TX_CHAINMASK_2=15
iwconfig ath1 txpower 21
iwpriv ath1 wds 1
cfg -a CMWMODE=2
cfg -c
apup
NOTE
Use the following commands to modifyWi-Fi module MAC address in Linux
kernel:
iwpriv wifi0 setHwaddr `fw_printenv -n wifi0addr`
iwpriv wifi1 setHwaddr `fw_printenv -n wifi1addr`
c. Set the bridge connection
Use the following script to set up the bridge connection.
brctl addbr br0
brctl addif br0 ath0
brctl addif br0 fm1-mac4
ifconfig fm1-mac4 up
Configure 802.11AC Wave2 Wi-Fi using command line interface
T1023WLAN Wi-Fi Wave2 Access Point Router Getting Started Guide, Rev. 0, 09/2015
Freescale Semiconductor, Inc. 5