Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot enable magnetometer on BeagleBone Blue via kernel driver #209

Open
jadonk opened this issue Jul 11, 2019 · 7 comments
Open

Cannot enable magnetometer on BeagleBone Blue via kernel driver #209

jadonk opened this issue Jul 11, 2019 · 7 comments
Assignees
Labels

Comments

@jadonk
Copy link
Sponsor Member

jadonk commented Jul 11, 2019

Please set CONFIG_AK8975=m

Tested with:

debian@beaglebone:/var/lib/cloud9$ dmesg | grep ak
[    0.412403] hw-breakpoint: debug architecture 0x4 unsupported.                                                       
[   39.936608] ak8975 3-000c: mounting matrix not found: using identity...                                              
[   39.936658] ak8975 3-000c: 3-000c supply vdd not found, using dummy regulator                                        
[   39.936818] ak8975 3-000c: Linked as a consumer to regulator.0                                                       
[   39.936842] ak8975 3-000c: 3-000c supply vid not found, using dummy regulator                                        
debian@beaglebone:/var/lib/cloud9$ cat /sys/bus/iio/devices/iio\:device2/in_magn_x_raw 
-24
debian@beaglebone:/var/lib/cloud9$ 
@RobertCNelson
Copy link
Member

@jadonk but it is enabled.. maybe something else broken with the in -kernel one?

https://github.com/beagleboard/linux/blob/4.19/arch/arm/configs/bb.org_defconfig#L2163

Regards,

@RobertCNelson
Copy link
Member

For reference, here's what we have on teh blue for mainline (it got removed for roboticcape library..)

	mpu9250@68 {
			compatible = "invensense,mpu9250";
			reg = <0x68>;
			interrupt-parent = <&gpio3>;
			interrupts = <21 IRQ_TYPE_EDGE_RISING>;
			i2c-gate {
				#address-cells = <1>;
				#size-cells = <0>;
				ax8975@c {
					compatible = "ak,ak8975";
					reg = <0x0c>;
				};
			};
		};
	
		pressure@76 {
			compatible = "bosch,bmp280";
			reg = <0x76>;
		};

@jadonk
Copy link
Sponsor Member Author

jadonk commented Jul 11, 2019

compatible = "ak,ak8975";

no longer matches. remove "ak" or add the full company name.

@jadonk
Copy link
Sponsor Member Author

jadonk commented Jul 11, 2019

I'm so confused!

