Author Topic: After DiagsLauncher comes Boot2Launcher  (Read 15514 times)

0 Members and 2 Guests are viewing this topic.

Offline XVicarious

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 485
  • Rating: +45/-28
  • I F**king Love Twisty Puzzles
    • View Profile
    • XVicarious
Re: After DiagsLauncher comes Boot2Launcher
« Reply #15 on: March 30, 2011, 07:38:39 pm »
IMO a whole OS would take forever and a half. ndless built in wouldnt take as long. Are there even any finished OSes for the 8x series?

Offline mikehill2003

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 279
  • Rating: +13/-4
    • View Profile
Re: After DiagsLauncher comes Boot2Launcher
« Reply #16 on: March 30, 2011, 07:41:04 pm »
Maybe built in ndless. No more reinstalling.

What do you mean by this?

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: After DiagsLauncher comes Boot2Launcher
« Reply #17 on: March 30, 2011, 07:49:03 pm »
Mod the Nspire OS to allow ASM natively.




Offline XVicarious

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 485
  • Rating: +45/-28
  • I F**king Love Twisty Puzzles
    • View Profile
    • XVicarious
Re: After DiagsLauncher comes Boot2Launcher
« Reply #18 on: March 30, 2011, 07:49:19 pm »
When the calculator shuts itself off completely, like you need to boot up again, you must rerun ndless_installer. This also happens wehn you turn off and change pads...

ps firefox is pissing me off... english dictionary isn't installed or something
edit:... some reason the thing was in German...
« Last Edit: March 30, 2011, 07:50:47 pm by jkag »

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: After DiagsLauncher comes Boot2Launcher
« Reply #19 on: March 30, 2011, 07:54:44 pm »
ps firefox is pissing me off... english dictionary isn't installed or something
edit:... some reason the thing was in German...

:P People at my school do that all the time to mess everyone else up. That and changing the keyboard layout to Hiragana.
« Last Edit: March 30, 2011, 07:55:13 pm by Deep Thought »




Offline XVicarious

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 485
  • Rating: +45/-28
  • I F**king Love Twisty Puzzles
    • View Profile
    • XVicarious
Re: After DiagsLauncher comes Boot2Launcher
« Reply #20 on: March 30, 2011, 07:55:13 pm »
Ahaha.

Offline mikehill2003

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 279
  • Rating: +13/-4
    • View Profile
