How to tell the cape-manager to load BB-BONE-LCD4-01 in a slot without using an eeprom

645 views
Skip to first unread message

Carl Holzmann

unread,
Jan 19, 2017, 12:02:02 PM1/19/17
to BeagleBoard

Dear All,

I hope that anybody can explain what is happening here.

On my fresly installed BBBI * I have attached a LCD CAPE 4.3" cape (have changed the adres)
I have edited /boot/uEnv.txt en have uncommented  :   dtb=am335x-boneblack-emmc-overlay.dtb .
After reboot the LCD was working as expected, and the cape manager slots gives:

root@beaglebone:~# cat /sys/devices/platform/bone_capemgr/slots
 
0: PF----  -1
 
1: PF----  -1
 
2: P---L-   0 4D 4.3 LCD CAPE- 4DCAPE-43T     ,00A1,4D SYSTEMS      ,BB-BONE-LCD4-01
 
3: PF----  -1
root@beaglebone
:~#

Powering Down the BBBI, removing the LCD and rebooting, gives empty slots ( also as expected ).

I would now like to enable the cape without using the eeprom (to test I have not placed the LCD board on the BBBI).

root@beaglebone:~# echo BB-BONE-LCD4-01 >  /sys/devices/platform/bone_capemgr/slots
-bash: echo: write error: No such file or directory
root@beaglebone:~#


If I check with dmesg it seems that it the cape manager has tried to do something:

beaglebone:~# dmesg | grep bone_capemgr

[    2.326191] bone_capemgr bone_capemgr: Baseboard: 'A335BNLT,EIA0,4816BBBK37B2'
[    2.326226] bone_capemgr bone_capemgr: compatible-baseboard=ti,beaglebone-black - #slots=4
[    2.365381] bone_capemgr bone_capemgr: slot #0: No cape found
[    2.409373] bone_capemgr bone_capemgr: slot #1: No cape found
[    2.453370] bone_capemgr bone_capemgr: slot #2: No cape found
[    2.497369] bone_capemgr bone_capemgr: slot #3: No cape found
[    2.503266] bone_capemgr bone_capemgr: initialized OK.
[   51.567215] bone_capemgr bone_capemgr: part_number 'BB-BONE-LCD4-01', version 'N/A'
[   51.567258] bone_capemgr bone_capemgr: slot #4: override
[   51.572738] bone_capemgr bone_capemgr: Using override eeprom data at slot 4
[   51.572760] bone_capemgr bone_capemgr: slot #4: 'Override Board Name,00A0,Override Manuf,BB-BONE-LCD4-01'
root@beaglebone:~#


When I the slots, the BB-BONE-LCD4-01 does not show up

root@beaglebone:~# slots
 
0: PF----  -1
 
1: PF----  -1
 
2: PF----  -1
 
3: PF----  -1
root@beaglebone
:~#


Is there anyone who has got an clue why this is not working I would expect that on slot 4 the BB-BONE-LCD4-01 would be?

As a final test I have tested BB-UART1 but this seems to work with no problem at all

root@beaglebone:~# echo BB-UART1 > /sys/devices/platform/bone_capemgr/slots
root@beaglebone:~# slots
 0: PF----  -1
 1: PF----  -1
 2: PF----  -1
 3: PF----  -1
 4: P-O-L-   1 Override Board Name,00A0,Override Manuf,BB-UART1
root@beaglebone:~#



So what is the difference between using the BB-BONE-LCD4-01 and the BB-UART1 ?

Best regards,
 Carl
 
*
Image:  bone-debian-8.6-console-armhf-2017-01-08-2gb.img.xz
uname-a:     Linux beaglebone 4.4.40-ti-r80 #1 SMP Sat Jan 7 11:36:44 UTC 2017 armv7l GNU/Linux

Robert Nelson

