README 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. meta-swupdate, Yocto layer for deploy tool
  2. ==========================================
  3. This layer's purpose is to add support for a deployment
  4. mechanism of Yocto's images based on swupdate project.
  5. Layer dependencies
  6. ------------------
  7. This layer depends on:
  8. URI: git://github.com/openembedded/meta-openembedded.git
  9. subdirectory: meta-oe
  10. Image hashing
  11. -------------
  12. During creation of the update file, occurrences of @IMAGE (where IMAGE is an
  13. image filename) are replaced with the sha256 hash of the image.
  14. SWU image signing
  15. ------------
  16. To enable signing:
  17. Set SWUPDATE_SIGNING = "1"
  18. Set SWUPDATE_PRIVATE_KEY to the full path of private key file
  19. sw-description is signed with the private key and the signature is writen to
  20. sw-description.sig which is included in the SWU file.
  21. Encrypted private keys are not currently supported since a secure
  22. mechanism must exist to provide the passphrase.
  23. SWU image hardware signing
  24. --------------------------
  25. One may prefer to sign the SWU image with a hardware token or hardware security
  26. module (HSM) which doesn't expose the private key.
  27. To enable, SWUPDATE_SIGNING_ENGINE must be set to an available openssl engine.
  28. Example:
  29. SWUPDATE_SIGNING_ENGINE = "pkcs11"
  30. SWUPDATE_SIGNING_ENGINE_PATH may need to be set so that openssl can locate the
  31. engine.
  32. Example:
  33. SWUPDATE_SIGNING_ENGINE_PATH = "/usr/lib"
  34. Instead of setting SWUPDATE_PRIVATE_KEY to the full path of a file, set it to
  35. a key string recognized by the engine used.
  36. Example:
  37. SWUPDATE_PRIVATE_KEY = "pkcs11:model=SoftHSM%20v2;" \
  38. "manufacturer=SoftHSM%20project;" \
  39. "serial=1234567890;" \
  40. "token=test-token;pin-value=123456;" \
  41. "object=swupdate-test"
  42. Maintainer
  43. ----------
  44. Stefano Babic <sbabic@denx.de>
  45. Submitting patches
  46. ------------------
  47. You can submit your patches (or post questions reagarding
  48. this layer to the swupdate Mailing List:
  49. swupdate@googlegroups.com
  50. When creating patches, please use something like:
  51. git format-patch -s --subject-prefix='meta-swupdate][PATCH' <revision range>
  52. Please use 'git send- email' to send the generated patches to the ML
  53. to bypass changes from your mailer.