Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
19 June, 2013, 11:31:17 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   home   news downloads projects tutorials misc forums rules new posts irc about Login Register  
+-OmnomIRC

You must Register, be logged in and have at least 40 posts to use this shout-box! If it still doesn't show up afterward, it might be that OmnomIRC is disabled for your group or under maintenance.

Note: You can also use an IRC client like mIRC, X-Chat or Mibbit to connect to an EFnet server and #omnimaga.

Pages: [1] 2 3 ... 6   Go Down
  Print  
Author Topic: OSLauncher 3.1 -  (Read 6393 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
compu
LV5 Advanced (Next: 300)
*****
Offline Offline

Gender: Male
Last Login: Today at 09:52:12
Date Registered: 09 January, 2011, 22:45:52
Location: Germany
Posts: 229

Topic starter
Total Post Ratings: +53

View Profile
« on: 08 March, 2012, 19:00:33 »
+3

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).

* oslauncher31.zip (807.62 KB - downloaded 423 times.)
« Last Edit: 06 May, 2013, 19:05:29 by compu » Logged

Nspire I/O Discussion|Website - cross-compatible with Prizm!
TI-Nspire Programming Statistics
Lionel Debroux
LV10 31337 u53r (Next: 2000)
**********
Offline Offline

Gender: Male
Last Login: Today at 09:24:00
Date Registered: 17 December, 2009, 09:37:25
Location: France
Posts: 1916

Total Post Ratings: +215

View Profile WWW
« Reply #1 on: 08 March, 2012, 19:51:33 »
0

Good to see this pre-version released Wink

I've propagated the news at http://tiplanet.org/forum/viewtopic.php?f=43&t=8879 Smiley
Logged

Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.
Spacetime4.0
LV1 Newcomer (Next: 20)
*
Offline Offline

Last Login: 10 April, 2013, 17:31:56
Date Registered: 13 January, 2012, 23:19:30
Posts: 17

Total Post Ratings: +1

View Profile
« Reply #2 on: 08 March, 2012, 19:52:20 »
0

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  Tongue. Keep at it.
Logged
DJ Omnimaga
Retired Omnimaga founder (Site issues must be PM'ed to Netham45, Eeems, Shmibs, Deep Thought and AngelFish, not me.)
Editor
LV15 Omnimagician (Next: --)
*
Offline Offline

Gender: Male
Last Login: Today at 10:47:05
Date Registered: 25 August, 2008, 07:00:21
Location: Québec (Canada)
Posts: 50634


Total Post Ratings: +2637

View Profile WWW
« Reply #3 on: 09 March, 2012, 01:56:59 »
0

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.
Logged

Retired 83+ coder, Omnimaga/TIMGUL founder. Now doing power metal music (formerly did electronica)

Follow me on Bandcamp|Facebook|Reverbnation|Youtube|Twitter|Myspace
Yeong
Eternally Young Scarlet Moon
LV12 Extreme Poster (Next: 5000)
************
Offline Offline

Gender: Male
Last Login: Today at 00:24:25
Date Registered: 15 October, 2010, 04:29:49
Location: Arden, NC
Posts: 3705


Total Post Ratings: +260

View Profile
« Reply #4 on: 09 March, 2012, 01:59:55 »
0

is that mean I can have 3.1 cas in my nspire cx?
Logged

Project Redemption....

My project progresses:HERE
My Pastebin stuffs:HERE
Check your rate: HERE
My Animations: HERE
Spoiler for Images :D:

ノ◕ヮ◕)ノ:・゚ PENGUIN WAVE!!:„ø¤º°¨ ¨°º¤KEEP THE PENGUIN GOING ¸„ø¤º°¨ ¨°º¤øº LETS GO PENGUIN !¤¤º°¨¨°º¤øº¤ø„¸¸ø¤º°¨„ ø¤º°¨¨°º
calc84maniac
Epic z80 roflpwner
Coder Of Tomorrow
LV11 Super Veteran (Next: 3000)
*
Offline Offline

Gender: Male
Last Login: Today at 07:09:04
Date Registered: 28 August, 2008, 05:09:05
Location: Right behind you.
Posts: 2737


Total Post Ratings: +376

View Profile
« Reply #5 on: 09 March, 2012, 04:49:01 »
0

I could be wrong, but I don't think OSLauncher works on the CX yet.
Logged

"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman
Lionel Debroux
LV10 31337 u53r (Next: 2000)
**********
Offline Offline

