Author Topic: OSLauncher 3.1  (Read 42146 times)

0 Members and 1 Guest are viewing this topic.

Offline compu

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 275
  • Rating: +63/-3
    • View Profile
OSLauncher 3.1
« on: March 08, 2012, 12:00:33 pm »
OSLauncher is deprecated; Use nLaunch or nLaunch CX instead.

I decided to port OSLauncher to OS 3.1 some weeks ago, because it would only require one line of code change. However, memory allocation failed because a decompressed OS 3.1 doesn't fit into RAM.
ATM OSLauncher decompresses directly from a file to allocated memory, and then copies the decompressed OS to the OS base address (0x10000000). This requires a lot of memory (around 11MB for OS 3.1 CAS).
So I decided to change the way OSLauncher decompresses the OS; It loads the compressed OS into RAM and directly overwrites the old OS at 0x1000000. Using this method requires a port of zlib because syscalls won't be available with disabled interrupts.

Basically my code works, I can launch DummyOS and it works fine, but OS 3.1 CAS reboots. I have calculated some checksums to see if there are any errors at decompressing, but the decompressed OS is okay.


BTW, CX compatibility isn't far away, but DummyOS won't compile anymore which I would need for testing purposes.
Spoiler For Error:
$ make clean all
rm -f *.o *.elf
rm -f ./phoenix.raw.tns
nspire-gcc -Os -g3 -Wall -W -Wwrite-strings -marm -c dummyos.c
nspire-ld --no-startup -T ldscript dummyos.o -o phoenix.raw.elf
z:/Nspire/ndless/bin/../system/osstub.o: In function `exit.clone.0':
osstub.c:(.text+0x28): undefined reference to `__crt0_savedsp'
osstub.c:(.text+0x2c): undefined reference to `__crt0exit'
collect2: ld returned 1 exit status
make: *** [phoenix.raw.tns] Error 1
I think it stopped working after updating SVN.

If anyone is interested in helping me, here is my code (+ executable).
« Last Edit: May 06, 2013, 01:05:29 pm by compu »

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: OSLauncher 3.1
« Reply #1 on: March 08, 2012, 12:51:33 pm »
Good to see this pre-version released ;)

I've propagated the news at http://tiplanet.org/forum/viewtopic.php?f=43&t=8879 :)
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline Spacetime4.0

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 17
  • Rating: +1/-0
    • View Profile
Re: OSLauncher 3.1
« Reply #2 on: March 08, 2012, 12:52:20 pm »
Yay!!! I was hoping someone would port it to os3.1....in fact I was just getting ready to learn asm so I could do it, but now I don't have to  :P. Keep at it.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: OSLauncher 3.1
« Reply #3 on: March 08, 2012, 06:56:59 pm »
I was actually surprised to see it was getting ported since we were trying to keep good relations with TI, but I guess that considering what they are doing, I don't see why we should really care that much. Plus it's nice if we can run multiple OS versions at once on one calc.

Just one thing though: It doesn't mean that Omnimaga will start supporting cheating in exams, so although a lot of people may not like it, when people beg for OSLauncher help to not fail an exam, we will still simply resort to saying that the person should study more.

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: OSLauncher 3.1
« Reply #4 on: March 08, 2012, 06:59:55 pm »
is that mean I can have 3.1 cas in my nspire cx?
Sig wipe!

Offline calc84maniac

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2912
  • Rating: +471/-17
    • View Profile
    • TI-Boy CE
Re: OSLauncher 3.1
« Reply #5 on: March 08, 2012, 09:49:01 pm »
I could be wrong, but I don't think OSLauncher works on the CX yet.
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: OSLauncher 3.1
« Reply #6 on: March 09, 2012, 01:41:17 am »
OSLauncher hasn't yet been tested on the CX because DummyOS hasn't been tested there.
But in its current state, it's unlikely to be able to run the CAS OS on the non-CAS CX model, because this doesn't work anymore (for now) for the Clickpad & Touchpad series.
« Last Edit: March 09, 2012, 01:42:00 am 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 compu

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 275
  • Rating: +63/-3
    • View Profile
Re: OSLauncher 3.1
« Reply #7 on: March 09, 2012, 01:46:03 am »
I was actually surprised to see it was getting ported since we were trying to keep good relations with TI, but I guess that considering what they are doing, I don't see why we should really care that much. Plus it's nice if we can run multiple OS versions at once on one calc.
Exactly. TI won't change their position so I don't see a reason why it shouldn't be updated. And TI announced that they will block Ndless before this version of OSLauncher was released.

But in its current state, it's unlikely to be able to run the CAS OS on the non-CAS CX model, because this doesn't work anymore (for now) for the Clickpad & Touchpad series.
Yes, for now, but I still have hope to get it to work :P

Offline critor

  • Editor
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2079
  • Rating: +439/-13
    • View Profile
    • TI-Planet
Re: OSLauncher 3.1
« Reply #8 on: March 10, 2012, 12:02:28 pm »
Basically my code works, I can launch DummyOS and it works fine, but OS 3.1 CAS reboots.

Yes, OS 3.1 CAS does reboot when hot-launched by OSlauncher.

But previous OSes don't.

So you can perfectly run and use an older CAS OS.
I've made successfull tests with CAS versions 2.0.0, 2.0.1, 3.0.1, and 3.0.2.



Check the TI-Planet news for more information and bigger photos:
http://tiplanet.org/forum/viewtopic.php?f=43&t=8886
TI-Planet co-admin.

Offline compu

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 275
  • Rating: +63/-3
    • View Profile
Re: OSLauncher 3.1
« Reply #9 on: March 10, 2012, 12:48:50 pm »
Well, I should have done some more testing... ::)

Here is a completely untested CX version that I quickly made :)

Offline Spacetime4.0

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 17
  • Rating: +1/-0
    • View Profile
Re: OSLauncher 3.1
« Reply #10 on: March 10, 2012, 01:46:38 pm »
I saw on tiplanet that the success rate of launching the cas os on the non cas nspire with oslauncher is about 5%. One thing I have noticed about my calc is that if I launch oslauncher with the enter key it freezes 100% of the time on the thatched screen. But if I launch oslauncher by clicking, it loads successfully 100% of the time. (note that I'm launching os 2.1)

Offline compu

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 275
  • Rating: +63/-3
    • View Profile
Re: OSLauncher 3.1
« Reply #11 on: March 10, 2012, 03:31:34 pm »
Yes, I know about that - but I have no idea why, it must have something to do with interrupts I think.

Offline njaddison

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 176
  • Rating: +24/-27
    • View Profile
Re: OSLauncher 3.1
« Reply #12 on: March 11, 2012, 08:15:08 pm »
When I try to open oslauncher, it says can't open os file.
<a href="http://www.nerdtests.com/ft_nt2.php">
<img src="http://www.nerdtests.com/images/badge/nt2/5f42ec78e054645d.png" alt="NerdTests.com says I'm a Highly Dorky Nerd God.  Click here to take the Nerd Test, get geeky images and jokes, and talk to others on the nerd forum!">
</a>


Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: OSLauncher 3.1
« Reply #13 on: March 12, 2012, 02:02:33 am »
Have you transferred DummyOS with the appropriate name, or generated a file in the format expected by OSLauncher, using one of TI's OS upgrade files as a starting point ?
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline njaddison

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 176
  • Rating: +24/-27
    • View Profile
Re: OSLauncher 3.1
« Reply #14 on: March 12, 2012, 03:58:31 pm »
Yes, I have. I used unspire to compress the TI-Nspire.img, and then I sent it to my calc. Also, I have a non-cx nspire with touchpad. I didn't want to buy the clickpad  because our teacher told us to buy the nspire with touchpad.

I haven't tested DummyOS on my nspire, because it is just proof to show that OSlauncher works.
« Last Edit: March 12, 2012, 03:59:36 pm by njaddison »
<a href="http://www.nerdtests.com/ft_nt2.php">
<img src="http://www.nerdtests.com/images/badge/nt2/5f42ec78e054645d.png" alt="NerdTests.com says I'm a Highly Dorky Nerd God.  Click here to take the Nerd Test, get geeky images and jokes, and talk to others on the nerd forum!">
</a>