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.

PROCESSOR-SDK-AM335X: Disabling Bluetooth in the kernel

Part Number: PROCESSOR-SDK-AM335X


Hi,

I am trying to speed up the linux kernel boot-up by disabling the modules I am not using.

The way I understand it, modules are either added through kernel config alone, or through kernel config and device tree combination.

So that the peripheral is selected by the kernel or the device tree.

Taking bluetooth as an example it is not mentioned in the device tree, but is enabled in kernel config:

#
# Bluetooth device drivers
#
# CONFIG_BT_HCIBTUSB is not set
# CONFIG_BT_HCIBTSDIO is not set
# CONFIG_BT_HCIUART is not set
# CONFIG_BT_HCIBCM203X is not set
# CONFIG_BT_HCIBFUSB is not set
# CONFIG_BT_HCIVHCI is not set
CONFIG_BT_MRVL=m
CONFIG_BT_MRVL_SDIO=m
# CONFIG_AF_RXRPC is not set
CONFIG_FIB_RULES=y
CONFIG_WIRELESS=y
CONFIG_CFG80211=m
# CONFIG_NL80211_TESTMODE is not set
# CONFIG_CFG80211_DEVELOPER_WARNINGS is not set
# CONFIG_CFG80211_REG_DEBUG is not set
# CONFIG_CFG80211_CERTIFICATION_ONUS is not set
CONFIG_CFG80211_DEFAULT_PS=y
# CONFIG_CFG80211_DEBUGFS is not set
# CONFIG_CFG80211_INTERNAL_REGDB is not set
CONFIG_CFG80211_CRDA_SUPPORT=y
# CONFIG_CFG80211_WEXT is not set
# CONFIG_LIB80211 is not set
CONFIG_MAC80211=m
CONFIG_MAC80211_HAS_RC=y
CONFIG_MAC80211_RC_MINSTREL=y
CONFIG_MAC80211_RC_MINSTREL_HT=y
# CONFIG_MAC80211_RC_MINSTREL_VHT is not set
CONFIG_MAC80211_RC_DEFAULT_MINSTREL=y
CONFIG_MAC80211_RC_DEFAULT="minstrel_ht"
# CONFIG_MAC80211_MESH is not set
CONFIG_MAC80211_LEDS=y
# CONFIG_MAC80211_DEBUGFS is not set
# CONFIG_MAC80211_MESSAGE_TRACING is not set
# CONFIG_MAC80211_DEBUG_MENU is not set
CONFIG_MAC80211_STA_HASH_MAX_SIZE=0
# CONFIG_WIMAX is not set
CONFIG_RFKILL=y
CONFIG_RFKILL_LEDS=y
CONFIG_RFKILL_INPUT=y
# CONFIG_RFKILL_REGULATOR is not set
CONFIG_RFKILL_GPIO=y
# CONFIG_NET_9P is not set
# CONFIG_CAIF is not set
# CONFIG_CEPH_LIB is not set
# CONFIG_NFC is not set
# CONFIG_LWTUNNEL is not set
CONFIG_HAVE_BPF_JIT=y

If I were to comment all of the lines out so that none of the Bluetooth modules are added to the kernel build, I still get messages about it in the kernel boot log.

[ 27.365116] bluetooth: Unknown symbol rfkill_unregister (err 0)
[ 27.371282] bluetooth: Unknown symbol rfkill_blocked (err 0)
[ 27.380910] NET: Registered protocol family 15
[ 27.495032] bluetooth: Unknown symbol rfkill_destroy (err 0)
[ 27.501305] bluetooth: Unknown symbol rfkill_alloc (err 0)
[ 27.549756] bluetooth: Unknown symbol rfkill_register (err 0)
[ OK ] Started Network Service.

Is there other place where bluetooth driver is added?

I thought if it is not in config file the boot should not even try to start it.

Kind regards

