This section summarizes the Raspberry Pi commands available to be used with the biicode client program. You can see these tools if you execute:
$ bii -h rpi
SYNOPSIS:
$ bii COMMAND [options]
For help about a command:
$ bii COMMAND --help
To change verbosity, use options --quiet --verbose
---------EXPERIMENTAL Raspberry Pi general tools commands--------
rpi:send Send by scp the bin folder into the specified directory
rpi:settings Configure Raspberry Pi project settings
rpi:ssh Connect by ssh with the Raspberry Pi
Send your binaries automatically to your Raspberry Pi from your PC.
$ bii rpi:send
Sending with rsync -Pravdtze ssh [HIVE_DIRECTORY]/bin/* [RPI_USER]@[RPI_IP]:[DIRECTORY]/[HIVE_NAME]
[RPI_USER]@[RPI_IP]'s password:
The Raspberry Pi user’s password will be asked. If you have not changed your password, for Raspbian the default one is raspberry.
This command provides an easy way to configure your Raspberry Pi settings.
$ bii rpi:settings
Define RPI settings for external C/C++ cross-building
If you are working onboard the RPI, you don't need these settings
RPI username (pi): [RPI_USER]
RPI IP Address: [RPI_IP] #example 192.168.1.44
RPI directory to upload (bin): [RPI_FOLDER] #This folder must exist into your Raspberry Pi.
pi
.ifconfig
in a console inside the RPi.bin
user home folder.Alternatively you can pass your configuration directly into the settings command.
$ bii rpi:settings --user USER --ip IP --directory DIRECTORY
If you want a remotely access to your Raspberry Pi you can get it with this command.
$ bii rpi:ssh
...
Connecting with ssh <rpi_user>@<rpi_ip>
<rpi_user>@<rpi_ip>'s password:
pi@raspberrypi ~ $
Use this command to enable Raspberry Pi Cross Compilation.
$ bii configure --toolchain=rpi
If you need the default rpi-toolchain.cmake, execute bii rpi:settings
first.
$ bii rpi:settings
...
$ bii configure --toolchain=rpi
If you want to disable it, use this command.
$ bii configure --toolchain=None
To use a custom tool-chain you need to place it in the bii folder of your project with the name <my_toolchain_name>-toolchain.cmake.
To use it, just pass it as argument of bii configure -t my_toolchain_name
.
$ bii configure --toolchain=my_toolchain_name