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

[Question] How to pass MAC ID fuse value from a file (on Windows PC) to partition.uuu? #157

Closed
ajithpv opened this issue Jan 23, 2020 · 3 comments

Comments

@ajithpv
Copy link

ajithpv commented Jan 23, 2020

Hi,

I have to fuse MAD ID for the platform from the UUU. The partition.uuu contains the MAC ID fuse similar to the following:

#To flash MAC address
FB:ucmd fuse prog -y 0 708 E83A90BC
FB:ucmd fuse prog -y 0 709 00000200

For a single board, this will work without any issue. However, this is not the best way, if we considering many boards with unique MAC ID. Changing the MAC ID manually for every board is a tedious and error-prone job.

Hence, I would like to pass this MAC ID from an external file (text file) that UUU can take and update the partition.uuu's corresponding field. Please note that it should update only the highlighted value and other parts of the partition.uuu should not modify.

Whether this kind of support available for UUU in Windows (uuu.exe)?
I have come across #131 however, I don't know whether it integrated or not. Currently -b option is using only the built-in script.

Looking forward to get a positive response.

@nxpfrankli
Copy link
Contributor

uuu support run a shell script to generate sequence ID, like MAC address.

fb: < a.bat

in a.bat
echo "ucmd fuse prog -y 0 708 E83A90BC"

you need write small script to generate sequence number according to your rule

#131 is another option method.

Added below line behind uuu_version 1.2.39

@_mac | mac address

you can run uuu -b yourscript mac_address

uuu will replace _mac with mac_address

@ajithpv
Copy link
Author

ajithpv commented Jan 24, 2020

Thank you @nxpfrankli for your quick support. I will check the above method and come back with the observations 👍

@ajithpv
Copy link
Author

ajithpv commented Jan 30, 2020

It is working like charm 👍 Thank you very much for your wonderful support.

@ajithpv ajithpv closed this as completed Jan 30, 2020
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