Kernel 4.1.3-bone15 and 4.1.4-bone15 Cant load device overlay (I2C1, UART1, etc.)

Hi Folks,

I created a fresh Ubuntu SD card for my BBB using the directions at: https://eewiki.net/display/linuxonarm/BeagleBone+Black# and the end result is I get failed loads from the cape manager. After the install I modified /etc/network/interfaces to use wlan0. Anything else I modified was in line with the wiki page (setting up the serial console, etc.) I’m interested in using the overlays, so I followed the directions for the 4.1.x cape manager. I have a feeling I’m doing something stupid, but based on searching around here and the wiki page, I think I did it all per instruction. Any help is appreciated if its clear what I’m screwing up

My uEnv.txt is at /boot/uEnv.txt and contains the following text:

uname_r=4.1.4-bone15

dtb=am335x-boneblack-overlay.dtb

##Disable HDMI

##cape_disable=bone_capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN

##Enable interfaces
cape_enable=bone_capemgr.enable_partno=BB-I2C1,BB-UART1

I also used ./dtc-overlay.sh and ./install.sh to ensure dtc was updated and the overlays were installed. Here’s some relevant output (I think):

ubuntu@arm:~$ dmesg | grep cape
[ 0.000000] Kernel command line: console=ttyO0,115200n8 bone_capemgr.enable_partno=BB-I2C1,BB-UART1 root=/dev/mmcblk0p1 ro rootfstype=ext4 rootwait fixrtc
[ 4.278322] bone_capemgr bone_capemgr: Baseboard: ‘A335BNLT,00C0,414BBBK1610\xffffffff’
[ 4.285647] bone_capemgr bone_capemgr: compatible-baseboard=ti,beaglebone-black - #slots=4
[ 4.352231] bone_capemgr bone_capemgr: slot #0: No cape found
[ 4.412246] bone_capemgr bone_capemgr: slot #1: No cape found
[ 4.472227] bone_capemgr bone_capemgr: slot #2: No cape found
[ 4.542251] bone_capemgr bone_capemgr: slot #3: No cape found
[ 4.548040] bone_capemgr bone_capemgr: enabled_partno PARTNO ‘BB-I2C1’ VER ‘N/A’ PR ‘0’
[ 4.556091] bone_capemgr bone_capemgr: slot #4: override
[ 4.561428] bone_capemgr bone_capemgr: Using override eeprom data at slot 4
[ 4.568434] bone_capemgr bone_capemgr: slot #4: ‘Override Board Name,00A0,Override Manuf,BB-I2C1’
[ 4.577416] bone_capemgr bone_capemgr: enabled_partno PARTNO ‘BB-UART1’ VER ‘N/A’ PR ‘0’
[ 4.585554] bone_capemgr bone_capemgr: slot #5: override
[ 4.590888] bone_capemgr bone_capemgr: Using override eeprom data at slot 5
[ 4.597891] bone_capemgr bone_capemgr: slot #5: ‘Override Board Name,00A0,Override Manuf,BB-UART1’
[ 4.607175] bone_capemgr bone_capemgr: initialized OK.
[ 5.632329] bone_capemgr bone_capemgr: loader: failed to load slot-5 BB-UART1:00A0 (prio 0)
[ 5.642292] bone_capemgr bone_capemgr: loader: failed to load slot-4 BB-I2C1:00A0 (prio 0)

ubuntu@arm:~$ dmesg | grep i2c
[ 2.710001] omap_i2c 44e0b000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c0_pins, deferring probe
[ 2.710043] omap_i2c 4819c000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c2_pins, deferring probe
[ 3.972735] i2c /dev entries driver
[ 4.230841] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
[ 4.266307] omap_i2c 4819c000.i2c: bus 2 rev0.11 at 100 kHz
ubuntu@arm:~$

ubuntu@arm:~$ cat /proc/cmdline
console=ttyO0,115200n8 bone_capemgr.enable_partno=BB-I2C1,BB-UART1 root=/dev/mmcblk0p1 ro rootfstype=ext4 rootwait fixrtc

ubuntu@arm:~$ uname -r
4.1.4-bone15

ubuntu@arm:~$ i2cdetect -l
i2c-0 i2c OMAP I2C adapter I2C adapter
i2c-2 i2c OMAP I2C adapter I2C adapter

ubuntu@arm:~$ sudo cat /dev/ttyS1
cat: /dev/ttyS1: Input/output error

I "think" i finally figured this out for ubuntu...

What does:
echo $PATH

show?

Regards,

Hi Robert , I see:

ubuntu@arm:~$ echo $PATH
/home/ubuntu/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games

Okay, even stranger, then it should have worked..

So on Debian testing (stretch), bin, usr/bin was moved infront of usr/local/bin

echo $PATH
/bin:/usr/bin:/usr/local/bin

But, give this a shot..

https://github.com/beagleboard/bb.org-overlays/commit/99d789309dd0eb164776c98de8cd070e18fab99c

(git pull ; ./install.sh)

Regards,

Hi Robert,

I did the git pull and reran install.sh. After that I still had the same cape manager load errors. The output of dmesg | grep i2c and dmesg | grep cape, remains the same as before.

