Hi,
I am working in a customized design based in BBB using SDK 06.00.00 with WL1835MOD. I have connected SDIO interface mmc2, uart1 and the GPIOs using some transceivers to convert the 3.3V to 1.8V to connect the AM3358 to the WL1835MOD. The system runs from an 8GB emmc nandflash.
I have used the following signals:
uart1_ctsn.uart1_ctsn (D18) -> BT_HCI_RTS
uart1_rtsn.uart1_rtsn (D17) -> BT_HCI_CTS
uart1_rxd.uart1_rxd (D16) -> BT_HCI_TX
uart1_txd.uart1_txd (D15) -> BT_HCI_RX
gpio0_7 (C18) -> BT_EN
gpmc_a1.mmc2_dat0 (V14) -> WL_SDIO_D0
gpmc_a2.mmc2_dat1 (U14) -> WL_SDIO_D1
gpmc_a3.mmc2_dat2 (T14) -> WL_SDIO_D2
gpmc_ben1.mmc2_dat3 (U18) -> WL_SDIO_D3
gpmc_csn3.mmc2_cmd (T13) -> WL_SDIO_CMD
gpmc_clk.mmc2_clk (V12) -> WL_SDIO_CLK
gpio3_19 (C13) -> WLAN_IRQ
gpio3_21 (A14) -> WLAN_EN
I have recompiled the kernel with some modifications on board-am335xevm.c, and also I have seen a possible mistake on the pin_mux definition of uart1_ctsn and uart_rtsn. RTS is defined as an input but I think it is an output and CTS is defined as an output and it should be an input (I have tried in the two ways).
#define AM335XEVM_WLAN_PMENA_GPIO GPIO_TO_PIN(1, 30)
#define AM335XEVM_WLAN_IRQ_GPIO GPIO_TO_PIN(3, 17)
#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(0, 7),
.wlan_enable_gpio = GPIO_TO_PIN(3, 21),
};
/* Module pin mux for wlan and bluetooth */
static struct pinmux_config mmc2_wl12xx_pin_mux[] = {
{"gpmc_a1.mmc2_dat0", OMAP_MUX_MODE3 | AM33XX_PIN_INPUT_PULLUP},
{"gpmc_a2.mmc2_dat1", OMAP_MUX_MODE3 | AM33XX_PIN_INPUT_PULLUP},
{"gpmc_a3.mmc2_dat2", OMAP_MUX_MODE3 | AM33XX_PIN_INPUT_PULLUP},
{"gpmc_ben1.mmc2_dat3", OMAP_MUX_MODE3 | AM33XX_PIN_INPUT_PULLUP},
{"gpmc_csn3.mmc2_cmd", OMAP_MUX_MODE3 | AM33XX_PIN_INPUT_PULLUP},
{"gpmc_clk.mmc2_clk", OMAP_MUX_MODE3 | AM33XX_PIN_INPUT_PULLUP},
{NULL, 0},
};
static struct pinmux_config uart1_wl12xx_pin_mux[] = {
{"uart1_ctsn.uart1_ctsn", OMAP_MUX_MODE0 | AM33XX_PIN_INPUT},
{"uart1_rtsn.uart1_rtsn", OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT},
{"uart1_rxd.uart1_rxd", OMAP_MUX_MODE0 | AM33XX_PIN_INPUT_PULLUP},
{"uart1_txd.uart1_txd", OMAP_MUX_MODE0 | AM33XX_PULL_ENBL},
{NULL, 0},
};
static struct pinmux_config uart2_wl12xx_pin_mux[] = {
{"lcd_data8.uart2_ctsn", OMAP_MUX_MODE6 | AM33XX_PIN_INPUT},
{"lcd_data9.uart2_rtsn", OMAP_MUX_MODE6 | AM33XX_PIN_OUTPUT},
{"spi0_sclk.uart2_rxd", OMAP_MUX_MODE0 | AM33XX_PIN_INPUT_PULLUP},
{"spi0_d0.uart2_txd", OMAP_MUX_MODE0 | AM33XX_PULL_ENBL},
{NULL, 0},
};
/* Beaglebone Black */
static struct evm_dev_cfg beagleboneblack_dev_cfg[] = {
{am335x_rtc_init, DEV_ON_BASEBOARD, PROFILE_NONE},
{clkout2_enable, DEV_ON_BASEBOARD, PROFILE_NONE},
{tps65217_init, DEV_ON_BASEBOARD, PROFILE_NONE},
{mii1_init, DEV_ON_BASEBOARD, PROFILE_NONE},
{usb0_init, DEV_ON_BASEBOARD, PROFILE_NONE},
{usb1_init, DEV_ON_BASEBOARD, PROFILE_NONE},
{mmc1_emmc_init, DEV_ON_BASEBOARD, PROFILE_NONE},
{mmc0_init, DEV_ON_BASEBOARD, PROFILE_NONE},
{mmc2_wl12xx_init, DEV_ON_BASEBOARD, PROFILE_NONE},
{uart1_wl12xx_init, DEV_ON_BASEBOARD, PROFILE_NONE},
{wl12xx_init, DEV_ON_BASEBOARD, PROFILE_NONE},
// {i2c2_init, DEV_ON_BASEBOARD, PROFILE_NONE},
// {sgx_init, DEV_ON_BASEBOARD, PROFILE_NONE},
{NULL, 0, 0},
};
The eeprom is programmed as a BBB board. I installed AM335xBluetopiaLinuxProduction_4013_linux_installer.run
After recompiling the kernel and copy uImage file to first partition of the emmc I reboot and this is the log:
U-Boot SPL 2013.01.01 (Mar 08 2014 - 13:37:06)
musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
musb-hdrc: MHDRC RTL version 2.0
musb-hdrc: setup fifo_mode 4
musb-hdrc: 28/31 max ep, 16384/16384 memory
USB Peripheral mode controller at 47401000 using PIO, IRQ 0
musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
musb-hdrc: MHDRC RTL version 2.0
musb-hdrc: setup fifo_mode 4
musb-hdrc: 28/31 max ep, 16384/16384 memory
USB Host mode controller at 47401800 using PIO, IRQ 0
OMAP SD/MMC: 0
mmc_send_cmd : timeout: No status update
reading u-boot.img
reading u-boot.img
U-Boot 2013.01.01 (Mar 08 2014 - 13:37:06)
I2C: ready
DRAM: 512 MiB
WARNING: Caches not enabled
NAND: No NAND device found!!!
0 MiB
MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
*** Warning - readenv() failed, using default environment
musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
musb-hdrc: MHDRC RTL version 2.0
musb-hdrc: setup fifo_mode 4
musb-hdrc: 28/31 max ep, 16384/16384 memory
USB Peripheral mode controller at 47401000 using PIO, IRQ 0
musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
musb-hdrc: MHDRC RTL version 2.0
musb-hdrc: setup fifo_mode 4
musb-hdrc: 28/31 max ep, 16384/16384 memory
USB Host mode controller at 47401800 using PIO, IRQ 0
Net: <ethaddr> not set. Validating first E-fuse MAC
cpsw, usb_ether
Hit any key to stop autoboot: 0
mmc_send_cmd : timeout: No status update
mmc1(part 0) is current device
mmc_send_cmd : timeout: No status update
SD/MMC found on device 1
reading uEnv.txt
** Unable to read file uEnv.txt **
reading uImage
3227552 bytes read in 304 ms (10.1 MiB/s)
Booting from mmc ...
## Booting kernel from Legacy Image at 80007fc0 ...
Image Name: Linux-3.2.0
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3227488 Bytes = 3.1 MiB
Load Address: 80008000
Entry Point: 80008000
Verifying Checksum ... OK
XIP Kernel Image ... OK
OK
Starting kernel ...
Uncompressing Linux... done, booting the kernel.
[ 0.000000] Linux version 3.2.0 (nacho@nacho-desktop) (gcc version 4.7.3 20130226 (prerelease) (crosstool-NG linaro-1.13.1-4.7-2013.03-20130313 - Linaro GCC 2013.03) ) #18 Mon Mar 10 19:10:12 CET 2014
[ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] Machine: am335xevm
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] AM335X ES1.0 (sgx neon )
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 130048
[ 0.000000] Kernel command line: console=ttyO0,115200n8 root=/dev/mmcblk0p2 ro rootfstype=ext3 rootwait ip=none
[ 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: 512MB = 512MB total
[ 0.000000] Memory: 513108k/513108k available, 11180k 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] vmalloc : 0xe0800000 - 0xff000000 ( 488 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xe0000000 ( 512 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .text : 0xc0008000 - 0xc05a6000 (5752 kB)
[ 0.000000] .init : 0xc05a6000 - 0xc05e2000 ( 240 kB)
[ 0.000000] .data : 0xc05e2000 - 0xc064d258 ( 429 kB)
[ 0.000000] .bss : 0xc064d27c - 0xc067c264 ( 188 kB)
[ 0.000000] NR_IRQS:396
[ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
[ 0.000000] Total of 128 interrupts on 1 active controller
[ 0.000000] OMAP clockevent source: GPTIMER2 at 24000000 Hz
[ 0.000000] OMAP clocksource: GPTIMER1 at 32768 Hz
[ 0.000000] sched_clock: 32 bits at 32kHz, resolution 30517ns, wraps every 131071999ms
[ 0.000000] Console: colour dummy device 80x30
[ 0.000061] Calibrating delay loop... 996.14 BogoMIPS (lpj=4980736)
[ 0.089233] pid_max: default: 32768 minimum: 301
[ 0.089324] Security Framework initialized
[ 0.089416] Mount-cache hash table entries: 512
[ 0.089721] CPU: Testing write buffer coherency: ok
[ 0.108978] omap_hwmod: pruss: failed to hardreset
[ 0.109893] print_constraints: dummy:
[ 0.110168] NET: Registered protocol family 16
[ 0.111785] OMAP GPIO hardware version 0.1
[ 0.113708] omap_mux_init: Add partition: #1: core, flags: 0
[ 0.115142] omap_i2c.1: alias fck already exists
[ 0.115814] omap2_mcspi.1: alias fck already exists
[ 0.115966] omap2_mcspi.2: alias fck already exists
[ 0.116668] edma.0: alias fck already exists
[ 0.116668] edma.0: alias fck already exists
[ 0.116668] edma.0: alias fck already exists
[ 0.136993] bio: create slab <bio-0> at 0
[ 0.138702] SCSI subsystem initialized
[ 0.139953] usbcore: registered new interface driver usbfs
[ 0.140197] usbcore: registered new interface driver hub
[ 0.140319] usbcore: registered new device driver usb
[ 0.140563] registerd cppi-dma Intr @ IRQ 17
[ 0.140563] Cppi41 Init Done Qmgr-base(e087a000) dma-base(e0878000)
[ 0.140594] Cppi41 Init Done
[ 0.140594] musb-ti81xx musb-ti81xx: musb0, board_mode=0x13, plat_mode=0x3
[ 0.140838] musb-ti81xx musb-ti81xx: musb1, board_mode=0x13, plat_mode=0x1
[ 0.141693] omap_i2c omap_i2c.1: bus 1 rev2.4.0 at 100 kHz
[ 0.142761] tps65910 1-002d: could not be detected
[ 0.143737] Advanced Linux Sound Architecture Driver Version 1.0.24.
[ 0.144561] Switching to clocksource gp timer
[ 0.155944] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
[ 0.156097] musb-hdrc musb-hdrc.0: dma type: dma-cppi41
[ 0.156341] MUSB0 controller's USBSS revision = 4ea20800
[ 0.157073] musb-hdrc musb-hdrc.0: USB OTG mode controller at e083c000 using DMA, IRQ 18
[ 0.157196] musb-hdrc musb-hdrc.1: dma type: dma-cppi41
[ 0.157440] MUSB1 controller's USBSS revision = 4ea20800
[ 0.157775] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
[ 0.157867] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 1
[ 0.157958] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 0.157989] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.157989] usb usb1: Product: MUSB HDRC host driver
[ 0.157989] usb usb1: Manufacturer: Linux 3.2.0 musb-hcd
[ 0.158020] usb usb1: SerialNumber: musb-hdrc.1
[ 0.158660] hub 1-0:1.0: USB hub found
[ 0.158691] hub 1-0:1.0: 1 port detected
[ 0.159118] musb-hdrc musb-hdrc.1: USB Host mode controller at e083e800 using DMA, IRQ 19
[ 0.159454] NET: Registered protocol family 2
[ 0.159606] IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.159851] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
[ 0.160064] TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.160186] TCP: Hash tables configured (established 16384 bind 16384)
[ 0.160186] TCP reno registered
[ 0.160186] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.160217] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.160369] NET: Registered protocol family 1
[ 0.160583] RPC: Registered named UNIX socket transport module.
[ 0.160583] RPC: Registered udp transport module.
[ 0.160583] RPC: Registered tcp transport module.
[ 0.160614] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.160797] NetWinder Floating Point Emulator V0.97 (double precision)
[ 0.177612] VFS: Disk quotas dquot_6.5.2
[ 0.177642] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.178070] msgmni has been set to 1002
[ 0.180480] alg: No test for stdrng (krng)
[ 0.181030] io scheduler noop registered
[ 0.181030] io scheduler deadline registered
[ 0.181091] io scheduler cfq registered (default)
[ 0.182037] Could not set LED4 to fully on
[ 0.215454] omap_uart.0: ttyO0 at MMIO 0x44e09000 (irq = 72) is a OMAP UART0
[ 0.787475] console [ttyO0] enabled
[ 0.791595] omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
[ 0.799285] omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
[ 0.807006] omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a OMAP UART3
[ 0.814666] omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4
[ 0.822326] omap_uart.5: ttyO5 at MMIO 0x481aa000 (irq = 46) is a OMAP UART5
[ 0.830383] omap4_rng omap4_rng: OMAP4 Random Number Generator ver. 2.00
[ 0.844207] brd: module loaded
[ 0.851196] loop: module loaded
[ 0.854614] i2c-core: driver [tsl2550] using legacy suspend method
[ 0.861114] i2c-core: driver [tsl2550] using legacy resume method
[ 0.867553] at24 1-0051: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
[ 0.945159] No daughter card found
[ 0.948760] at24 1-0050: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
[ 0.963928] Board name: A335BNLT
[ 0.967315] Board version: ����
[ 0.970581] The board is a AM335x Beaglebone Black.
[ 0.977691] tps65217 1-0024: TPS65217 ID 0xe version 1.2
[ 0.985168] print_constraints: DCDC1: 900 <--> 1800 mV at 1500 mV
[ 0.993591] print_constraints: DCDC2: 900 <--> 3300 mV at 1325 mV
[ 1.001953] print_constraints: DCDC3: 900 <--> 1500 mV at 1125 mV
[ 1.008605] usb 1-1: new high-speed USB device number 2 using musb-hdrc
[ 1.017395] print_constraints: LDO1: 1000 <--> 3300 mV at 1800 mV
[ 1.025756] print_constraints: LDO2: 900 <--> 3300 mV at 3300 mV
[ 1.034027] print_constraints: LDO3: 1800 <--> 3300 mV at 1800 mV
[ 1.042419] print_constraints: LDO4: 1800 <--> 3300 mV at 3300 mV
[ 1.049713] omap_hsmmc.0: alias fck already exists
[ 1.055145] omap_hsmmc.1: alias fck already exists
[ 1.060577] Configure Bluetooth Enable pin...
[ 1.066436] registered am33xx_sr device
[ 1.071868] mtdoops: mtd device (mtddev=name/number) must be supplied
[ 1.079010] omap2-nand driver initializing
[ 1.083404] OneNAND driver initializing
[ 1.088378] CAN device driver interface
[ 1.092376] CAN bus driver for Bosch D_CAN controller 1.0
[ 1.145172] davinci_mdio davinci_mdio.0: davinci mdio revision 1.6
[ 1.151641] davinci_mdio davinci_mdio.0: detected phy mask fffffffe
[ 1.158843] davinci_mdio.0: probed
[ 1.162414] davinci_mdio davinci_mdio.0: phy[0]: device 0:00, driver SMSC LAN8710/LAN8720
[ 1.171295] usbcore: registered new interface driver zd1201
[ 1.177337] usbcore: registered new interface driver cdc_ether
[ 1.183563] usbcore: registered new interface driver cdc_eem
[ 1.189636] usbcore: registered new interface driver dm9601
[ 1.195495] cdc_ncm: 04-Aug-2011
[ 1.199096] usbcore: registered new interface driver cdc_ncm
[ 1.205230] usbcore: registered new interface driver cdc_acm
[ 1.211151] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[ 1.219512] Initializing USB Mass Storage driver...
[ 1.224822] usbcore: registered new interface driver usb-storage
[ 1.231109] USB Mass Storage support registered.
[ 1.236358] gadget: Mass Storage Function, version: 2009/09/11
[ 1.242553] gadget: Number of LUNs=1
[ 1.246398] lun0: LUN: removable file: (no medium)
[ 1.251525] gadget: Composite Gadget (ACM + MS), version: 2011/10/10
[ 1.258300] gadget: g_acm_ms ready
[ 1.261962] usb 1-1: New USB device found, idVendor=1bc7, idProduct=0021
[ 1.268981] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1.276458] usb 1-1: Product: Telit Wireless Module
[ 1.281555] usb 1-1: Manufacturer: Telit wireless solutions
[ 1.287384] usb 1-1: SerialNumber: 352681050049452
[ 1.292724] g_acm_ms musb-hdrc.0: failed to start g_acm_ms: -22
[ 1.299346] mousedev: PS/2 mouse device common for all mice
[ 1.306091] omap_rtc am33xx-rtc: rtc core: registered am33xx-rtc as rtc0
[ 1.313323] i2c /dev entries driver
[ 1.317321] Linux video capture interface: v2.00
[ 1.322387] usbcore: registered new interface driver uvcvideo
[ 1.328430] USB Video Class driver (1.1.1)
[ 1.333526] cdc_acm 1-1:1.0: This device cannot do calls on its own. It is not a modem.
[ 1.342376] cdc_acm 1-1:1.0: ttyACM0: USB ACM device
[ 1.350280] cdc_acm 1-1:1.2: This device cannot do calls on its own. It is not a modem.
[ 1.359130] cdc_acm 1-1:1.2: ttyACM1: USB ACM device
[ 1.366729] cdc_acm 1-1:1.4: This device cannot do calls on its own. It is not a modem.
[ 1.375671] cdc_acm 1-1:1.4: ttyACM2: USB ACM device
[ 1.382995] cdc_acm 1-1:1.6: This device cannot do calls on its own. It is not a modem.
[ 1.391967] cdc_acm 1-1:1.6: ttyACM3: USB ACM device
[ 1.398223] OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[ 1.406829] cdc_acm 1-1:1.8: This device cannot do calls on its own. It is not a modem.
[ 1.416015] cdc_acm 1-1:1.8: ttyACM4: USB ACM device
[ 1.424011] cdc_acm 1-1:1.10: This device cannot do calls on its own. It is not a modem.
[ 1.433349] cdc_acm 1-1:1.10: ttyACM5: USB ACM device
[ 1.510864] cpuidle: using governor ladder
[ 1.515594] cdc_acm 1-1:1.12: This device cannot do calls on its own. It is not a modem.
[ 1.524963] cdc_acm 1-1:1.12: ttyACM6: USB ACM device
[ 1.530792] cpuidle: using governor menu
[ 1.608642] omap4_aes_mod_init: loading AM33X AES driver
[ 1.614318] omap4-aes omap4-aes: AM33X AES hw accel rev: 3.02
[ 1.621459] omap4_aes_probe: probe() done
[ 1.626068] omap4_sham_mod_init: loading AM33X SHA/MD5 driver
[ 1.632171] omap4-sham omap4-sham: AM33X SHA/MD5 hw accel rev: 4.03
[ 1.644592] omap4_sham_probe: probe() done
[ 1.651397] usbcore: registered new interface driver usbhid
[ 1.657287] usbhid: USB HID core driver
[ 1.663421] usbcore: registered new interface driver snd-usb-audio
[ 1.673675] ALSA device list:
[ 1.676818] No soundcards found.
[ 1.680358] oprofile: hardware counters not available
[ 1.685638] oprofile: using timer interrupt.
[ 1.690093] nf_conntrack version 0.5.0 (8017 buckets, 32068 max)
[ 1.696899] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 1.702575] TCP cubic registered
[ 1.705963] NET: Registered protocol family 17
[ 1.710601] can: controller area network core (rev 20090105 abi 8)
[ 1.717132] NET: Registered protocol family 29
[ 1.721771] can: raw protocol (rev 20090105)
[ 1.726226] can: broadcast manager protocol (rev 20090105 t)
[ 1.732177] Registering the dns_resolver key type
[ 1.737182] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[ 1.745178] ThumbEE CPU extension supported.
[ 1.749694] mux: Failed to setup hwmod io irq -22
[ 1.755279] Power Management for AM33XX family
[ 1.760101] Trying to load am335x-pm-firmware.bin (60 secs timeout)
[ 1.766784] Copied the M3 firmware to UMEM
[ 1.771148] Cortex M3 Firmware Version = 0x181
[ 1.776672] create_regulator: DCDC2: Failed to create debugfs directory
[ 1.784271] smartreflex smartreflex: am33xx_sr_probe: Driver initialized
[ 1.798736] clock: disabling unused clocks to save power
[ 1.816772] Detected MACID=bc:6a:29:9e:d8:f9
[ 1.822326] cpsw: Detected MACID = bc:6a:29:9e:d8:fa
[ 1.828643] omap_rtc am33xx-rtc: setting system clock to 2000-01-01 00:00:01 UTC (946684801)
[ 1.837982] Waiting for root device /dev/mmcblk0p2...
[ 1.847869] mmc1: new high speed MMC card at address 0001
[ 1.854125] mmcblk0: mmc1:0001 MMC08G 7.31 GiB
[ 1.859008] mmcblk0boot0: mmc1:0001 MMC08G partition 1 2.00 MiB
[ 1.865295] mmcblk0boot1: mmc1:0001 MMC08G partition 2 2.00 MiB
[ 1.873870] mmcblk0: p1 p2
[ 1.879028] mmcblk0boot1: unknown partition table
[ 1.885742] mmcblk0boot0: unknown partition table
[ 1.952758] kjournald starting. Commit interval 5 seconds
[ 1.958557] EXT3-fs (mmcblk0p2): mounted filesystem with ordered data mode
[ 1.965789] VFS: Mounted root (ext3 filesystem) readonly on device 179:2.
[ 1.973266] Freeing init memory: 240K
INIT: version 2.88 booting
Starting udev
Error opening /dev/fb0: No such device
Starting Bootlog daemon: bootlogd: cannot allocate pseudo tty: No such file or directory
bootlogd.
[ 5.590637] EXT3-fs (mmcblk0p2): using internal journal
ALSA: Restoring mixer settings...
/usr/sbin/alsactl: load_state:1686: No soundcards found...
Configuring network interfaces... [ 6.188995] net eth0: CPSW phy found : id is : 0x7c0f1
done.
Wed Jun 26 11:33:00 UTC 2013
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: Module wl12xx_sdio is not currently loaded
nl80211 not found.
[ 6.712402] Disabling lock debugging due to kernel taint
Starting network benchmark server: netserver.
Starting syslogd/klogd: done
Starting thttpd.
Starting Lighttpd Web Server: lighttpd.
2013-06-26 11:33:01: (log.c.166) server started
/
Starting Matrix GUI application.
[ 8.769042] gadget: Mass Storage Function, version: 2009/09/11
[ 8.775268] gadget: Number of LUNs=1
[ 8.779144] lun0: LUN: removable file: /dev/mmcblk0p1
[ 8.784545] gadget: Mass Storage Gadget, version: 2009/09/11
[ 8.790557] gadget: userspace failed to provide iSerialNumber
[ 8.796661] gadget: g_mass_storage ready
[ 8.800872] musb-hdrc musb-hdrc.0: MUSB HDRC host driver
[ 8.806457] musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 2
[ 8.814300] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[ 8.821411] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 8.828948] usb usb2: Product: MUSB HDRC host driver
[ 8.834136] usb usb2: Manufacturer: Linux 3.2.0 musb-hcd
[ 8.839660] usb usb2: SerialNumber: musb-hdrc.0
[ 8.845001] hub 2-0:1.0: USB hub found
[ 8.848937] hub 2-0:1.0: 1 port detected
[ 9.187286] PHY: 0:00 - Link is Up - 100/Full
***************************************************************
***************************************************************
NOTICE: This file system contains the followin GPLv3 packages:
binutils-symlinks
binutils
gdbserver
If you do not wish to distribute GPLv3 components please remove
the above packages prior to distribution. This can be done using
the opkg remove command. i.e.:
opkg remove <package>
Where <package> is the name printed in the list above
NOTE: If the package is a dependency of another package you
will be notified of the dependent packages. You should
use the --force-removal-of-dependent-packages option to
also remove the dependent packages as well
***************************************************************
***************************************************************
Stopping Bootlog daemon: bootlogd.
_____ _____ _ _
| _ |___ ___ ___ ___ | _ |___ ___ |_|___ ___| |_
| | _| .'| . | . | | __| _| . | | | -_| _| _|
|__|__|_| |__,|_ |___| |__| |_| |___|_| |___|___|_|
|___| |___|
Arago Project http://arago-project.org am335x-evm ttyO0
Arago 2013.05 am335x-evm ttyO0
am335x-evm login: root
Then I try to start the Bluetooth:
root@am335x-evm:~# cd /opt/ss1
root@am335x-evm:/opt/ss1# ls
BluetopiaPM PICSSupportedFeatures.pdf SS1BTPM
Documentation README.pdf
LinuxSPPM ReleaseNotes.pdf
root@am335x-evm:/opt/ss1# cd BluetopiaPM
root@am335x-evm:/opt/ss1/BluetopiaPM# ls
Bluetopia btpmerr gstreamer lib sample
bin btpmmodc include modules ss1btpm
root@am335x-evm:/opt/ss1/BluetopiaPM# cd ..
root@am335x-evm:/opt/ss1# ls
BluetopiaPM PICSSupportedFeatures.pdf SS1BTPM
Documentation README.pdf
LinuxSPPM ReleaseNotes.pdf
root@am335x-evm:/opt/ss1# ./SS1BTPM &
[1] 1542
root@am335x-evm:/opt/ss1# ./LinuxSPPM
******************************************************************
* Command Options: 1) Initialize *
* 2) Cleanup *
* 3) QueryDebugZoneMask *
* 4) SetDebugZoneMask *
* 5) ShutdownService *
* 6) RegisterEventCallback, *
* 7) UnRegisterEventCallback, *
* 8) QueryDevicePower *
* 9) SetDevicePower *
* 10)QueryLocalDeviceProperties *
* 11)SetLocalDeviceName *
* 12)SetLocalClassOfDevice *
* 13)SetDiscoverable *
* 14)SetConnectable *
* 15)SetPairable *
* 16)StartDeviceDiscovery *
* 17)StopDeviceDiscovery *
* 18)QueryRemoteDeviceList *
* 19)QueryRemoteDeviceProperties *
* 20)AddRemoteDevice *
* 21)DeleteRemoteDevice *
* 22)PairWithRemoteDevice *
* 23)CancelPairWithRemoteDevice *
* 24)UnPairRemoteDevice *
* 25)QueryRemoteDeviceServices *
* 26)RegisterAuthentication *
* 27)UnRegisterAuthentication *
* 28)PINCodeResponse *
* 29)PassKeyResponse *
* 30)UserConfirmationResponse *
* 31)ChangeSimplePairingParameters *
* 32)RegisterServerPort *
* 33)OpenServerPortRequestResponse *
* 34)UnRegisterServerPort *
* 35)OpenRemotePort *
* 36)ClosePort *
* 37)ReadData *
* 38)WriteData *
* 39)SendLineStatus *
* 40)SendPortStatus *
* 41)QueryServerPresent *
* 42)FindFreeServerPort *
* 43)ChangeBufferSize *
* 44)LoopbackMode *
* 45)AutomaticReadMode *
* 46)DisplayRawDataMode *
* Help, Quit. *
******************************************************************
SPPM>Initialize 1
BTPM_Initialize() Success: 0.
DEVM_RegisterEventCallback() Success: 5.
SPPM>SetDevicePower 1
[ 135.535522] Gpio value is :7
[ 135.556701] WL1271: BT Enable
DEVM_PowerOnDevice() Failure: -4, Unknown Error.
Function Error.
As you can see it doesn't work. What I am doing wrong?
Best regards,
Ignacio Redondo