Hi there,
I decided to try to create a quick patch to implement support for the bbtoys-wifi adapter board (wl1271/ls240) in the 2.6.37 kernel from Devkit 2.1 Gingerbread. I have attached the patch to add the wifi structures, dot config for the kernel and boot log.
diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c index f77343b..c2f78b5 100644 --- a/arch/arm/mach-omap2/board-omap3beagle.c +++ b/arch/arm/mach-omap2/board-omap3beagle.c @@ -193,6 +193,75 @@ fail0: return; } +char expansionboard_name[16]; + +#if defined(CONFIG_WL12XX) || defined(CONFIG_WL12XX_MODULE) +#include <linux/regulator/fixed.h> +#include <linux/wl12xx.h> + +#define OMAP_BEAGLE_WLAN_EN_GPIO (139) +#define OMAP_BEAGLE_BT_EN_GPIO (138) +#define OMAP_BEAGLE_WLAN_IRQ_GPIO (137) +#define OMAP_BEAGLE_FM_EN_BT_WU (136) + +struct wl12xx_platform_data omap_beagle_wlan_data __initdata = { + .irq = OMAP_GPIO_IRQ(OMAP_BEAGLE_WLAN_IRQ_GPIO), + .board_ref_clock = 2, /* 38.4 MHz */ +}; + +static int gpios[] = {OMAP_BEAGLE_BT_EN_GPIO, OMAP_BEAGLE_FM_EN_BT_WU, -1}; +static struct platform_device wl12xx_device = { + .name = "kim", + .id = -1, + .dev.platform_data = &gpios, +}; + +static struct omap2_hsmmc_info mmcbbt[] = { + { + .mmc = 1, + .caps = MMC_CAP_4_BIT_DATA | MMC_CAP_8_BIT_DATA, + .gpio_wp = 29, + }, + { + .name = "wl1271", + .mmc = 2, + .caps = MMC_CAP_4_BIT_DATA | MMC_CAP_POWER_OFF_CARD, + .gpio_wp = -EINVAL, + .gpio_cd = -EINVAL, + .ocr_mask = MMC_VDD_165_195, + .nonremovable = true, + }, + {} /* Terminator */ + }; + +static struct regulator_consumer_supply beagle_wifi_fixed_supply = + REGULATOR_SUPPLY("vmmc", "omap_hsmmc.1"); + +static struct regulator_init_data beagle_vmmc2 = { + .num_consumer_supplies = 1, + .consumer_supplies = &beagle_wifi_fixed_supply, +}; + +static struct fixed_voltage_config beagle_vwlan = { + .supply_name = "vwl1271", + .microvolts = 1800000, /* 1.8V */ + .gpio = OMAP_BEAGLE_WLAN_EN_GPIO, + .startup_delay = 70000, /* 70ms */ + .enable_high = 1, + .enabled_at_boot = 1, + .init_data = &beagle_vmmc2, +}; + +static struct platform_device omap_vwlan_device = { + .name = "reg-fixed-voltage", + .id = 1, + .dev = { + .platform_data = &beagle_vwlan, + }, +}; +#endif + + static struct mtd_partition omap3beagle_nand_partitions[] = { /* All the partition sizes are listed in terms of NAND block size */ { @@ -303,6 +372,12 @@ static struct omap2_hsmmc_info mmc[] = { .caps = MMC_CAP_4_BIT_DATA | MMC_CAP_8_BIT_DATA, .gpio_wp = 29, }, + { + .mmc = 2, + .caps = MMC_CAP_4_BIT_DATA, + .transceiver = true, + .ocr_mask = 0x00100000, /* 3.3V */ + }, {} /* Terminator */ }; @@ -329,6 +404,7 @@ static int beagle_twl_gpio_setup(struct device *dev, { if (omap3_beagle_get_rev() == OMAP3BEAGLE_BOARD_XM || omap3_beagle_get_rev() == OMAP3BEAGLE_BOARD_XMC) { mmc[0].gpio_wp = -EINVAL; + mmcbbt[0].gpio_wp = -EINVAL; } else if ((omap3_beagle_get_rev() == OMAP3BEAGLE_BOARD_C1_3) || (omap3_beagle_get_rev() == OMAP3BEAGLE_BOARD_C4)) { omap_mux_init_gpio(23, OMAP_PIN_INPUT); @@ -338,11 +414,26 @@ static int beagle_twl_gpio_setup(struct device *dev, } /* gpio + 0 is "mmc0_cd" (input/IRQ) */ mmc[0].gpio_cd = gpio + 0; + mmcbbt[0].gpio_cd = gpio + 0; +#if defined(CONFIG_WL12XX) || defined(CONFIG_WL12XX_MODULE) + if(!strcmp(expansionboard_name, "bbtoys-wifi")) { + omap2_hsmmc_init(mmcbbt); + /* link regulators to MMC adapters */ + beagle_vmmc1_supply.dev = mmcbbt[0].dev; + beagle_vsim_supply.dev = mmcbbt[0].dev; + } else { + omap2_hsmmc_init(mmc); + /* link regulators to MMC adapters */ + beagle_vmmc1_supply.dev = mmc[0].dev; + beagle_vsim_supply.dev = mmc[0].dev; + } +#else omap2_hsmmc_init(mmc); /* link regulators to MMC adapters */ beagle_vmmc1_supply.dev = mmc[0].dev; beagle_vsim_supply.dev = mmc[0].dev; +#endif /* REVISIT: need ehci-omap hooks for external VBUS * power switch and overcurrent detect @@ -693,6 +784,16 @@ static struct omap_musb_board_data musb_board_data = { .power = 100, }; +static int __init expansionboard_setup(char *str) +{ + if (!str) + return -EINVAL; + strncpy(expansionboard_name, str, 16); + printk(KERN_INFO "Beagle expansionboard: %s\n", expansionboard_name); + return 0; +} + + static void __init omap3_beagle_init(void) { omap3_mux_init(board_mux, OMAP_PACKAGE_CBB); @@ -707,6 +808,16 @@ static void __init omap3_beagle_init(void) /* REVISIT leave DVI powered down until it's needed ... */ gpio_direction_output(170, true); + if(!strcmp(expansionboard_name, "bbtoys-wifi")) + { + if (wl12xx_set_platform_data(&omap_beagle_wlan_data)) + pr_err("error setting wl12xx data\n"); + printk(KERN_INFO "Beagle expansionboard: registering wl12xx bt platform device\n"); + platform_device_register(&wl12xx_device); + printk(KERN_INFO "Beagle expansionboard: registering wl12xx wifi platform device\n"); + platform_device_register(&omap_vwlan_device); + } + usb_musb_init(&musb_board_data); usb_ehci_init(&ehci_pdata); omap3beagle_flash_init(); @@ -721,6 +832,8 @@ static void __init omap3_beagle_init(void) #endif } +early_param("buddy", expansionboard_setup); + MACHINE_START(OMAP3_BEAGLE, "OMAP3 Beagle Board") /* Maintainer: Syed Mohammed Khasim - http://beagleboard.org */ .boot_params = 0x80000100,
Texas Instruments X-Loader 1.5.0 (Mar 27 2011 - 17:37:56) Beagle xM Reading boot sector Loading u-boot.bin from mmc U-Boot 2011.03-rc1-00000-g5ace684-dirty (May 15 2011 - 18:50:56) OMAP3630/3730-GP ES2.0, CPU-OPP2, L3-165MHz, Max CPU Clock 1 Ghz OMAP3 Beagle board + LPDDR/NAND I2C: ready DRAM: 512 MiB NAND: 0 MiB MMC: OMAP SD/MMC: 0 *** Warning - readenv() failed, using default environment In: serial Out: serial Err: serial Beagle xM Rev A Recognized BeagleBoardToys WiFi board Die ID #298600019ff80000015eeaa10100301f Hit any key to stop autoboot: 0 The user button is currently NOT pressed. SD/MMC found on device 0 reading uEnv.txt ** Unable to read "uEnv.txt" from mmc 0:1 ** Loading file "/boot/uImage" from mmc device 0:2 (xxa2) 3657744 bytes read Booting from mmc ... ## Booting kernel from Legacy Image at 80200000 ... Image Name: Linux-2.6.37-gec6edf4-dirty Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 3657680 Bytes = 3.5 MiB Load Address: 80008000 Entry Point: 80008000 Verifying Checksum ... OK Loading Kernel Image ... OK OK Starting kernel ... Uncompressing Linux... done, booting the kernel. [ 0.000000] Linux version 2.6.37-gec6edf4-dirty (test@lucidgingerbread) (gcc version 4.4.3 (GCC) ) #43 Wed Sep 14 12:09:07 MYT 2011 [ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7f [ 0.000000] CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache [ 0.000000] Machine: OMAP3 Beagle Board [ 0.000000] Beagle expansionboard: bbtoys-wifi [ 0.000000] Reserving 12582912 bytes SDRAM for VRAM [ 0.000000] Memory policy: ECC disabled, Data cache writeback [ 0.000000] OMAP3630 ES1.1 (l2cache iva sgx neon isp 192mhz_clk ) [ 0.000000] SRAM: Mapped pa 0x40200000 to va 0xfe400000 size: 0x10000 [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 126976 [ 0.000000] Kernel command line: console=ttyO2,115200n8 mpurate=auto buddy=bbtoys-wifi camera=lbcm3m1 vram=12M omapfb.mode=dvi:640x480MR-16@60 omapdss.def_disp=dvi root=/dev/mmcblk0p2 rw rootfstype=ext3 rootwait [ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes) [ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes) [ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes) [ 0.000000] Memory: 500MB = 500MB total [ 0.000000] Memory: 499836k/499836k available, 24452k reserved, 0K highmem [ 0.000000] Virtual kernel memory layout: [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB) [ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB) [ 0.000000] DMA : 0xffc00000 - 0xffe00000 ( 2 MB) [ 0.000000] vmalloc : 0xe0800000 - 0xf8000000 ( 376 MB) [ 0.000000] lowmem : 0xc0000000 - 0xe0000000 ( 512 MB) [ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB) [ 0.000000] .init : 0xc0008000 - 0xc0040000 ( 224 kB) [ 0.000000] .text : 0xc0040000 - 0xc06d5000 (6740 kB) [ 0.000000] .data : 0xc06d6000 - 0xc071c840 ( 283 kB) [ 0.000000] NR_IRQS:409 [ 0.000000] Clocking rate (Crystal/Core/MPU): 26.0/332/600 MHz [ 0.000000] Reprogramming SDRC clock to 332000000 Hz [ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 4.0) with 96 interrupts [ 0.000000] Total of 96 interrupts on 1 active controller [ 0.000000] GPMC revision 5.0 [ 0.000000] Trying to install interrupt handler for IRQ402 [ 0.000000] Trying to install interrupt handler for IRQ403 [ 0.000000] Trying to install interrupt handler for IRQ404 [ 0.000000] Trying to install interrupt handler for IRQ405 [ 0.000000] Trying to install interrupt handler for IRQ406 [ 0.000000] Trying to install interrupt handler for IRQ407 [ 0.000000] Trying to install interrupt handler for IRQ408 [ 0.000000] Trying to install type control for IRQ409 [ 0.000000] Trying to set irq flags for IRQ409 [ 0.000000] OMAP clockevent source: GPTIMER1 at 32768 Hz [ 0.000000] Console: colour dummy device 80x30 [ 0.000000] Calibrating delay loop... 597.64 BogoMIPS (lpj=2334720) [ 0.000000] pid_max: default: 32768 minimum: 301 [ 0.000000] Security Framework initialized [ 0.000000] Mount-cache hash table entries: 512 [ 0.000000] CPU: Testing write buffer coherency: ok [ 0.000000] regulator: core version 0.5 [ 0.000000] regulator: dummy: [ 0.000000] NET: Registered protocol family 16 [ 0.000000] OMAP GPIO hardware version 2.5 [ 0.000000] OMAP GPIO hardware version 2.5 [ 0.000000] OMAP GPIO hardware version 2.5 [ 0.000000] OMAP GPIO hardware version 2.5 [ 0.000000] OMAP GPIO hardware version 2.5 [ 0.000000] OMAP GPIO hardware version 2.5 [ 0.000000] omap_mux_init: Add partition: #1: core, flags: 0 [ 0.000000] OMAP3 Beagle Rev: xM [ 0.000000] Beagle expansionboard: registering wl12xx bt platform device [ 0.000000] Beagle expansionboard: registering wl12xx wifi platform device [ 0.000000] Found NAND on CS0 [ 0.000000] Registering NAND on CS0 [ 0.000000] Unable to get DVI reset GPIO [ 0.000000] hw-breakpoint: debug architecture 0x4 unsupported. [ 0.000000] OMAP DMA hardware revision 5.0 [ 0.025177] bio: create slab <bio-0> at 0 [ 0.026580] regulator: vwl1271: 1800 mV [ 0.028289] SCSI subsystem initialized [ 0.031097] usbcore: registered new interface driver usbfs [ 0.031494] usbcore: registered new interface driver hub [ 0.031768] usbcore: registered new device driver usb [ 0.033050] omap_device: omap_i2c.1: new worst case activate latency 0: 30517 [ 0.033111] omap_i2c omap_i2c.1: bus 1 rev4.0 at 2600 kHz [ 0.036254] twl4030: PIH (irq 7) chaining IRQs 368..375 [ 0.036285] twl4030: power (irq 373) chaining IRQs 376..383 [ 0.036895] twl4030: gpio (irq 368) chaining IRQs 384..401 [ 0.041351] regulator: VUSB1V5: 1500 mV normal standby [ 0.042083] regulator: VUSB1V8: 1800 mV normal standby [ 0.042755] regulator: VUSB3V1: 3100 mV normal standby [ 0.044372] twl4030_usb twl4030_usb: Initialized TWL4030 USB module [ 0.046081] regulator: VMMC1: 1850 <--> 3150 mV at 3000 mV normal standby [ 0.046783] regulator: VDAC: 1800 mV normal standby [ 0.047424] regulator: VDVI: 1800 mV normal standby [ 0.048187] regulator: VSIM: 1800 <--> 3000 mV at 1800 mV normal standby [ 0.048919] regulator: VAUX3: 1800 mV normal standby [ 0.049682] regulator: VAUX4: 1800 mV normal standby [ 0.049926] omap_i2c omap_i2c.2: bus 2 rev4.0 at 400 kHz [ 0.050292] omap_device: omap_i2c.2: new worst case deactivate latency 0: 30517 [ 0.061218] omap_i2c omap_i2c.3: bus 3 rev4.0 at 100 kHz [ 0.063171] Advanced Linux Sound Architecture Driver Version 1.0.23. [ 0.064025] Bluetooth: Core ver 2.15 [ 0.064270] NET: Registered protocol family 31 [ 0.064270] Bluetooth: HCI device and connection manager initialized [ 0.064300] Bluetooth: HCI socket layer initialized [ 0.064910] cfg80211: Calling CRDA to update world regulatory domain [ 0.066406] Switching to clocksource 32k_counter [ 0.194366] WL1271: BT_EN GPIO initialized [ 0.194641] musb-hdrc: version 6.0, otg (peripheral+host), debug=0 [ 0.194793] musb-hdrc musb-hdrc.0: dma type: dma-inventra [ 0.195159] musb-hdrc musb-hdrc.0: USB OTG mode controller at fa0ab000 using DMA, IRQ 92 [ 0.195800] NET: Registered protocol family 2 [ 0.195983] IP route cache hash table entries: 4096 (order: 2, 16384 bytes) [ 0.196441] TCP established hash table entries: 16384 (order: 5, 131072 bytes) [ 0.196807] TCP bind hash table entries: 16384 (order: 4, 65536 bytes) [ 0.197021] TCP: Hash tables configured (established 16384 bind 16384) [ 0.197021] TCP reno registered [ 0.197052] UDP hash table entries: 256 (order: 0, 4096 bytes) [ 0.197082] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) [ 0.197296] NET: Registered protocol family 1 [ 0.197662] RPC: Registered udp transport module. [ 0.197662] RPC: Registered tcp transport module. [ 0.197692] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.197937] NetWinder Floating Point Emulator V0.97 (double precision) [ 0.199218] omap-iommu omap-iommu.0: isp registered [ 0.199584] AM37x/DM37x Linux PSP version 04.02.00.07 (OMAP3BEAGLE) [ 0.362152] ashmem: initialized [ 0.362609] VFS: Disk quotas dquot_6.5.2 [ 0.362701] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) [ 0.363708] JFFS2 version 2.2. (NAND) (SUMMARY) �© 2001-2006 Red Hat, Inc. [ 0.364379] msgmni has been set to 976 [ 0.365722] io scheduler noop registered [ 0.365753] io scheduler deadline registered [ 0.365875] io scheduler cfq registered (default) [ 0.426177] OMAP DSS rev 2.0 [ 0.426269] OMAP DISPC rev 3.0 [ 0.426300] OMAP VENC rev 2 [ 0.426605] OMAP DSI rev 1.0 [ 0.755706] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled [ 0.757781] omap_uart.0: ttyO0 at MMIO 0x4806a000 (irq = 72) is a OMAP UART0 [ 0.758209] omap_uart.1: ttyO1 at MMIO 0x4806c000 (irq = 73) is a OMAP UART1 [ 0.758575] omap_uart.2: ttyO2 at MMIO 0x49020000 (irq = 74) is a OMAP UART2 [ 1.500061] console [ttyO2] enabled [ 1.504150] omap_uart.3: ttyO3 at MMIO 0x49042000 (irq = 80) is a OMAP UART3 [ 1.523590] brd: module loaded [ 1.532531] loop: module loaded [ 1.538421] mtdoops: mtd device (mtddev=name/number) must be supplied [ 1.545227] omap2-nand driver initializing [ 1.549896] No NAND device found. [ 1.553649] No NAND device found. [ 1.557403] OneNAND driver initializing [ 1.564086] usbcore: registered new interface driver asix [ 1.569976] usbcore: registered new interface driver cdc_ether [ 1.576354] usbcore: registered new interface driver smsc95xx [ 1.582580] usbcore: registered new interface driver net1080 [ 1.588684] usbcore: registered new interface driver cdc_subset [ 1.595092] usbcore: registered new interface driver zaurus [ 1.601684] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 3.621246] ehci-omap ehci-omap.0: OMAP-EHCI Host Controller [ 3.627777] ehci-omap ehci-omap.0: new USB bus registered, assigned bus number 1 [ 3.635711] ehci-omap ehci-omap.0: irq 77, io mem 0x48064800 [ 3.652587] ehci-omap ehci-omap.0: USB 2.0 started, EHCI 1.00 [ 3.658721] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002 [ 3.665863] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 3.673431] usb usb1: Product: OMAP-EHCI Host Controller [ 3.679016] usb usb1: Manufacturer: Linux 2.6.37-gec6edf4-dirty ehci_hcd [ 3.686065] usb usb1: SerialNumber: ehci-omap.0 [ 3.691864] hub 1-0:1.0: USB hub found [ 3.695800] hub 1-0:1.0: 3 ports detected [ 3.730926] Initializing USB Mass Storage driver... [ 3.736358] usbcore: registered new interface driver usb-storage [ 3.742675] USB Mass Storage support registered. [ 3.747772] usbcore: registered new interface driver usbtest [ 3.754333] mice: PS/2 mouse device common for all mice [ 3.760650] input: gpio-keys as /devices/platform/gpio-keys/input/input0 [ 3.770019] input: twl4030_pwrbutton as /devices/platform/omap/omap_i2c.1/i2c-1/1-0049/twl4030_pwrbutton/input/input1 [ 3.783447] using rtc device, twl_rtc, for alarms [ 3.788269] twl_rtc twl_rtc: rtc core: registered twl_rtc as rtc0 [ 3.795776] i2c /dev entries driver [ 3.800903] Linux media interface: v0.10 [ 3.805297] Linux video capture interface: v2.00 [ 3.811035] OMAP Watchdog Timer Rev 0x31: initial timeout 60 sec [ 3.817413] omap_device: omap_wdt.-1: new worst case deactivate latency 0: 30517 [ 3.825622] twl4030_wdt twl4030_wdt: Failed to register misc device [ 3.832244] twl4030_wdt: probe of twl4030_wdt failed with error -16 [ 3.839324] device-mapper: uevent: version 1.0.3 [ 3.844757] device-mapper: ioctl: 4.18.0-ioctl (2010-06-29) initialised: dm-devel@redhat.com [ 3.853729] Bluetooth: HCI UART driver ver 2.2 [ 3.858398] Bluetooth: HCI H4 protocol initialized [ 3.863433] Bluetooth: HCILL protocol initialized [ 3.872833] mmc0: mmc_rescan: trying to init card at 400000 Hz [ 3.880950] usbcore: registered new interface driver usbhid [ 3.886779] usbhid: USB HID core driver [ 3.891754] usbcore: registered new interface driver snd-usb-audio [ 3.899688] OMAP3 Beagle/Devkit8000 SoC init [ 3.976013] asoc: twl4030-hifi <-> omap-mcbsp-dai.1 mapping ok [ 3.983673] ALSA device list: [ 3.986785] #0: omap3beagle [ 3.989929] oprofile: hardware counters not available [ 3.995208] oprofile: using timer interrupt. [ 3.999877] nf_conntrack version 0.5.0 (7809 buckets, 31236 max) [ 4.006744] ip_tables: (C) 2000-2006 Netfilter Core Team [ 4.012481] TCP cubic registered [ 4.015838] Initializing XFRM netlink socket [ 4.020355] NET: Registered protocol family 17 [ 4.025024] NET: Registered protocol family 15 [ 4.029907] Bluetooth: L2CAP ver 2.15 [ 4.033721] Bluetooth: L2CAP socket layer initialized [ 4.039062] Bluetooth: SCO (Voice Link) ver 0.6 [ 4.043823] Bluetooth: SCO socket layer initialized [ 4.049041] Bluetooth: RFCOMM TTY layer initialized [ 4.054168] Bluetooth: RFCOMM socket layer initialized [ 4.059570] Bluetooth: RFCOMM ver 1.11 [ 4.063507] Bluetooth: BNEP (Ethernet Emulation) ver 1.3 [ 4.069061] Bluetooth: BNEP filters: protocol multicast [ 4.074554] Bluetooth: HIDP (Human Interface Emulation) ver 1.2 [ 4.081420] Registering the dns_resolver key type [ 4.086486] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3 [ 4.094909] ThumbEE CPU extension supported. [ 4.100769] usb 1-2: new high speed USB device using ehci-omap and address 2 [ 4.113891] Power Management for TI OMAP3. [ 4.119201] smartreflex smartreflex.0: omap_sr_probe: SmartReflex driver initialized [ 4.127593] smartreflex smartreflex.1: omap_sr_probe: SmartReflex driver initialized [ 4.136138] SmartReflex Class3 initialized [ 4.144866] clock: disabling unused clocks to save power [ 4.151275] platform mpu.0: omap_voltage_scale: Already at the requestedrate 600000000 [ 4.165618] fbcvt: 640x480@60: CVT Name - .307M3-R [ 4.182037] regulator_init_complete: incomplete constraints, leaving VAUX3 on [ 4.189727] regulator_init_complete: incomplete constraints, leaving VDAC on [ 4.197937] regulator_init_complete: incomplete constraints, leaving vwl1271 on [ 4.206909] twl_rtc twl_rtc: setting system clock to 2011-08-17 00:59:42 UTC (1313542782) [ 4.215637] omap_vout omap_vout: Buffer Size = 3686400 [ 4.222290] omap_vout omap_vout: : registered and initialized video device 0 [ 4.229766] omap_vout omap_vout: Buffer Size = 3686400 [ 4.236724] omap_vout omap_vout: : registered and initialized video device 1 [ 4.245086] Waiting for root device /dev/mmcblk0p2... [ 4.262329] usb 1-2: New USB device found, idVendor=0424, idProduct=9514 [ 4.269348] usb 1-2: New USB device strings: Mfr=0, Product=0, SerialNumber=0 [ 4.278320] hub 1-2:1.0: USB hub found [ 4.282440] hub 1-2:1.0: 5 ports detected [ 4.521148] mmc0: host does not support reading read-only switch. assuming write-enable. [ 4.543395] mmc0: new high speed SDHC card at address 1234 [ 4.549743] mmcblk0: mmc0:1234 SA04G 3.68 GiB [ 4.558105] mmcblk0: p1 p2 [ 4.562438] mmc1: mmc_rescan: trying to init card at 400000 Hz [ 4.575103] usb 1-2.1: new high speed USB device using ehci-omap and address 3 [ 4.586181] EXT3-fs: barriers not enabled [ 4.627227] mmc1: card claims to support voltages below the defined range. These will be ignored. [ 4.665618] mmc1: queuing unknown CIS tuple 0x91 (3 bytes) [ 4.676574] mmc1: new SDIO card at address 0001 [ 4.700073] usb 1-2.1: New USB device found, idVendor=0424, idProduct=ec00 [ 4.707305] usb 1-2.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 [ 4.718261] smsc95xx v1.0.4 [ 4.798400] smsc95xx 1-2.1:1.0: usb0: register 'smsc95xx' at usb-ehci-omap.0-2.1, smsc95xx USB 2.0 Ethernet, 2a:87:bf:56:c1:aa [ 4.828613] wl1271: loaded [ 4.831451] wl1271: initialized [ 8.286224] kjournald starting. Commit interval 5 seconds [ 8.292022] EXT3-fs (mmcblk0p2): warning: maximal mount count reached, running e2fsck is recommended [ 8.709716] EXT3-fs (mmcblk0p2): using internal journal [ 8.715393] EXT3-fs (mmcblk0p2): recovery complete [ 8.727935] EXT3-fs (mmcblk0p2): mounted filesystem with ordered data mode [ 8.735229] VFS: Mounted root (ext3 filesystem) on device 179:2. [ 8.741607] Freeing init memory: 224K [ 15.265197] usb0: link up, 100Mbps, full-duplex, lpa 0x45E1 .---O---. | | .-. o o | | |-----.-----.-----.| | .----..-----.-----. | | | __ | ---'| '--.| .-'| | | | | | | | |--- || --'| | | ' | | | | '---'---'--'--'--. |-----''----''--' '-----'-'-'-' -' | '---' The Angstrom Distribution beagleboard ttyO2 Angstrom v2011.06 beagleboard ttyO2 beagleboard login: root root@beagleboard:~# ifconfig -a 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:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) usb0 Link encap:Ethernet HWaddr 2A:87:BF:56:C1:AA inet addr:192.168.100.190 Bcast:0.0.0.0 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1492 Metric:1 RX packets:26 errors:0 dropped:0 overruns:0 frame:0 TX packets:30 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:4567 (4.4 KiB) TX bytes:4940 (4.8 KiB) wlan0 Link encap:Ethernet HWaddr 00:00:00:00:00:00 BROADCAST 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@beagleboard:~# ifconfig wlan0 up ifconfig: SIOCSIFFLAGS: Cannot assign requested address root@beagleboard:~# iwconfig wlan0 wlan0 IEEE 802.11abg ESSID:off/any Mode:Managed Access Point: Not-Associated Tx-Power=0 dBm Retry long limit:7 RTS thr:off Fragment thr:off Encryption key:off Power Management:on root@beagleboard:~# iwconfig wlan0 essid opentesting ap any root@beagleboard:~# iwlist wlan0 scan wlan0 Interface doesn't support scanning : Network is down
I was successful in getting the wlan0 interface to show up. But I can't seem to get the interface to come up so that scanning and other iwconfig steps can occur. I checked for the following:
a) pinmux in u-boot
Recognized BeagleBoardToys WiFi board