From Visual Studio
After you building a Release version of NK.Bin, the license key can be "stamped" using Platform Builder :Here are the steps:
- Make sure that you have selected a Release configuration of your OS design to build a run-time image from. (WINCESHIP option shall be set to 1 in project properties. It defines the compile time flag -DSHIP_BUILD)
- From the Build menu, verify that Make Run-Time Image After Build and Copy Files to Release Directory After Build are selected.
- From the Build menu, select Build and Sysgen to build your run-time image.
- From the Tools menu, select Platform Builder for CE 7.0, and then select License Run-Time Image to stamp your .bin file with the license key.
- In the License Run-Time Image dialog box, in the Run-time key field, enter the run-time key.
- Browse to the location of the run-time image file that you want to license, and then click License.
Automatic
Not testedCreate a text file license.txt with the following content :
<license key> 00000000 00000000 00000000 00000000 00000000here is an example:
OKJB4-098HN-HFR8F-HBVC8-JF789 00000000 00000000 00000000 00000000 00000000The trailing 5 DWORDs are OEM-specific.
Run the following command in the release directory:
stampbin -1 -i NK.bin license.txtVerification:
viewbin -t nk.bin >binaryInfo.txtLook for ROMHDR and check that PID [0-4] contains the license key:
ROMHDR Extensions ----------------------------- PID[0] = 0x11111111 PID[1] = 0x22222222 PID[2] = 0x33333333 PID[3] = 0x44444444 PID[4] = 0x00000000 PID[5] = 0x00000000 PID[6] = 0x00000000 PID[7] = 0x00000000 PID[8] = 0x00000000 PID[9] = 0x00000000
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.