Hi
I am using Beagle Bone (AM335X) with TiWi-5 wifi Module.With angstrom build i am able to bring up the WiFi.(http://dominion.thruhere.net/koen/angstrom/beaglebone/Angstrom-Cloud9-IDE-GNOME-eglibc-ipk-v2012.05-beaglebone-2013.03.27.img.xz)
Now i am trying to bring up the WiFi with Arago project from ti-sdk with kernel 3.2.0 and kernel configuration is tisdk_am335x-evm_defconfig. With this I have enabled the wl12xx drivers and built the kernel and modules..File System is is the targetNFS from ti-sdk.
and in board-am335x.c file i have changed the configuration for WiFi Enable, interrupt and mmc1 SDIO interface.
After boot up i can not see wlan0.(WLAN LED on TiWi-5E gets on for small duration).
Below is the GPIO pin Configuration.
/* Module pin mux for mmc1 */
static struct pinmux_config mmc1_common_pin_mux[] = {
{"gpmc_ad3.mmc1_dat3", OMAP_MUX_MODE1 | AM33XX_PIN_INPUT_PULLUP},
{"gpmc_ad2.mmc1_dat2", OMAP_MUX_MODE1 | AM33XX_PIN_INPUT_PULLUP},
{"gpmc_ad1.mmc1_dat1", OMAP_MUX_MODE1 | AM33XX_PIN_INPUT_PULLUP},
{"gpmc_ad0.mmc1_dat0", OMAP_MUX_MODE1 | AM33XX_PIN_INPUT_PULLUP},
{"gpmc_csn1.mmc1_clk", OMAP_MUX_MODE2 | AM33XX_PIN_INPUT_PULLUP},
{"gpmc_csn2.mmc1_cmd", OMAP_MUX_MODE2 | AM33XX_PIN_INPUT_PULLUP},
{NULL, 0},
};
static struct pinmux_config wl12xx_pin_mux[] = {
{"gpmc_ad4.gpio1_4", OMAP_MUX_MODE7 | AM33XX_PIN_OUTPUT_PULLUP },//WLAN enable
{"gpmc_ad7.gpio1_7", OMAP_MUX_MODE7 | AM33XX_PIN_INPUT }, // IRQ
{"gpmc_ad12.gpio1_12", OMAP_MUX_MODE7 | AM33XX_PIN_OUTPUT_PULLUP}, //BT enable
{NULL, 0},
};
#define AM335XEVM_WLAN_PMENA_GPIO GPIO_TO_PIN(1, 30)
#define AM335XEVM_WLAN_IRQ_GPIO GPIO_TO_PIN(1, 7)
#define AM335XEVM_SK_WLAN_IRQ_GPIO GPIO_TO_PIN(0, 31)
struct wl12xx_platform_data am335xevm_wlan_data = {
.irq = OMAP_GPIO_IRQ(AM335XEVM_WLAN_IRQ_GPIO),
.board_ref_clock = WL12XX_REFCLOCK_38_XTAL, /* 38.4Mhz */
.bt_enable_gpio = GPIO_TO_PIN(1, 12),
.wlan_enable_gpio = GPIO_TO_PIN(1, 4),
};
---------------------------------------------
Below is the Kernel logs
[ 0.907073] Board name: A335BONE
[ 0.910430] Board version: 00A6
[ 0.913726] The board is a AM335x Beaglebone.
[ 0.920532] tps65217 1-0024: TPS65217 ID 0xf version 1.1
[ 0.928192] print_constraints: DCDC1: 900 <--> 1800 mV at 1800 mV
[ 0.936798] print_constraints: DCDC2: 900 <--> 3300 mV at 1275 mV
[ 0.945373] print_constraints: DCDC3: 900 <--> 1500 mV at 1125 mV
[ 0.953887] print_constraints: LDO1: 1000 <--> 3300 mV at 1800 mV
[ 0.962432] print_constraints: LDO2: 900 <--> 3300 mV at 3300 mV
[ 0.970886] print_constraints: LDO3: 1800 <--> 3300 mV at 3300 mV
[ 0.979431] print_constraints: LDO4: 1800 <--> 3300 mV at 3300 mV
[ 0.986755] omap_hsmmc.0: alias fck already exists
[ 0.992279] omap_hsmmc.1: alias fck already exists
[ 0.997985] Configure Bluetooth Enable pin...
[ 1.004089] registered am33xx_sr device
.....
[ 1.487304] mmcblk0: mmc0:1234 SA04G 3.63 GiB
[ 1.494354] mmcblk0: p1 p2
[ 1.602966] mmc1: card claims to support voltages below the defined range. These will be ignored.
[ 1.621948] mmc1: queuing unknown CIS tuple 0x91 (3 bytes)
[ 1.628540] mmc1: new SDIO card at address 0001
[ 4.459533] PHY: 0:00 - Link is Up - 100/Full
[ 4.498992] Sending DHCP requests ., OK
......
Starting udev
[ 7.745269] cfg80211: Calling CRDA to update world regulatory domain
[ 8.963928] wl1271: ERROR could not get nvs file: -2
[ 8.972412] wl1271: loaded
[ 9.089660] cfg80211: World regulatory domain updated:
[ 9.095184] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[ 9.103973] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 9.112243] cfg80211: (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[ 9.120513] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[ 9.128784] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 9.137054] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 9.592071] EXT3-fs (mmcblk0p2): error: couldn't mount because of unsupported optional features (240)
[ 9.603668] EXT2-fs (mmcblk0p2): error: couldn't mount because of unsupported optional features (240)
[ 9.686706] EXT3-fs (mmcblk0p2): error: couldn't mount because of unsupported optional features (240)
[ 9.698059] EXT2-fs (mmcblk0p2): error: couldn't mount because of unsupported optional features (240)
Starting Bootlog daemon: bootlogd: cannot allocate pseudo tty: No such file or directory
bootlogd.
ALSA: Restoring mixer settings...
/usr/sbin/alsactl: load_state:1686: No soundcards found...
NOT configuring network interfaces: / is an NFS mount
INIT: Entering runlevel: 5
Starting system message bus: dbus.
Starting Dropbear SSH server: dropbear.
Starting telnet daemon.
Performing wifi calibration...
rm: can't remove '/lib/firmware/ti-connectivity/wl1271-nvs.bin': No such file or directory
Error: could not load module /lib/modules/3.2.0-g30df33e-dirty/updates/drivers/net/wireless/wl12xx/wl12xx_sdio.ko: No such file or directory
Failed to load kernel module using command /sbin/insmod /lib/modules/3.2.0-g30df33e-dirty/updates/drivers/net/wireless/wl12xx/wl12xx_sdio.ko
Calibration not complete. Removing half-baked nvs
[ 12.046966] wl1271: ERROR could not get nvs file: -2
[ 12.055145] wl1271: loaded
Starting network benchmark server: netserver.
Starting syslogd/klogd: done
Starting thttpd.
Starting Lighttpd Web Server: lighttpd.
-------------
Can anybody tell me is the ping configuration is correct or something wrong ?do i need to change the pin muxing in mux33xx.c ?.I tried to calibrate the module manually and "calibrator plt calibrate" command just hangs.All the modules are loaded and ifconfig doesnot show wlan0.
root@am335x-evm:~# lsmod
Module Size Used by
g_mass_storage 37599 0
wl12xx_sdio 4612 0
wl12xx 160063 1 wl12xx_sdio
mac80211 258211 1 wl12xx
cfg80211 159059 2 mac80211,wl12xx
root@am335x-evm:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:18:31:8B:39:6E
inet addr:172.16.40.138 Bcast:172.16.40.255 Mask:255.255.255.0
UP BROADCAST RUNNING ALLMULTI MULTICAST MTU:1500 Metric:1
RX packets:82338 errors:0 dropped:14113 overruns:0 frame:0
TX packets:13055 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:34147356 (32.5 MiB) TX bytes:2048216 (1.9 MiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:228 errors:0 dropped:0 overruns:0 frame:0
TX packets:228 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:39972 (39.0 KiB) TX bytes:39972 (39.0 KiB)
root@am335x-evm:~#
Can anybody tell me what is wrong and how to go further ?.Appreciate your responses.I am attaching board-am335x file and kernel.log