Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Import Manifest of Tutorial on Raspberry Pi #27

Closed
matsujirushi opened this issue Mar 26, 2021 · 2 comments
Closed

The Import Manifest of Tutorial on Raspberry Pi #27

matsujirushi opened this issue Mar 26, 2021 · 2 comments

Comments

@matsujirushi
Copy link
Contributor

Hi,
I trying to do the tutorial of Raspberry Pi with release 0.6.0.
But I don't know parameters to create an Import Manifest.
Could you tell me example of parameters or send the manifest file?

@KunYi
Copy link

KunYi commented Mar 26, 2021

I have some experience
this is my import manifest file

{
  "updateId": {
    "provider": "UWINGS",
    "name": "raspberrypi3b",
    "version": "0.0.2"
  },
  "updateType": "microsoft/swupdate:1",
  "installedCriteria": "0.0.2",
  "compatibility": [
    {
      "deviceManufacturer": "UWINGS",
      "deviceModel": "RefDevice"
    },
    {
      "deviceManufacturer": "ADUTeam",
      "deviceModel": "RefDevice"
    }
  ],
  "files": [
    {
      "filename": "adu-update-image-raspberrypi3.swu",
      "sizeInBytes": 98631168,
      "hashes": {
        "sha256": "SV5bYr+EVPUt2yT47/XaXbrYG2cp30+p5lTWKJ7JihI="
      }
    }
  ],
  "createdDateTime": "2021-03-24T05:07:58.2211123Z",
  "manifestVersion": "2.0"
}

if you want generation your import manifest files run the below commands
you can modify DeviceManafactuer/DeviceModel/ for your device
but need match parameter aduc_manufacturer/aduc_model in adu-conf.txt
change Provider/Name/Version to your want show on Azure IoTHub Portal

and InstalledCriteria need match your update image crteria file
currently to check /etc/adu-version of MSFT images

Import-Module ./AduUpdate.psm1
$compat1 = New-AduUpdateCompatibility -DeviceManufacturer 'UWINGS' -DeviceModel 'RefDevice'
$compat2 = New-AduUpdateCompatibility -DeviceManufacturer 'ADUTeam' -DeviceModel 'RefDevice'

$importManifest = New-AduImportManifest -Provider 'UWINGS' -Name 'raspberrypi3b' -Version '0.0.2' `
                                        -UpdateType 'microsoft/swupdate:1' -InstalledCriteria '0.0.2' `
                                        -Compatibility $compat1,$compat2 -Files 'adu-update-image-raspberrypi3.swu'

$importManifest | Out-File '.\rpi3b-importManifest.json' -Encoding UTF8

there have my own image and update logs

@matsujirushi
Copy link
Contributor Author

Hi @KunYi ,
Thanks for information.
I could upload.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants