PCM Hammer P01 and P59 flash tool v015
Re: PCM Hammer - new ls1 flash tool
when ever i compile it with studio it just makes it an installer instead of a nice little stand alone like yours NSFW
- Attachments
-
- pcmhammersc.PNG (74.66 KiB) Viewed 3847 times
Re: PCM Hammer - new ls1 flash tool
Whoah. And here I was, wondering how to create a setup package.
Which version of Visual Studio are you using? I'm still using 2017, but I noticed that 2019 is out (probably has been for a while now).
The error message said that the app couldn't find the kernel.bin file, so I'm guessing that the setup didn't put the kernel in the same directory as PcmHammer.exe. That's just a guess, but it I'm right then you could probably work around it by copying kernel.bin to wherever the exe is located.
Or build the exe in Visual Studio, copy kernel.bin into Apps\PcmHammer\bin\debug and run PcmHammer.exe from that directory.

Which version of Visual Studio are you using? I'm still using 2017, but I noticed that 2019 is out (probably has been for a while now).
The error message said that the app couldn't find the kernel.bin file, so I'm guessing that the setup didn't put the kernel in the same directory as PcmHammer.exe. That's just a guess, but it I'm right then you could probably work around it by copying kernel.bin to wherever the exe is located.
Or build the exe in Visual Studio, copy kernel.bin into Apps\PcmHammer\bin\debug and run PcmHammer.exe from that directory.
Please don't PM me with technical questions - start a thread instead, and send me a link to it. That way I can answer in public, and help other people who have the same question. Thanks!
Re: PCM Hammer - new ls1 flash tool
there was not even a kernel bin in the folder, copied the one from hammer 10 to the folder and got a little more response.
[03:12:07:465] TX: 8C FE F0 3F
[03:12:07:476] Loaded C:\Users\jay\Downloads\PcmHacks-2019.12.18.01\PcmHacks-2019.12.18.01\Apps\PcmHammer\bin\Debug\kernel.bin
[03:12:07:485] Uploading kernel to PCM.
[03:12:07:490] Sending upload request for kernel size 8176, loadaddress FF8000
[03:12:07:495] TX: 6C 10 F0 34 00 10 00 FF 80 00
[03:12:07:518] RX: 6C F0 10 74 00 42
[03:12:07:524] Found response, Success
[03:12:07:529] Going to load a 8176 byte kernel to 0xFF8000
[03:12:07:534] Sending end block payload with offset 0x1800, start address 0xFF9800, length 0x7F0.
[03:12:07:540] Sending 'test device present' notification.
[03:12:07:544] TX: 8C FE F0 3F
[03:12:07:552] TX: 6D 10 F0 36 00 07 F0 FF 98 00 00 FF A8 0A 30 2F 00 0E E0 48 10 00 13 C0 00 FF A8 0B 30 2F 00 0E 10 00 13 C0 00 FF A8
..........................................................................................................................................................................................................
after a few failed attempts
[03:14:23:800] Waited 2seconds.. no data present
[03:14:23:806] AVT: no message waiting.
[03:14:24:436] RX: 6C F0 10 7F 36 00 07 F0 FF 98 12
[03:14:24:446] Ignoring message: UnexpectedResponse
[03:14:25:452] Waited 2seconds.. no data present
[03:14:25:457] AVT: no message waiting.
[03:14:25:466] Sending 'test device present' notification.
[03:14:25:470] TX: 8C FE F0 3F
[03:14:26:476] Waited 2seconds.. no data present
[03:14:26:481] AVT: no message waiting.
[03:14:27:485] Waited 2seconds.. no data present
[03:14:27:490] AVT: no message waiting.
[03:14:27:494] Sending 'test device present' notification.
[03:14:27:503] TX: 8C FE F0 3F
[03:14:28:508] Waited 2seconds.. no data present
[03:14:28:517] AVT: no message waiting.
[03:14:29:526] Waited 2seconds.. no data present
[03:14:29:536] AVT: no message waiting.
[03:14:29:542] Sending 'test device present' notification.
[03:14:29:547] TX: 8C FE F0 3F
[03:14:30:557] Waited 2seconds.. no data present
[03:14:30:567] AVT: no message waiting.
[03:14:31:572] Waited 2seconds.. no data present
[03:14:31:578] AVT: no message waiting.
[03:14:31:587] Sending 'test device present' notification.
[03:14:31:592] TX: 8C FE F0 3F
[03:14:32:599] Waited 2seconds.. no data present
[03:14:32:605] AVT: no message waiting.
[03:14:33:610] Waited 2seconds.. no data present
[03:14:33:617] AVT: no message waiting.
[03:14:33:623] Sending 'test device present' notification.
[03:14:33:627] TX: 8C FE F0 3F
[03:14:34:640] Waited 2seconds.. no data present
[03:14:34:646] AVT: no message waiting.
[03:14:35:655] Waited 2seconds.. no data present
[03:14:35:661] AVT: no message waiting.
[03:14:35:666] Sending 'test device present' notification.
[03:14:35:671] TX: 8C FE F0 3F
[03:14:36:678] Waited 2seconds.. no data present
[03:14:36:683] AVT: no message waiting.
[03:14:37:688] Waited 2seconds.. no data present
[03:14:37:693] AVT: no message waiting.
[03:14:37:698] Sending 'test device present' notification.
[03:14:37:703] TX: 8C FE F0 3F
[03:14:37:712] WritePayload: Upload request failed.
[03:14:37:825] WritePayload: Giving up.
[03:14:37:829] Could not upload kernel to PCM, remainder payload not accepted.
[03:14:37:834] Failed to upload kernel to PCM
[03:14:37:842] Elapsed time 00:02:32.5400553
[03:12:07:465] TX: 8C FE F0 3F
[03:12:07:476] Loaded C:\Users\jay\Downloads\PcmHacks-2019.12.18.01\PcmHacks-2019.12.18.01\Apps\PcmHammer\bin\Debug\kernel.bin
[03:12:07:485] Uploading kernel to PCM.
[03:12:07:490] Sending upload request for kernel size 8176, loadaddress FF8000
[03:12:07:495] TX: 6C 10 F0 34 00 10 00 FF 80 00
[03:12:07:518] RX: 6C F0 10 74 00 42
[03:12:07:524] Found response, Success
[03:12:07:529] Going to load a 8176 byte kernel to 0xFF8000
[03:12:07:534] Sending end block payload with offset 0x1800, start address 0xFF9800, length 0x7F0.
[03:12:07:540] Sending 'test device present' notification.
[03:12:07:544] TX: 8C FE F0 3F
[03:12:07:552] TX: 6D 10 F0 36 00 07 F0 FF 98 00 00 FF A8 0A 30 2F 00 0E E0 48 10 00 13 C0 00 FF A8 0B 30 2F 00 0E 10 00 13 C0 00 FF A8
..........................................................................................................................................................................................................
after a few failed attempts
[03:14:23:800] Waited 2seconds.. no data present
[03:14:23:806] AVT: no message waiting.
[03:14:24:436] RX: 6C F0 10 7F 36 00 07 F0 FF 98 12
[03:14:24:446] Ignoring message: UnexpectedResponse
[03:14:25:452] Waited 2seconds.. no data present
[03:14:25:457] AVT: no message waiting.
[03:14:25:466] Sending 'test device present' notification.
[03:14:25:470] TX: 8C FE F0 3F
[03:14:26:476] Waited 2seconds.. no data present
[03:14:26:481] AVT: no message waiting.
[03:14:27:485] Waited 2seconds.. no data present
[03:14:27:490] AVT: no message waiting.
[03:14:27:494] Sending 'test device present' notification.
[03:14:27:503] TX: 8C FE F0 3F
[03:14:28:508] Waited 2seconds.. no data present
[03:14:28:517] AVT: no message waiting.
[03:14:29:526] Waited 2seconds.. no data present
[03:14:29:536] AVT: no message waiting.
[03:14:29:542] Sending 'test device present' notification.
[03:14:29:547] TX: 8C FE F0 3F
[03:14:30:557] Waited 2seconds.. no data present
[03:14:30:567] AVT: no message waiting.
[03:14:31:572] Waited 2seconds.. no data present
[03:14:31:578] AVT: no message waiting.
[03:14:31:587] Sending 'test device present' notification.
[03:14:31:592] TX: 8C FE F0 3F
[03:14:32:599] Waited 2seconds.. no data present
[03:14:32:605] AVT: no message waiting.
[03:14:33:610] Waited 2seconds.. no data present
[03:14:33:617] AVT: no message waiting.
[03:14:33:623] Sending 'test device present' notification.
[03:14:33:627] TX: 8C FE F0 3F
[03:14:34:640] Waited 2seconds.. no data present
[03:14:34:646] AVT: no message waiting.
[03:14:35:655] Waited 2seconds.. no data present
[03:14:35:661] AVT: no message waiting.
[03:14:35:666] Sending 'test device present' notification.
[03:14:35:671] TX: 8C FE F0 3F
[03:14:36:678] Waited 2seconds.. no data present
[03:14:36:683] AVT: no message waiting.
[03:14:37:688] Waited 2seconds.. no data present
[03:14:37:693] AVT: no message waiting.
[03:14:37:698] Sending 'test device present' notification.
[03:14:37:703] TX: 8C FE F0 3F
[03:14:37:712] WritePayload: Upload request failed.
[03:14:37:825] WritePayload: Giving up.
[03:14:37:829] Could not upload kernel to PCM, remainder payload not accepted.
[03:14:37:834] Failed to upload kernel to PCM
[03:14:37:842] Elapsed time 00:02:32.5400553
Re: PCM Hammer - new ls1 flash tool
I much prefer the way you distro it now, I can put it on a thumb drive and run it from any of my 5 comps or friends compsNSFW wrote:Whoah. And here I was, wondering how to create a setup package.![]()
Which version of Visual Studio are you using? I'm still using 2017, but I noticed that 2019 is out (probably has been for a while now).
The error message said that the app couldn't find the kernel.bin file, so I'm guessing that the setup didn't put the kernel in the same directory as PcmHammer.exe. That's just a guess, but it I'm right then you could probably work around it by copying kernel.bin to wherever the exe is located.
Or build the exe in Visual Studio, copy kernel.bin into Apps\PcmHammer\bin\debug and run PcmHammer.exe from that directory.
and yeah using 2019
Is there a way in the code to differentiate between the v6 p04 pcm and the p01,p59 so that I can leave the file validation in. I know where the os id Info is stored on p04 and check sum data.
now to figure out the p04 seed/key algo so I dont have to keep changing the code for each pcm
Re: PCM Hammer - new ls1 flash tool
How would I change kernel loading to this address TX: 6D 10 F0 36 00 07 F0 FF 98 00
to this address like my other flash program 6D 10 F0 36 80 0A A0 FF 91 5E
to this address like my other flash program 6D 10 F0 36 80 0A A0 FF 91 5E
Re: PCM Hammer - new ls1 flash tool
To change the kernel load address, you would need to edit,Vampyre wrote:How would I change kernel loading to this address TX: 6D 10 F0 36 00 07 F0 FF 98 00
to this address like my other flash program 6D 10 F0 36 80 0A A0 FF 91 5E
Kernels/kernel.ld
And multiple places on the C# side, search for "PCMExecute", you'll see the load address, they must match.
I think they are in,
CKernelWriter.cs
CKernalReader.cs
Last edited by Gampy on Tue Dec 31, 2019 8:44 am, edited 2 times in total.
Intelligence is in the details!
It is easier not to learn bad habits, then it is to break them!
If I was here to win a popularity contest, their would be no point, so I wouldn't be here!
It is easier not to learn bad habits, then it is to break them!
If I was here to win a popularity contest, their would be no point, so I wouldn't be here!
- antus
- Site Admin
- Posts: 9014
- Joined: Sat Feb 28, 2009 8:34 pm
- cars: TX Gemini 2L Twincam
TX Gemini SR20 18psi
Datsun 1200 Ute
Subaru Blitzen '06 EZ30 4th gen, 3.0R Spec B - Contact:
Re: PCM Hammer - new ls1 flash tool
Just here would be enough i think. I think the kernel itself should be relocateable. But yeah all references to be sure and recompile kernel. https://github.com/LegacyNsfw/PcmHacks/ ... ter.cs#L83
The kernel is big, it might not fit if you move the start address higher.
The kernel is big, it might not fit if you move the start address higher.
Have you read the FAQ? For lots of information and links to significant threads see here: http://pcmhacking.net/forums/viewtopic.php?f=7&t=1396
Re: PCM Hammer - new ls1 flash tool
ok then ill leave it be thanks antus and gampy, any idea why it might not want to load to pcm?
- antus
- Site Admin
- Posts: 9014
- Joined: Sat Feb 28, 2009 8:34 pm
- cars: TX Gemini 2L Twincam
TX Gemini SR20 18psi
Datsun 1200 Ute
Subaru Blitzen '06 EZ30 4th gen, 3.0R Spec B - Contact:
Re: PCM Hammer - new ls1 flash tool
I'd say size or address, since its not even accepting the upload. Try sending a smaller file, even just junk to see if you can get it to upload at all to answer this question.
The other way will be to disassemble the OS, and check the logic behind the reject. It'll have the ram range hard coded there somewhere.
The other way will be to disassemble the OS, and check the logic behind the reject. It'll have the ram range hard coded there somewhere.
Have you read the FAQ? For lots of information and links to significant threads see here: http://pcmhacking.net/forums/viewtopic.php?f=7&t=1396
Re: PCM Hammer - new ls1 flash tool
[05:00:57:887] Loaded C:\Users\jay\Downloads\PcmHacks-2019.12.18.01\PcmHacks-2019.12.18.01\Apps\PcmHammer\bin\Debug\kernel.bin
[05:00:57:895] Uploading kernel to PCM.
[05:00:57:901] Sending upload request for kernel size 160, loadaddress FF8000
[05:00:57:905] TX: 6C 10 F0 34 00 00 A0 FF 80 00
[05:00:57:920] RX: 6C F0 10 74 00 42
[05:00:57:926] Found response, Success
[05:00:57:932] Going to load a 160 byte kernel to 0xFF8000
[05:00:57:936] Sending end block payload with offset 0x0, start address 0xFF8000, length 0xA0.
[05:00:57:942] Sending 'test device present' notification.
[05:00:57:948] TX: 8C FE F0 3F
[05:00:57:955] TX: 6D 10 F0 36 80 00 A0 FF 80 00 4F EF FF E8 00 7C 07 00 4E B9 00 FF 8C 08 20 3C 00 FF F6 06 20 40 42 10 4E B9 00 FF 89 B0 20 3C 00 FF F6 0C 20 40 10 BC 00 03 20 3C 00 FF F6 0D 20 40 42 10 4E B9 00 FF 8C CA 4E B9 00 FF 8C 52 4E B9 00 FF 8C 08 42 A7 4E B9 00 FF 96 04 58 8F 48 78 00 04 48 78 00 03 48 78 00 02 48 78 00 01 4E B9 00 FF 91 9A 50 8F 50 8F 4E B9 00 FF 8C 98 42 AF 00 14 2F 7C 00 00 09 C4 00 0C 20 2F 00 14 90 AF 00 0C 22 00 52 81 2F 41 00 08 20 2F 00 14 90 AF 00 0C 2F 40 00 10 52 AF 00 14 4E B9 00 FF 39 1E
[05:00:58:003] RX: 6C F0 10 7F 36 80 00 A0 FF 80 12
[05:00:58:008] Ignoring message: UnexpectedResponse
[05:00:59:013] Waited 2seconds.. no data present
.................................................................................
AVT: no message waiting.
[05:03:21:944] Sending 'test device present' notification.
[05:03:21:952] TX: 8C FE F0 3F
[05:03:21:959] WritePayload: Upload request failed.
[05:03:22:066] WritePayload: Giving up.
[05:03:22:071] Could not upload kernel to PCM, remainder payload not accepted.
[05:03:22:074] Failed to upload kernel to PCM
[05:03:22:078] Elapsed time 00:02:27.3722629
[05:00:57:895] Uploading kernel to PCM.
[05:00:57:901] Sending upload request for kernel size 160, loadaddress FF8000
[05:00:57:905] TX: 6C 10 F0 34 00 00 A0 FF 80 00
[05:00:57:920] RX: 6C F0 10 74 00 42
[05:00:57:926] Found response, Success
[05:00:57:932] Going to load a 160 byte kernel to 0xFF8000
[05:00:57:936] Sending end block payload with offset 0x0, start address 0xFF8000, length 0xA0.
[05:00:57:942] Sending 'test device present' notification.
[05:00:57:948] TX: 8C FE F0 3F
[05:00:57:955] TX: 6D 10 F0 36 80 00 A0 FF 80 00 4F EF FF E8 00 7C 07 00 4E B9 00 FF 8C 08 20 3C 00 FF F6 06 20 40 42 10 4E B9 00 FF 89 B0 20 3C 00 FF F6 0C 20 40 10 BC 00 03 20 3C 00 FF F6 0D 20 40 42 10 4E B9 00 FF 8C CA 4E B9 00 FF 8C 52 4E B9 00 FF 8C 08 42 A7 4E B9 00 FF 96 04 58 8F 48 78 00 04 48 78 00 03 48 78 00 02 48 78 00 01 4E B9 00 FF 91 9A 50 8F 50 8F 4E B9 00 FF 8C 98 42 AF 00 14 2F 7C 00 00 09 C4 00 0C 20 2F 00 14 90 AF 00 0C 22 00 52 81 2F 41 00 08 20 2F 00 14 90 AF 00 0C 2F 40 00 10 52 AF 00 14 4E B9 00 FF 39 1E
[05:00:58:003] RX: 6C F0 10 7F 36 80 00 A0 FF 80 12
[05:00:58:008] Ignoring message: UnexpectedResponse
[05:00:59:013] Waited 2seconds.. no data present
.................................................................................
AVT: no message waiting.
[05:03:21:944] Sending 'test device present' notification.
[05:03:21:952] TX: 8C FE F0 3F
[05:03:21:959] WritePayload: Upload request failed.
[05:03:22:066] WritePayload: Giving up.
[05:03:22:071] Could not upload kernel to PCM, remainder payload not accepted.
[05:03:22:074] Failed to upload kernel to PCM
[05:03:22:078] Elapsed time 00:02:27.3722629