Re: After DiagsLauncher comes Boot2Launcher
« Reply #21 on: March 30, 2011, 08:01:04 pm »
This doesn't really "hack" anything new. You can't save changes to the OS with this.

   All this is is an alternate method of loading boot2. Boot2 verifies the OS on every boot. You can't change boot2, because boot1 checks it before running it on every boot. This just loads boot2 without booting the calculator, thus avoiding the the boot1 check of boot2. This does nothing permanent.

   If you use this to load a modified OS, (because boot2 checks the OS, so if you manage to modify boot2 you don't need a signed OS) when you restart the calc you will either get the same ndlessless OS you had before, or the calc won't boot at all because the installed os isn't signed. This would be a MAJOR pain in the a** if you just wanted, say, cas on a regular nspire. You would need to re-install the OS twice every reboot to get cas back.

I am not sure which of those two possibilities is correct, though.

Offline critor

  • Editor
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2079
  • Rating: +439/-13
    • View Profile
    • TI-Planet
Re: After DiagsLauncher comes Boot2Launcher
« Reply #22 on: March 31, 2011, 04:58:38 am »
That's why we should not force the installation of the OS we want to lauch, but run it over another Ndlessed OS.

When you restart the calc, you'll just have to:
- Ndless the original OS again
- relaunch your "special" OS
TI-Planet co-admin.

Offline mikehill2003

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 279
  • Rating: +13/-4
    • View Profile
Re: After DiagsLauncher comes Boot2Launcher
« Reply #23 on: March 31, 2011, 11:53:00 am »
That's why we should not force the installation of the OS we want to lauch, but run it over another Ndlessed OS.

How do you run a "Special" OS over an Ndlessed OS with boot2launcher?

Offline critor

  • Editor
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2079
  • Rating: +439/-13
    • View Profile
    • TI-Planet
Re: After DiagsLauncher comes Boot2Launcher
« Reply #24 on: March 31, 2011, 11:54:12 am »
If the OS is not compressed/encrypted (TNC/TNO files), you can just launch it directly like any program.
TI-Planet co-admin.

Offline mikehill2003

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 279
  • Rating: +13/-4
    • View Profile
Re: After DiagsLauncher comes Boot2Launcher
« Reply #25 on: March 31, 2011, 12:11:00 pm »
If the OS is not compressed/encrypted (TNC/TNO files), you can just launch it directly like any program.
Wow! I assume you would still need a modified boot2 to load a modified OS? Is anyone working on that?

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: After DiagsLauncher comes Boot2Launcher
« Reply #26 on: March 31, 2011, 12:42:24 pm »
Quote
I assume you would still need a modified boot2 to load a modified OS?
Probably not. IIRC, from the files' sizes, RunOS didn't use a modified boot2.

Hot-patching the OS in RAM before launching it seems necessary.
« Last Edit: March 31, 2011, 12:42:45 pm by Lionel Debroux »
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline mikehill2003

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 279
  • Rating: +13/-4
    • View Profile
Re: After DiagsLauncher comes Boot2Launcher
« Reply #27 on: March 31, 2011, 01:18:49 pm »
If the OS is not compressed/encrypted (TNC/TNO files), you can just launch it directly like any program.

Launch directly like renaming to .tns and opening as any ndless program, or launch like diagslauncher/boot2launcher by loading into ram and directly executing? So all that is really needed to run an OS directly is to decrypt the image? (Does boot2 do that or does the OS do that as it loads?) If you ran them that way, would you lose the extra files included in the compressed image? (all the /phx stuff (is that folder any different for the CAS and basic nspire?)) Could you obtain a decompressed copy of the OS from nspire_emu as it is running, or would you need to look inside boot2?

Hot-patching the OS in RAM before launching it seems necessary.

Are you referring to an uncompressed and unencrypted OS image file launched in the same way as diagslauncher/boot2launcher? If so, what functions would need to be patched and why? (Or is this not a suitable topic)

And who made RunOS? The only info I could find on it was that video posted on youtube.

Sorry for all the endless questions...

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: After DiagsLauncher comes Boot2Launcher
« Reply #28 on: March 31, 2011, 01:33:24 pm »
Indeed, many questions :D:

Quote
Launch directly like renaming to .tns and opening as any ndless program, or launch like diagslauncher/boot2launcher by loading into ram and directly executing?
In my view, renaming the pristine .tnc/.tno / the TNOC-shrinked .tnc/.tno / the OS image manually extracted by the user to .tns on the computer before transferring it as a regular file, and launching the "OSLauncher" (Ndless program) .tns.

Quote
So all that is really needed to run an OS directly is to decrypt the image?
Probably not just decrypt it.
I'm positive that the decryption can be performed on the calculator, at the cost of increased launching time. In fact, it needs to be for user convenience reasons.

Quote
(Does boot2 do that or does the OS do that as it loads?)
The boot2 decrypts the OS, indeed.

Quote
If you ran them that way, would you lose the extra files included in the compressed image? (all the /phx stuff (is that folder any different for the CAS and basic nspire?))
I'm not sure, so I'll let others reply to that bit.

Quote
Could you obtain a decompressed copy of the OS from nspire_emu as it is running
Yes, but you couldn't distribute it anyway, for legal reasons.

Quote
or would you need to look inside boot2?
For on-calc decryption, yes. Two methods were publicly posted in the past, but at least one of them was redacted. Anyway, they involved searching for the Blowfish decryption functions and key, and either using the embedded decryption functions in a generic emulator (whose addresses in the boot2 1.4.x and OS 1.7.2741, 2.0.1.60 and 2.1.0.631 are known, perhaps not publicly though), or a set of Blowfish functions as part of an external program.]

Quote
Quote
Hot-patching the OS in RAM before launching it seems necessary.
Are you referring to an uncompressed and unencrypted OS image file launched in the same way as diagslauncher/boot2launcher?
I'm referring to the OS image after decryption, but the OS image could be stored in encrypted form and launched by "OSLauncher".
Quote
If so, what functions would need to be patched and why?
No precise idea (i.e. I think I can imagine some reasons, but not give any specifics - at least without looking e.g. at the Ndless source), I'm just reposting what critor wrote elsewhere :)

Quote
And who made RunOS?
geogeo & ExtendeD, AFAICT.


[various EDITs: grammar at one place, and additions.]
« Last Edit: March 31, 2011, 02:20:06 pm by Lionel Debroux »
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline mikehill2003

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 279
  • Rating: +13/-4
    • View Profile
Re: After DiagsLauncher comes Boot2Launcher
« Reply #29 on: March 31, 2011, 02:21:51 pm »
Thank you very much for that informative post!

Now I have some research to do  :thumbsup: