Re: [beagleboard] SPI Overlay not changing states BBB 4.1.15-ti-r43 Debian Image 2015-11-12
I did some experiments and see what appears to be serious errors in dmesg. (not experienced in reading these). I boot, and then look at slots: 0: PF -1 1: PF -1 2: PF -1 3: PF -1 4: P-O-L- 0 Override Board Name,00A0,Override Manuf,univ-emmc This is normal. I'm using a slightly modified version of univ-emmc to connect PRUs. This works as expected. I had not tried additional changes to the slots until now. Remove slot 4: # echo -4 > slots cat slots 0: PF -1 1: PF -1 2: PF -1 3: PF -1 All looks good to this point. Now add a different dtbo: # echo cape-universal > slots Now the ssh connection to the board closes. But it's not a hard crash, I can ssh back in. From dmesg: [ 287.654746] Unable to handle kernel NULL pointer dereference at virtual address 0004 That is at least one problem, I think there are more. I'm sure there are plenty of other clues. dmesg is pretty long, so I attached a file. I'm using 4.1.15-ti-rt-r43 on a Beaglebone Black. Greg -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. [0.00] Booting Linux on physical CPU 0x0 [0.00] Initializing cgroup subsys cpuset [0.00] Initializing cgroup subsys cpu [0.00] Initializing cgroup subsys cpuacct [0.00] Linux version 4.1.15-ti-rt-r43 (root@a4-imx6q-wandboard-2gb) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 SMP PREEMPT RT Thu Jan 21 20:13:58 UTC 2016 [0.00] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=50c5387d [0.00] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache [0.00] Machine model: TI AM335x BeagleBone Black [0.00] cma: Reserved 24 MiB at 0x9e00 [0.00] Memory policy: Data cache writeback [0.00] On node 0 totalpages: 130560 [0.00] free_area_init_node: node 0, pgdat c0c19b00, node_mem_map df96d000 [0.00] Normal zone: 1152 pages used for memmap [0.00] Normal zone: 0 pages reserved [0.00] Normal zone: 130560 pages, LIFO batch:31 [0.00] CPU: All CPU(s) started in SVC mode. [0.00] AM335X ES2.1 (sgx neon ) [0.00] PERCPU: Embedded 13 pages/cpu @df91 s24128 r8192 d20928 u53248 [0.00] pcpu-alloc: s24128 r8192 d20928 u53248 alloc=13*4096 [0.00] pcpu-alloc: [0] 0 [0.00] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 129408 [0.00] Kernel command line: console=ttyO0,115200n8 root=UUID=bf6d4cec-84ce-40ee-b81b-cd2860ffc4b0 ro rootfstype=ext4 rootwait coherent_pool=1M quiet cape_universal=enable [0.00] PID hash table entries: 2048 (order: 1, 8192 bytes) [0.00] Dentry cache hash table entries: 65536 (order: 7, 524288 bytes) [0.00] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes) [0.00] Memory: 474228K/522240K available (7201K kernel code, 935K rwdata, 3764K rodata, 560K init, 954K bss, 23436K reserved, 24576K cma-reserved, 0K highmem) [0.00] Virtual kernel memory layout: vector : 0x - 0x1000 ( 4 kB) fixmap : 0xffc0 - 0xfff0 (3072 kB) vmalloc : 0xe080 - 0xff00 ( 488 MB) lowmem : 0xc000 - 0xe000 ( 512 MB) pkmap : 0xbfe0 - 0xc000 ( 2 MB) modules : 0xbf80 - 0xbfe0 ( 6 MB) .text : 0xc0008000 - 0xc0abd7bc (10966 kB) .init : 0xc0abe000 - 0xc0b4a000 ( 560 kB) .data : 0xc0b4a000 - 0xc0c33f2c ( 936 kB) .bss : 0xc0c36000 - 0xc0d249a0 ( 955 kB) [0.00] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 [0.00] Preemptible hierarchical RCU implementation. [0.00] RCU restricting CPUs from NR_CPUS=2 to nr_cpu_ids=1. [0.00] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1 [0.00] NR_IRQS:16 nr_irqs:16 16 [0.00] IRQ: Found an INTC at 0xfa20 (revision 5.0) with 128 interrupts [0.00] OMAP clockevent source: timer2 at 2400 Hz [0.12] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns [0.24] clocksource timer1: mask: 0x max_cycles: 0x, max_idle_ns: 79635851949 ns [0.32] OMAP clocksource: timer1 at 2400 Hz [0.000223] Console: colour dummy device 80x30 [0.000385] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0' [0.000388] This ensures that you still see kernel messages. Please [0.000391] update your kernel commandline. [0.088944] Calibrating delay loop... 996.14 BogoMIPS (lpj=4980736) [0.088950] pid_max: default: 32768 minimum: 301 [0.089090] Security Framework initialized [0.089158] AppArmor: A
Re: [beagleboard] SPI Overlay not changing states BBB 4.1.15-ti-r43 Debian Image 2015-11-12
I ought to qualify what I am saying here. To be clear this application does not appear to be looking for a spidev2.0. All said I am still not getting a change in state. I had a similar problem with GPIO's yet that went away with the latests updates, this however seems to be sticking. No change. Am I missing something here ? On Sunday, January 31, 2016 at 7:12:15 PM UTC-7, Dean wrote: > > > I backed away from the previous application this one is not the same. It > appears to be okay ... > > root@beaglebone:~# ls -lh /dev/spi* > crw-rw 1 root spi 153, 0 Jan 27 02:43 /dev/spidev1.0 > crw-rw 1 root spi 153, 1 Jan 27 02:43 /dev/spidev1.1 > > -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [beagleboard] SPI Overlay not changing states BBB 4.1.15-ti-r43 Debian Image 2015-11-12
I backed away from the previous application this one is not the same. It appears to be okay ... root@beaglebone:~# ls -lh /dev/spi* crw-rw 1 root spi 153, 0 Jan 27 02:43 /dev/spidev1.0 crw-rw 1 root spi 153, 1 Jan 27 02:43 /dev/spidev1.1 -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [beagleboard] SPI Overlay not changing states BBB 4.1.15-ti-r43 Debian Image 2015-11-12
ls -lh /dev/spi* remember you application was looking for: open("/dev/spidev2.0", O_RDWR) = -1 ENOENT (No such file or directory) so make sure you application has the correct port name.. Regards, -- Robert Nelson https://rcn-ee.com/ -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [beagleboard] SPI Overlay not changing states BBB 4.1.15-ti-r43 Debian Image 2015-11-12
root@beaglebone:~# dmesg | grep bone [5.093226] bone_capemgr bone_capemgr: Baseboard: 'A335BNLT,000C,2715BBBK0795' [5.100609] bone_capemgr bone_capemgr: compatible-baseboard=ti,beaglebone-black - #slots=4 [5.168530] bone_capemgr bone_capemgr: slot #0: No cape found [5.228522] bone_capemgr bone_capemgr: slot #1: No cape found [5.288522] bone_capemgr bone_capemgr: slot #2: No cape found [5.348521] bone_capemgr bone_capemgr: slot #3: No cape found [5.354392] bone_capemgr bone_capemgr: initialized OK. [6.570208] systemd[1]: Set hostname to . [6.839587] systemd[1]: Configuration file /lib/systemd/system/bonescript.socket is marked world-inaccessible. This has no effect as configuration data is accessible via APIs without restrictions. Proceeding anyway. [6.860332] systemd[1]: Configuration file /lib/systemd/system/bonescript.service is marked world-inaccessible. This has no effect as configuration data is accessible via APIs without restrictions. Proceeding anyway. [6.963418] systemd[1]: Configuration file /lib/systemd/system/bonescript-autorun.service is marked world-inaccessible. This has no effect as configuration data is accessible via APIs without restrictions. Proceeding anyway. [ 507.748022] bone_capemgr bone_capemgr: part_number 'DM-SPI-Test', version 'N/A' [ 507.756582] bone_capemgr bone_capemgr: slot #4: override [ 507.770021] bone_capemgr bone_capemgr: Using override eeprom data at slot 4 [ 507.777097] bone_capemgr bone_capemgr: slot #4: 'Override Board Name,00A0,Override Manuf,DM-SPI-Test' [ 507.801823] bone_capemgr bone_capemgr: slot #4: dtbo 'DM-SPI-Test-00A0.dtbo' loaded; overlay id #0 -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [beagleboard] SPI Overlay not changing states BBB 4.1.15-ti-r43 Debian Image 2015-11-12
On Sun, Jan 31, 2016 at 7:22 PM, Dean wrote: > I am trying to get the SPI bus to work, unfortunately it will not change > states. Is there something obvious that I am missing. I believe that this > ties into my previous post on strace and is the reason that I cannot my LCD > to work. Thanks in advance to those that respond to this post. > > > > Linux beaglebone 4.1.15-ti-r43 #1 SMP PREEMPT Thu Jan 21 22:33:31 UTC 2016 > armv7l GNU/Linux > > BeagleBoard.org Debian Image 2015-11-12 > > > root@beaglebone:~# . ~/.profile > > > root@beaglebone:~# echo $SLOTS > > /sys/devices/platform/bone_capemgr/slots > > > root@beaglebone:~# echo $PINS > > /sys/kernel/debug/pinctrl/44e10800.pinmux/pins > > > root@beaglebone:~# ls > > DM-SPI-Test-00A0.dtbo DM-SPI-Test.dtbo DM-SPI-Test.dts bb.org-overlays > boneDeviceTree exploringBB git > > > root@beaglebone:~# dtc -O dtb -o DM-SPI-Test-00A0.dtbo -b 0 -@ > DM-SPI-Test.dts > > > root@beaglebone:~# cp DM-SPI-Test-00A0.dtbo /lib/firmware > > > root@beaglebone:~# cd /lib/firmware > > > root@beaglebone:/lib/firmware# ls > > ADAFRUIT-SPI0-00A0.dtbo BB-UART3-00A0.dtbo PyBBIO-gpio0_11-00A0.dtbo > PyBBIO-gpio1_3-00A0.dtbo PyBBIO-gpio3_19-00A0.dtbo > > ADAFRUIT-SPI1-00A0.dtbo BB-UART4-00A0.dtbo PyBBIO-gpio0_12-00A0.dtbo > PyBBIO-gpio1_30-00A0.dtbo PyBBIO-gpio3_21-00A0.dtbo > > ADAFRUIT-UART1-00A0.dtbo BB-UART5-00A0.dtbo PyBBIO-gpio0_13-00A0.dtbo > PyBBIO-gpio1_31-00A0.dtbo PyBBIO-usr0-00A0.dtbo > > ADAFRUIT-UART2-00A0.dtbo BB-W1-P9.12-00A0.dtbo PyBBIO-gpio0_14-00A0.dtbo > PyBBIO-gpio1_4-00A0.dtbo PyBBIO-usr1-00A0.dtbo > > ADAFRUIT-UART4-00A0.dtbo DM-SPI-Test-00A0.dtbo PyBBIO-gpio0_15-00A0.dtbo > PyBBIO-gpio1_5-00A0.dtbo PyBBIO-usr2-00A0.dtbo > > ADAFRUIT-UART5-00A0.dtbo DVK530-LCD4-01-00A0.dtbo PyBBIO-gpio0_2-00A0.dtbo > PyBBIO-gpio1_6-00A0.dtbo PyBBIO-usr3-00A0.dtbo > > BB-ADC-00A0.dtbo LICENCE.atheros_firmware PyBBIO-gpio0_20-00A0.dtbo > PyBBIO-gpio1_7-00A0.dtbo bone_eqep0-00A0.dtbo > > BB-BBBMINI-00A0.dtbo LICENCE.broadcom_bcm43xx PyBBIO-gpio0_22-00A0.dtbo > PyBBIO-gpio2_1-00A0.dtbo bone_eqep1-00A0.dtbo > > BB-BONE-AUDI-02-00A0.dtbo LICENCE.rtlwifi_firmware.txt > PyBBIO-gpio0_23-00A0.dtbo PyBBIO-gpio2_10-00A0.dtbo bone_eqep2-00A0.dtbo > > BB-BONE-BACONE-00A0.dtbo LICENCE.ti-connectivity PyBBIO-gpio0_26-00A0.dtbo > PyBBIO-gpio2_11-00A0.dtbo bone_eqep2b.dtbo > > BB-BONE-CRYPTO-00A0.dtbo NL-AB-BBBC-00D0.dtbo PyBBIO-gpio0_27-00A0.dtbo > PyBBIO-gpio2_12-00A0.dtbo brcm > > BB-BONE-DVID-01-00A3.dtbo PyBBIO-ADC-00A0.dtbo PyBBIO-gpio0_3-00A0.dtbo > PyBBIO-gpio2_13-00A0.dtbo cape-CBB-Serial-r01.dtbo > > BB-BONE-LCD3-01-00A2.dtbo PyBBIO-AIN0-00A0.dtbo PyBBIO-gpio0_30-00A0.dtbo > PyBBIO-gpio2_14-00A0.dtbo cape-bone-ibb-00A0.dtbo > > BB-BONE-LCD4-01-00A1.dtbo PyBBIO-AIN1-00A0.dtbo PyBBIO-gpio0_31-00A0.dtbo > PyBBIO-gpio2_15-00A0.dtbo cape-univ-audio-00A0.dtbo > > BB-BONE-LCD7-01-00A3.dtbo PyBBIO-AIN2-00A0.dtbo PyBBIO-gpio0_4-00A0.dtbo > PyBBIO-gpio2_16-00A0.dtbo cape-univ-emmc-00A0.dtbo > > BB-BONE-REPLICAP-00B1.dtbo PyBBIO-AIN3-00A0.dtbo PyBBIO-gpio0_5-00A0.dtbo > PyBBIO-gpio2_17-00A0.dtbo cape-univ-hdmi-00A0.dtbo > > BB-BONE-SERL-03-00A1.dtbo PyBBIO-AIN4-00A0.dtbo PyBBIO-gpio0_7-00A0.dtbo > PyBBIO-gpio2_2-00A0.dtbo cape-universal-00A0.dtbo > > BB-BONE-WTHR-01-00B0.dtbo PyBBIO-AIN5-00A0.dtbo PyBBIO-gpio0_8-00A0.dtbo > PyBBIO-gpio2_22-00A0.dtbo cape-universaln-00A0.dtbo > > BB-CAN1-00A0.dtbo PyBBIO-AIN6-00A0.dtbo PyBBIO-gpio0_9-00A0.dtbo > PyBBIO-gpio2_23-00A0.dtbo carl9170-1.fw > > BB-I2C1-00A0.dtbo PyBBIO-AIN7-00A0.dtbo PyBBIO-gpio1_0-00A0.dtbo > PyBBIO-gpio2_24-00A0.dtbo dev-USB-PWR-CTL-00A1.dtbo > > BB-I2C1-PCA9685-00A0.dtbo PyBBIO-ecap0-00A0.dtbo PyBBIO-gpio1_1-00A0.dtbo > PyBBIO-gpio2_25-00A0.dtbo htc_9271.fw > > BB-I2C2-0A00.dtbo PyBBIO-ecap1-00A0.dtbo PyBBIO-gpio1_12-00A0.dtbo > PyBBIO-gpio2_3-00A0.dtbo mt7601u.bin > > BB-RELAY-4PORT-00A0.dtbo PyBBIO-ehrpwm1-00A0.dtbo PyBBIO-gpio1_13-00A0.dtbo > PyBBIO-gpio2_4-00A0.dtbo rtlwifi > > BB-RTC-01-00A0.dtbo PyBBIO-ehrpwm2-00A0.dtbo PyBBIO-gpio1_14-00A0.dtbo > PyBBIO-gpio2_5-00A0.dtbo ti-connectivity > > BB-SPI0-MCP3008-00A0.dtbo PyBBIO-epwmss0-00A0.dtbo PyBBIO-gpio1_15-00A0.dtbo > PyBBIO-gpio2_6-00A0.dtbo univ-all-00A0.dtbo > > BB-SPI1-01-00A0.dtbo PyBBIO-epwmss1-00A0.dtbo PyBBIO-gpio1_16-00A0.dtbo > PyBBIO-gpio2_7-00A0.dtbo univ-emmc-00A0.dtbo > > BB-SPIDEV1-00A0.dtbo PyBBIO-epwmss2-00A0.dtbo PyBBIO-gpio1_17-00A0.dtbo > PyBBIO-gpio2_8-00A0.dtbo univ-hdmi-00A0.dtbo > > BB-SPIDEV1.dtbo PyBBIO-eqep0-00A0.dtbo PyBBIO-gpio1_18-00A0.dtbo > PyBBIO-gpio2_9-00A0.dtbo univ-nhdmi-00A0.dtbo > > BB-SPIDEV1A1-00A0.dtbo PyBBIO-eqep1-00A0.dtbo PyBBIO-gpio1_19-00A0.dtbo > PyBBIO-gpio3_14-00A0.dtbo > > BB-UART1-00A0.dtbo PyBBIO-eqep2-00A0.dtbo PyBBIO-gpio1_2-00A0.dtbo > PyBBIO-gpio3_15-00A0.dtbo > > BB-UART2-00A0.dtbo PyBBIO-eqep2b-00A0.dtbo PyBBIO-gpio1_28-00A0.dtbo > PyBBIO-gpio3_16-00A0.dtbo > > BB-UART2-RTSCTS-00A0.dtbo PyBBIO-gpio0_10-00A0.dtbo > PyBBIO-gpio1_29-00A0.dtbo PyBBIO-gpio3_17-00A0.dtbo > > root@beaglebone:/lib/firmware# cat $SLOTS > > 0: PF---