One other thing. Adding a second cape.
First with Jessie where the Logic Supply cape-CBB-Serial cape CAN device worked but the newest uboot version doesn’t.
The questions are:
Why doesn’t it?
What can I do to troubleshoot this problem?
troubleshoot: first let’s look at your serial boot log with both
cape’s plugged in…
That cape’s can port is defined by:
https://github.com/beagleboard/bb.org-overlays/blob/master/src/arm/cape-CBB-Serial-r01.dts#L92-L96
https://github.com/beagleboard/bb.org-overlays/blob/master/src/arm/cape-CBB-Serial-r01.dts#L120-L125
I’d expect to see a “can” node just by running
sudo ifconfig -a
Yes. I had done that. That’s why I was a bit confused. It appears to be there. I can reboot the Jessie 8.7 and grab the ifconfig from it if that will help.
can0: flags=128 mtu 16
unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 10 (UNSPEC)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 42
can1: flags=128 mtu 16
unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 10 (UNSPEC)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 43
I have two of those Logic Supply cape’s so i’ll take a look at them tomorrow.
One point that may or not be important. Derek Malloy’s second edition uses config-pin -q P1.28 to ask for the P1_28 Mode.
All I get back is
Pin is not modifiable: P1_28
Which suggests his section on CAN (pages 388-394) does not agree with the current BBB Linux version. I did try that with the CAN board not plugged in and got the same result.
–
Robert Nelson
https://rcn-ee.com/
Here’s the serial boot log.
Regards,
John Dammeyer
www.autartisans.com
[20639.568202] reboot: Power down
U-Boot SPL 2018.09-00002-g0b54a51eee (Sep 10 2018 - 19:41:39 -0500)
Trying to boot from MMC1
Loading Environment from EXT4… ** File not found /boot/uboot.env **
** Unable to read “/boot/uboot.env” from mmc0:1 **
U-Boot 2018.09-00002-g0b54a51eee (Sep 10 2018 - 19:41:39 -0500), Build: jenkins-github_Bootloader-Builder-65
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
not set. Validating first E-fuse MAC
BeagleBone Black:
debug: process_cape_part_number:[cape-CBB-Serial]
debug: process_cape_part_number:[636170652D4342422D53657269616C]
BeagleBone: cape eeprom: i2c_probe: 0x54: /lib/firmware/cape-CBB-Serial-r01.dtbo [0x296d72f]
BeagleBone: cape eeprom: i2c_probe: 0x55:
BeagleBone: cape eeprom: i2c_probe: 0x56:
debug: process_cape_part_number:[BB-W1-P8.11]
debug: process_cape_part_number:[42422D57312D50382E3131]
BeagleBone: cape eeprom: i2c_probe: 0x57: /lib/firmware/BB-W1-P8.11-00A0.dtbo [0x956174f]
Net: eth0: MII MODE
cpsw, usb_ether
Press SPACE to abort autoboot in 2 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
2148 bytes read in 15 ms (139.6 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.14.94-ti-r94 …
9724416 bytes read in 630 ms (14.7 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.14.94-ti-r94/am335x-boneblack-uboot-univ.dtb …
162727 bytes read in 38 ms (4.1 MiB/s)
uboot_overlays: [fdt_buffer=0x60000] …
uboot_overlays: loading /lib/firmware/cape-CBB-Serial-r01.dtbo …
2135 bytes read in 404 ms (4.9 KiB/s)
uboot_overlays: loading /lib/firmware/BB-W1-P8.11-00A0.dtbo …
1118 bytes read in 322 ms (2.9 KiB/s)
uboot_overlays: loading /lib/firmware/BB-BONE-eMMC1-01-00A0.dtbo …
1440 bytes read in 375 ms (2.9 KiB/s)
uboot_overlays: loading /lib/firmware/BB-HDMI-TDA998x-00A0.dtbo …
4896 bytes read in 43 ms (110.4 KiB/s)
uboot_overlays: loading /lib/firmware/BB-ADC-00A0.dtbo …
711 bytes read in 292 ms (2 KiB/s)
uboot_overlays: loading /lib/firmware/AM335X-PRU-RPROC-4-14-TI-00A0.dtbo …
3513 bytes read in 53 ms (64.5 KiB/s)
uboot_overlays: [uboot_detected_capes=cape-CBB-Serial,BB-W1-P8.11,] …
loading /boot/initrd.img-4.14.94-ti-r94 …
5248133 bytes read in 350 ms (14.3 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,BB-W1-P8.11, coherent_pool=1M net.ifnames=0 quiet] …
debug: [bootz 0x82000000 0x88080000:501485 88000000] …
Flattened Device Tree blob at 88000000
Booting using the fdt blob at 0x88000000
Loading Ramdisk to 8fafe000, end 8ffff485 … OK
reserving fdt memory region: addr=88000000 size=89000
Loading Device Tree to 8fa72000, end 8fafdfff … OK
Starting kernel …
[ 0.002124] timer_probe: no matching timers found
[ 1.011965] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
[ 1.302784] omap_voltage_late_init: Voltage driver support not added
[ 1.310092] PM: Cannot get wkup_m3_ipc handle
[ 1.508531] hdmi-audio-codec hdmi-audio-codec.0.auto: ASoC: no source widget found for Playback
[ 1.517502] hdmi-audio-codec hdmi-audio-codec.0.auto: ASoC: Failed to add route Playback → direct → TX
rootfs: clean, 207358/959616 files, 1303282/3888512 blocks
Debian GNU/Linux 9 ebb ttyS0
BeagleBoard.org Debian Image 2018-10-07
Support/FAQ: Beagleboard:BeagleBoneBlack Debian - eLinux.org
default username:password is [debian:temppwd]
ebb login: