I've only used CAN1 since the I2C for Cape ID isn't something I wanted to lose.
The Beagle that was running with the CAN cape had its SD card die so I lost the configuration information. But this site here does a pretty good job of explaining what is needed.
https://www.beyondlogic.org/adding-can-to-the-beaglebone-black/
I did not see the same information as the web page when I looked at dmesg.
debian@beaglebone:/dev$ dmesg | grep -i can
[ 0.851243] CAN device driver interface
[ 0.975646] can: controller area network core (rev 20170425 abi 9)
[ 0.982999] PM: Cannot get wkup_m3_ipc handle
debian@beaglebone:/dev$
I've got a cape from Logic Supply on this beagle but it's not found at the moment on this new 4.14 installation. Following the web page…
debian@beaglebone:/dev$ config-pin p9.24 can
P9_24 pinmux file not found!
Pin has no cape: P9_24
Ever since $SLOTs concept was trashed on the Beagles the Logic Supply user manual for the CBB Cape is useless for installing the device but I've included the dts in case that will help.
At the moment I have no idea how to even ask the Beagle if it has seen the cape installed. I can see it's connected physically. I put the beagles into their kennel last summer and before that they spent more than a year in isolation. Now they are out again and I'm working through Derek Molloy's book so at some point I'm sure the cape will be seen.
My other Beagle may well have worked with the CAN cape at one point but it doesn't have the cape installed.
debian@ebb:~$ dmesg | grep -i can
[ 1.015868] CAN device driver interface
[ 1.017132] c_can_platform 481cc000.can: c_can_platform device registered (regs=fa1cc000, irq=42)
[ 1.018405] c_can_platform 481d0000.can: c_can_platform device registered (regs=fa1d0000, irq=43)
[ 1.160062] can: controller area network core (rev 20170425 abi 9)
[ 1.167640] PM: Cannot get wkup_m3_ipc handle
debian@ebb:~$ config-pin p9.24 can
debian@ebb:~$ config-pin p9.26 can
debian@ebb:~$ sudo /sbin/ip link set can1 up type can bitrate 250000
[sudo] password for debian:
debian@ebb:~$
This one doesn't complain. Again, I've completely forgotten what I've done.
John
--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/01f7e77d-c061-4ade-954d-94d29dcabf80n%40googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/N3XgXZ9NHv4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/0bec01d74899%24dff0dee0%249fd29ca0%24%40autoartisans.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/609ebc12.1c69fb81.c6f46.99e1SMTPIN_ADDED_MISSING%40gmr-mx.google.com.
I moved the MicroSD card over to the other Beagle. Booted and USB mouse and keyboard (Logitech wireless) work. The Logitech wireless was not discovered on the other Beagle.
I think it may be sick.
Last login: Fri May 14 18:11:06 2021 from 192.168.0.137
debian@beaglebone:~$ sudo /opt/scripts/tools/version.sh
[sudo] password for debian:
git:/opt/scripts/:[81709cddd6994c0c6895b5d31a73ac459f252fa0]
eeprom:[A335BNLT00C02716BBBK0E8D]
model:[TI_AM335x_BeagleBone_Black]
dogtag:[BeagleBoard.org Debian Image 2018-10-07]
bootloader:[microSD-(push-button)]:[/dev/mmcblk0]:[U-Boot SPL 2019.04-g10968f0 (Feb 19 2021 - 21:40:51 +0000)]:[location: dd MBR]
bootloader:[microSD-(push-button)]:[/dev/mmcblk0]:[U-Boot 2019.04-g10968f0]:[location: dd MBR]
bootloader:[eMMC-(default)]:[/dev/mmcblk1]:[U-Boot SPL 2019.04-00002-gbb4af0f50f (Jul 08 2019 - 11:44:39 -0500)]:[location: dd MBR]
bootloader:[eMMC-(default)]:[/dev/mmcblk1]:[U-Boot 2019.04-00002-gbb4af0f50f]:[location: dd MBR]
UBOOT: Booted Device-Tree:[am335x-boneblack-uboot-univ.dts]
UBOOT: Loaded Overlay:[AM335X-PRU-RPROC-4-14-TI-00A0]
UBOOT: Loaded Overlay:[BB-ADC-00A0]
UBOOT: Loaded Overlay:[BB-BONE-eMMC1-01-00A0]
UBOOT: Loaded Overlay:[BB-HDMI-TDA998x-00A0]
kernel:[4.14.108-ti-r141]
nodejs:[v6.17.0]
/boot/uEnv.txt Settings:
uboot_overlay_options:[enable_uboot_overlays=1]
uboot_overlay_options:[uboot_overlay_pru=/lib/firmware/AM335X-PRU-RPROC-4-14-TI-00A0.dtbo]
uboot_overlay_options:[enable_uboot_cape_universal=1]
pkg check: to individually upgrade run: [sudo apt install --only-upgrade <pkg>]
pkg:[bb-cape-overlays]:[4.14.20210416.0-0~stretch+20210416]
pkg:[bb-customizations]:[1.20210225.0-0~stretch+20210225]
pkg:[bb-usb-gadgets]:[1.20200504.0-0~stretch+20200504]
pkg:[bb-wl18xx-firmware]:[1.20200813.1-0~stretch+20200813]
pkg:[kmod]:[23-2rcnee1~stretch+20171005]
pkg:[librobotcontrol]:[1.0.5-git20200715.0-0~stretch+20200716]
pkg:[firmware-ti-connectivity]:[20190717-2rcnee1~stretch+20200305]
groups:[debian : debian adm kmem dialout cdrom floppy audio dip video plugdev users systemd-journal i2c bluetooth netdev cloud9ide gpio pwm eqep admin spi tisdk weston-launch xenomai]
cmdline:[console=ttyO0,115200n8 bone_capemgr.uboot_capemgr_enabled=1 root=/dev/mmcblk0p1 ro rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 quiet]
dmesg | grep remote
[ 1.108680] remoteproc remoteproc0: wkup_m3 is available
[ 1.453877] remoteproc remoteproc0: powering up wkup_m3
[ 1.453993] remoteproc remoteproc0: Booting fw image am335x-pm-firmware.elf, size 217148
[ 1.458014] remoteproc remoteproc0: remote processor wkup_m3 is now up
[ 165.380047] remoteproc remoteproc1: 4a334000.pru is available
[ 165.395267] remoteproc remoteproc2: 4a338000.pru is available
dmesg | grep pru
[ 163.347677] pruss 4a300000.pruss: creating PRU cores and other child platform devices
[ 165.380047] remoteproc remoteproc1: 4a334000.pru is available
[ 165.380228] pru-rproc 4a334000.pru: PRU rproc node /ocp/pruss_soc_bus@4a326004/pruss@0/pru@34000 probed successfully
[ 165.395267] remoteproc remoteproc2: 4a338000.pru is available
[ 165.395389] pru-rproc 4a338000.pru: PRU rproc node /ocp/pruss_soc_bus@4a326004/pruss@0/pru@38000 probed successfully
dmesg | grep pinctrl-single
[ 0.796710] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
dmesg | grep gpio-of-helper
[ 0.809442] gpio-of-helper ocp:cape-universal: ready
lsusb
Bus 001 Device 003: ID 046d:c534 Logitech, Inc. Unifying Receiver
Bus 001 Device 002: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
END
debian@beaglebone:~$
I then created an sd card with this
bone-debian-10.3-console-armhf-2020-04-06-1gb.img.xz
Login prompt on screen with USB keyboard functioning.
This is without the CAN Cape. I've attached the serial port terminal log.
Next I'll shut it down and put the cape back.
From the descriptions on https://beagleboard.org/latest-images I can't figure out what the latest graphical desktop image is for the BBB.
Thanks
John
From: Robert Nelson [mailto:robert...@gmail.com]
Sent: May-14-21 6:45 PM
To: John Dammeyer
Cc: Beagle Board
Subject: Re: [beagleboard] Configure CAN0 with buildroot
Does USB work after 30-45 seconds? If so, still trying to debug that..
With the Cape plugged into the console version it gets to a certain point and then shuts off.
U-Boot SPL 2019.04-g10968f0 (Feb 19 2021 - 21:40:51 +0000)
Trying to boot from MMC2
Loading Environment from EXT4... ** File not found /boot/uboot.env **
** Unable to read "/boot/uboot.env" from mmc0:1 **
U-Boot 2019.04-g10968f0 (Feb 19 2021 - 21:40:51 +0000)
CPU : AM335X-GP rev 2.1
I2C: ready
DRAM: 512 MiB
No match for driver 'omap_hsmmc'
No match for driver 'omap_hsmmc'
Some drivers were not found
Reset Source: Power-on reset has occurred.
RTC 32KCLK Source: External.
MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
Loading Environment from EXT4... ** File not found /boot/uboot.env **
** Unable to read "/boot/uboot.env" from mmc0:1 **
Board: BeagleBone Black
<ethaddr> not set. Validating first E-fuse MAC
BeagleBone Black:
BeagleBone Cape EEPROM: found EEPROM at address: 0x54
BeagleBone Cape EEPROM: debug part_number field:[cape-CBB-Serial]
BeagleBone Cape EEPROM: debug part_number field HEX:[636170652d4342422d53657269616c]
BeagleBone Cape EEPROM: debug version field HEX:[7230310]
BeagleBone Cape EEPROM: 0x54: cape-CBB-Serial-r01.dtbo [0x296d72f]
BeagleBone Cape EEPROM: no EEPROM at address: 0x55
BeagleBone Cape EEPROM: no EEPROM at address: 0x56
BeagleBone Cape EEPROM: no EEPROM at address: 0x57
Net: eth0: MII MODE
cpsw, usb_ether
Press SPACE to abort autoboot in 0 seconds
board_name=[A335BNLT] ...
board_rev=[00C0] ...
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
gpio: pin 56 (gpio 56) value is 0
gpio: pin 55 (gpio 55) value is 0
gpio: pin 54 (gpio 54) value is 0
gpio: pin 53 (gpio 53) value is 1
switch to partitions #0, OK
mmc0 is current device
gpio: pin 54 (gpio 54) value is 1
Checking for: /uEnv.txt ...
Checking for: /boot.scr ...
Checking for: /boot/boot.scr ...
Checking for: /boot/uEnv.txt ...
gpio: pin 55 (gpio 55) value is 1
2062 bytes read in 47 ms (42 KiB/s)
Loaded environment from /boot/uEnv.txt
Checking if uname_r is set in /boot/uEnv.txt...
gpio: pin 56 (gpio 56) value is 1
Running uname_boot ...
loading /boot/vmlinuz-4.19.94-ti-r42 ...
10095592 bytes read in 674 ms (14.3 MiB/s)
debug: [enable_uboot_overlays=1] ...
debug: [enable_uboot_cape_universal=1] ...
debug: [uboot_base_dtb_univ=am335x-boneblack-uboot-univ.dtb] ...
uboot_overlays: [uboot_base_dtb=am335x-boneblack-uboot-univ.dtb] ...
uboot_overlays: Switching too: dtb=am335x-boneblack-uboot-univ.dtb ...
loading /boot/dtbs/4.19.94-ti-r42/am335x-boneblack-uboot-univ.dtb ...
162266 bytes read in 152 ms (1 MiB/s)
uboot_overlays: [fdt_buffer=0x60000] ...
uboot_overlays: loading /lib/firmware/BB-ADC-00A0.dtbo ...
867 bytes read in 44 ms (18.6 KiB/s)
uboot_overlays: loading /lib/firmware/cape-CBB-Serial-r01.dtbo ...
2245 bytes read in 88 ms (24.4 KiB/s)
uboot_overlays: loading /lib/firmware/BB-BONE-eMMC1-01-00A0.dtbo ...
1584 bytes read in 315 ms (4.9 KiB/s)
uboot_overlays: loading /lib/firmware/BB-HDMI-TDA998x-00A0.dtbo ...
4915 bytes read in 338 ms (13.7 KiB/s)
uboot_overlays: loading /lib/firmware/AM335X-PRU-RPROC-4-19-TI-00A0.dtbo ...
3801 bytes read in 278 ms (12.7 KiB/s)
uboot_overlays: [uboot_detected_capes=cape-CBB-Serial,] ...
loading /boot/initrd.img-4.19.94-ti-r42 ...
6585227 bytes read in 460 ms (13.7 MiB/s)
debug: [console=ttyO0,115200n8 bone_capemgr.uboot_capemgr_enabled=1 root=/dev/mmcblk0p1 ro rootfstype=ext4 rootwait uboot_detected_capes=cape-CBB-Serial, coherent_pool=1M net.ifnames=0 lpj=1990656 rng_core.default_quality=100 quiet] ...
debug: [bootz 0x82000000 0x88080000:647b8b 88000000] ...
## Flattened Device Tree blob at 88000000
Booting using the fdt blob at 0x88000000
Loading Ramdisk to 8f9b8000, end 8ffffb8b ... OK
Loading Device Tree to 8f92c000, end 8f9b7fff ... OK
Starting kernel ...
[ 0.002172] timer_probe: no matching timers found
[ 0.196489] l4_wkup_cm:clk:0010:0: failed to disable