Emlid

Community Forum

Rcio boot loop


(Kevin Watkins) #1

Navio2, did an upgrade/update, asked for rcio upgrade - but doesn’t seem to stick, it keeps asking for and going through an upgrade everytime i start ardupilot.

sudo emlidtool rcio update -f
Updating firmware using /lib/firmware/rcio.fw
Connect: done
Attach: done
Catch vectors: done
Erase: done
Flashing
Load: done
Run: done
100% (100 of 100) |##################################################################################################| Elapsed Time: 0:00:15 Time: 0:00:15
You have successfully updated RCIO firmware

You need to reboot your device

pi@navio:~ $ sudo reboot

pi@navio:~ $ sudo modprobe -r rcio_spi && sudo modprobe rcio_spi
pi@navio:~ $ dmesg | grep rcio
[ 4.629606] rcio_core: loading out-of-tree module taints kernel.
[ 4.652817] rcio spi1.0: rcio_status: could not read CRC
[ 4.659256] rcio spi1.0: rcio_status: Could not read board type
[ 4.660332] rcio spi1.0: rcio_status: Could not read git hash
[ 4.662188] rcio spi1.0: rcio_pwm: Advanced frequency configuration is supported on this firmware
[ 4.664947] rcio spi1.0: rcio_pwm: updated freq on grp 0 to 50
[ 4.666253] rcio spi1.0: rcio_pwm: updated freq on grp 1 to 50
[ 4.667177] rcio spi1.0: rcio_pwm: updated freq on grp 2 to 50
[ 4.668088] rcio spi1.0: rcio_pwm: updated freq on grp 3 to 50
[ 4.699598] rcio spi1.0: rcio_pwm: PWM probe success
[ 4.700842] rcio spi1.0: rcio_gpio: GPIO is supported on this firmware
[ 4.700901] rcio spi1.0: rcio_gpio: registered gpio module
[ 4.701434] rcio spi1.0: rcio_gpio: gpiochip added successfully under gpio500
[ 6.007094] rcio spi1.0: rcio_pwm: Error in pwm running count
[ 6.366623] rcio spi1.0: rcio_pwm: Error in pwm running count
[ 6.612768] rcio spi1.0: rcio_pwm: Error in pwm running count
[ 7.058453] rcio spi1.0: rcio_pwm: Error in pwm running count
[ 7.421553] rcio spi1.0: rcio_pwm: Error in pwm running count
[ 134.116497] rcio spi1.0: rcio_status: could not read CRC
[ 134.117461] rcio spi1.0: rcio_status: Could not read board type
[ 134.118387] rcio spi1.0: rcio_status: Could not read git hash
[ 134.119591] rcio spi1.0: rcio_pwm: Advanced frequency configuration is not supported on this firmware
[ 134.138870] rcio spi1.0: rcio_pwm: PWM probe success
[ 134.139881] rcio spi1.0: rcio_gpio: GPIO is supported on this firmware
[ 134.139911] rcio spi1.0: rcio_gpio: registered gpio module
[ 134.140274] rcio spi1.0: rcio_gpio: gpiochip added successfully under gpio500


(Tatiana Andreeva) #3

Hi @kwatkins,

Could you please post here the output of readlink -f /usr/bin/arducopter command?

Is there any running ArduPilot service (arducopter, arduplane or ardurover)?


(Kevin Watkins) #4

Hi Tatiana, it seems to work now - I think it had to do with not having enough power as I was directly plugging in the usb port for power.

$ readlink -f /usr/bin/arducopter
/opt/ardupilot/navio/arducopter-3.5/bin/arducopter


(Tatiana Andreeva) #5

Hi @kwatkins,

Glad to hear it works!

If you face the issue again, try to disable all ardupilot services, reboot the RPi and run emlidtool after rebooting.