unread,
Jan 19, 2017, 12:04:56 PM1/19/17
to Beagle Board, ca...@alenco.nl
On Thu, Jan 19, 2017 at 10:31 AM, Carl Holzmann <ca...@alenco.nl> wrote:
>
> Dear All,
>
> I hope that anybody can explain what is happening here.
>
> On my fresly installed BBBI * I have attached a LCD CAPE 4.3" cape (have
> changed the adres)
> I have edited /boot/uEnv.txt en have uncommented :
> dtb=am335x-boneblack-emmc-overlay.dtb .
> After reboot the LCD was working as expected, and the cape manager slots
> gives:
>
> root@beaglebone:~# cat /sys/devices/platform/bone_capemgr/slots
> 0: PF---- -1
> 1: PF---- -1
> 2: P---L- 0 4D 4.3 LCD CAPE- 4DCAPE-43T ,00A1,4D SYSTEMS
> ,BB-BONE-LCD4-01
> 3: PF---- -1
> root@beaglebone:~#
>
> Powering Down the BBBI, removing the LCD and rebooting, gives empty slots (
> also as expected ).
>
> I would now like to enable the cape without using the eeprom (to test I have
> not placed the LCD board on the BBBI).
>
> root@beaglebone:~# echo BB-BONE-LCD4-01 >
> /sys/devices/platform/bone_capemgr/slots
> -bash: echo: write error: No such file or directory

next time you see this, just type:

dmesg | tail

and you'll see what actually happened..

Regards,

--
Robert Nelson
https://rcn-ee.com/

Carl Holzmann

unread,
Jan 20, 2017, 3:27:58 AM1/20/17
to BeagleBoard, ca...@alenco.nl
Hello Robert,

Thank you for your reply, I have repeated this test, with "dmesg | tail" (see below and complete dmesg as attachment).

With no capes attached* I echo echo BB-BONE-LCD4-01 to the slots, this does not work as I would expect, then I echo BB-UART1 to the slots and this seems to work.

Unfortunately I still do not understand why the echo of BB-UART1 is ok and works and the echo of BB-BONE-LCD4-01 reacts differently and does not appear in the slots.

Do you understand what the difference is, why can't I load the BB-BONE-LCD4-01 with the echo command?


Debian GNU/Linux 8

BeagleBoard.org Debian Image 2017-01-08


default username:password is [debian:temppwd]

Last login: Sat May 21 22:31:48 2016 from 10.0.0.209
root@beaglebone:~# echo BB-BONE-LCD4-01 >  /sys/devices/platform/bone_capemgr/slots
-bash: echo: write error: No such file or directory
root@beaglebone:~# dmesg | tail
[   20.666392] net eth0: initialized cpsw ale version 1.4
[   20.666402] net eth0: ALE Table size 1024
[   20.669077] net eth0: phy found : id is : 0x7c0f1
[   20.688124] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   23.682395] cpsw 4a100000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[   23.682517] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   53.311854] bone_capemgr bone_capemgr: part_number 'BB-BONE-LCD4-01', version 'N/A'
[   53.311897] bone_capemgr bone_capemgr: slot #4: override
[   53.317405] bone_capemgr bone_capemgr: Using override eeprom data at slot 4
[   53.317427] bone_capemgr bone_capemgr: slot #4: 'Override Board Name,00A0,Override Manuf,BB-BONE-LCD4-01'
root@beaglebone:~# echo BB-UART1 >  /sys/devices/platform/bone_capemgr/slots
root@beaglebone:~# dmesg | tail
[   53.311854] bone_capemgr bone_capemgr: part_number 'BB-BONE-LCD4-01', version 'N/A'
[   53.311897] bone_capemgr bone_capemgr: slot #4: override
[   53.317405] bone_capemgr bone_capemgr: Using override eeprom data at slot 4
[   53.317427] bone_capemgr bone_capemgr: slot #4: 'Override Board Name,00A0,Override Manuf,BB-BONE-LCD4-01'
[   65.408052] bone_capemgr bone_capemgr: part_number 'BB-UART1', version 'N/A'
[   65.408096] bone_capemgr bone_capemgr: slot #5: override
[   65.413576] bone_capemgr bone_capemgr: Using override eeprom data at slot 5
[   65.413596] bone_capemgr bone_capemgr: slot #5: 'Override Board Name,00A0,Override Manuf,BB-UART1'
[   65.439573] 48022000.serial: ttyS1 at MMIO 0x48022000 (irq = 184, base_baud = 3000000) is a 8250
[   65.440268] bone_capemgr bone_capemgr: slot #5: dtbo 'BB-UART1-00A0.dtbo' loaded; overlay id #0
root@beaglebone:~# slots
 0: PF----  -1
 1: PF----  -1
 2: PF----  -1
 3: PF----  -1
 5: P-O-L-   0 Override Board Name,00A0,Override Manuf,BB-UART1
root@beaglebone:~#



Best regards,
  Carl

*and in /boot/uEnv.txt I still have  uncommented: dtb=am335x-boneblack-emmc-overlay.dtb 
CompleteDmesg-20-1-2017.txt
Reply all
Reply to author
Forward
0 new messages