I'm new to this forum. I'm very interesting about the creation of a virtual machine, specially for developing
firmware projects. So I read and followed the instructions present at the
https://wiki.bitcraze.io/projects:virtu ... :create_vm.
I intentionally only followed the instructions that spoken about the firmware things.
So I downloaded and installed a virtual box package (version 4.3.30 r101610).
Instead of Xubuntu 14.10 I prefered a debian Jessy (64bit version) and I created the
related VM (30GB dynamically allocated disk, 1024 MB RAM plus the Guest additions),
choosing as user me ($HOME=/home/me instead of /home/bitcraze).
Then starting a root login session (su -) and make sure that the system is up to date by running:
- apt-get update
apt-get dist-upgrade
reboot
apt-get -y install git build-essential checkinstall openocd
apt-get -y install openjdk-7-jdk
apt-get -y install gitg meld
Once exited from the root shell login, I returned back in the me terminal session
and then I downloaded and installed the GNU ARM toolchain:
wget https://launchpad.net/gcc-arm-embedded/ ... ux.tar.bz2
tar xjf gcc-arm-none-eabi-4_9-2014q4-20141203-linux.tar.bz2
mkdir ~/bin
mv gcc-arm-none-eabi-4_9-2014q4 ~/bin/gcc-arm-none-eabi
Finally I set in the PATH environment:
echo -e "\nPATH=\$PATH:$HOME/bin/gcc-arm-none-eabi/bin" >> ~/.bashrc
source ~/.bashrc
At this point I cloned only the firmware repository, executing:
[mkdir ~/projects
cd ~/projects
git clone git://github.com/bitcraze/crazyflie-firmware.git
After that, it was the turn of Eclipse installation. From
http://www.eclipse.org/downloads/downlo ... _64.tar.gz, I downloaded the 64-bit Linux version of the Eclipse IDE for C/C++ Developers and
unpacked it into ~/bin/ directory with the command:
tar -xf eclipse-cpp-luna-SR2-linux-gtk-x86_64..tar.gz -C ~/bin/
After starting Eclipse I imported the cloned firmware project selecting from file menu
the option New->C Project. When the C Project dialog box appeared I chosen as
Project type the option Make project->Empty project, as toolchains -- Other toolchain --
As Project name I chosen the directory name of the firmware project (crazyflie-firmware),
unchecking the option Use default location.
Next step was to install the CDT GDB chosing from Eclipse the menu Help-->Install new software…
and selecting in the Work with option the voice "Luna - http://download.eclipse.org/releases/luna"
and in the Type filter text the text GDB.
After waiting a while, I selected and installed the C/C++ GDB Hardware debugging.
Finally I added the toolchain to the PATH of Eclipse, chosing the
Menu Window-->Preferences from the menu and in the option C-C++-->Build-->Environment
of the related diaolog box I added a new variable named PATH with a value equal
to ${PATH}:/home/me/bin/gcc-arm-none-eabi/bin.
A this point when I try to build the firmware project (selecting the crazyflie-firmware
and choosing the voice Building project from the right click menu), I get the following
error in the Console Panel:
Code: Select all
**** Build of configuration Default for project crazyflie-firmware ****
make all
CLEAN_VERSION
CC list.o
[make: arm-none-eabi-gcc: Command not found
scripts/targets.mk:26: recipe for target 'list.o' failed
make: *** [list.o] Error 127
I type
Code: Select all
make all
I also followed an advice of Tobias (viewtopic.php?f=6&t=1423&p=8489&hilit=m ... ound#p8490), adding the line
Code: Select all
CROSS_COMPILE = /home/bitcraze/bin/gcc-arm-none-eabi/bin/arm-none-eabi-
So, where am I wrong? Thanks in advance for any advice and help.