mirkix / BBBMINI

BeagleBone ArduPilot DIY Cape
186 stars 64 forks source link

SPI unable to open #41

Closed oscarjgv24 closed 6 years ago

oscarjgv24 commented 7 years ago

Hi,

I am trying to run it in the Beaglebone Blue... I tried using the image provided in (https://github.com/mirkix/ardupilotblue) and at first it ran correctly but then it gave an error of No INS backend available.

I am having the following error

root@beaglebone:/home/debian# /home/debian/arducopter -C udp:192.168.137.1:14550 SPI: unable to open SPI bus /dev/spidev2.1: No such file or directory

I checked the /dev folder and spidev2.1 is not there, spi_bug

I would assume is just a matter of changing it but I am thinking maybe I missed something. I ran all the steps in (https://github.com/mirkix/BBBMINI/blob/master/doc/software/software.md).

Any suggestions?

Regards, Oscar

patrickpoirier51 commented 7 years ago

Looks like you do not have the correct binary... this one is looking for SPI connected sensors that are on the BBBMINI not on the BBBlue. Concerning the initial error - No INS backend-- is probably because you need root privileges to run , this is why the wiki examples are using sudo. You should use gitter for these type of question: https://gitter.im/mirkix/BBBMINI Regards

oscarjgv24 commented 7 years ago

Hi @patrickpoirier51 ,

Yes. This was my bad. I followed the suggestions in ([1]https://github.com/mirkix/BBBMINI/blob/master/doc/software/software.md) to the letter but they are for BBBMINI as you suggested.

I corrected this by avoiding step 16 in [1] and selecting board=blue in step [4] of compiling.

I got confused because this process is not described in ([2] https://github.com/mirkix/ardupilotblue) since it provides the image but I wanted to build it for myself.

As for the No INS backend, I don't know what was exactly but when I ran all the steps in [2] then all the compiling steps in [1], it worked.

And thank you Patrick. I didn't know about gitter but I have joined now. I will be posting any relevant problem or solution there.

Regards, Oscar

juvinski commented 7 years ago

hi @OscarJGV26 ,

BBBMini use spi for 9DOF sensor while BBBBlue use just i2c for both 9DOF and Baro, that is the reason you are having this troubles.

oscarjgv24 commented 7 years ago

hi @juvinski

Yes. I realized I made that mistake on selecting board=blue and also, I assume, loading wrong cape layout in step 16.

Thank you very much.