Quick instructions for updating

Firmware/software/electronics/mechanics
Post Reply
Che.
Member
Posts: 62
Joined: Tue Jul 28, 2015 1:47 pm
Location: Germany

Quick instructions for updating

Post by Che. »

Hi everyone,

___Short Introduction___
I am developing for crazyflie 2.0 quiet a time now. Developing a custom firmware worked well. But I needed to pause my work for some time and now I want to continue on the newest version of the crazyflie firmware thats on github (I suppose that you drop the newest version there).

I bought the LPS-System and need to test it. For that I need, as mentioned, the newest firmware, but I still need to modify it, because I've killed the eeprom. So just loading the firmware on the flie doesnt work, as it cant check the eeprom.

Sorry, my english is a bit rusty at the moment, I hope you get me :)

___Actual Question___
When clicking "Update all Projects" in the Virtual Machine (version 0.8) and then opening Eclipse and watch the version, it says something 2014 which doesnt seem right I think. Please see attached screenshot. In github I see that there was modifyings 3 hours ago... Or did I misunderstood the system?

Thanks for every answer.
Attachments
screenshot.jpg
chad
Expert
Posts: 555
Joined: Sun Sep 28, 2014 12:54 am
Location: New York, USA
Contact:

Re: Quick instructions for updating

Post by chad »

The crazyflie-firmare repository on the Bitcraze 0.8 is on the older "crazyflie2" branch. You need to change it to the master branch to get the latest:

Code: Select all

cd ~/projects
git checkout master
git pull
Crazyflier - my CF journal...
4x Crazyflie Nano (1.0) 10-DOF + NeoPixel Ring mod.
3x Crazyflie 2.0 + Qi Charger and LED Decks.
Raspberry Pi Ground Control.
Mac OS X Dev Environment.
Walkera Devo7e, ESky ET6I, PS3 and iOS Controllers.
Che.
Member
Posts: 62
Joined: Tue Jul 28, 2015 1:47 pm
Location: Germany

Re: Quick instructions for updating

Post by Che. »

hi chad, thanks for your response.

when trying to checkout master I get "fatal: Not a git repository (or any of the parent directories): .git".

I searched the web for this and got that id need to

Code: Select all

$git init
.

new try to checkout gives me "pathspec 'master did not match any files know to git".

fooling around a little bit with

Code: Select all

fetch
and

Code: Select all

pull
got me no further.
chad
Expert
Posts: 555
Joined: Sun Sep 28, 2014 12:54 am
Location: New York, USA
Contact:

Re: Quick instructions for updating

Post by chad »

Yep. Sorry about that. :oops: I posted that too fast and forgot to change you into the firmware directory. Try this instead:

Code: Select all

cd ~/projects/crazyflie-firmware
git checkout master
git pull
git submodule init
git submodule update
The last two bits (git submodule commands) are there because the firmware repository now has some submodules. If you don't do this now, running the 'make' will tell you you need to. Now you can run 'make' to build the firmware:

Code: Select all

make clean
make
Sorry for leading you astray before.
Crazyflier - my CF journal...
4x Crazyflie Nano (1.0) 10-DOF + NeoPixel Ring mod.
3x Crazyflie 2.0 + Qi Charger and LED Decks.
Raspberry Pi Ground Control.
Mac OS X Dev Environment.
Walkera Devo7e, ESky ET6I, PS3 and iOS Controllers.
Che.
Member
Posts: 62
Joined: Tue Jul 28, 2015 1:47 pm
Location: Germany

Re: Quick instructions for updating

Post by Che. »

Great, thanks for your help.

It looks like its working now, compiling works and the code looks like up-to-date.
But I suspect that i've messed the 'projects' folder a little :)
is there an easy way to recover it? it seems like i have parts of the crazyflie-firmware now in the main folder of projects.
Can I delete them, or do i need to consider further steps?
chad
Expert
Posts: 555
Joined: Sun Sep 28, 2014 12:54 am
Location: New York, USA
Contact:

Re: Quick instructions for updating

Post by chad »

Che. wrote:But I suspect that i've messed the 'projects' folder a little :)
is there an easy way to recover it?
Bah! Sorry again about that! :oops:

You can delete everything from that folder except the following folders:

Code: Select all

crazyflie2-exp-template-electronics
crazyflie2-nrf-firmware
crazyflie2-stm-bootloader
crazyflie-android-client
crazyflie-bootloader
crazyflie-clients-python
crazyflie-firmware
crazyradio-firmware
Those folders are what comes stock on the 0.8 VM image. That's all that needs to be in the ~projects directory.
Crazyflier - my CF journal...
4x Crazyflie Nano (1.0) 10-DOF + NeoPixel Ring mod.
3x Crazyflie 2.0 + Qi Charger and LED Decks.
Raspberry Pi Ground Control.
Mac OS X Dev Environment.
Walkera Devo7e, ESky ET6I, PS3 and iOS Controllers.
Che.
Member
Posts: 62
Joined: Tue Jul 28, 2015 1:47 pm
Location: Germany

Re: Quick instructions for updating

Post by Che. »

No problem, as someone who doesnt reguarly work with linux I am happy that you helped me.
Thanks :)
Post Reply