I finally found a way to get my S/N back inside my scope
After the failed attempt to use the clear command inside the topscript, I tried to just remove the battery from my nvram. Unfortunately after I opened my scope it seems that my powerpc bord has a Dallas block with integrated battery instead of this clip on thing, so no removing battery quickly
I searched a lot for a different solution to get rid of my nvram data, I found out that VxWorks is having a lot more capability then I would have suggested. It even seems possible to use commands to write actually something in your nvram, or get something out off-course. The big question was, at which address is that nvram located
Luckily there is a debugger inside VxWorks with even a hex monitor, so after a lot of searching trough it's memory space, I finally found out where the nvram is located:
0xfd0c0000-0xfd0dffff NVRAM
0xfd0e0000-0xfd0fffff NVRAM mirror
With this information I wrote some scripts that make it possible to backup and restore your nvram data, and to clear it by filling it with an empty file. I've attached the necessary files, it's best to place them all inside your c:/vxBoot directory. At least I presume that they are at that location in my description below.
Before using any of those scripts it's probably better to rename your topscript.hw and reboot your powerpc, just to be sure that no Tek software is intervening. After the reboot first go to your vxBoot dir by using the following command:
cd "pc:c:/vxBoot"
!!Very important, use any of these scripts At Your Own Risk! Don't use them if you not sure what you are doing!!After that u can just use one of the following commands:
- To make a backup of your nvram, use:
< NVRAMToFile.txt
- To restore a backup file back inside your nvram, use:
< FileToNVRAM.txt
- To clear the whole content of your nvram, use:
< EmptyNVRAM.txt
After clearing your nvram just reboot your powerpc.
Don't forget using the clear script will wipe your nvram data, so also your boot settings, your serial number and your option key. Make sure you have the correct .sn and .key files inside your vxBoot directory so it will get restored after the first execution of the topscript.
After reboot just use
cd "pc:c:/vxBoot"
to go to the vxBoot dir and execute your topscript using the < with your topscript_name
After my topscript was ready, my scope had it's original serial number and the matching options back, finally