Dear Forum,
I have now turned the web outside-in to find an answer to this question.
I see a lot of subjects touching the subject, but the answers and suggestions are mostly in the hear-say category and points in different directions putting me off in an endless ghost-hunt.
I have been testing various overlays, some loads without problems, other won’t load but can be manually loaded after boot.
I can even rename an overlay that loads and it stops loading even if the content is identical.
I have changed the sequence of loading proving that the file system is ready at the time of loading.
I have tested the suggested solutions from:
http://elinux.org/BeagleBone_Black_Enable_SPIDEV
The .dtbo files does not load at boot, but can be loaded manually later. And working when loaded!
The boot log gives no clue of what the problem may be.
-
Is it the content of the .dtbo?
-
Is it the name of the .dtbo file?
Please advice
Best regards
Terje Froysa
debian@beaglebone:~$ uname -a
Linux beaglebone 3.8.13-bone50 #1 SMP Tue May 13 13:24:52 UTC 2014 armv7l GNU/Linux
Boot log showing BB-SPI1-SWP-01 not loading:
debian@beaglebone:~$ dmesg |grep BB-
[ 0.000000] Kernel command line: console=tty0 console=ttyO0,115200n8 capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN capemgr.enable_partno=BB-I2C1,BB-SPI1-SWP-01 root=UUID=5a42a22f-1771-4c44-93ef-8879c38b63d9 ro rootfstype=ext4 rootwait fixrtc quiet init=/lib/systemd/systemd
[ 0.565888] bone-capemgr bone_capemgr.9: Skipping disabled cape with part# BB-BONELT-HDMI
[ 0.565937] bone-capemgr bone_capemgr.9: Skipping disabled cape with part# BB-BONELT-HDMIN
[ 0.714324] bone-capemgr bone_capemgr.9: slot #4: ‘Bone-LT-eMMC-2G,00A0,Texas Instrument,BB-BONE-EMMC-2G’
[ 0.714439] bone-capemgr bone_capemgr.9: slot #5: ‘Bone-Black-HDMI,00A0,Texas Instrument,BB-BONELT-HDMI’
[ 0.714540] bone-capemgr bone_capemgr.9: slot #6: ‘Bone-Black-HDMIN,00A0,Texas Instrument,BB-BONELT-HDMIN’
[ 0.714612] bone-capemgr bone_capemgr.9: enabled_partno part_number ‘BB-I2C1’, version ‘N/A’, prio ‘0’
[ 0.714653] bone-capemgr bone_capemgr.9: slot #7: ‘Override Board Name,00A0,Override Manuf,BB-I2C1’
[ 0.714725] bone-capemgr bone_capemgr.9: enabled_partno part_number ‘BB-SPI1-SWP-01’, version ‘N/A’, prio ‘0’
[ 0.714762] bone-capemgr bone_capemgr.9: slot #8: ‘Override Board Name,00A0,Override Manuf,BB-SPI1-SWP-01’
[ 0.714928] bone-capemgr bone_capemgr.9: Skipping loading of disabled cape with part# BB-BONELT-HDMI
[ 0.714943] bone-capemgr bone_capemgr.9: Skipping loading of disabled cape with part# BB-BONELT-HDMIN
[ 0.715135] bone-capemgr bone_capemgr.9: loader: before slot-4 BB-BONE-EMMC-2G:00A0 (prio 1)
[ 0.715149] bone-capemgr bone_capemgr.9: loader: check slot-4 BB-BONE-EMMC-2G:00A0 (prio 1)
[ 0.715228] bone-capemgr bone_capemgr.9: loader: before slot-7 BB-I2C1:00A0 (prio 0)
[ 0.715240] bone-capemgr bone_capemgr.9: loader: check slot-7 BB-I2C1:00A0 (prio 0)
[ 0.715732] bone-capemgr bone_capemgr.9: loader: check slot-4 BB-BONE-EMMC-2G:00A0 (prio 1)
[ 0.718442] bone-capemgr bone_capemgr.9: loader: after slot-7 BB-I2C1:00A0 (prio 0)
[ 0.718462] bone-capemgr bone_capemgr.9: slot #7: Requesting part number/version based 'BB-I2C1-00A0.dtbo
[ 0.718477] bone-capemgr bone_capemgr.9: slot #7: Requesting firmware ‘BB-I2C1-00A0.dtbo’ for board-name ‘Override Board Name’, version ‘00A0’
[ 0.718506] bone-capemgr bone_capemgr.9: slot #7: dtbo ‘BB-I2C1-00A0.dtbo’ loaded; converting to live tree
[ 0.720710] bone-capemgr bone_capemgr.9: loader: before slot-8 BB-SPI1-SWP-01:00A0 (prio 0)
[ 0.720724] bone-capemgr bone_capemgr.9: loader: check slot-8 BB-SPI1-SWP-01:00A0 (prio 0)
[ 0.720740] bone-capemgr bone_capemgr.9: loader: after slot-8 BB-SPI1-SWP-01:00A0 (prio 0)
[ 0.720754] bone-capemgr bone_capemgr.9: slot #8: Requesting part number/version based 'BB-SPI1-SWP-01-00A0.dtbo
[ 0.720770] bone-capemgr bone_capemgr.9: slot #8: Requesting firmware ‘BB-SPI1-SWP-01-00A0.dtbo’ for board-name ‘Override Board Name’, version ‘00A0’
[ 0.721636] bone-capemgr bone_capemgr.9: loader: done slot-7 BB-I2C1:00A0 (prio 0)
[ 0.721672] bone-capemgr bone_capemgr.9: loader: check slot-4 BB-BONE-EMMC-2G:00A0 (prio 1)
[ 1.075899] bone-capemgr bone_capemgr.9: failed to load firmware ‘BB-SPI1-SWP-01-00A0.dtbo’
[ 1.084703] bone-capemgr bone_capemgr.9: loader: failed to load slot-8 BB-SPI1-SWP-01:00A0 (prio 0)
[ 1.094196] bone-capemgr bone_capemgr.9: loader: check slot-4 BB-BONE-EMMC-2G:00A0 (prio 1)
[ 1.094214] bone-capemgr bone_capemgr.9: loader: after slot-4 BB-BONE-EMMC-2G:00A0 (prio 1)
[ 1.122393] bone-capemgr bone_capemgr.9: loader: done slot-4 BB-BONE-EMMC-2G:00A0 (prio 1)
Verify overlay not loaded:
root@beaglebone:/home/debian# cat $SLOTS
0: 54:PF—
1: 55:PF—
2: 56:PF—
3: 57:PF—
4: ff:P-O-L Bone-LT-eMMC-2G,00A0,Texas Instrument,BB-BONE-EMMC-2G
5: ff:P-O-- Bone-Black-HDMI,00A0,Texas Instrument,BB-BONELT-HDMI
6: ff:P-O-- Bone-Black-HDMIN,00A0,Texas Instrument,BB-BONELT-HDMIN
8: ff:P-O-L Override Board Name,00A0,Override Manuf,BB-I2C1
Manually loading same overlay:
root@beaglebone:/home/debian# echo BB-SPI1-SWP-01 > $SLOTS
root@beaglebone:/home/debian# cat $SLOTS
0: 54:PF—
1: 55:PF—
2: 56:PF—
3: 57:PF—
4: ff:P-O-L Bone-LT-eMMC-2G,00A0,Texas Instrument,BB-BONE-EMMC-2G
5: ff:P-O-- Bone-Black-HDMI,00A0,Texas Instrument,BB-BONELT-HDMI
6: ff:P-O-- Bone-Black-HDMIN,00A0,Texas Instrument,BB-BONELT-HDMIN
8: ff:P-O-L Override Board Name,00A0,Override Manuf,BB-I2C1
9: ff:P-O-L Override Board Name,00A0,Override Manuf,BB-SPI1-SWP-01
root@beaglebone:/home/debian# ls /dev |grep spi
spidev1.0