When I received my first kickstarter boards I was able to load all the Logibone wishbone demos - everything was great. Unfortunately, now I find that when I load the latest distribution and run the latest .sh scripts I am frustrated to find that enough has changed that nothing works. Very distressing. I'm running the Ubuntu distrubution bbb_logibone_ra2_base_image.img.
You'll note the rather alarming errors produced from running install_logibone.sh. Most importantly going to
http://ports.ubuntu.com one will find that the paths to the references producing errors simply DO NOT EXIST.
Further for example quantal does not exist behind
http://ports.ubuntu.com/ubuntu-ports/dists root@arm:/home/ubuntu/logi-tools# ./install_logibone.sh
Ign
http://ports.ubuntu.com quantal Release.gpg
Ign
http://ports.ubuntu.com quantal-updates Release.gpg
Ign
http://ports.ubuntu.com quantal Release
Ign
http://ports.ubuntu.com quantal-updates Release
Ign
http://ports.ubuntu.com quantal/main Sources/DiffIndex
Ign
http://ports.ubuntu.com quantal/universe Sources/DiffIndex
Ign
http://ports.ubuntu.com quantal/multiverse Sources/DiffIndex
Ign
http://ports.ubuntu.com quantal/main armhf Packages/DiffIndex
Ign
http://ports.ubuntu.com quantal/universe armhf Packages/DiffIndex
Ign
http://ports.ubuntu.com quantal/multiverse armhf Packages/DiffIndex
Ign
http://ports.ubuntu.com quantal-updates/main Sources/DiffIndex
Ign
http://ports.ubuntu.com quantal-updates/universe Sources/DiffIndex
Ign
http://ports.ubuntu.com quantal-updates/multiverse Sources/DiffIndex
Ign
http://ports.ubuntu.com quantal-updates/main armhf Packages/DiffIndex
Ign
http://ports.ubuntu.com quantal-updates/universe armhf Packages/DiffIndex
Ign
http://ports.ubuntu.com quantal-updates/multiverse armhf Packages/DiffIndex
Ign
http://ports.ubuntu.com quantal/main Translation-en
Ign
http://ports.ubuntu.com quantal/multiverse Translation-en
Ign
http://ports.ubuntu.com quantal/universe Translation-en
Ign
http://ports.ubuntu.com quantal-updates/main Translation-en
Ign
http://ports.ubuntu.com quantal-updates/multiverse Translation-en
Ign
http://ports.ubuntu.com quantal-updates/universe Translation-en
Err
http://ports.ubuntu.com quantal/main Sources
404 Not Found
Err
http://ports.ubuntu.com quantal/universe Sources
404 Not Found
Err
http://ports.ubuntu.com quantal/multiverse Sources
404 Not Found
Err
http://ports.ubuntu.com quantal/main armhf Packages
404 Not Found
Err
http://ports.ubuntu.com quantal/universe armhf Packages
404 Not Found
Err
http://ports.ubuntu.com quantal/multiverse armhf Packages
404 Not Found
Err
http://ports.ubuntu.com quantal-updates/main Sources
404 Not Found
Err
http://ports.ubuntu.com quantal-updates/universe Sources
404 Not Found
Err
http://ports.ubuntu.com quantal-updates/multiverse Sources
404 Not Found
Err
http://ports.ubuntu.com quantal-updates/main armhf Packages
404 Not Found
Err
http://ports.ubuntu.com quantal-updates/universe armhf Packages
404 Not Found
Err
http://ports.ubuntu.com quantal-updates/multiverse armhf Packages
404 Not Found
W: Failed to fetch
http://ports.ubuntu.com/ubuntu-ports/dists/quantal/main/source/Sources 404 Not Found
W: Failed to fetch
http://ports.ubuntu.com/ubuntu-ports/dists/quantal/universe/source/Sources 404 Not Found
W: Failed to fetch
http://ports.ubuntu.com/ubuntu-ports/dists/quantal/multiverse/source/Sources 404 Not Found
W: Failed to fetch
http://ports.ubuntu.com/ubuntu-ports/dists/quantal/main/binary-armhf/Packages 404 Not Found
W: Failed to fetch
http://ports.ubuntu.com/ubuntu-ports/dists/quantal/universe/binary-armhf/Packages 404 Not Found
W: Failed to fetch
http://ports.ubuntu.com/ubuntu-ports/dists/quantal/multiverse/binary-armhf/Packages 404 Not Found
W: Failed to fetch
http://ports.ubuntu.com/ubuntu-ports/dists/quantal-updates/main/source/Sources 404 Not Found
W: Failed to fetch
http://ports.ubuntu.com/ubuntu-ports/dists/quantal-updates/universe/source/Sources 404 Not Found
W: Failed to fetch
http://ports.ubuntu.com/ubuntu-ports/dists/quantal-updates/multiverse/source/Sources 404 Not Found
W: Failed to fetch
http://ports.ubuntu.com/ubuntu-ports/dists/quantal-updates/main/binary-armhf/Packages 404 Not Found
W: Failed to fetch
http://ports.ubuntu.com/ubuntu-ports/dists/quantal-updates/universe/binary-armhf/Packages 404 Not Found
W: Failed to fetch
http://ports.ubuntu.com/ubuntu-ports/dists/quantal-updates/multiverse/binary-armhf/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
Settin up cape eeprom ID ...............
Installing dependencies...............
Reading package lists... Done
Building dependency tree
Reading state information... Done
gcc is already the newest version.
git is already the newest version.
make is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 13 not upgraded.
Installing logi_loader...............
make: Nothing to be done for `all'.
install logi_loader /usr/bin
Installing python support...............
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libexpat1-dev libpython2.7 libssl-dev libssl-doc libssl1.0.0 python2.7-dev zlib1g-dev
The following NEW packages will be installed:
libexpat1-dev libpython2.7 libssl-dev libssl-doc python-dev python2.7-dev zlib1g-dev
The following packages will be upgraded:
libssl1.0.0
1 upgraded, 7 newly installed, 0 to remove and 12 not upgraded.
Need to get 26.5 MB of archives.
After this operation, 36.5 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
WARNING: The following packages cannot be authenticated!
libssl1.0.0 libexpat1-dev libpython2.7 zlib1g-dev libssl-dev libssl-doc python2.7-dev python-dev
Install these packages without verification [y/N]? y
Err
http://ports.ubuntu.com/ubuntu-ports/ quantal-updates/main libssl1.0.0 armhf 1.0.1c-3ubuntu2.4
404 Not Found
Err
http://ports.ubuntu.com/ubuntu-ports/ quantal/main libexpat1-dev armhf 2.1.0-1ubuntu1
404 Not Found
Err
http://ports.ubuntu.com/ubuntu-ports/ quantal/main libpython2.7 armhf 2.7.3-5ubuntu4
404 Not Found
Err
http://ports.ubuntu.com/ubuntu-ports/ quantal/main zlib1g-dev armhf 1:1.2.7.dfsg-13
404 Not Found
Err
http://ports.ubuntu.com/ubuntu-ports/ quantal-updates/main libssl-dev armhf 1.0.1c-3ubuntu2.4
404 Not Found
Err
http://ports.ubuntu.com/ubuntu-ports/ quantal-updates/main libssl-doc all 1.0.1c-3ubuntu2.4
404 Not Found
Err
http://ports.ubuntu.com/ubuntu-ports/ quantal/main python2.7-dev armhf 2.7.3-5ubuntu4
404 Not Found
Err
http://ports.ubuntu.com/ubuntu-ports/ quantal/main python-dev armhf 2.7.3-0ubuntu7
404 Not Found
Failed to fetch
http://ports.ubuntu.com/ubuntu-ports/pool/main/o/openssl/libssl1.0.0_1.0.1c-3ubuntu2.4_armhf.deb 404 Not Found
Failed to fetch
http://ports.ubuntu.com/ubuntu-ports/pool/main/e/expat/libexpat1-dev_2.1.0-1ubuntu1_armhf.deb 404 Not Found
Failed to fetch
http://ports.ubuntu.com/ubuntu-ports/pool/main/p/python2.7/libpython2.7_2.7.3-5ubuntu4_armhf.deb 404 Not Found
Failed to fetch
http://ports.ubuntu.com/ubuntu-ports/pool/main/z/zlib/zlib1g-dev_1.2.7.dfsg-13_armhf.deb 404 Not Found
Failed to fetch
http://ports.ubuntu.com/ubuntu-ports/pool/main/o/openssl/libssl-dev_1.0.1c-3ubuntu2.4_armhf.deb 404 Not Found
Failed to fetch
http://ports.ubuntu.com/ubuntu-ports/pool/main/o/openssl/libssl-doc_1.0.1c-3ubuntu2.4_all.deb 404 Not Found
Failed to fetch
http://ports.ubuntu.com/ubuntu-ports/pool/main/p/python2.7/python2.7-dev_2.7.3-5ubuntu4_armhf.deb 404 Not Found
Failed to fetch
http://ports.ubuntu.com/ubuntu-ports/pool/main/p/python-defaults/python-dev_2.7.3-0ubuntu7_armhf.deb 404 Not Found
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
running build
running build_ext
building 'logi' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I../../c -I/usr/include/python2.7 -c logi.c -o build/tem
p.linux-armv7l-2.7/logi.o
logi.c:1:20: fatal error: Python.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1
running install
running build
running build_ext
building 'logi' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I../../c -I/usr/include/python2.7 -c logi.c -o build/tem
p.linux-armv7l-2.7/logi.o
logi.c:1:20: fatal error: Python.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1
Installing logi C library...............
gcc -shared -o liblogibone.so logibonelib.o
mv liblogibone.so /usr/lib/liblogi.so
cp logilib.h /usr/include
root@arm:/home/ubuntu/logi-tools# ./install_logibone.sh > install_error_log.txt
W: Failed to fetch
http://ports.ubuntu.com/ubuntu-ports/dists/quantal/main/source/Sources 404 Not Found
W: Failed to fetch
http://ports.ubuntu.com/ubuntu-ports/dists/quantal/universe/source/Sources 404 Not Found
W: Failed to fetch
http://ports.ubuntu.com/ubuntu-ports/dists/quantal/multiverse/source/Sources 404 Not Found
W: Failed to fetch
http://ports.ubuntu.com/ubuntu-ports/dists/quantal/main/binary-armhf/Packages 404 Not Found
W: Failed to fetch
http://ports.ubuntu.com/ubuntu-ports/dists/quantal/universe/binary-armhf/Packages 404 Not Found
W: Failed to fetch
http://ports.ubuntu.com/ubuntu-ports/dists/quantal/multiverse/binary-armhf/Packages 404 Not Found
W: Failed to fetch
http://ports.ubuntu.com/ubuntu-ports/dists/quantal-updates/main/source/Sources 404 Not Found
W: Failed to fetch
http://ports.ubuntu.com/ubuntu-ports/dists/quantal-updates/universe/source/Sources 404 Not Found
W: Failed to fetch
http://ports.ubuntu.com/ubuntu-ports/dists/quantal-updates/multiverse/source/Sources 404 Not Found
W: Failed to fetch
http://ports.ubuntu.com/ubuntu-ports/dists/quantal-updates/main/binary-armhf/Packages 404 Not Found
W: Failed to fetch
http://ports.ubuntu.com/ubuntu-ports/dists/quantal-updates/universe/binary-armhf/Packages 404 Not Found
W: Failed to fetch
http://ports.ubuntu.com/ubuntu-ports/dists/quantal-updates/multiverse/binary-armhf/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
y
y
Failed to fetch
http://ports.ubuntu.com/ubuntu-ports/pool/main/o/openssl/libssl1.0.0_1.0.1c-3ubuntu2.4_armhf.deb 404 Not Found
Failed to fetch
http://ports.ubuntu.com/ubuntu-ports/pool/main/e/expat/libexpat1-dev_2.1.0-1ubuntu1_armhf.deb 404 Not Found
Failed to fetch
http://ports.ubuntu.com/ubuntu-ports/pool/main/p/python2.7/libpython2.7_2.7.3-5ubuntu4_armhf.deb 404 Not Found
Failed to fetch
http://ports.ubuntu.com/ubuntu-ports/pool/main/z/zlib/zlib1g-dev_1.2.7.dfsg-13_armhf.deb 404 Not Found
Failed to fetch
http://ports.ubuntu.com/ubuntu-ports/pool/main/o/openssl/libssl-dev_1.0.1c-3ubuntu2.4_armhf.deb 404 Not Found
Failed to fetch
http://ports.ubuntu.com/ubuntu-ports/pool/main/o/openssl/libssl-doc_1.0.1c-3ubuntu2.4_all.deb 404 Not Found
Failed to fetch
http://ports.ubuntu.com/ubuntu-ports/pool/main/p/python2.7/python2.7-dev_2.7.3-5ubuntu4_armhf.deb 404 Not Found
Failed to fetch
http://ports.ubuntu.com/ubuntu-ports/pool/main/p/python-defaults/python-dev_2.7.3-0ubuntu7_armhf.deb 404 Not Found
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
logi.c:1:20: fatal error: Python.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1
logi.c:1:20: fatal error: Python.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1
So... after even more thrashing about I'm left with the very strong impression that the .dts file is incorrect.
root@arm:/home/ubuntu# ./read_wishbone 0x0000
0x0
root@arm:/home/ubuntu# ./read_wishbone 0x0002
0x1
root@arm:/home/ubuntu# ./read_wishbone 0x0004
0x2
root@arm:/home/ubuntu# ./read_wishbone 0x0006
0x3
root@arm:/home/ubuntu# ./read_wishbone 0x0008
0x4
root@arm:/home/ubuntu# ./read_wishbone 0x000a
0x5
I hope you'll be able to put me back on the right path. Thanks
Comments
root@arm:/home/ubuntu/logi-tools# dmesg | grep LOGI
[ 1.697191] bone-capemgr bone_capemgr.8: slot #0: 'BB-BONE-LOGIBONE,00R1,VALENTFX,BB-BONE-LOGIBONE'
[ 1.927764] bone-capemgr bone_capemgr.8: loader: before slot-0 BB-BONE-LOGIBONE:00R1 (prio 0)
[ 1.936722] bone-capemgr bone_capemgr.8: loader: check slot-0 BB-BONE-LOGIBONE:00R1 (prio 0)
[ 1.965599] bone-capemgr bone_capemgr.8: loader: after slot-0 BB-BONE-LOGIBONE:00R1 (prio 0)
[ 1.980569] bone-capemgr bone_capemgr.8: slot #0: Requesting part number/version based 'BB-BONE-LOGIBONE-00R1.dtbo
[ 2.009019] bone-capemgr bone_capemgr.8: slot #0: Requesting firmware 'BB-BONE-LOGIBONE-00R1.dtbo' for board-name 'BB-BONE-LOGIBONE', version '0
0R1'
[ 3.182447] bone-capemgr bone_capemgr.8: failed to load firmware 'BB-BONE-LOGIBONE-00R1.dtbo'
[ 3.191484] bone-capemgr bone_capemgr.8: loader: failed to load slot-0 BB-BONE-LOGIBONE:00R1 (prio 0)
[ 328.350895] bone-capemgr bone_capemgr.8: part_number 'BB-BONE-LOGIBONE', version '00A2'
[ 328.351389] bone-capemgr bone_capemgr.8: slot #7: 'Override Board Name,00A2,Override Manuf,BB-BONE-LOGIBONE'
[ 328.353967] bone-capemgr bone_capemgr.8: slot #7: Requesting part number/version based 'BB-BONE-LOGIBONE-00A2.dtbo
[ 328.354036] bone-capemgr bone_capemgr.8: slot #7: Requesting firmware 'BB-BONE-LOGIBONE-00A2.dtbo' for board-name 'Override Board Name', version
'00A2'
[ 328.357599] bone-capemgr bone_capemgr.8: slot #7: dtbo 'BB-BONE-LOGIBONE-00A2.dtbo' loaded; converting to live tree
If you are running the logi imatge we provide and don't update the kernel you should be fine. I fyou download latest Debian/Ubuntu distro from beagleboard.org, things won't work as the integration of device tree into the BBB kernel is now a bit unstable (no more overlay).
From your log, everything seems fine with the dts files, the only problem you have is with the install of python-dev which prevent the python extension of logi to be installed. You can try to install python-dev by hand by running "sudo apt-get install python-dev" and maybe you should do a "sudo apt-get update" first to make sure all the repositories are fine and also make sure that your internet connection works on the BBB.
When you do a :
root@arm:/home/ubuntu# ./read_wishbone 0x0000
what application is loaded inside the FPGA ?
http://valentfx.com/doc/logi-image/logibone/logi_ubuntu-14.04-console-armhf-2014-08-13.img.zip
which is more up to date with current logi software (see http://valentfx.com/wiki/index.php?title=Logi-Bone_Quick_Start_Guide#Getting_your_LOGI-Image_installed_onto_your_SD_card)
Regards,
Jonathan Piat