-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Use unique USB Serial using flash's uniqueID #1914
Use unique USB Serial using flash's uniqueID #1914
Conversation
Also allow flash to be separately enabled via PLATFORM_EXTRAS. NOTE: this does *NOT* enable the serial number in the bootrom. Still investigating options there.
* Add `.ramfunc` section to bootrom loader script * exclude spiffs functionality from flashmem.h/flashmem.c (allows bootrom to use flashmem) * hide unused tick.h / flashmem.h functions from bootrom (not technically necessary; see comments) * bootrom: add source files, include path, and defines when `PLATFORM_DEFS` defines `WITH_FLASH` * Define `AS_BOOTROM` to indicate code is building for bootrom
|
You are welcome to add an entry to the CHANGELOG.md as well |
|
Well done! |
|
Looks like you are using the MSB output of the ID. Interesting bit of output Mem info output Full output |
Yes, it looks like a lot of change. But, if you ignore the
Yes, the new bootrom image fits
I intially had errors, because of how one function has the |
|
Good good, Having some slight issues with com port identification on WSL1 when I connect in the second device.. |
|
I pushed fixes for the |
I was using the command I did not like the order displayed by
|
|
updating |
I didn't see this comment until I had finished integrating the change. I can revert the change to At the same time, I think it can reduce confusion; the It seemed to make much more sense to be consistent in the interpretation and display of the flash's unique ID. |
|
Its easier to follow changes if a PR is only doing one change. Mixing different purposes makes them harder to follow later on if you have to do some history/blame work. Not to forget, small PR's is also good. |
|
Well done! It was a interesting path you found here |
Fixes #1904
Enabling flash is now possible via
PLATFORM_EXTRAS=FLASH, even on PM3 Easy.I haven't noticed any negative or unexpected behavior. Tested:
Hardware: (2x) PM3 Easy, purchased from DT within the last year.
OS: Windows 11 (including full uninstall of device using NirSoft's
usbdeview).OS: WSL2 under Windows11, using Kali distributions +
usbipdfor connectivityNOTE: This REQUIRES flashing bootloader. Otherwise, the device will sometimes show up without any serial number, and sometimes with. I think this may depend either on enumeration speed of OS vs. loading stage3 boot (main image), or soft-boot vs. full power loss. Does not occur after flashing new bootloader.