Thanks for your time with this. If there’s anything else useful I can send from my setup, please let me know.
Lenny

ubuntu@riptide-uuuv:~$ cd bb.org-overlays/
ubuntu@riptide-uuuv:~/bb.org-overlays$ git pull
remote: Counting objects: 2, done.
remote: Compressing objects: 100% (2/2), done.
remote: Total 2 (delta 0), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (2/2), done.
From https://github.com/beagleboard/bb.org-overlays
1827367…99d7893 master → origin/master
Updating 1827367…99d7893
Fast-forward
Makefile | 2 ±
1 file changed, 1 insertion(+), 1 deletion(-)

Hi Robert,

I did some experimentation and got the overlays to load. I’m not an expert, so admittedly I was grasping at differences I see on another, older SD card I have working. On that card there is no initrd image. I renamed initrd.img-4.1.4-bone15 to lmbinitrd.img-4.1.4-bone15 to remove it from the uEnv load and now the overlays works.

Does this make any sense to you?

ubuntu@riptide-uuuv:/boot$ ls -l
total 20768
drwxr-xr-x 4 root root 4096 Aug 7 12:05 dtbs
-rw-r–r-- 1 root root 133175 Aug 5 00:42 lmbconfig-4.1.4-bone15
-rw-r–r-- 1 root root 4246230 Aug 8 05:06 lmbinitrd.img-4.1.4-bone15
-rw-r–r-- 1 root root 3036293 Aug 5 00:42 lmbSystem.map-4.1.4-bone15
drwxr-xr-x 2 root root 4096 Jun 9 13:52 uboot
-rw-r–r-- 1 root root 223 Aug 7 13:30 uEnv.txt
-rw-r–r-- 1 root root 1022 Aug 8 05:20 uEnv.txt~
-rw-r–r-- 1 root root 1032 Aug 8 05:26 uEnv.txt.test
-rwxr-xr-x 1 root root 6914656 Aug 7 10:33 vmlinuz-4.1.3-bone15
-rwxr-xr-x 1 root root 6903632 Aug 5 00:42 vmlinuz-4.1.4-bone15

ubuntu@riptide-uuuv:~$ i2cdetect -l
i2c-0 i2c OMAP I2C adapter I2C adapter
i2c-1 i2c OMAP I2C adapter I2C adapter
i2c-2 i2c OMAP I2C adapter I2C adapter

ubuntu@riptide-uuuv:/boot$ dmesg | grep i2c
[ 2.709984] omap_i2c 44e0b000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c0_pins, deferring probe
[ 2.710026] omap_i2c 4819c000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c2_pins, deferring probe
[ 3.718269] i2c /dev entries driver
[ 3.935362] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
[ 3.970656] omap_i2c 4819c000.i2c: bus 2 rev0.11 at 100 kHz
[ 5.391143] omap_i2c 4802a000.i2c: bus 1 rev0.11 at 100 kHz

ubuntu@riptide-uuuv:/boot$ dmesg | grep cape
[ 0.000000] Kernel command line: console=ttyO0,115200n8 bone_capemgr.enable_partno=BB-I2C1,BB-UART1 root=/dev/mmcblk0p1 ro rootfstype=ext4 rootwait fixrtc
[ 3.982669] bone_capemgr bone_capemgr: Baseboard: ‘A335BNLT,00C0,414BBBK1610\xffffffff’
[ 3.989937] bone_capemgr bone_capemgr: compatible-baseboard=ti,beaglebone-black - #slots=4
[ 4.052219] bone_capemgr bone_capemgr: slot #0: No cape found
[ 4.112220] bone_capemgr bone_capemgr: slot #1: No cape found
[ 4.172216] bone_capemgr bone_capemgr: slot #2: No cape found
[ 4.232213] bone_capemgr bone_capemgr: slot #3: No cape found
[ 4.238001] bone_capemgr bone_capemgr: enabled_partno PARTNO ‘BB-I2C1’ VER ‘N/A’ PR ‘0’
[ 4.246084] bone_capemgr bone_capemgr: slot #4: override
[ 4.251436] bone_capemgr bone_capemgr: Using override eeprom data at slot 4
[ 4.258445] bone_capemgr bone_capemgr: slot #4: ‘Override Board Name,00A0,Override Manuf,BB-I2C1’
[ 4.267467] bone_capemgr bone_capemgr: enabled_partno PARTNO ‘BB-UART1’ VER ‘N/A’ PR ‘0’
[ 4.275639] bone_capemgr bone_capemgr: slot #5: override
[ 4.280989] bone_capemgr bone_capemgr: Using override eeprom data at slot 5
[ 4.287995] bone_capemgr bone_capemgr: slot #5: ‘Override Board Name,00A0,Override Manuf,BB-UART1’
[ 4.297372] bone_capemgr bone_capemgr: initialized OK.
[ 5.403659] bone_capemgr bone_capemgr: slot #4: dtbo ‘BB-I2C1-00A0.dtbo’ loaded; overlay id #1
[ 5.418457] bone_capemgr bone_capemgr: slot #5: dtbo ‘BB-UART1-00A0.dtbo’ loaded; overlay id #0