Ugnius

  • Hi,

    What Linux version is this?
  • Its linux 4.4.41 that comes with processor sdk linux RT.
  • Hello,

    The ideal way to disable module is to do via menuconfig and not handcrafting as you might get conflicts as above.

    So when you do menuconfig (assuming you are using 4.4 kernel):

    If you go under Networking Support ----->
    [ ] Bluetooth subsystem support ---->

    So you need to disable it. (When you do that your .config should have #CONFIG_BT is not set )

    Also if you are using systemctl based system you need to disable bluetooth service which start on startup.

    Cheers,
    --Prabhakar Lad
  • Hi Prabhakar,

    Thanks for your response.
    I tried disabling it through menuconfig as you suggested.
    This does comment the #CONFIG_BT and few other lines that I did not remove when editing manually.
    The same Bluetooth error messages are still displayed on kernel boot however.
    Where can I disable the Bluetooth service on startup, you mentioned in the last bit of your suggestion?

    Kind regards,
    Ugnius
  • Hello,

    1: Can you attach your .config file ?

    2 : Are you using the systemd based system or initd ?

    If systemd based system you can do it by doing the following:

    systemctl disable bluetooth

    3: Are you using any wifi moules ? If yes you need to have CONFIG_RFKILL enabled.

    Cheers,
    --Prabhakar Lad
  • How can I tell if its systemd or initd?

    Kind regards
    Ugnius
  • Looking at your first post it looks like its a systemd based system.

    just try the below command:

    systemctl disable bluetooth

    Then reboot and see if you get the warning.

    Cheers,
    --Prabhakar Lad
  • It looks like it recognised the disable command:

    root@am335x-evm:~# systemctl disable bluetooth
    Removed symlink /etc/systemd/system/dbus-org.bluez.service.
    Removed symlink /etc/systemd/system/bluetooth.target.wants/bluetooth.service.

    But I still get the error messages:

    [ 21.501641] bluetooth: Unknown symbol rfkill_unregister (err 0)
    [ 21.563608] bluetooth: Unknown symbol rfkill_blocked (err 0)
    [ 21.563678] bluetooth: Unknown symbol rfkill_destroy (err 0)
    [ 21.569676] bluetooth: Unknown symbol rfkill_alloc (err 0)
    [ 21.569858] bluetooth: Unknown symbol rfkill_register (err 0)

    Kind regards,
    Ugnius
  • Great. Can you post the output of the command 'zcat /proc/config.gz'

    Cheers,
    --Prabhakar Lad
  • One more thing to check, Do you reflash your filesystem after building your kernel ?
    I mean when you build your kernel, did you rebuild the modules and updated in the filesystem ? You need to do that.

    Cheers,
    --Prabhakar Lad
  • Also post the dmesg output on bootup

    Cheers,
    --Prabhakar Lad
  • Starting kernel ...
    
    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Initializing cgroup subsys cpu
    [    0.000000] Initializing cgroup subsys cpuacct
    [    0.000000] Linux version 4.4.41-rt50-g968d071ce9 (root@ubuntu) (gcc version 5.3.1 20160113 (Linaro GCC 5.3-2016.02) ) #29 PREEMPT RT Mon Jul 3 07:54:53 PDT 2017
    [    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] Machine model: TI AM335x EVM-SK
    [    0.000000] cma: Reserved 48 MiB at 0x8b800000
    [    0.000000] Memory policy: Data cache writeback
    [    0.000000] CPU: All CPU(s) started in SVC mode.
    [    0.000000] AM335X ES2.1 (sgx neon )
    [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 64960
    [    0.000000] Kernel command line: console=ttyO0,115200n8 root=/dev/nfs nfsroot=192.168.2.204:/media/ugnius/extended/ti/targetNFS,nolock,v3,tcp,rsize=4096,wsize=4096 rw ip=dhcp
    [    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
    [    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
    [    0.000000] Memory: 200544K/262144K available (6339K kernel code, 330K rwdata, 2360K rodata, 260K init, 310K bss, 12448K reserved, 49152K cma-reserved, 0K highmem)
    [    0.000000] Virtual kernel memory layout:
    [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    [    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    [    0.000000]     vmalloc : 0xd0800000 - 0xff800000   ( 752 MB)
    [    0.000000]     lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
    [    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    [    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
    [    0.000000]       .text : 0xc0008000 - 0xc0886ff4   (8700 kB)
    [    0.000000]       .init : 0xc0887000 - 0xc08c8000   ( 260 kB)
    [    0.000000]       .data : 0xc08c8000 - 0xc091a8c0   ( 331 kB)
    [    0.000000]        .bss : 0xc091a8c0 - 0xc09681f0   ( 311 kB)
    [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    [    0.000000] Preemptible hierarchical RCU implementation.
    [    0.000000]  RCU kthread priority: 1.
    [    0.000000] NR_IRQS:16 nr_irqs:16 16
    [    0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
    [    0.000000] OMAP clockevent source: timer2 at 24000000 Hz
    [    0.000013] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
    [    0.000026] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
    [    0.000033] OMAP clocksource: timer1 at 24000000 Hz
    [    0.000177] clocksource_probe: no matching clocksources found
    [    0.000351] Console: colour dummy device 80x30
    [    0.000493] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
    [    0.000495] This ensures that you still see kernel messages. Please
    [    0.000497] update your kernel commandline.
    [    0.089231] Calibrating delay loop... 996.14 BogoMIPS (lpj=4980736)
    [    0.089237] pid_max: default: 32768 minimum: 301
    [    0.089351] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.089356] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.090041] Initializing cgroup subsys io
    [    0.090061] Initializing cgroup subsys memory
    [    0.090096] Initializing cgroup subsys devices
    [    0.090107] Initializing cgroup subsys freezer
    [    0.090118] Initializing cgroup subsys perf_event
    [    0.090125] Initializing cgroup subsys pids
    [    0.090196] CPU: Testing write buffer coherency: ok
    [    0.090562] Setting up static identity map for 0x80008200 - 0x80008260
    [    0.092919] devtmpfs: initialized
    [    0.104133] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [    0.117051] omap_hwmod: debugss: _wait_target_disable failed
    [    0.171849] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [    0.175679] pinctrl core: initialized pinctrl subsystem
    [    0.176969] NET: Registered protocol family 16
    [    0.179118] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [    0.184392] OMAP GPIO hardware version 0.1
    [    0.194486] hw-breakpoint: debug architecture 0x4 unsupported.
    [    0.237223] edma 49000000.edma: TI EDMA DMA engine driver
    [    0.238139] reg-fixed-voltage fixedregulator@2: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_wl12xx_gpio, deferring probe
    [    0.241403] omap_i2c 44e0b000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c0_pins, deferring probe
    [    0.241538] media: Linux media interface: v0.10
    [    0.241604] Linux video capture interface: v2.00
    [    0.241649] pps_core: LinuxPPS API ver. 1 registered
    [    0.241656] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.241682] PTP clock support registered
    [    0.241734] EDAC MC: Ver: 3.0.0
    [    0.242854] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
    [    0.243189] Advanced Linux Sound Architecture Driver Initialized.
    [    0.244015] clocksource: Switched to clocksource timer1
    [    0.254295] NET: Registered protocol family 2
    [    0.255101] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.255145] TCP bind hash table entries: 2048 (order: 3, 49152 bytes)
    [    0.255228] TCP: Hash tables configured (established 2048 bind 2048)
    [    0.255308] UDP hash table entries: 256 (order: 2, 16384 bytes)
    [    0.255341] UDP-Lite hash table entries: 256 (order: 2, 16384 bytes)
    [    0.255523] NET: Registered protocol family 1
    [    0.256005] RPC: Registered named UNIX socket transport module.
    [    0.256022] RPC: Registered udp transport module.
    [    0.256027] RPC: Registered tcp transport module.
    [    0.256033] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.256949] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
    [    0.258884] futex hash table entries: 256 (order: 1, 8192 bytes)
    [    0.266516] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [    0.267227] NFS: Registering the id_resolver key type
    [    0.267296] Key type id_resolver registered
    [    0.267305] Key type id_legacy registered
    [    0.267367] ntfs: driver 2.1.32 [Flags: R/O].
    [    0.270826] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
    [    0.270856] io scheduler noop registered
    [    0.270868] io scheduler deadline registered
    [    0.271127] io scheduler cfq registered (default)
    [    0.272294] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
    [    0.275485] backlight supply power not found, using dummy regulator
    [    0.331998] Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled
    [    0.335515] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 158, base_baud = 3000000) is a 8250
    [    0.945300] console [ttyS0] enabled
    [    0.949741] [drm] Initialized drm 1.1.0 20060810
    [    0.955477] panel panel: found backlight
    [    0.960887] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
    [    0.967554] [drm] No driver support for vblank timestamp query.
    [    0.998173] Console: switching to colour frame buffer device 60x40
    [    1.008287] tilcdc 4830e000.lcdc: fb0:  frame buffer device
    [    1.034258] [drm] Initialized tilcdc 1.0.0 20121205 on minor 0
    [    1.046888] loop: module loaded
    [    1.053829] libphy: Fixed MDIO Bus: probed
    [    1.114043] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
    [    1.120185] davinci_mdio 4a101000.mdio: detected phy mask fffffffc
    [    1.128010] libphy: 4a101000.mdio: probed
    [    1.132043] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver Atheros 8031 ethernet
    [    1.141309] davinci_mdio 4a101000.mdio: phy[1]: device 4a101000.mdio:01, driver Atheros 8031 ethernet
    [    1.151347] cpsw 4a100000.ethernet: Detected MACID = c4:ed:ba:8b:5a:fa
    [    1.158044] cpsw 4a100000.ethernet: cpts: overflow check period 850
    [    1.165140] cpsw 4a100000.ethernet: cpsw: Detected MACID = c4:ed:ba:8b:5a:fc
    [    1.173676] mousedev: PS/2 mouse device common for all mice
    [    1.180067] i2c /dev entries driver
    [    1.189723] NET: Registered protocol family 10
    [    1.195786] sit: IPv6 over IPv4 tunneling driver
    [    1.201203] NET: Registered protocol family 17
    [    1.205863] Key type dns_resolver registered
    [    1.210395] omap_voltage_late_init: Voltage driver support not added
    [    1.221422] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 300 kHz
    [    1.344592] hctosys: unable to open rtc device (rtc0)
    [    1.372602] net eth0: initializing cpsw version 1.12 (0)
    [    1.378096] net eth0: initialized cpsw ale version 1.4
    [    1.383258] net eth0: ALE Table size 1024
    [    1.464818] net eth0: phy found : id is : 0x4dd074
    [    1.475609] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    [    1.481595] net eth1: initializing cpsw version 1.12 (0)
    [    1.564785] net eth1: phy found : id is : 0x4dd074
    [    1.573636] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
    [    4.464999] cpsw 4a100000.ethernet eth0: Link is Up - 100Mbps/Half - flow control off
    [    4.474067] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
    [    4.494054] Sending DHCP requests ., OK
    [    4.554041] IP-Config: Got DHCP answer from 192.168.2.14, my address is 192.168.2.198
    [    4.594892] IP-Config: Complete:
    [    4.598152]      device=eth0, hwaddr=c4:ed:ba:8b:5a:fa, ipaddr=192.168.2.198, mask=255.255.255.0, gw=192.168.2.1
    [    4.608372]      host=192.168.2.198, domain=, nis-domain=(none)
    [    4.614321]      bootserver=0.0.0.0, rootserver=192.168.2.204, rootpath=
    [    4.620878]      nameserver0=192.168.2.14
    [    4.625220] vbat: disabling
    [    4.628025] lis3_reg: disabling
    [    4.631177] vwl1271: disabling
    [    4.634362] ALSA device list:
    [    4.637344]   No soundcards found.
    [    4.657886] VFS: Mounted root (nfs filesystem) on device 0:15.
    [    4.665277] devtmpfs: mounted
    [    4.668623] Freeing unused kernel memory: 260K (c0887000 - c08c8000)
    [    5.117759] systemd[1]: System time before build time, advancing clock.
    [    5.235832] random: systemd: uninitialized urandom read (16 bytes read, 4 bits of entropy available)
    [    5.260920] random: systemd: uninitialized urandom read (16 bytes read, 4 bits of entropy available)
    [    5.279348] systemd[1]: systemd 229 running in system mode. (+PAM -AUDIT -SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP -GCRYPT -GNUTLS +ACL +XZ -LZ4 -SECCOMP +BLKID -ELFUTILS +KMOD -ID
    N)
    [    5.298452] systemd[1]: Detected architecture arm.
    
    Welcome to Arago 2016.12!
    
    [    5.326578] systemd[1]: Set hostname to <am335x-evm>.
    [    5.513388] random: systemd-sysv-ge: uninitialized urandom read (16 bytes read, 5 bits of entropy available)
    [    5.577170] random: systemd-sysv-ge: uninitialized urandom read (16 bytes read, 5 bits of entropy available)
    [    5.638911] random: systemd-sysv-ge: uninitialized urandom read (16 bytes read, 5 bits of entropy available)
    [    5.791615] random: systemd: uninitialized urandom read (16 bytes read, 5 bits of entropy available)
    [    5.801403] random: systemd: uninitialized urandom read (16 bytes read, 5 bits of entropy available)
    [    5.832438] random: systemd: uninitialized urandom read (16 bytes read, 5 bits of entropy available)
    [    5.842656] random: systemd: uninitialized urandom read (16 bytes read, 5 bits of entropy available)
    [    5.911865] random: systemd: uninitialized urandom read (16 bytes read, 5 bits of entropy available)
    [    5.982356] systemd[1]: [/lib/systemd/system/gadget-init.service:15] Unknown lvalue 'ExecStopPre' in section 'Service'
    [    6.420975] systemd[1]: sysinit.target: Found ordering cycle on sysinit.target/start
    [    6.428855] systemd[1]: sysinit.target: Found dependency on alignment.service/start
    [    6.436586] systemd[1]: sysinit.target: Found dependency on sysinit.target/start
    [    6.444075] systemd[1]: sysinit.target: Breaking ordering cycle by deleting job alignment.service/start
    [    6.453531] systemd[1]: alignment.service: Job alignment.service/start deleted to break ordering cycle starting with sysinit.target/start
    [ SKIP ] Ordering cycle found, skipping alignment.service
    [    6.503006] systemd[1]: Listening on udev Kernel Socket.
    [  OK  ] Listening on udev Kernel Socket.
    [    6.537783] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
    [  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
    [    6.564739] systemd[1]: Reached target Remote File Systems.
    [  OK  ] Reached target Remote File Systems.
    [    6.596626] systemd[1]: Listening on Network Service Netlink Socket.
    [  OK  ] Listening on Network Service Netlink Socket.
    [    6.673675] systemd[1]: Listening on udev Control Socket.
    [  OK  ] Listening on udev Control Socket.
    [    6.707406] systemd[1]: Created slice System Slice.
    [  OK  ] Created slice System Slice.
    [    6.736110] systemd[1]: Created slice system-getty.slice.
    [  OK  ] Created slice system-getty.slice.
    [    6.766045] systemd[1]: Created slice system-serial\x2dgetty.slice.
    [  OK  ] Created slice system-serial\x2dgetty.slice.
    [    6.795010] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
    [  OK  ] Started Dispatch Password Requests to Console Directory Watch.
    [    6.825885] systemd[1]: Created slice User and Session Slice.
    [  OK  ] Created slice User and Session Slice.
    [    6.854582] systemd[1]: Reached target Slices.
    [  OK  ] Reached target Slices.
    [    6.874609] systemd[1]: Reached target Swap.
    [  OK  ] Reached target Swap.
    [    6.895722] systemd[1]: Listening on Journal Socket (/dev/log).
    [  OK  ] Listening on Journal Socket (/dev/log).
    [    6.924994] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
    [  OK  ] Started Forward Password Requests to Wall Directory Watch.
    [    6.954544] systemd[1]: Reached target Paths.
    [  OK  ] Reached target Paths.
    [    6.974958] systemd[1]: Listening on Journal Socket.
    [  OK  ] Listening on Journal Socket.
    [    7.006252] systemd[1]: Starting Load Kernel Modules...
             Starting Load Kernel Modules...
    [    7.039221] systemd[1]: Mounting POSIX Message Queue File System...
             Mounting POSIX Message Queue File System...
    [    7.101006] systemd[1]: Starting Create list of required static device nodes for the current kernel...
    
        t kernel...ng Create list of required st... nodes for the current kernel...
    [    7.222306] systemd[1]: Mounting Temporary Directory...
             Mounting Temporary Directory...
    [    7.287904] systemd[1]: Starting Journal Service...
             Starting Journal Service...
    [    7.329530] systemd[1]: Starting Setup Virtual Console...
             Starting Setup Virtual Console...
    [    7.398826] systemd[1]: Mounting Debug File System...
             Mounting Debug File System...
    [    7.441431] systemd[1]: Starting Remount Root and Kernel File Systems...
             Starting Remount Root and Kernel File Systems...
    [    7.625514] systemd[1]: Mounted POSIX Message Queue File System.
    [  OK  ] Mounted POSIX Message Queue File System.
    [    7.705113] systemd[1]: Mounted Debug File System.
    [  OK  ] Mounted Debug File System.
    [    7.744966] systemd[1]: Mounted Temporary Directory.
    [  OK  ] Mounted Temporary Directory.
    [    7.787925] systemd[1]: Started Journal Service.
    [  OK  ] Started Journal Service.
    [  OK  ] Started Create list of required sta...ce nodes for the current kernel.
    [  OK  ] Started Setup Virtual Console.
    [  OK  ] Started Remount Root and Kernel File Systems.
             Starting udev Coldplug all Devices...
             Starting Create Static Device Nodes in /dev...
             Starting Apply Kernel Variables...
             Starting Flush Journal to Persistent Storage...
    [  OK  ] Started Apply Kernel Variables.
    [  OK  ] Started Create Static Device Nodes in /dev.
    [    9.414969] systemd-journald[123]: Received request to flush runtime journal from PID 1
    [  OK  ] Started Flush Journal to Persistent Storage.
    [  OK  ] Reached target Local File Systems (Pre).
             Mounting /media/ram...e...
             Starting udev Kernel Device Manager...
    [  OK  ] Mounted /var/volatile.
    [  OK  ] Mounted /media/ram.
    [  OK  ] Started udev Kernel Device Manager.
    [  OK  ] Started udev Coldplug all Devices.
             Starting Load/Save Random Seed...
    [  OK  ] Reached target Local File Systems.
             Starting Create Volatile Files and Directories...
    [  OK  ] Started Load/Save Random Seed.
    [   11.640247] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [   11.693737] 47401b00.usb-phy supply vcc not found, using dummy regulator
    [   11.707599] TI-am335x-tsc TI-am335x-tsc: ti,charge-delay not specified
    [   11.720569] input: ti-tsc as /devices/platform/ocp/44e0d000.tscadc/TI-am335x-tsc/input/input0
    [   11.898349] spidev spi1.0: buggy DT: spidev listed directly in DT
    [   11.960764] ------------[ cut here ]------------
    [   12.008871] WARNING: CPU: 0 PID: 212 at /home/gtbldadm/processor-sdk-linux-rt-krogoth-build/build-CORTEX_1/arago-tmp-external-linaro-toolchain/work-shared/am335x-evm/kernel-source/drivers/spi/spidev.c
    :719 spidev_probe+0x1e0/0x1fc [spidev]()
    [   12.015858] omap_rtc 44e3e000.rtc: already running
    [   12.016332] omap_rtc 44e3e000.rtc: rtc core: registered 44e3e000.rtc as rtc0
    [   12.299041] Modules linked in: spidev(+) ti_am335x_tsc rtc_omap musb_am335x omap_wdt ti_am335x_tscadc sch_fq_codel cryptodev(O)
    [   12.440305] CPU: 0 PID: 212 Comm: systemd-udevd Tainted: G           O    4.4.41-rt50-g968d071ce9 #29
    [  OK  ] Found device /dev/ttyS0.
    [   12.470276] omap_rng 48310000.rng: OMAP Random Number Generator ver. 20
    [  OK  ] Started Create Volatile Files and Directories.[   12.556026] Hardware name: Generic AM33XX (Flattened Device Tree)
    
    [   12.606834] Backtrace: 
    [   12.609360] [<c00134b4>] (dump_backtrace) from [<c00136b0>] (show_stack+0x18/0x1c)
    [   12.667275]  r7:bf02e328 r6:000002cf r5:00000009 r4:00000000
    [   12.693789] [<c0013698>] (show_stack) from [<c0296ad0>] (dump_stack+0x24/0x28)
    [   12.752452] [<c0296aac>] (dump_stack) from [<c003174c>] (warn_slowpath_common+0x88/0xb4)
    [   12.819280] [<c00316c4>] (warn_slowpath_common) from [<c003181c>] (warn_slowpath_null+0x24/0x2c)
    [   12.881499]  r8:bf02f4c0 r7:00000000[   12.890310] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
    
    [   12.969760]  r6:cf445000 r5:00000000 r4:cf445000
    [   13.030697] [<c00317f8>] (warn_slowpath_null) from [<bf02e328>] (spidev_probe+0x1e0/0x1fc [spidev])
    [   13.096884] [<bf02e148>] (spidev_probe [spidev]) from [<c04185f4>] (spi_drv_probe+0x84/0xb0)
    [   13.150212]  r8:bf02f4c0 r7:00000000 r6:bf02f4b0 r5:00000000 r4:cf445000
    [   13.177112] [<c0418570>] (spi_drv_probe) from [<c03cab84>] (driver_probe_device+0x204/0x300)
             Starting Network Time Synchronization...[   13.237146]  r7:00000000
     r6:c0954064 r5:c0954054 r4:cf445000
    [   13.258770] [<c03ca980>] (driver_probe_device) from [<c03cad14>] (__driver_attach+0x94/0x98)
    [   13.324545]  r9:3091499c r8:cf6eb688 r7:00000000 r6:cf445034 r5:bf02f4c0 r4:cf445000
    [   13.368302] [<c03cac80>] (__driver_attach) from [<c03c8df4>] (bus_for_each_dev+0x70/0xa4)
    [   13.368306]  r7:00000000 r6:c03cac80 r5:bf02f4c0 r4:00000000
    [   13.368322] [<c03c8d84>] (bus_for_each_dev) from [<c03ca474>] (driver_attach+0x24/0x28)
    [   13.368324]  r6:c0905324 r5:ca841b80 r4:bf02f4c0
    [   13.368338] [<c03ca450>] (driver_attach) from [<c03ca0bc>] (bus_add_driver+0x1a8/0x220)
    [   13.368348] [<c03c9f14>] (bus_add_driver) from [<c03cb234>] (driver_register+0x80/0x100)
    [   13.368351]  r7:cf6eb780 r6:bf02f4a4 r5:bf02f6c0 r4:bf02f4c0
    [   13.368374] [<c03cb1b4>] (driver_register) from [<c0418530>] (__spi_register_driver+0x60/0x64)
    [   13.368376]  r5:bf02f6c0 r4:c08ccca0
    [   13.368411] [<c04184d0>] (__spi_register_driver) from [<bf031098>] (spidev_init+0x98/0xd0 [spidev])
    [   13.368442] [<bf031000>] (spidev_init [spidev]) from [<c00096d4>] (do_one_initcall+0x98/0x1e4)
    [   13.368444]  r6:c08ccca0 r5:bf031000 r4:c08ccca0
    [   13.368468] [<c000963c>] (do_one_initcall) from [<c00b0f34>] (do_init_module+0x68/0x384)
    [   13.368473]  r10:bf02f500 r9:3091499c r8:cf6eb688 r7:00000001 r6:cf6eb740 r5:00000001
    [   13.368485]  r4:bf02f500
    [   13.368503] [<c00b0ecc>] (do_init_module) from [<c0092318>] (load_module+0x1d3c/0x1f90)
    [   13.368506]  r6:cf6eb680 r5:00000001 r4:cf773f44
    [   13.368520] [<c00905dc>] (load_module) from [<c0092758>] (SyS_finit_module+0x88/0x98)
    [   13.368522]  r10:00000000 r9:cf772000 r8:c000fb84 r7:0000017b r6:b6dbcd90 r5:00000007
    [   13.368534]  r4:00000000
    [   13.368549] [<c00926d0>] (SyS_finit_module) from [<c000f9c0>] (ret_fast_syscall+0x0/0x44)
    [   13.368552]  r6:00000000 r5:7f60c928 r4:00000000
    [   13.368561] ---[ end trace 0000000000000002 ]---
    [   13.389596] spidev spi1.1: buggy DT: spidev listed directly in DT
    [   13.389605] ------------[ cut here ]------------
    [   13.389647] WARNING: CPU: 0 PID: 212 at /home/gtbldadm/processor-sdk-linux-rt-krogoth-build/build-CORTEX_1/arago-tmp-external-linaro-toolchain/work-shared/am335x-evm/kernel-source/drivers/spi/spidev.c
    :719 spidev_probe+0x1e0/0x1fc [spidev]()
    [   13.389687] Modules linked in: sha1_arm pvrsrvkm(O+) pruss(+) remoteproc virtio omap_aes_driver(+) omap_sham(+) virtio_ring omap_rng rng_core spidev(+) ti_am335x_tsc rtc_omap musb_am335x omap_wdt ti_a
    m335x_tscadc sch_fq_codel cryptodev(O)
    [   13.389699] CPU: 0 PID: 212 Comm: systemd-udevd Tainted: G        W  O    4.4.41-rt50-g968d071ce9 #29
    [   13.389702] Hardware name: Generic AM33XX (Flattened Device Tree)
    [   13.389708] Backtrace: 
    [   13.389740] [<c00134b4>] (dump_backtrace) from [<c00136b0>] (show_stack+0x18/0x1c)
    [   13.389749]  r7:bf02e328 r6:000002cf r5:00000009 r4:00000000
    [   13.389760] [<c0013698>] (show_stack) from [<c0296ad0>] (dump_stack+0x24/0x28)
    [   13.389775] [<c0296aac>] (dump_stack) from [<c003174c>] (warn_slowpath_common+0x88/0xb4)
    [   13.389783] [<c00316c4>] (warn_slowpath_common) from [<c003181c>] (warn_slowpath_null+0x24/0x2c)
    [   13.389792]  r8:bf02f4c0 r7:00000000 r6:cf445400 r5:00000000 r4:cf445400
    [   13.389803] [<c00317f8>] (warn_slowpath_null) from [<bf02e328>] (spidev_probe+0x1e0/0x1fc [spidev])
    [   13.389823] [<bf02e148>] (spidev_probe [spidev]) from [<c04185f4>] (spi_drv_probe+0x84/0xb0)
    [   13.389832]  r8:bf02f4c0 r7:00000000 r6:bf02f4b0 r5:00000000 r4:cf445400
    [   13.389853] [<c0418570>] (spi_drv_probe) from [<c03cab84>] (driver_probe_device+0x204/0x300)
    [   13.389861]  r7:00000000 r6:c0954064 r5:c0954054 r4:cf445400
    [   13.389870] [<c03ca980>] (driver_probe_device) from [<c03cad14>] (__driver_attach+0x94/0x98)
    [   13.389879]  r9:3091499c r8:cf6eb688 r7:00000000 r6:cf445434 r5:bf02f4c0 r4:cf445400
    [   13.389890] [<c03cac80>] (__driver_attach) from [<c03c8df4>] (bus_for_each_dev+0x70/0xa4)
    [   13.389897]  r7:00000000 r6:c03cac80 r5:bf02f4c0 r4:00000000
    [   13.389906] [<c03c8d84>] (bus_for_each_dev) from [<c03ca474>] (driver_attach+0x24/0x28)
    [   13.389912]  r6:c0905324 r5:ca841b80 r4:bf02f4c0
    [   13.389921] [<c03ca450>] (driver_attach) from [<c03ca0bc>] (bus_add_driver+0x1a8/0x220)
    [   13.389930] [<c03c9f14>] (bus_add_driver) from [<c03cb234>] (driver_register+0x80/0x100)
    [   13.389938]  r7:cf6eb780 r6:bf02f4a4 r5:bf02f6c0 r4:bf02f4c0
    [   13.389947] [<c03cb1b4>] (driver_register) from [<c0418530>] (__spi_register_driver+0x60/0x64)
    [   13.389952]  r5:bf02f6c0 r4:c08ccca0
    [   13.389964] [<c04184d0>] (__spi_register_driver) from [<bf031098>] (spidev_init+0x98/0xd0 [spidev])
    [   13.389977] [<bf031000>] (spidev_init [spidev]) from [<c00096d4>] (do_one_initcall+0x98/0x1e4)
    [   13.389983]  r6:c08ccca0 r5:bf031000 r4:c08ccca0
    [   13.390001] [<c000963c>] (do_one_initcall) from [<c00b0f34>] (do_init_module+0x68/0x384)
    [   13.390012]  r10:bf02f500 r9:3091499c r8:cf6eb688 r7:00000001 r6:cf6eb740 r5:00000001
    [   13.390015]  r4:bf02f500
    [   13.390033] [<c00b0ecc>] (do_init_module) from [<c0092318>] (load_module+0x1d3c/0x1f90)
    [   13.390039]  r6:cf6eb680 r5:00000001 r4:cf773f44
    [   13.390048] [<c00905dc>] (load_module) from [<c0092758>] (SyS_finit_module+0x88/0x98)
    [   13.390058]  r10:00000000 r9:cf772000 r8:c000fb84 r7:0000017b r6:b6dbcd90 r5:00000007
    [   13.390061]  r4:00000000
    [   13.390072] [<c00926d0>] (SyS_finit_module) from [<c000f9c0>] (ret_fast_syscall+0x0/0x44)
    [   13.390078]  r6:00000000 r5:7f60c928 r4:00000000
    [   13.390081] ---[ end trace 0000000000000003 ]---
    [   13.627569]  remoteproc0: wkup_m3 is available
    [   13.627576]  remoteproc0: Note: remoteproc is still under development and considered experimental.
    [   13.627580]  remoteproc0: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
    [   14.401350]  remoteproc0: powering up wkup_m3
    [   14.426911]  remoteproc0: Booting fw image am335x-pm-firmware.elf, size 217284
    [   14.427201]  remoteproc0: remote processor wkup_m3 is now up
    [   14.427272] wkup_m3_ipc 44e11324.wkup_m3_ipc: CM3 Firmware Version = 0x192
    [   14.643592] asoc-simple-card sound: parse error -2
    [   14.643624] asoc-simple-card: probe of sound failed with error -2
    [   14.866243] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
    [   15.190031] ti-pruss 4a300000.pruss: creating PRU cores and other child platform devices
    [   15.191259] irq: no irq domain found for /ocp/pruss@4a300000/intc@4a320000 !
    [   15.191748] irq: no irq domain found for /ocp/pruss@4a300000/intc@4a320000 !
    [   15.208466] [drm] Initialized pvr 1.14.3699939 20110701 on minor 1
    [   15.260194] PM: bootloader does not support rtc-only!
    [   15.319141]  remoteproc1: 4a334000.pru0 is available
    [   15.319147]  remoteproc1: Note: remoteproc is still under development and considered experimental.
    [   15.319152]  remoteproc1: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
    [   15.445161]  remoteproc1: registered virtio0 (type 7)
    [   15.445248] pru-rproc 4a334000.pru0: PRU rproc node /ocp/pruss@4a300000/pru0@4a334000 probed successfully
    [   15.445726]  remoteproc2: 4a338000.pru1 is available
    [   15.445731]  remoteproc2: Note: remoteproc is still under development and considered experimental.
    [   15.445735]  remoteproc2: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
    [   15.506548]  remoteproc2: registered virtio1 (type 7)
    [   15.506649] pru-rproc 4a338000.pru1: PRU rproc node /ocp/pruss@4a300000/pru1@4a338000 probed successfully
             Starting Update UTMP about System Boot/Shutdown...
    [  OK  ] Created slice system-systemd\x2dbacklight.slice.
             Starting Load/Save Screen Backlight...htness of backlight:backlight...
    [  OK  ] Started Network Time Synchronization.
    [  OK  ] Started Load/Save Screen Backlight Brightness of backlight:backlight.
    [  OK  ] Found device /dev/ttyS3.
    [   18.583223] usbcore: registered new interface driver usbfs
    [   18.652249] usbcore: registered new interface driver hub
    [   18.764810] usbcore: registered new device driver usb
    [   18.958880] musb-hdrc musb-hdrc.0.auto: MUSB HDRC host driver
    [   19.014892] musb-hdrc musb-hdrc.0.auto: new USB bus registered, assigned bus number 1
    [   19.028559]  remoteproc1: powering up 4a334000.pru0
    [   19.031852]  remoteproc1: Booting fw image am335x-pru0-fw, size 75776
    [   19.032028] ti-pruss 4a300000.pruss: configured system_events = 0x0000000000030000 intr_channels = 0x00000005 host_intr = 0x00000005
    [   19.034372]  remoteproc1: remote processor 4a334000.pru0 is now up
    [   19.034665] virtio_rpmsg_bus virtio0: creating channel rpmsg-pru addr 0x1e
    [   19.035451] virtio_rpmsg_bus virtio0: rpmsg host is online
    [   19.035846]  remoteproc2: powering up 4a338000.pru1
    [   19.037561]  remoteproc2: Booting fw image am335x-pru1-fw, size 75776
    [   19.037736] ti-pruss 4a300000.pruss: configured system_events = 0x00000000000c0000 intr_channels = 0x0000000a host_intr = 0x0000000a
    [   19.039924]  remoteproc2: remote processor 4a338000.pru1 is now up
    [   19.040209] virtio_rpmsg_bus virtio1: creating channel rpmsg-pru addr 0x1f
    [   19.040983] virtio_rpmsg_bus virtio1: rpmsg host is online
    [   19.145751] rpmsg_pru rpmsg0: new rpmsg_pru device: /dev/rpmsg_pru30
    [   19.146951] rpmsg_pru rpmsg1: new rpmsg_pru device: /dev/rpmsg_pru31
    [   19.262883] hub 1-0:1.0: USB hub found
    [  OK  ] Started Update UTMP about System Boot/Shutdown.[   19.271293] hub 1-0:1.0: 1 port detected
    
    [   19.764299] usb 1-1: new high-speed USB device number 2 using musb-hdrc
    [   20.166737] SCSI subsystem initialized
    [   20.226992] usb-storage 1-1:1.0: USB Mass Storage device detected
    [   20.237895] scsi host0: usb-storage 1-1:1.0
    [   20.251286] usbcore: registered new interface driver usb-storage
    [   21.246400] scsi 0:0:0:0: Direct-Access     SanDisk  Cruzer Blade     1.26 PQ: 0 ANSI: 5
    [   21.299725] sd 0:0:0:0: [sda] 31266816 512-byte logical blocks: (16.0 GB/14.9 GiB)
    [   21.301039] sd 0:0:0:0: [sda] Write Protect is off
    [   21.301771] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
    [   21.312579]  sda: sda1
    [   21.393828] sd 0:0:0:0: [sda] Attached SCSI removable disk
    [   22.619966] random: nonblocking pool is initialized
    [   22.750123] FAT-fs (sda1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
             Starting Synchronize System and HW clocks...
    [  OK  ] Reached target System Time Synchronized.
    [  OK  ] Started Synchronize System and HW clocks.
    [  OK  ] Reached target System Initialization.
    [  OK  ] Listening on RPCbind Server Activation Socket.
    [  OK  ] Started Daily Cleanup of Temporary Directories.
    [  OK  ] Reached target Timers.
    [  OK  ] Listening on D-Bus System Message Bus Socket.
    [  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.
             Starting Telephony service...
             Starting uim-sysfs.service...
             Starting Print notice about GPLv3 packages...
    [  OK  ] Started strongSwan IPsec IKEv1/IKEv2 daemon using ipsec.conf.
             Starting Login Service...
             Starting Avahi mDNS/DNS-SD Stack...
             Starting Permit User Sessions...
             Starting Network Service...
    [  OK  ] Started Permit User Sessions.
    [   26.742490] bluetooth: Unknown symbol rfkill_unregister (err 0)
    [   26.752789] bluetooth: Unknown symbol rfkill_blocked (err 0)
    [   26.789076] bluetooth: Unknown symbol rfkill_destroy (err 0)
    [   26.830010] bluetooth: Unknown symbol rfkill_alloc (err 0)
    [   26.878054] bluetooth: Unknown symbol rfkill_register (err 0)
    [  OK  ] Started Network Service.
    [   27.846585] NET: Registered protocol family 15
    [  OK  ] Started Telephony service.
    [  OK  ] Started Avahi mDNS/DNS-SD Stack.
    [  OK  ] Started Login Service.
    [  OK  ] Reached target Network.
             Starting Lightning Fast Webserver With Light System Requirements...
             Starting Network Name Resolution...
    [  OK  ] Started Serial Getty on ttyS3.
    [  OK  ] Started Getty on tty1.
    [  OK  ] Started Serial Getty on ttyS0.
    [  OK  ] Started Lightning Fast Webserver With Light System Requirements.
    [  OK  ] Started Network Name Resolution.
    [   29.749530] Initializing XFRM netlink socket
    [  OK  ] Started uim-sysfs.service.
             Starting rc.pvr.service...
    [   33.198681] PVR_K: UM DDK-(3699939) and KM DDK-(3699939) match. [ OK ]
    
     _____                    _____           _         _   
    |  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_ 
    |     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|
    |__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|  
                  |___|                    |___|            
    
    Arago Project http://arago-project.org am335x-evm ttyS0
    
    Arago 2016.12 am335x-evm ttyS0
    
    am335x-evm login:
    

  • Hello,

    You have wireless enabled. You need to enable CONFIG_RFKILL

    Cheers,
    --Prabhakar Lad
  • I un-commented the CONFIG_RFKILL=Y

    and now the bluetooth message says it is initialized.

    [ 26.619699] Bluetooth: Core ver 2.21
    [ 26.651935] NET: Registered protocol family 31
    [ 26.678313] Bluetooth: HCI device and connection manager initialized
    [ 26.715165] Bluetooth: HCI socket layer initialized
    [ 26.739834] Bluetooth: L2CAP socket layer initialized
    [ 26.751863] Bluetooth: SCO socket layer initialized

    kind regards,

    Ugnius

  • I suggest you ask this question on the WiLink forum: e2e.ti.com/.../307 Our experts there can help you better on issues regarding the Bluetooth stack.
  • I added:

    systemctl disable systemd-networkd-wait-online

    and now the Bluetooth messages on the boot are gone.