JeVois  1.21
JeVois Smart Embedded Machine Vision Toolkit
Share this page:
Loading...
Searching...
No Matches
Flashing to microSD card

Because JeVois-Pro runs a full Ubuntu operating system, with Debian package manager, re-flashing the microSD should be very rate and only if you have corrupted it badly.

On JeVois-A33, re-flashing is more common as it is the only way to update core software, since the JeVois-A33 operating system is barebones and does not have a package manager.

Procedure for JeVois-Pro

Procedure for JeVois-A33

When you run ./rebuild-platform.sh in jevois and in jevoisbase, compiled files get installed into the staging area (see Organization of JeVois files on host and platform).

The last step to run them on the JeVois smart camera is to flash the whole Linux OS, kernel, JeVois framework (including jevois-daemon), and jevoisbase modules to microSD.

To do this, run

jevois-flash-card

and answer the questions interactively.

jevois-flash-card is instaled in /usr/bin/ when you install the JeVois Ubuntu packages or when you run jevois-build.sh to rebuild the entire buildroot from source. Its source is in jevois-sdk/jevois-build/jevois-flash-card.

Once you have done this a few times and you are confident that you know what you are doing, you can instruct jevois-flash-card to not ask any questions. Just be absolutely certain that you are using the right device for your SD card, so that you do not destroy your main hard drive because of a small typo:

jevois-flash-card -y /dev/sdX

where you replace /dev/sdX by the device that gets assigned to your microSD card. On some laptops, the device is called /dev/mmcblkX instead.

Note
If you do a lot of development that requires re-flashing (e.g., developing kernel code for JeVois), it may be worth investing in a super-fast microSD card. While it can take about 5 minutes to run jevois-flash-card with a regular class 10 microSD card, we have been able to get this time down to less than 40 seconds using 1800x, 1900x, or V30, V60, or V90, UHS-II microSD cards.

Re-flashing after some code update - full recompilation

cd ~/jevois && ./rebuild-platform.sh
cd ~/jevoisbase && ./rebuild-platform.sh
cd ~/mymodule && ./rebuild-platform.sh     # optional: for your own modules
jevois-flash-card -y /dev/sdX

Re-flashing after some code update - partial recompilation

cd ~/jevois/pbuild && make -j
cd ~/jevoisbase/pbuild && make -j
cd ~/mymodule && make -j     # optional: for your own modules
jevois-flash-card -y /dev/sdX

Pulling the latest from github and re-flashing - full recompilation

cd ~/jevois && git pull && ./rebuild-platform.sh
cd ~/jevoisbase && git pull && ./rebuild-platform.sh
cd ~/mymodule && ./rebuild-platform.sh     # optional: for your own modules
jevois-flash-card -y /dev/sdX

Pulling the latest from github and re-flashing - partial recompilation

cd ~/jevois && git pull && cd pbuild && make -j
cd ~/jevoisbase && git pull && cd pbuild && make -j
cd ~/mymodule/pbuild && make -j     # optional: for your own modules
jevois-flash-card -y /dev/sdX