Gender: Male
Last Login: Today at 09:24:00
Date Registered: 17 December, 2009, 09:37:25
Location: France
Posts: 1916

Total Post Ratings: +215

View Profile WWW
« Reply #6 on: 09 March, 2012, 08:41:17 »
0

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: 09 March, 2012, 08:42:00 by Lionel Debroux » Logged

Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.
compu
LV5 Advanced (Next: 300)
*****
Offline Offline

Gender: Male
Last Login: Today at 09:52:12
Date Registered: 09 January, 2011, 22:45:52
Location: Germany
Posts: 229

Topic starter
Total Post Ratings: +53

View Profile
« Reply #7 on: 09 March, 2012, 08:46:03 »
0

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 Tongue
Logged

Nspire I/O Discussion|Website - cross-compatible with Prizm!
TI-Nspire Programming Statistics
critor
Editor
LV10 31337 u53r (Next: 2000)
*
Offline Offline

Gender: Male
Last Login: Yesterday at 15:21:16
Date Registered: 14 July, 2009, 23:57:37
Location: Aix-Marseille, France
Posts: 1740


Total Post Ratings: +373

View Profile WWW
« Reply #8 on: 10 March, 2012, 19:02:28 »
0

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
Logged

TI-Planet co-admin.
compu
LV5 Advanced (Next: 300)
*****
Offline Offline

Gender: Male
Last Login: Today at 09:52:12
Date Registered: 09 January, 2011, 22:45:52
Location: Germany
Posts: 229

Topic starter
Total Post Ratings: +53

View Profile
« Reply #9 on: 10 March, 2012, 19:48:50 »
0

Well, I should have done some more testing... Roll Eyes

Here is a completely untested CX version that I quickly made Smiley

* oslauncher31-cx.zip (807.56 KB - downloaded 113 times.)
Logged

Nspire I/O Discussion|Website - cross-compatible with Prizm!
TI-Nspire Programming Statistics
Spacetime4.0
LV1 Newcomer (Next: 20)
*
Offline Offline

Last Login: 10 April, 2013, 17:31:56
Date Registered: 13 January, 2012, 23:19:30
Posts: 17

Total Post Ratings: +1

View Profile
« Reply #10 on: 10 March, 2012, 20:46:38 »
+1

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)
Logged
compu
LV5 Advanced (Next: 300)
*****
Offline Offline

Gender: Male
Last Login: Today at 09:52:12
Date Registered: 09 January, 2011, 22:45:52
Location: Germany
Posts: 229

Topic starter
Total Post Ratings: +53

View Profile
« Reply #11 on: 10 March, 2012, 22:31:34 »
0

Yes, I know about that - but I have no idea why, it must have something to do with interrupts I think.
Logged

Nspire I/O Discussion|Website - cross-compatible with Prizm!
TI-Nspire Programming Statistics
njaddison
LV4 Regular (Next: 200)
****
Offline Offline

Gender: Male
Last Login: 15 May, 2013, 02:46:53
Date Registered: 08 November, 2011, 03:56:20
Location: South Carolina(USA)
Posts: 153


Total Post Ratings: -5

View Profile
« Reply #12 on: 12 March, 2012, 02:15:08 »
0

When I try to open oslauncher, it says can't open os file.
Logged


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!


Lionel Debroux
LV10 31337 u53r (Next: 2000)
**********
Offline Offline

Gender: Male
Last Login: Today at 09:24:00
Date Registered: 17 December, 2009, 09:37:25
Location: France
Posts: 1916

Total Post Ratings: +215

View Profile WWW
« Reply #13 on: 12 March, 2012, 08:02:33 »
0

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 ?
Logged

Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.
njaddison
LV4 Regular (Next: 200)
****
Offline Offline

Gender: Male
Last Login: 15 May, 2013, 02:46:53
Date Registered: 08 November, 2011, 03:56:20
Location: South Carolina(USA)
Posts: 153


Total Post Ratings: -5

View Profile
« Reply #14 on: 12 March, 2012, 21:58:31 »
0

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: 12 March, 2012, 21:59:36 by njaddison » Logged


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!


Pages: [1] 2 3 ... 6   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Powered by MySQL Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Powered by PHP
Page created in 0.593 seconds with 30 queries.
Skin by DJ Omnimaga edited from SMF default theme with the help of tr1p1ea.
All programs, games and songs avaliable on this website are property of their respective owners.
Best viewed in Opera, Firefox, Chrome and Safari with a resolution of 1024x768 or above.