LS1 Boost OS - Development

For discussion and distribution of custom code and hacks
bubba2533
Posts: 498
Joined: Wed Apr 11, 2018 8:50 am
cars: 03 Chevy S10 Turbo V6

Re: LS1 Boost Custom OS

Post by bubba2533 »

Yeah, I was thinking I could disable a section of code and use a chunk of address space that was used for that code.
LS1 Boost OS V3 Here. For feature suggestions post in here Development Thread. Support future development ->Patreon.
User avatar
Gampy
Posts: 2330
Joined: Sat Dec 15, 2018 7:38 am

Re: LS1 Boost Custom OS

Post by Gampy »

IIRC there are unused tables depending on configuration, sounds like a plan ... :thumbup:
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!
User avatar
antus
Site Admin
Posts: 8237
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: LS1 Boost Custom OS

Post by antus »

Looks like there is $264 (614) bytes in the engine calibration segment in 12212156 which I guess would be the OS you'd be likely to target. Theres plenty more space around, it just depends how tidy you want to make it and how hard you want to work on it. Maybe you could just read out of another segment. So long as everything is checksummed right, tunerpro isnt going to care which segment the setting is in, and just update the sum for the right area, and the OS is on bare metal hardware and can read anywhere too.
Attachments
Image4.png
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
User avatar
The1
Posts: 4694
Joined: Mon Jan 04, 2010 10:23 am

Re: LS1 Boost Custom OS

Post by The1 »

yep that's what i did in enhanced mod, disabled EGR code and got a huge section of code and parameter space to use, find something not needed that can be disabled somewhere then use it's space!

Nice Work!
User avatar
Gampy
Posts: 2330
Joined: Sat Dec 15, 2018 7:38 am

Re: LS1 Boost Custom OS

Post by Gampy »

bubba2533 wrote:I think the biggest part I haven't figured out is where I want to store the new tables. I plan on doing this starting with the 12587603 OS.
The target OS is 12587603.
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!
bubba2533
Posts: 498
Joined: Wed Apr 11, 2018 8:50 am
cars: 03 Chevy S10 Turbo V6

Re: LS1 Boost Custom OS

Post by bubba2533 »

The1 wrote:yep that's what i did in enhanced mod, disabled EGR code and got a huge section of code and parameter space to use, find something not needed that can be disabled somewhere then use it's space!

Nice Work!
That's exactly the code I was looking at replacing.

This is what I've found so far. Still more digging to do.

Code: Select all

EGR Code          0x0002D9E4 to 0x0002E714  (0xD30, 3376 bytes)
EGR Cal/Pram    0x00009458 to 0x000098F2  (0x49A, 1178 bytes)
EGR Ram           0xFFFFA246 to 0xFFFFA288   (0x42,       66 bytes)
Edit: Yes this is all for 12587603
LS1 Boost OS V3 Here. For feature suggestions post in here Development Thread. Support future development ->Patreon.
turbo_bu
Posts: 55
Joined: Tue Dec 03, 2019 3:58 am

Re: LS1 Boost Custom OS

Post by turbo_bu »

I know when I do a cal flash with EFI Live, that it states that it is flashing 96 kB of data. When I was playing with doing the launch control patch, I was looking for unused portions of the "cal" data. One thing that I noticed is that there seems to be a "hole" at the end of the speedometer segment and where the actual OS starts. I am playing with a 512 kB OS, but I think this holds true for the 1MB PCM's as well. The last calibration segment is the speedometer. In the 12202088 OS, it is from $0001EEA0 to $0001EF9F. The actual OS doesn't start until $00020000. Interestingly enough, this empty segment doesn't have any data or code in it. I had originally thought to use this blank area, but then realized that it might not get flashed by say PCM Hammer or LS Droid. Funny enough, I did a calibration flash using EFI Live and it did write this segment of data. But I don't think that it is part of any check sum calculation either.

I think overall, it would be easier to try and use the existing EGR section. But this portion of the OS might become useful for other things.
bubba2533
Posts: 498
Joined: Wed Apr 11, 2018 8:50 am
cars: 03 Chevy S10 Turbo V6

Re: LS1 Boost Custom OS

Post by bubba2533 »

I'm working on disabling all the EGR code and references to the EGR RAM section. There aren't that many outside the EGR code so it shouldn't be that hard.

For the 12587603 OS at the end of the Speed Cal there is 0xED (237) bytes (0x0001FEF2 to 0x0001FFDF)

If I need more space that could be used.
LS1 Boost OS V3 Here. For feature suggestions post in here Development Thread. Support future development ->Patreon.
bubba2533
Posts: 498
Joined: Wed Apr 11, 2018 8:50 am
cars: 03 Chevy S10 Turbo V6

Re: LS1 Boost Custom OS

Post by bubba2533 »

Ok, I think I'm done with disabling all the external calls to the EGR code space

I put it into a xdf and attached.

Also for anyone that is interested I calculated the bytes wrong so here are the correct numbers.

Code: Select all

Section       Start Address        Free Bytes
-Code           0x2D9E4         3378 (0xD32) Bytes
-Cal/Pram     0x9458           1180 (0x49C) Bytes
-Ram            0xFFFFA246        67 (0xEE) Bytes
12587603_Disable_EGR.xdf
(5.25 KiB) Downloaded 164 times
That was really the easy part...wish I knew how to use a higher level language to write the new code

Edit: Fixed Ram Location Description
LS1 Boost OS V3 Here. For feature suggestions post in here Development Thread. Support future development ->Patreon.
bubba2533
Posts: 498
Joined: Wed Apr 11, 2018 8:50 am
cars: 03 Chevy S10 Turbo V6

Re: LS1 Boost Custom OS

Post by bubba2533 »

Ok, I think I've figured out how the updated VE table will look.

I'm going to keep the stock VE table, but double the MAP range. So it'll start at 15 kpa and go to 195 kpa. On top of that I'm going to make a new VE table to go from 195 kpa to 375 kpa.

That saves a few hundred bytes of CAL space compared to how I was going to do it before. And it gives really good resolution. Only annoying part is that it breaks up the VE table into two sections.
LS1 Boost OS V3 Here. For feature suggestions post in here Development Thread. Support future development ->Patreon.
Post Reply