This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
hello,
we have developed an AM3358 Based Custom Board with Ref. design of ti Sitara kit.
we have added WL1835 wifi chip at mmc3 interface
i am able to run wifi at WLAN0 interface
and bt configured at uart5
Started Guide
i have done changes in bt-en.sh according to my hardware and change mode of this file
#!/bin/bash function bten_335_evm { echo 66 > /sys/class/gpio/export echo out > /sys/class/gpio/gpio66/direction echo 1 > /sys/class/gpio/gpio66/value echo "Done enabling BT" local gpio="nshutdown_gpio=66" local tty="tty=/dev/ttyS5" local flow="flow_cntrl=1" local baud_rate="baud_rate=115200" sudo rm -r /home/root/tibt mkdir /home/root/tibt echo $gpio > /home/root/tibt/config echo $tty >> /home/root/tibt/config echo $flow >> /home/root/tibt/config echo $baud_rate >> /home/root/tibt/config }
while running bt-en.sh script getting this message....
root@am335x-evm:~/BluetopiaPM# root@am335x-evm:~/BluetopiaPM# ./bt-en.sh ./bt-en.sh: line 52: warning: command substitution: ignored null byte in input TI AM335x EVM-SK success Done enabling BT
but while running
this cmd
# cd /home/root/BluetopiaPM/bin # ./SS1BTPM & # ./LinuxSPPM
root@am335x-evm:~/BluetopiaPM/bin# ls LinuxAUDM LinuxFMPM_TAR LinuxGATM_SRV LinuxHDSM_AG_WL18XX LinuxHFRM_AG_WL18XX LinuxHOGM LinuxMAPM_MSE LinuxPXPM_MON SS1BTPM LinuxBASM LinuxFTPM_CLT LinuxHDPM LinuxHDSM_HS_CC256X LinuxHFRM_HF_CC256X LinuxHRPM LinuxOPPM LinuxSPPLE_PM SS1Tool LinuxCSCM LinuxFTPM_SRV LinuxHDPM_11073 LinuxHDSM_HS_WL18XX LinuxHFRM_HF_WL18XX LinuxIBeacon LinuxPANM LinuxSPPM audio_frame_linux.py LinuxDEVM LinuxGATM_CLT LinuxHDSM_AG_CC256X LinuxHFRM_AG_CC256X LinuxHIDM LinuxMAPM_MCE LinuxPBAM LinuxVoLE root@am335x-evm:~/BluetopiaPM/bin# ./SS1BTPM & [2] 948 root@am335x-evm:~/BluetopiaPM/bin# ./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 * * 47)EnableBluetoothDebug * * Help, Quit. * ****************************************************************** SPPM>Initialize 1 BTPM_Initialize() Success: 0. DEVM_RegisterEventCallback() Success: 5. SPPM>SetDevicePower 1 echo 66 > /sys/class/gpio/export sh: line 0: echo: write error: Device or resource busy echo out > /sys/class/gpio/gpio66/direction echo 0 > /sys/class/gpio/gpio66/value echo 1 > /sys/class/gpio/gpio66/value echo 0 > /sys/class/gpio/gpio66/value echo 1 > /sys/class/gpio/gpio66/value BT COMM PORT (/dev/ttyS5): 1 DEVM_PowerOnDevice() Failure: -10032, Response Message Timeout. Function Error. SPPM>
i have verified in dso while tunning bt-en.sh then after BE_EN pin goes high to 3.33V
and RTS and CTS Status remains high
but after running ===> SetDevicePower 1
RTS pin status goes to low...
my UART5 configuration in dts file
/* ********************** BT/WLAN Uart5. ********************** */ /* ********************** ************** ********************** */ uart5_pins: uart5_pins { pinctrl-single,pins = < AM33XX_IOPAD(0x908, PIN_INPUT_PULLUP | MUX_MODE3) /* (H16) gmii1_col.uart5_rxd */ AM33XX_IOPAD(0x944, PIN_OUTPUT_PULLDOWN | MUX_MODE3) /* (H18) rmii1_refclk.uart5_txd */ AM33XX_IOPAD(0x90c, PIN_INPUT | MUX_MODE5) /* (H17) gmii1_crs.uart5_ctsn */ AM33XX_IOPAD(0x910, PIN_OUTPUT_PULLDOWN | MUX_MODE5) /* (J15) gmii1_rxer.uart5_rtsn */ >; }; /* ********************** BT/WLAN Uart5. ********************** */ /* ********************** ************** ********************** */
and i have changed in dtsi file also
uart2: serial@48024000 { compatible = "ti,am3352-uart", "ti,omap3-uart"; ti,hwmods = "uart3"; clock-frequency = <48000000>; reg = <0x48024000 0x2000>; interrupts = <74>; status = "disabled"; // dmas = <&edma 30 0>, <&edma 31 0>; // dma-names = "tx", "rx"; }; uart5: serial@481aa000 { compatible = "ti,am3352-uart", "ti,omap3-uart"; ti,hwmods = "uart6"; clock-frequency = <48000000>; reg = <0x481aa000 0x2000>; interrupts = <46>; status = "okay"; dmas = <&edma 30 0>, <&edma 31 0>; dma-names = "tx", "rx"; };
while i am running
echo aa > /dev/ttyS5 at that time i am getting aa data in uart5 before running be-en.sh script
what should i do...?
here it's my board boot log
U-Boot 2019.01-g1ebdbc7d8b-dirty (Feb 21 2020 - 16:46:15 +0530) *********************** Aarohi01 *********************** CPU : AM335X-GP rev 2.1 Model: TI AM335x EVM DRAM: 1 GiB NAND: 0 MiB MMC: OMAP SD/MMC: 0 Loading Environment from FAT... *** Warning - bad CRC, using default environment <ethaddr> not set. Validating first E-fuse MAC Net: Could not get PHY for ethernet@4a100000: addr 0 eth0: ethernet@4a100000 Warning: usb_ether MAC addresses don't match: Address in ROM is de:ad:be:ef:00:01 Address in environment is 04:79:b7:03:11:1b , eth1: usb_ether Hit any key to stop autoboot: 0 switch to partitions #0, OK mmc0 is current device SD/MMC found on device 0 ** Unable to read file boot.scr ** 264 bytes read in 1 ms (257.8 KiB/s) Loaded env from uEnv.txt Importing environment from mmc0 ... Running uenvcmd ... 4375040 bytes read in 288 ms (14.5 MiB/s) ## Flattened Device Tree blob at 88000000 Booting using the fdt blob at 0x88000000 Loading Device Tree to 8fff3000, end 8ffff561 ... OK Starting kernel ... [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 4.19.59-g5f8c1c6121 (raju@Raju-PC) (gcc version 8.3.0 (GNU Toolchain for the A-profile Architecture 8.3-2019.03 (arm-rel-8.36))) #5 PREEMPT Fri Feb 21 17:49:09 IST 2020 [ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache [ 0.000000] OF: fdt: Machine model: TI AM335x EVM-SK [ 0.000000] Memory policy: Data cache writeback [ 0.000000] efi: Getting EFI parameters from FDT: [ 0.000000] efi: UEFI not found. [ 0.000000] cma: Reserved 48 MiB at 0xbd000000 [ 0.000000] CPU: All CPU(s) started in SVC mode. [ 0.000000] AM335X ES2.1 (sgx neon) [ 0.000000] random: get_random_bytes called from start_kernel+0xa4/0x434 with crng_init=0 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 260416 [ 0.000000] Kernel command line: console=ttyO0,115200n8 root=/dev/mmcblk0p2 rootfstype=ext3 rw rootwait ip=off lpj=3590144 [ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes) [ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes) [ 0.000000] Memory: 975324K/1048576K available (9216K kernel code, 314K rwdata, 2744K rodata, 1024K init, 263K bss, 24100K reserved, 49152K cma-reserved, 212992K highmem) [ 0.000000] Virtual kernel memory layout: [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB) [ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB) [ 0.000000] vmalloc : 0xf0800000 - 0xff800000 ( 240 MB) [ 0.000000] lowmem : 0xc0000000 - 0xf0000000 ( 768 MB) [ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB) [ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB) [ 0.000000] .text : 0x(ptrval) - 0x(ptrval) (10208 kB) [ 0.000000] .init : 0x(ptrval) - 0x(ptrval) (1024 kB) [ 0.000000] .data : 0x(ptrval) - 0x(ptrval) ( 315 kB) [ 0.000000] .bss : 0x(ptrval) - 0x(ptrval) ( 264 kB) [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 [ 0.000000] rcu: Preemptible hierarchical RCU implementation. [ 0.000000] Tasks RCU enabled. [ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16 [ 0.000000] IRQ: Found an INTC at 0x(ptrval) (revision 5.0) with 128 interrupts [ 0.000000] OMAP clockevent source: timer2 at 24000000 Hz [ 0.000016] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns [ 0.000034] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns [ 0.000044] OMAP clocksource: timer1 at 24000000 Hz [ 0.000206] timer_probe: no matching timers found [ 0.000381] Console: colour dummy device 80x30 [ 0.000408] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0' [ 0.000414] This ensures that you still see kernel messages. Please [ 0.000420] update your kernel commandline. [ 0.000473] Calibrating delay loop (skipped) preset value.. 718.02 BogoMIPS (lpj=3590144) [ 0.000489] pid_max: default: 32768 minimum: 301 [ 0.000681] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes) [ 0.000699] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes) [ 0.001474] CPU: Testing write buffer coherency: ok [ 0.001537] CPU0: Spectre v2: using BPIALL workaround [ 0.002347] Setting up static identity map for 0x80100000 - 0x80100060 [ 0.002488] rcu: Hierarchical SRCU implementation. [ 0.002798] EFI services will not be available. [ 0.004091] devtmpfs: initialized [ 0.011525] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3 [ 0.011880] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.011903] futex hash table entries: 256 (order: -1, 3072 bytes) [ 0.015269] pinctrl core: initialized pinctrl subsystem [ 0.015991] DMI not present or invalid. [ 0.016429] NET: Registered protocol family 16 [ 0.018549] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.024112] omap_hwmod: mcasp1: no dt node [ 0.024132] ------------[ cut here ]------------ [ 0.024169] WARNING: CPU: 0 PID: 1 at arch/arm/mach-omap2/omap_hwmod.c:2409 _init.constprop.21+0x1ac/0x4d8 [ 0.024177] omap_hwmod: mcasp1: doesn't have mpu register target base [ 0.024184] Modules linked in: [ 0.024202] CPU: 0 PID: 1 Comm: swapper Not tainted 4.19.59-g5f8c1c6121 #5 [ 0.024209] Hardware name: Generic AM33XX (Flattened Device Tree) [ 0.024216] Backtrace: [ 0.024237] [<c010cb64>] (dump_backtrace) from [<c010ced4>] (show_stack+0x18/0x1c) [ 0.024249] r7:00000009 r6:00000000 r5:c0bc69f0 r4:ee885de4 [ 0.024263] [<c010cebc>] (show_stack) from [<c0946394>] (dump_stack+0x24/0x28) [ 0.024283] [<c0946370>] (dump_stack) from [<c012aab8>] (__warn+0xe0/0xf8) [ 0.024295] [<c012a9d8>] (__warn) from [<c012a710>] (warn_slowpath_fmt+0x50/0x6c) [ 0.024306] r9:c0d3d820 r8:00000000 r7:c0e0a2c0 r6:00000000 r5:c0bc6f80 r4:c0e03048 [ 0.024320] [<c012a6c4>] (warn_slowpath_fmt) from [<c0d0b724>] (_init.constprop.21+0x1ac/0x4d8) [ 0.024327] r3:c0bc8468 r2:c0bc6f80 [ 0.024334] r5:00000000 r4:c0e0a288 [ 0.024346] [<c0d0b578>] (_init.constprop.21) from [<c0d0bb80>] (__omap_hwmod_setup_all+0x48/0x134) [ 0.024357] r10:00000003 r9:c0d3d820 r8:00000000 r7:c0d0bb38 r6:ffffe000 r5:c0e07fa0 [ 0.024364] r4:c0e0a288 [ 0.024379] [<c0d0bb38>] (__omap_hwmod_setup_all) from [<c0102640>] (do_one_initcall+0x84/0x1b0) [ 0.024387] r5:c0e03048 r4:c0e4e8c0 [ 0.024408] [<c01025bc>] (do_one_initcall) from [<c0d00f2c>] (kernel_init_freeable+0x148/0x1e4) [ 0.024419] r8:c0d3d840 r7:c0e4e8c0 r6:c0e4e8c0 r5:c0d503c4 r4:c0cac364 [ 0.024436] [<c0d00de4>] (kernel_init_freeable) from [<c095a670>] (kernel_init+0x10/0x11c) [ 0.024447] r10:00000000 r9:00000000 r8:00000000 r7:00000000 r6:00000000 r5:c095a660 [ 0.024454] r4:00000000 [ 0.024464] [<c095a660>] (kernel_init) from [<c01010e8>] (ret_from_fork+0x14/0x2c) [ 0.024472] Exception stack(0xee885fb0 to 0xee885ff8) [ 0.024483] 5fa0: 00000000 00000000 00000000 00000000 [ 0.024494] 5fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 0.024504] 5fe0: 00000000 00000000 00000000 00000000 00000013 00000000 [ 0.024512] r5:c095a660 r4:00000000 [ 0.024528] ---[ end trace 5bcec6a2abf4dcf6 ]--- [ 0.036165] l4_wkup_cm:clk:0010:0: failed to disable [ 0.077187] cpuidle: using governor ladder [ 0.077222] cpuidle: using governor menu [ 0.081934] OMAP GPIO hardware version 0.1 [ 0.091283] No ATAGs? [ 0.091300] hw-breakpoint: debug architecture 0x4 unsupported. [ 0.104066] edma 49000000.edma: TI EDMA DMA engine driver [ 0.105573] v1_8d: supplied by vbat [ 0.105830] v3_3d: supplied by vbat [ 0.108095] SCSI subsystem initialized [ 0.108526] media: Linux media interface: v0.10 [ 0.108576] videodev: Linux video capture interface: v2.00 [ 0.108655] pps_core: LinuxPPS API ver. 1 registered [ 0.108663] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it> [ 0.108684] PTP clock support registered [ 0.108714] EDAC MC: Ver: 3.0.0 [ 0.109984] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400 [ 0.110595] Advanced Linux Sound Architecture Driver Initialized. [ 0.111140] Bluetooth: Core ver 2.22 [ 0.111200] NET: Registered protocol family 31 [ 0.111208] Bluetooth: HCI device and connection manager initialized [ 0.111222] Bluetooth: HCI socket layer initialized [ 0.111232] Bluetooth: L2CAP socket layer initialized [ 0.111262] Bluetooth: SCO socket layer initialized [ 0.111894] clocksource: Switched to clocksource timer1 [ 0.119563] NET: Registered protocol family 2 [ 0.120311] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes) [ 0.120344] TCP established hash table entries: 8192 (order: 3, 32768 bytes) [ 0.120413] TCP bind hash table entries: 8192 (order: 3, 32768 bytes) [ 0.120480] TCP: Hash tables configured (established 8192 bind 8192) [ 0.120608] UDP hash table entries: 512 (order: 1, 8192 bytes) [ 0.120634] UDP-Lite hash table entries: 512 (order: 1, 8192 bytes) [ 0.120779] NET: Registered protocol family 1 [ 0.121332] RPC: Registered named UNIX socket transport module. [ 0.121346] RPC: Registered udp transport module. [ 0.121352] RPC: Registered tcp transport module. [ 0.121358] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.122396] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available [ 0.123615] Initialise system trusted keyrings [ 0.123963] workingset: timestamp_bits=14 max_order=18 bucket_order=4 [ 0.128116] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 0.128843] NFS: Registering the id_resolver key type [ 0.128884] Key type id_resolver registered [ 0.128892] Key type id_legacy registered [ 0.128934] ntfs: driver 2.1.32 [Flags: R/O]. [ 0.134031] Key type asymmetric registered [ 0.134050] Asymmetric key parser 'x509' registered [ 0.134122] bounce: pool size: 64 pages [ 0.134191] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245) [ 0.134204] io scheduler noop registered [ 0.134211] io scheduler deadline registered [ 0.134458] io scheduler cfq registered (default) [ 0.134468] io scheduler mq-deadline registered [ 0.134475] io scheduler kyber registered [ 0.136214] pinctrl-single 44e10800.pinmux: 142 pins, size 568 [ 0.139308] pwm-backlight backlight: backlight supply power not found, using dummy regulator [ 0.139409] pwm-backlight backlight: Linked as a consumer to regulator.0 [ 0.184004] Serial: 8250/16550 driver, 10 ports, IRQ sharing enabled [ 0.187649] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 30, base_baud = 3000000) is a 8250 [ 1.076033] console [ttyS0] enabled [ 1.080576] 48022000.serial: ttyS1 at MMIO 0x48022000 (irq = 31, base_baud = 3000000) is a 8250 [ 1.090390] 481aa000.serial: ttyS5 at MMIO 0x481aa000 (irq = 32, base_baud = 3000000) is a 8250 [ 1.101267] omap_rng 48310000.rng: Random Number Generator ver. 20 [ 1.107693] random: fast init done [ 1.111317] random: crng init done [ 1.116201] tilcdc-panel panel: found backlight [ 1.121074] OF: graph: no port node found in /ocp/lcdc@4830e000 [ 1.127972] OF: graph: no port node found in /ocp/lcdc@4830e000 [ 1.134435] OF: graph: no port node found in /ocp/lcdc@4830e000 [ 1.140391] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013). [ 1.147074] [drm] No driver support for vblank timestamp query. [ 1.198115] Console: switching to colour frame buffer device 60x34 [ 1.222014] tilcdc 4830e000.lcdc: fb0: DRM emulated frame buffer device [ 1.229235] [drm] Initialized tilcdc 1.0.0 20121205 for 4830e000.lcdc on minor 0 [ 1.247905] brd: module loaded [ 1.257426] loop: module loaded [ 1.263316] libphy: Fixed MDIO Bus: probed [ 1.331948] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6, bus freq 1000000 [ 1.339658] davinci_mdio 4a101000.mdio: detected phy mask fffffffe [ 1.346915] libphy: 4a101000.mdio: probed [ 1.350958] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver Atheros 8031 ethernet [ 1.361158] cpsw 4a100000.ethernet: No slave[1] phy_id, phy-handle, or fixed-link property [ 1.369640] cpsw 4a100000.ethernet: Missing dual_emac_res_vlan in DT. [ 1.376204] cpsw 4a100000.ethernet: Using 2 as Reserved VLAN for 1 slave [ 1.382977] cpsw 4a100000.ethernet: Detected MACID = 04:79:b7:03:11:19 [ 1.389639] cpsw 4a100000.ethernet: initialized cpsw ale version 1.4 [ 1.396081] cpsw 4a100000.ethernet: ALE Table size 1024 [ 1.401358] cpsw 4a100000.ethernet: cpts: overflow check period 500 (jiffies) [ 1.409369] cpsw 4a100000.ethernet: cpsw: Detected MACID = 04:79:b7:03:11:1b [ 1.417702] i2c /dev entries driver [ 1.422317] Bluetooth: HCI UART driver ver 2.3 [ 1.426807] Bluetooth: HCI UART protocol H4 registered [ 1.432066] Bluetooth: HCI UART protocol LL registered [ 1.437334] Bluetooth: HCI UART protocol Broadcom registered [ 1.443988] cpuidle: enable-method property 'ti,am3352' found operations [ 1.451166] sdhci: Secure Digital Host Controller Interface driver [ 1.457589] sdhci: Copyright(c) Pierre Ossman [ 1.462734] omap_gpio 44e07000.gpio: Could not set line 6 debounce to 200000 microseconds (-22) [ 1.471477] omap_hsmmc 48060000.mmc: Got CD GPIO [ 1.477768] sdhci-pltfm: SDHCI platform and OF driver helper [ 1.485106] ledtrig-cpu: registered to indicate activity on CPUs [ 1.495274] NET: Registered protocol family 10 [ 1.501126] Segment Routing with IPv6 [ 1.505058] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver [ 1.511677] NET: Registered protocol family 17 [ 1.516551] Key type dns_resolver registered [ 1.521079] omap_voltage_late_init: Voltage driver support not added [ 1.528380] Loading compiled-in X.509 certificates [ 1.572120] tps65910 0-002d: No interrupt support, no core IRQ [ 1.579739] vrtc: supplied by vbat [ 1.586776] vio: supplied by vbat [ 1.591469] vdd1: supplied by vbat [ 1.596554] vdd2: supplied by vbat [ 1.602880] vdig1: supplied by vbat [ 1.607636] vdig2: supplied by vbat [ 1.612360] vpll: supplied by vbat [ 1.617000] vdac: supplied by vbat [ 1.621671] vaux1: supplied by vbat [ 1.626441] vaux2: supplied by vbat [ 1.631162] vaux33: supplied by vbat [ 1.635983] vmmc: supplied by vbat [ 1.640645] vbb: supplied by vbat [ 1.645367] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz [ 1.651286] cpu cpu0: Linked as a consumer to regulator.9 [ 1.656844] cpu cpu0: Dropping the link to regulator.9 [ 1.662289] cpu cpu0: Linked as a consumer to regulator.9 [ 1.669215] omap_gpio 44e07000.gpio: Could not set line 6 debounce to 200000 microseconds (-22) [ 1.678120] omap_hsmmc 48060000.mmc: Got CD GPIO [ 1.683338] omap_hsmmc 48060000.mmc: Linked as a consumer to regulator.19 [ 1.718385] omap_hsmmc 47810000.mmc: Linked as a consumer to regulator.6 [ 1.758289] mmc0: host does not support reading read-only switch, assuming write-enable [ 1.768587] mmc0: new high speed SDHC card at address 59b4 [ 1.776323] mmcblk0: mmc0:59b4 00000 7.48 GiB [ 1.784318] mmcblk0: p1 p2 [ 1.838884] hctosys: unable to open rtc device (rtc0) [ 1.845487] lis3_reg: disabling [ 1.848799] v1_8d: disabling [ 1.851770] v3_3d: disabling [ 1.855561] ALSA device list: [ 1.858592] No soundcards found. [ 1.862418] omap_hsmmc 47810000.mmc: card claims to support voltages below defined range [ 1.872409] EXT4-fs (mmcblk0p2): mounting ext3 file system using the ext4 subsystem [ 1.891052] mmc1: new high speed SDIO card at address 0001 [ 2.049613] EXT4-fs (mmcblk0p2): recovery complete [ 2.058674] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null) [ 2.067499] VFS: Mounted root (ext3 filesystem) on device 179:2. [ 2.085448] devtmpfs: mounted [ 2.090081] Freeing unused kernel memory: 1024K [ 2.095282] Run /sbin/init as init process [ 2.538431] systemd[1]: System time before build time, advancing clock. [ 2.591564] systemd[1]: systemd 239 running in system mode. (+PAM -AUDIT -SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP -GCRYPT -GNUTLS +ACL +XZ -LZ4 -SECCOMP +BLKID -ELFUTILS +KMOD -IDN2 -IDN) [ 2.613958] systemd[1]: Detected architecture arm. Welcome to Arago 2019.07! [ 2.663449] systemd[1]: Set hostname to <am335x-evm>. [ 3.253880] systemd[1]: File /lib/systemd/system/systemd-journald.service:36 configures an IP firewall (IPAddressDeny=any), but the local system does not support BPF/cgroup based firewalling. [ 3.271198] systemd[1]: Proceeding WITHOUT firewalling in effect! (This warning is only shown for the first loaded unit using IP firewalling.) [ 3.357334] systemd[1]: /lib/systemd/system/gadget-init.service:15: Unknown lvalue 'ExecStopPre' in section 'Service' [ 3.760047] systemd[1]: Reached target Swap. [ OK ] Reached target Swap. [ 3.794387] systemd[1]: Listening on Journal Socket (/dev/log). [ OK ] Listening on Journal Socket (/dev/log). [ 3.822908] systemd[1]: Listening on initctl Compatibility Named Pipe. [ OK ] Listening on initctl Compatibility Named Pipe. [ 3.863741] systemd[1]: Started Forward Password Requests to Wall Directory Watch. [ OK ] Started Forward Password Requests to Wall Directory Watch. [ OK ] Listening on udev Kernel Socket. [ OK ] Listening on Network Service Netlink Socket. [ OK ] Listening on udev Control Socket. [ OK ] Created slice system-serial\x2dgetty.slice. [ OK ] Listening on Journal Socket. Starting Remount Root and Kernel File Systems... Mounting Temporary Directory (/tmp)... [ 4.208602] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null) Starting Load Kernel Modules... [ 4.289830] cryptodev: loading out-of-tree module taints kernel. Starting Journal Service... [ 4.306377] cryptodev: driver 1.9 loaded. [ OK ] Started Dispatch Password Requests to Console Directory Watch. [ OK ] Reached target Remote File Systems. [ 4.367966] usbcore: registered new interface driver usbfs [ OK ] Created slice system-getty.slice. [ 4.385351] usbcore: registered new interface driver hub [ 4.419053] usbcore: registered new device driver usb Starting Create list of required st��…ce nodes for the current kernel... [ OK ] Created slice User and Session Slice. [ 4.457277] usbcore: registered new interface driver ftdi_sio [ 4.492813] usbserial: USB Serial support registered for FTDI USB Serial Device [ OK ] Listening on Process Core Dump Socket. Mounting Kernel Debug File System... Mounting POSIX Message Queue File System... [ OK ] Started Hardware RNG Entropy Gatherer Daemon. Starting udev Coldplug all Devices... [ OK ] Reached target Slices. [ OK ] Reached target Paths. [ OK ] Started Journal Service. [ OK ] Started Remount Root and Kernel File Systems. [ OK ] Mounted Temporary Directory (/tmp). [ OK ] Started Load Kernel Modules. [ OK ] Started Create list of required sta��…vice nodes for the current kernel. [ OK ] Mounted Kernel Debug File System. [ OK ] Mounted POSIX Message Queue File System. Mounting Kernel Configuration File System... Starting Apply Kernel Variables... Starting Create Static Device Nodes in /dev... Starting Flush Journal to Persistent Storage... [ OK ] Mounted Kernel Configuration File System. [ OK ] Started Apply Kernel Variables. [ OK ] Started Create Static Device Nodes in /dev. [ 5.314839] systemd-journald[86]: Received request to flush runtime journal from PID 1 [ OK ] Reached target Local File Systems (Pre). Mounting /media/ram... Mounting /var/volatile... [ OK ] Reached target Containers. Starting udev Kernel Device Manager... [ OK ] Started Flush Journal to Persistent Storage. [ OK ] Mounted /media/ram. [ OK ] Mounted /var/volatile. Starting Load/Save Random Seed... [ OK ] Reached target Local File Systems. Starting Create Volatile Files and Directories... [ OK ] Started Load/Save Random Seed. [ OK ] Started udev Kernel Device Manager. [ OK ] Started Create Volatile Files and Directories. Starting Network Service... Starting Network Time Synchronization... Starting Update UTMP about System Boot/Shutdown... [ OK ] Started Update UTMP about System Boot/Shutdown. [ OK ] Started Network Service. Starting Network Name Resolution... Starting Wait for Network to be Configured... [ OK ] Started Network Time Synchronization. [ OK ] Reached target System Time Synchronized. [ OK ] Started Network Name Resolution. [ OK ] Reached target Network. [ OK ] Reached target Host and Network Name Lookups. [ 7.891285] omap_rtc 44e3e000.rtc: already running [ 7.910561] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec [ 7.982779] omap_rtc 44e3e000.rtc: registered as rtc0 [ OK ] Found device /dev/ttyS0. [ OK ] Started udev Coldplug all Devices. [ OK ] Created slice system-systemd\x2dbacklight.slice. Starting Load/Save Screen Backlight��…ightness of backlight:backlight... [ OK ] Started Load/Save Screen Backlight Brightness of backlight:backlight. [ OK ] Reached target System Initialization. [ OK ] Started Daily Cleanup of Temporary Directories. Starting Reboot and dump vmcore via kexec... [ 9.121122] omap-sham 53100000.sham: hw accel on OMAP rev 4.3 [ 9.140364] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2 [ OK ] Listening on RPCbind Server Activation Socket. [ OK ] Listening on D-Bus System Message Bus Socket. [ 9.240634] omap-aes 53500000.aes: will run requests pump with realtime priority [ 9.365802] [drm] Initialized pvr 1.17.4948957 20110701 for 56000000.sgx on minor 1 [ 9.414758] remoteproc remoteproc0: wkup_m3 is available [ OK ] Listening on dropbear.socket. [ OK ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket. [ OK ] Reached target Sockets. [ OK ] Reached target Basic System. [ OK ] Started D-Bus System Message Bus. [ 9.794633] remoteproc remoteproc0: powering up wkup_m3 [ 9.803094] PM: Cannot get wkup_m3_ipc handle [ 9.881415] remoteproc remoteproc0: Booting fw image am335x-pm-firmware.elf, size 242896 Starting Lightning Fast Webserver With Light System Requirements... [ 10.043486] remoteproc remoteproc0: remote processor wkup_m3 is now up [ 10.043509] wkup_m3_ipc 44e11324.wkup_m3_ipc: CM3 Firmware Version = 0x192 Starting uim-sysfs.service... Starting Login Service... Starting Permit User Sessions... [ OK ] Started Job spooling tools. Starting Simple Network Management Protocol (SNMP) Daemon.... [ OK ] Started Redis In-Memory Data Store. Starting Enable and configure wl18xx bluetooth stack... Starting Print notice about GPLv3 packages... [ 11.272205] net eth0: initializing cpsw version 1.12 (0) Starting RPC Bind Service... [ OK ] Started Daily rotation of log files. [ OK ] Reached target Timers. Starting Avahi mDNS/DNS-SD Stack... [ 11.503890] Atheros 8031 ethernet 4a101000.mdio:00: attached PHY driver [Atheros 8031 ethernet] (mii_bus:phy_addr=4a101000.mdio:00, irq=POLL) [ OK ] Started Periodic Command Scheduler. [ 11.913436] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready [ OK ] Started Reboot and dump vmcore via kexec. [ OK ] Started Lightning Fast Webserver With Light System Requirements. [ OK ] Started Permit User Sessions. [ OK ] Started RPC Bind Service. [ 12.509766] net eth1: initializing cpsw version 1.12 (0) [ 12.573932] libphy: PHY not found [ 12.577387] net eth1: phy "" not found on slave 1, err -19 [ 12.843099] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready [ OK ] Found device /dev/ttyS3. [ OK ] Started Enable and configure wl18xx bluetooth stack. [ OK ] Started Simple Network Management Protocol (SNMP) Daemon.. [ 17.444208] TI-am335x-tsc TI-am335x-tsc.0.auto: ti,charge-delay not specified [ 17.451697] input: ti-tsc as /devices/platform/ocp/44e0d000.tscadc/TI-am335x-tsc.0.auto/input/input0 [ 17.640451] PM: bootloader does not support rtc-only! [ OK ] Started uim-sysfs.service. [ 18.468490] am335x-phy-driver 47401300.usb-phy: 47401300.usb-phy supply vcc not found, using dummy regulator [ 18.644341] am335x-phy-driver 47401300.usb-phy: Linked as a consumer to regulator.0 [ 18.742962] am335x-phy-driver 47401b00.usb-phy: 47401b00.usb-phy supply vcc not found, using dummy regulator [ 18.783722] musb-hdrc musb-hdrc.0: MUSB HDRC host driver [ 18.789123] musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 1 [ 18.904083] am335x-phy-driver 47401b00.usb-phy: Linked as a consumer to regulator.0 [ 18.951289] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19 [ 19.050106] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 19.118582] usb usb1: Product: MUSB HDRC host driver [ 19.158101] usb usb1: Manufacturer: Linux 4.19.59-g5f8c1c6121 musb-hcd [ 19.230181] usb usb1: SerialNumber: musb-hdrc.0 [ 19.287453] hub 1-0:1.0: USB hub found [ 19.310763] cfg80211: Loading compiled-in X.509 certificates for regulatory database [ 19.327000] hub 1-0:1.0: 1 port detected [ 19.385745] musb-hdrc musb-hdrc.1: MUSB HDRC host driver [ 19.391156] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 2 [ 19.496092] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7' [ 19.547196] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19 [ 19.627384] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 19.722107] usb usb2: Product: MUSB HDRC host driver [ 19.800266] usb usb2: Manufacturer: Linux 4.19.59-g5f8c1c6121 musb-hcd [ 19.838525] remoteproc remoteproc1: 4a334000.pru is available [ 19.885863] usb usb2: SerialNumber: musb-hdrc.1 [ 19.946707] pru-rproc 4a334000.pru: PRU rproc node pru@4a334000 probed successfully [ 19.958374] hub 2-0:1.0: USB hub found [ 19.998847] hub 2-0:1.0: 1 port detected [ 20.031432] remoteproc remoteproc2: 4a338000.pru is available [ 20.048551] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2 [ 20.081871] pru-rproc 4a338000.pru: PRU rproc node pru@4a338000 probed successfully [ 20.112840] cfg80211: failed to load regulatory.db [ 20.185150] wl18xx_driver wl18xx.1.auto: Direct firmware load for ti-connectivity/wl1271-nvs.bin failed with error -2 [ 20.794619] wlcore: wl18xx HW: 183x or 180x, PG 2.2 (ROM 0x11) [ 21.113757] wlcore: loaded [ 22.104990] wlcore: PHY firmware version: Rev 8.2.0.0.240 [ 22.172563] wlcore: firmware booted (Rev 8.9.0.0.76) [ 22.217972] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready *************************************************************** *************************************************************** NOTICE: This file system contains the following GPLv3 packages: autoconf bash-dev bash bc binutils cifs-utils cpio cpp-symlinks cpp dosfstools elfutils findutils g++-symlinks g++ gawk gcc-symlinks gcc gdb gdbserver gettext glmark2 gstreamer1.0-libav gzip hidapi libbfd libdw1 libelf1 libgdbm-compat4 libgdbm-dev libgdbm6 libgettextlib libgettextsrc libgmp10 libidn2-0 libmavconn libmpc3 libmpfr6 libreadline-dev libreadline7 libunistring2 m4-dev m4 make mavlink mavros-extras mavros-msgs mavros nettle pdm-anomaly-detection socketcan-interface which 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 *************************************************************** *************************************************************** [ OK ] Started Print notice about GPLv3 packages. [ OK ] Found device /dev/mmcblk0p1. Starting Start USB gadget... [ OK ] Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch. Starting rc.pvr.service... [ OK ] Created slice system-systemd\x2dfsck.slice. Starting File System Check on /dev/mmcblk0p1... [ 27.351653] using random self ethernet address [ OK ] Started NFS status monitor for NFSv2/3 locking.. [ 27.370030] using random host ethernet address [ OK ] Started Serial Getty on ttyS3. [ 27.419169] using host ethernet address: 04:79:B7:03:11:1B [ 27.419257] using random self ethernet address [ OK ] Started Serial Getty on ttyS0. [ 27.475766] using random host ethernet address [ 27.495572] PVR_K: UM DDK-(4948957) and KM DDK-(4948957) match. [ OK ] [ OK ] Started Getty on tty1. [ 27.519168] using host ethernet address: 04:79:B7:03:11:1B [ 27.536719] usb0: HOST MAC 04:79:b7:03:11:1b [ 27.597871] usb0: MAC de:dc:a0:1d:0c:0e [ OK ] Started rc.pvr.service. [ 27.698107] Mass Storage Function, version: 2009/09/11 [ 27.724256] LUN: removable file: (no medium) [ 27.728872] LUN: removable read only file: /dev/mmcblk0p1 Starting Load/Save RF Kill Switch Status... [ 27.772359] Number of LUNs=1 [ 27.785331] g_multi gadget: Multifunction Composite Gadget [ 27.790929] g_multi gadget: g_multi ready Starting weston.service... [ OK ] Found device /dev/ttyGS0. [ OK ] Started Load/Save RF Kill Switch Status. [ OK ] Started Avahi mDNS/DNS-SD Stack. [ OK ] Started Login Service. [ 28.044481] IPv6: ADDRCONF(NETDEV_UP): usb0: link is not ready [ OK ] Started File System Check on /dev/mmcblk0p1. Mounting /run/media/mmcblk0p1... [ OK ] Started Start USB gadget. [ OK ] Mounted /run/media/mmcblk0p1. [ OK ] Started Serial Getty on ttyGS0. [ OK ] Reached target Login Prompts. Starting Synchronize System and HW clocks... [ OK ] Started Synchronize System and HW clocks. _____ _____ _ _ | _ |___ ___ ___ ___ | _ |___ ___ |_|___ ___| |_ | | _| .'| . | . | | __| _| . | | | -_| _| _| |__|__|_| |__,|_ |___| |__| |_| |___|_| |___|___|_| |___| |___| Arago Project http://arago-project.org am335x-evm ttyS0 Arago 2019.07 am335x-evm ttyS0 am335x-evm login: root root@am335x-evm:~#
while reading this i found
[ 0.187649] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 30, base_baud = 3000000) is a 8250 [ 1.076033] console [ttyS0] enabled [ 1.080576] 48022000.serial: ttyS1 at MMIO 0x48022000 (irq = 31, base_baud = 3000000) is a 8250 [ 1.090390] 481aa000.serial: ttyS5 at MMIO 0x481aa000 (irq = 32, base_baud = 3000000) is a 8250
Please, make sure the UART node is attached to the serial bus node in the device tree configuration.. And, then make sure that the pin mux is ok, and you see activity on the UART lines when you launch the BluetopiaPM demo sample..
Thanks
hello Hari Nagalla,
thank you so much for your reply.
i have verify pin mux is ok for our board and while i am running CMD
echo AA > /dev/ttyS5
at that time i am getting "AA" data at uart Tx pin.
while running BluetopiaPM at that time RTS pin change status from High to Low.
but CTS Remains High always.
Seems, this is a duplicate to : https://e2e.ti.com/support/wireless-connectivity/wifi/f/968/t/886090
so closing..
Thanks