I had these overlays working yesterday before I updated my kernel.

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.19.50-ti-r22 (voodoo@x2-am57xx-beagle-x15-2gb) (gcc version 8.3.0 (Debian 8.3.0-6)) #1buster SMP PREEMPT Mon Jul 8 22:23:19 UTC 2019
[    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 BeagleBone Blue
[    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 0x9c800000
[    0.000000] On node 0 totalpages: 130560
[    0.000000]   Normal zone: 1148 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 130560 pages, LIFO batch:31
[    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+0xa0/0x508 with crng_init=0
[    0.000000] percpu: Embedded 18 pages/cpu s43084 r8192 d22452 u73728
[    0.000000] pcpu-alloc: s43084 r8192 d22452 u73728 alloc=18*4096
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 129412
[    0.000000] Kernel command line: console=ttyO0,115200n8 bone_capemgr.uboot_capemgr_enabled=1 root=/dev/mmcblk1p1 ro rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 rng_core.default_quality=100 cape_universal=enable quiet
[    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: 437388K/522240K available (13312K kernel code, 1152K rwdata, 4432K rodata, 1024K init, 349K bss, 35700K reserved, 49152K cma-reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
                   vector  : 0xffff0000 - 0xffff1000   (   4 kB)
                   fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
                   vmalloc : 0xe0000000 - 0xff800000   ( 504 MB)
                   lowmem  : 0xc0000000 - 0xdfe00000   ( 510 MB)
                   pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
                   modules : 0xbf000000 - 0xbfe00000   (  14 MB)
                     .text : 0x(ptrval) - 0x(ptrval)   (14304 kB)
                     .init : 0x(ptrval) - 0x(ptrval)   (1024 kB)
                     .data : 0x(ptrval) - 0x(ptrval)   (1153 kB)
                      .bss : 0x(ptrval) - 0x(ptrval)   ( 350 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] ftrace: allocating 42466 entries in 125 pages
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu: 	RCU restricting CPUs from NR_CPUS=2 to nr_cpu_ids=1.
[    0.000000] 	Tasks RCU enabled.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    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.000020] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000039] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000051] OMAP clocksource: timer1 at 24000000 Hz
[    0.001600] timer_probe: no matching timers found
[    0.001944] Console: colour dummy device 80x30
[    0.001975] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
[    0.001979] This ensures that you still see kernel messages. Please
[    0.001984] update your kernel commandline.
[    0.002044] Calibrating delay loop... 995.32 BogoMIPS (lpj=1990656)
[    0.021473] pid_max: default: 32768 minimum: 301
[    0.021760] Security Framework initialized
[    0.021773] Yama: becoming mindful.
[    0.021922] AppArmor: AppArmor initialized
[    0.022031] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.022043] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.023148] CPU: Testing write buffer coherency: ok
[    0.023212] CPU0: Spectre v2: using BPIALL workaround
[    0.023702] CPU0: thread -1, cpu 0, socket -1, mpidr 0
[    0.045566] Setting up static identity map for 0x80100000 - 0x80100060
[    0.053477] rcu: Hierarchical SRCU implementation.
[    0.064749] EFI services will not be available.
[    0.069486] smp: Bringing up secondary CPUs ...
[    0.069500] smp: Brought up 1 node, 1 CPU
[    0.069511] SMP: Total of 1 processors activated (995.32 BogoMIPS).
[    0.069518] CPU: All CPU(s) started in SVC mode.
[    0.071251] devtmpfs: initialized
[    0.097929] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[    0.098583] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.098607] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.102572] xor: measuring software checksum speed
[    0.141459]    arm4regs  :  1217.000 MB/sec
[    0.181449]    8regs     :  1091.000 MB/sec
[    0.221449]    32regs    :  1088.000 MB/sec
[    0.261447]    neon      :  1673.000 MB/sec
[    0.261454] xor: using function: neon (1673.000 MB/sec)
[    0.261472] pinctrl core: initialized pinctrl subsystem
[    0.262843] NET: Registered protocol family 16
[    0.268989] DMA: preallocated 1024 KiB pool for atomic coherent allocations
[    0.344510] l4_wkup_cm:clk:0010:0: failed to disable
[    0.384698] audit: initializing netlink subsys (disabled)
[    0.386110] cpuidle: using governor menu
[    0.389573] audit: type=2000 audit(0.380:1): state=initialized audit_enabled=0 res=1
[    0.394377] OMAP GPIO hardware version 0.1
[    0.397343] GPIO line 106 (LS_BUF_EN) hogged as output/high
[    0.413618] No ATAGs?
[    0.413638] hw-breakpoint: debug architecture 0x4 unsupported.
[    0.415044] omap4_sram_init:Unable to allocate sram needed to handle errata I688
[    0.415056] omap4_sram_init:Unable to get sram pool needed to handle errata I688
[    0.441629] raid6: using algorithm neonx8 gen() 0 MB/s
[    0.441642] raid6: .... xor() 0 MB/s, rmw enabled
[    0.441649] raid6: using neon recovery algorithm
[    0.449531] edma 49000000.edma: TI EDMA DMA engine driver
[    0.455432] SCSI subsystem initialized
[    0.457619] libata version 3.00 loaded.
[    0.457932] usbcore: registered new interface driver usbfs
[    0.457995] usbcore: registered new interface driver hub
[    0.458124] usbcore: registered new device driver usb
[    0.459256] media: Linux media interface: v0.10
[    0.459302] videodev: Linux video capture interface: v2.00
[    0.459434] pps_core: LinuxPPS API ver. 1 registered
[    0.459440] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.459460] PTP clock support registered
[    0.460099] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
[    0.461856] Advanced Linux Sound Architecture Driver Initialized.
[    0.462679] NetLabel: Initializing
[    0.462691] NetLabel:  domain hash size = 128
[    0.462695] NetLabel:  protocols = UNLABELED CIPSOv4 CALIPSO
[    0.462799] NetLabel:  unlabeled traffic allowed by default
[    0.463930] clocksource: Switched to clocksource timer1
[    0.627723] VFS: Disk quotas dquot_6.6.0
[    0.627841] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.628844] AppArmor: AppArmor Filesystem Enabled
[    0.641546] NET: Registered protocol family 2
[    0.642564] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
[    0.642599] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.642642] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[    0.642699] TCP: Hash tables configured (established 4096 bind 4096)
[    0.642830] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.642853] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.643209] NET: Registered protocol family 1
[    0.656498] RPC: Registered named UNIX socket transport module.
[    0.656509] RPC: Registered udp transport module.
[    0.656514] RPC: Registered tcp transport module.
[    0.656519] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.657256] Unpacking initramfs...
[    1.015993] random: fast init done
[    1.090780] Freeing initrd memory: 7584K
[    1.091692] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
[    1.094715] Initialise system trusted keyrings
[    1.095136] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[    1.102543] zbud: loaded
[    1.110074] NFS: Registering the id_resolver key type
[    1.110117] Key type id_resolver registered
[    1.110124] Key type id_legacy registered
[    1.110143] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.110507] fuse init (API version 7.27)
[    1.121030] Key type asymmetric registered
[    1.121044] Asymmetric key parser 'x509' registered
[    1.121142] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 244)
[    1.125507] io scheduler noop registered
[    1.125518] io scheduler deadline registered
[    1.125839] io scheduler cfq registered (default)
[    1.125849] io scheduler mq-deadline registered
[    1.129343] pinctrl-single 44e10800.pinmux: 142 pins, size 568
[    1.140524] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
[    1.147812] Serial: 8250/16550 driver, 6 ports, IRQ sharing disabled
[    1.151431] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 30, base_baud = 3000000) is a 8250
[    1.168363] console [ttyS0] enabled
[    1.169501] 48022000.serial: ttyS1 at MMIO 0x48022000 (irq = 31, base_baud = 3000000) is a 8250
[    1.170431] 48024000.serial: ttyS2 at MMIO 0x48024000 (irq = 32, base_baud = 3000000) is a 8250
[    1.171403] 481a6000.serial: ttyS3 at MMIO 0x481a6000 (irq = 33, base_baud = 3000000) is a 8250
[    1.172503] 481a8000.serial: ttyS4 at MMIO 0x481a8000 (irq = 34, base_baud = 3000000) is a 8250
[    1.173530] 481aa000.serial: ttyS5 at MMIO 0x481aa000 (irq = 35, base_baud = 3000000) is a 8250
[    1.177142] omap_rng 48310000.rng: Random Number Generator ver. 20
[    1.180493] random: crng init done
[    1.186905] eqep 48300180.eqep: ver. 1.0
[    1.187129] eqep 48300180.eqep: count_mode:0
[    1.187141] eqep 48300180.eqep: invert_qa:1
[    1.187149] eqep 48300180.eqep: invert_qb:1
[    1.187157] eqep 48300180.eqep: invert_qi:0
[    1.187165] eqep 48300180.eqep: invert_qs:0
[    1.187173] eqep 48300180.eqep: swap_inputs:0
[    1.187182] eqep 48300180.eqep: QDECCTL:0x0180
[    1.187190] eqep 48300180.eqep: QPOSINIT:0x00000000
[    1.187197] eqep 48300180.eqep: QPOSMAX:0xffffffff
[    1.187204] eqep 48300180.eqep: QPOSCNT:0x00000000
[    1.187212] eqep 48300180.eqep: omit_interrupt:0
[    1.187219] eqep 48300180.eqep: QEINT:0x0800
[    1.187226] eqep 48300180.eqep: QUPRD:0x05f5e100
[    1.187233] eqep 48300180.eqep: QEPCTL:0x009e write
[    1.187240] eqep 48300180.eqep: QEPCTL:0x009e read
[    1.187270] eqep 48300180.eqep: irq:62, clk_rate:100000000
[    1.187629] eqep 48302180.eqep: ver. 1.0
[    1.187764] eqep 48302180.eqep: count_mode:0
[    1.187772] eqep 48302180.eqep: invert_qa:1
[    1.187780] eqep 48302180.eqep: invert_qb:1
[    1.187788] eqep 48302180.eqep: invert_qi:0
[    1.187796] eqep 48302180.eqep: invert_qs:0
[    1.187804] eqep 48302180.eqep: swap_inputs:0
[    1.187812] eqep 48302180.eqep: QDECCTL:0x0180
[    1.187820] eqep 48302180.eqep: QPOSINIT:0x00000000
[    1.187826] eqep 48302180.eqep: QPOSMAX:0xffffffff
[    1.187833] eqep 48302180.eqep: QPOSCNT:0x00000000
[    1.187841] eqep 48302180.eqep: omit_interrupt:0
[    1.187848] eqep 48302180.eqep: QEINT:0x0800
[    1.187855] eqep 48302180.eqep: QUPRD:0x05f5e100
[    1.187861] eqep 48302180.eqep: QEPCTL:0x009e write
[    1.187868] eqep 48302180.eqep: QEPCTL:0x009e read
[    1.187890] eqep 48302180.eqep: irq:64, clk_rate:100000000
[    1.188302] eqep 48304180.eqep: ver. 1.0
[    1.188453] eqep 48304180.eqep: count_mode:0
[    1.188462] eqep 48304180.eqep: invert_qa:1
[    1.188470] eqep 48304180.eqep: invert_qb:1
[    1.188478] eqep 48304180.eqep: invert_qi:0
[    1.188486] eqep 48304180.eqep: invert_qs:0
[    1.188493] eqep 48304180.eqep: swap_inputs:0
[    1.188501] eqep 48304180.eqep: QDECCTL:0x0180
[    1.188508] eqep 48304180.eqep: QPOSINIT:0x00000000
[    1.188515] eqep 48304180.eqep: QPOSMAX:0xffffffff
[    1.188522] eqep 48304180.eqep: QPOSCNT:0x00000000
[    1.188530] eqep 48304180.eqep: omit_interrupt:0
[    1.188537] eqep 48304180.eqep: QEINT:0x0800
[    1.188544] eqep 48304180.eqep: QUPRD:0x05f5e100
[    1.188551] eqep 48304180.eqep: QEPCTL:0x009e write
[    1.188558] eqep 48304180.eqep: QEPCTL:0x009e read
[    1.188578] eqep 48304180.eqep: irq:66, clk_rate:100000000
[    1.202039] libphy: Fixed MDIO Bus: probed
[    1.205806] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.205872] ehci-platform: EHCI generic platform driver
[    1.206193] ehci-omap: OMAP-EHCI Host Controller driver
[    1.207036] usbcore: registered new interface driver usb-storage
[    1.210355] am335x-phy-driver 47401300.usb-phy: 47401300.usb-phy supply vcc not found, using dummy regulator
[    1.210513] am335x-phy-driver 47401300.usb-phy: Linked as a consumer to regulator.0
[    1.213918] am335x-phy-driver 47401b00.usb-phy: 47401b00.usb-phy supply vcc not found, using dummy regulator
[    1.214106] am335x-phy-driver 47401b00.usb-phy: Linked as a consumer to regulator.0
[    1.217592] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
[    1.217635] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 1
[    1.217978] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19
[    1.217989] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.217997] usb usb1: Product: MUSB HDRC host driver
[    1.218004] usb usb1: Manufacturer: Linux 4.19.50-ti-r22 musb-hcd
[    1.218011] usb usb1: SerialNumber: musb-hdrc.1
[    1.218834] hub 1-0:1.0: USB hub found
[    1.218895] hub 1-0:1.0: 1 port detected
[    1.230731] omap_rtc 44e3e000.rtc: already running
[    1.231430] omap_rtc 44e3e000.rtc: registered as rtc0
[    1.232921] i2c /dev entries driver
[    1.233458] Driver for 1-wire Dallas network protocol.
[    1.236316] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[    1.236910] softdog: initialized. soft_noboot=0 soft_margin=60 sec soft_panic=0 (nowayout=0)
[    1.238599] cpuidle: enable-method property 'ti,am3352' found operations
[    1.239379] sdhci: Secure Digital Host Controller Interface driver
[    1.239387] sdhci: Copyright(c) Pierre Ossman
[    1.240194] omap_gpio 44e07000.gpio: Could not set line 6 debounce to 200000 microseconds (-22)
[    1.240209] omap_hsmmc 48060000.mmc: Got CD GPIO
[    1.240822] omap_hsmmc 48060000.mmc: Linked as a consumer to regulator.1
[    1.266658] omap_hsmmc 481d8000.mmc: Linked as a consumer to regulator.1
[    1.293383] omap_hsmmc 47810000.mmc: Linked as a consumer to regulator.2
[    1.340928] mmc1: new high speed MMC card at address 0001
[    1.346359] mmcblk1: mmc1:0001 S10004 3.56 GiB 
[    1.347006] mmcblk1boot0: mmc1:0001 S10004 partition 1 4.00 MiB
[    1.347615] mmcblk1boot1: mmc1:0001 S10004 partition 2 4.00 MiB
[    1.348061] mmcblk1rpmb: mmc1:0001 S10004 partition 3 4.00 MiB, chardev (242:0)
[    1.353830]  mmcblk1: p1
[    1.396553] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.400331] ledtrig-cpu: registered to indicate activity on CPUs
[    1.401037] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
[    1.401354] omap-aes 53500000.aes: will run requests pump with realtime priority
[    1.404332] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
[    1.406152] omap_hsmmc 47810000.mmc: card claims to support voltages below defined range
[    1.408864] hidraw: raw HID events driver (C) Jiri Kosina
[    1.409645] usbcore: registered new interface driver usbhid
[    1.409651] usbhid: USB HID core driver
[    1.411077] remoteproc remoteproc0: wkup_m3 is available
[    1.412902] remoteproc remoteproc1: 4a334000.pru is available
[    1.413026] pru-rproc 4a334000.pru: PRU rproc node pru@4a334000 probed successfully
[    1.413397] remoteproc remoteproc2: 4a338000.pru is available
[    1.413484] pru-rproc 4a338000.pru: PRU rproc node pru@4a338000 probed successfully
[    1.421524] mmc2: new high speed SDIO card at address 0001
[    1.422453] gnss: GNSS driver registered with major 239
[    1.428549] wireguard: WireGuard 0.0.20190702 loaded. See www.wireguard.com for information.
[    1.428561] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[    1.429660] NET: Registered protocol family 10
[    1.501369] Segment Routing with IPv6
[    1.501505] mip6: Mobile IPv6
[    1.501528] NET: Registered protocol family 17
[    1.501660] Key type dns_resolver registered
[    1.501667] mpls_gso: MPLS GSO support
[    1.502039] ThumbEE CPU extension supported.
[    1.502054] Registering SWP/SWPB emulation handler
[    1.502064] omap_voltage_late_init: Voltage driver support not added
[    1.509244] PM: Cannot get wkup_m3_ipc handle
[    1.515116] registered taskstats version 1
[    1.515125] Loading compiled-in X.509 certificates
[    1.515265] zswap: loaded using pool lzo/zbud
[    1.518518] Btrfs loaded, crc32c=crc32c-generic
[    1.518627] AppArmor: AppArmor sha1 policy hashing enabled
[    1.573346] tps6521x_pwrbutton tps65217-pwrbutton: DMA mask not set
[    1.574164] input: tps65217_pwr_but as /devices/platform/ocp/44e0b000.i2c/i2c-0/0-0024/tps65217-pwrbutton/input/input0
[    1.574741] tps65217 0-0024: TPS65217 ID 0xe version 1.2
[    1.575658] at24 0-0050: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[    1.575770] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
[    1.577652] omap_i2c 4802a000.i2c: bus 1 rev0.11 at 400 kHz
[    1.579697] omap_i2c 4819c000.i2c: bus 2 rev0.11 at 400 kHz
[    1.581645] remoteproc remoteproc0: powering up wkup_m3
[    1.581770] remoteproc remoteproc0: Booting fw image am335x-pm-firmware.elf, size 217168
[    1.585213] remoteproc remoteproc0: remote processor wkup_m3 is now up
[    1.585234] wkup_m3_ipc 44e11324.wkup_m3_ipc: CM3 Firmware Version = 0x193
[    1.585584] cpu cpu0: Linked as a consumer to regulator.4
[    1.585692] cpu cpu0: Dropping the link to regulator.4
[    1.586233] cpu cpu0: Linked as a consumer to regulator.4
[    1.589161] PM: bootloader does not support rtc-only!
[    1.591898] omap_rtc 44e3e000.rtc: setting system clock to 2019-07-11 20:05:45 UTC (1562875545)
[    1.593374] wlan-en-regulator: disabling
[    1.593400] ALSA device list:
[    1.593406]   No soundcards found.
[    1.600308] Freeing unused kernel memory: 1024K
[    1.601035] Run /init as init process
[    1.624179] usb 1-1: new high-speed USB device number 2 using musb-hdrc
[    1.841591] usb 1-1: New USB device found, idVendor=05a3, idProduct=9320, bcdDevice=27.02
[    1.841609] usb 1-1: New USB device strings: Mfr=2, Product=1, SerialNumber=3
[    1.841617] usb 1-1: Product: HD USB Camera
[    1.841624] usb 1-1: Manufacturer: HD USB Camera
[    1.841631] usb 1-1: SerialNumber: HD USB Camera
[    7.018646] EXT4-fs (mmcblk1p1): mounted filesystem with ordered data mode. Opts: (null)
[    7.837673] systemd[1]: systemd 241 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 +IDN -PCRE2 default-hierarchy=hybrid)
[    7.838434] systemd[1]: Detected architecture arm.
[    7.862863] systemd[1]: Set hostname to <beaglebone>.
[    9.157267] systemd[1]: /lib/systemd/system/rc_battery_monitor.service:5: PIDFile= references path below legacy directory /var/run/, updating /var/run/rc_battery_monitor.pid → /run/rc_battery_monitor.pid; please update the unit file accordingly.
[    9.271218] systemd[1]: Listening on udev Kernel Socket.
[    9.273535] systemd[1]: Listening on Journal Audit Socket.
[    9.281176] systemd[1]: Created slice system-serial\x2dgetty.slice.
[    9.282324] systemd[1]: Listening on Journal Socket (/dev/log).
[    9.283322] systemd[1]: Listening on udev Control Socket.
[    9.286154] systemd[1]: Created slice system-getty.slice.
[   10.153836] EXT4-fs (mmcblk1p1): re-mounted. Opts: errors=remount-ro
[   11.597094] systemd-journald[304]: Received request to flush runtime journal from PID 1
[   21.408535] using random self ethernet address
[   21.408554] using random host ethernet address
[   21.639464] using random self ethernet address
[   21.639482] using random host ethernet address
[   22.179287] Mass Storage Function, version: 2009/09/11
[   22.179311] LUN: removable file: (no medium)
[   22.592437] usb0: HOST MAC 50:65:83:e4:ce:8c
[   22.599050] usb0: MAC 50:65:83:e4:ce:8d
[   22.619300] usb1: HOST MAC 50:65:83:e4:ce:8f
[   22.619619] usb1: MAC 50:65:83:e4:ce:90
[   23.504917] IPv6: ADDRCONF(NETDEV_UP): usb0: link is not ready
[   23.754724] IPv6: ADDRCONF(NETDEV_UP): usb1: link is not ready
[   25.208463] configfs-gadget gadget: high-speed config #1: c
[   25.208818] IPv6: ADDRCONF(NETDEV_CHANGE): usb0: link becomes ready
[   25.493081] IPv6: ADDRCONF(NETDEV_CHANGE): usb1: link becomes ready
[   30.211071] inv-mpu6050-i2c 2-0068: mounting matrix not found: using identity...
[   30.232617] inv-mpu6050-i2c 2-0068: invalid whoami 0x0 expected 0x71 (MPU9250)
[   30.453531] CAN device driver interface
[   30.877265] c_can_platform 481d0000.can: c_can_platform device registered (regs=9db33e58, irq=43)
[   31.753109] uvcvideo: Found UVC 1.00 device HD USB Camera (05a3:9320)
[   31.917038] uvcvideo 1-1:1.0: Entity type for entity Extension 3 was not initialized!
[   31.917061] uvcvideo 1-1:1.0: Entity type for entity Processing 2 was not initialized!
[   31.917072] uvcvideo 1-1:1.0: Entity type for entity Camera 1 was not initialized!
[   31.917587] input: HD USB Camera: HD USB Camera as /devices/platform/ocp/47400000.usb/47401c00.usb/musb-hdrc.1/usb1/1-1/1-1:1.0/input/input1
[   31.928184] usbcore: registered new interface driver uvcvideo
[   31.928199] USB Video Class driver (1.1.1)
[   35.213409] pvrsrvkm: loading out-of-tree module taints kernel.
[   35.872771] [drm] Initialized pvr 1.17.4948957 20110701 for 56000000.sgx on minor 0
[   40.726293] Bluetooth: Core ver 2.22
[   40.726478] NET: Registered protocol family 31
[   40.726486] Bluetooth: HCI device and connection manager initialized
[   40.726516] Bluetooth: HCI socket layer initialized
[   40.726530] Bluetooth: L2CAP socket layer initialized
[   40.726590] Bluetooth: SCO socket layer initialized
[   40.786767] Bluetooth: HCI UART driver ver 2.3
[   40.786788] Bluetooth: HCI UART protocol H4 registered
[   40.787046] Bluetooth: HCI UART protocol LL registered
[   40.787054] Bluetooth: HCI UART protocol ATH3K registered
[   40.787165] Bluetooth: HCI UART protocol Three-wire (H5) registered
[   41.765927] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   41.765944] Bluetooth: BNEP filters: protocol multicast
[   41.765972] Bluetooth: BNEP socket layer initialized
[   42.248775] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[   42.262556] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[   42.266362] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[   42.266398] cfg80211: failed to load regulatory.db
[   42.820573] Bluetooth: RFCOMM TTY layer initialized
[   42.820616] Bluetooth: RFCOMM socket layer initialized
[   42.820680] Bluetooth: RFCOMM ver 1.11
[   43.889435] wlcore: wl18xx HW: 183x or 180x, PG 2.2 (ROM 0x11)
[   43.913830] wlcore: loaded
[   44.512618] wlcore: PHY firmware version: Rev 8.2.0.0.242
[   44.553256] wlcore: firmware booted (Rev 8.9.0.0.79)
[   44.582510] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   45.302583] IPv6: ADDRCONF(NETDEV_UP): SoftAp0: link is not ready
[   46.017220] wlan0: authenticate with 36:c2:13:af:ad:d1
[   46.034163] wlan0: send auth to 36:c2:13:af:ad:d1 (try 1/3)
[   46.059700] wlan0: authenticated
[   46.068161] wlan0: associate with 36:c2:13:af:ad:d1 (try 1/3)
[   46.077661] wlan0: RX AssocResp from 36:c2:13:af:ad:d1 (capab=0x431 status=0 aid=1)
[   46.111426] wlan0: associated
[   46.127058] wlan0: Limiting TX power to 30 (30 - 0) dBm as advertised by 36:c2:13:af:ad:d1
[   46.489421] cryptd: max_cpu_qlen set to 1000
[   46.594908] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   46.630041] wlcore: Association completed.
[   48.372970] wlcore: down
[   48.524498] IPv6: ADDRCONF(NETDEV_CHANGE): SoftAp0: link becomes ready
[  192.816309] wlcore: Beacon loss detected. roles:0x1
[  196.701489] wlcore: Beacon loss detected. roles:0x1
[  197.626940] wlcore: Connection loss work (role_id: 0).
[  197.626991] wlan0: Connection to AP 36:c2:13:af:ad:d1 lost
[  197.905011] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[  198.539945] wlan0: authenticate with 36:c2:13:af:ad:d1
[  198.548613] wlan0: send auth to 36:c2:13:af:ad:d1 (try 1/3)
[  198.672347] wlan0: authenticated
[  198.680061] wlan0: associate with 36:c2:13:af:ad:d1 (try 1/3)
[  198.684771] wlan0: RX AssocResp from 36:c2:13:af:ad:d1 (capab=0x431 status=0 aid=1)
[  198.704419] wlan0: associated
[  198.749922] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[  198.775715] wlcore: Association completed.

@pdp7
Copy link
Contributor

pdp7 commented Jun 9, 2020

@jadonk @RobertCNelson is this still an issue on the Blue?

@pdp7 pdp7 added the blue BeagleBone Blue label Jun 10, 2020
@ConnorRigby
Copy link

ConnorRigby commented Mar 25, 2022

Any news on this one? i'm trying to build a custom kernel that uses this device, but the latest kernel doesn't seem to even reference the mpu9250 symbol at all

edit: i was looking at the wrong kernel. I think i found it.

@ConnorRigby
Copy link

okay, i got it working with:

+	mpu9250@68 {
+		compatible = "invensense,mpu9250";
+		reg = <0x68>;
+		interrupt-parent = <&gpio3>;
+		interrupts = <21 IRQ_TYPE_EDGE_RISING>;
+		i2c-gate {
+			#address-cells = <1>;
+			#size-cells = <0>;
+			ax8975@c {
+				compatible = "ak8975";
+				reg = <0x0c>;
+			};
+		};
+	};
CONFIG_INV_MPU6050_I2C=y
CONFIG_AK8975=y
CONFIG_BMP280=y

Hopefully this helps someone in the future

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants