Verify Device Image

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Verify Device Image

1,183 Views
moose
Contributor IV

How can we check the image version on the device against an image generated by yocto? Thx!

Labels (2)
0 Kudos
Reply
3 Replies

1,142 Views
JosephAtNXP
NXP TechSupport
NXP TechSupport

Hi,

Thank you for your interest in NXP Semiconductor products,

Please excuse me, but it's confusing what are you trying to check on, there are a few possibilities that I conceived.

1. You want to check the kernel version, run:

 

$ uname -r

 

On target running that image.

2. You want to ensure that the running image is the yocto built, run:

 

> CertUtil -hashfile <.wic image>

 

On Windows or:

$ sha256sum <.wic image>

On Linux,

If none of this was what you're looking for, please tell me.

Regards

0 Kudos
Reply

1,122 Views
moose
Contributor IV

Hello @JosephAtNXP. I am looking to find out if a specific yocto generated image (example_image_example_machine.wic.zst) was used to flash a specific device. I can use the `uname -r` command as you specified on the device to show the version but how can I check the version on a .wic.zst image? I downloaded `certutil` but the command you shared didn't work. Thx!

0 Kudos
Reply

1,067 Views
JosephAtNXP
NXP TechSupport
NXP TechSupport

Hi,

As the .wic image would generate partitions in the sd we cannot compare the .wic to the contents of the sd.

In this thread they use the same concept but over sd images, I haven't tried this but let me perform some tests.

I don't know your situation, but I bet that would be easier (if you've built a custom image and don't see the expected change) to make a printing e.g. at u-boot prompt, make a kernel printing or include a little custom module and reflash it, so you'd know the flash process is ok, as I'd imagine from the post nature's.

Thank you!

0 Kudos
Reply