This repository contains:
- A Dockerfile to build an image which can be used as a container for running the Buildroot steps
- A Buildroot configuration file to setup the build to work with Edge Impulse
- An Edge Impulse account
- The Microchip SAMA7G54-EK Evaluation Kit
Set these jumpers to the default settings:
Provide power to the board as described in the Microchip documentation.
Build with:
docker build . -t microchip
Run with:
docker run -it -v $PWD/build:/buildroot-microchip/buildroot-at91/output/images microchip
Change directory:
cd buildroot-microchip/buildroot-at91/
Inside the container, run this command:
make menuconfig
Make changes to config if necessary, otherwise, exit the menuconfig without changes.
Proceed to building the image with
make -j $((`nproc` - 1))
The resulting image will be build/sdcard.img
.
Further documentation on building Linux images for these devices is available at Microchip.
The Microchip Developer Help portal has documentation for serial communications to the SAMA7G54-EK. Once your serial terminal is connected make sure the device has power and press the nStart
button, you should see messages appearing over the serial console.
Login with root
user and edgeimpulse
password.
If you would like to use SSH to connect to the board, some additional steps are necessary:
cd /etc/ssh/
nano sshd_config
- Uncomment and change
PermitRootLogin prohibit-password
toPermitRootLogin yes
- Uncomment
PasswordAuthentication yes
CTRL+X
thenY
thenEnter
reboot
to restart SSHifconfig
to get IP address- On host machine
ssh [email protected]
Connect a webcam to the board and run edge-impulse-linux
, and proceed to login and choose a project to connect the device.
Go to your studio project and start collecting data!
See our documentation for the Microchip SAMA7 for more details on using the SAMA7 with Edge Impulse and links to public projects supporting the hardware.
The main route for deploying en Edge Impulse project with SAMA7G54-EK Evaluation Kit is through using .eim. However it is also possible to build
example-standalone-inferencing-linux package and run it on the device.
To do that run
make menuconfig
Go to Target packages -> Miscellaneous and choose Example Standalone Inferencing Linux package. Paste the project deployment files (edge-impulse-sdk, model-parameters, tflite-model)
into buildroot-microchip/buildroot-at91/package/example-standalone-inferencing-linux folder.
Proceed to building the image with
make -j $((`nproc` - 1))
You will be able to find custom
application file in /home on your target. Run it with
./custom features.txt
,
where features.txt is a file with raw features.