yocto - Embedded system USB update via opkg -


i need provide single update file customer in order update embedded system via usb. system built using yocto. i'm curious if plan have implement usb updating viable, or if i'm missing should obvious.

opkg exists on system, in order use opkg update needs have repo pull from. since have no network capabilities need put entire repo on usb drive. since need provide single file customer repo need tar file.

procedure

  1. plug usb drive in
  2. the udev rule calls script , pushes background since long process (see this)
  3. un-tar repo update file
  4. opkg update
  5. notify user may remove usb drive

at least high-level point of view sound way update embedded system via usb? pitfalls might exist?

well, regarding pitfalls might exist, 1 of biggest pitfall power outage in middle of process. how recover in case? (the answer might depend on type of embedded device making). (personally, i'm in favour of complete image based upgrades , not package based upgrades).

regarding scenario tarball, have enough space on device unpack out? might wiser instead of distributing tarball opkg repository, distribute eg ext2 or squashfs image of repository. allow mount usb drive using loopback device.

apart that, long have way communicate work user, approach should work. main issue do in case of interrupted upgrade process. need think in advance.


Comments

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

Nuget pack csproj using nuspec -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -