I am attempting to generate an SD card image for the SAMA5d2 Xplained development board.
I have followed the steps detailed in this Microchip application note: Getting-Started-with-AWS-Greengrass-on-SAMA5D2-Application-Note-DS00003170A.pdf
The steps for obtaining and building a kernel and rfs are:
Code: Select all
Clone the following buildroot-external repository:
$ git clone git://github.com/linux4sam/buildroot-external-microchip-cloud greengrass
Clone and checkout linux4sam_6.0 buildroot repository:
$ git clone git://github.com/linux4sam/buildroot-at91.git -b linux4sam_6.0
Change to the buildroot directory:
$ cd buildroot-at91/
At this time, there is a manual step required to enable SSL for the host-python package. In the Buildroot
“package/python” directory, modify the file python.mk. There is a variable named
HOST_PYTHON_CONF_OPTS that contains the line –disable-ssl \. This line must be deleted in order to build
the python-cryptoauthlib package. The line below uses the “gedit” program to edit the file, but any editor will
work. After deleting the line containing “--disable-ssl”, be sure to save the file:
$ gedit package/python/python.mk
Set up the configuration for buildroot:
$ make BR2_EXTERNAL=../greengrass sama5d2_xplained_greenkey_defconfig
Make the buildroot project:
$ make
Code: Select all
WARNING: no hash file for cryptoauthlib-pkcs11.tar.gz
>>> cryptoauthlib pkcs11 Extracting
gzip -d -c /home/neil/dl/cryptoauthlib-pkcs11.tar.gz | tar --strip-components=1 -C /home/neil/gc/IoT_Greengrass/gg_buildroot/buildroot-at91/output/build/cryptoauthlib-pkcs11 -xf -
>>> cryptoauthlib pkcs11 Patching
Applying 0001-Changed-I2C-bus-to-bus-0.patch using patch:
patching file lib/atca_cfgs.c
Hunk #1 FAILED at 42.
1 out of 1 hunk FAILED -- saving rejects to file lib/atca_cfgs.c.rej
package/pkg-generic.mk:211: recipe for target '/home/neil/gc/IoT_Greengrass/gg_buildroot/buildroot-at91/output/build/cryptoauthlib-pkcs11/.stamp_patched' failed
make[1]: *** [/home/neil/gc/IoT_Greengrass/gg_buildroot/buildroot-at91/output/build/cryptoauthlib-pkcs11/.stamp_patched] Error 1
Makefile:79: recipe for target '_all' failed
make: *** [_all] Error 2
Thanks for any help anyone can offer.