This is an archived, read-only copy of the United-TI subforum , including posts and topic from May 2003 to April 2012. If you would like to discuss any of the topics in this forum, you can visit Cemetech's Technology & Calculator Open Topic subforum. Some of these topics may also be directly-linked to active Cemetech topics. If you are a Cemetech member with a linked United-TI account, you can link United-TI topics here with your current Cemetech topics.

This forum is locked: you cannot post, reply to, or edit topics. Community News & Discuss Nspire => Technology & Calculator Open Topic
Author Message
ExtendeD


Advanced Newbie


Joined: 30 Aug 2009
Posts: 91

Posted: 02 Oct 2010 04:42:21 am    Post subject:

Thanks Levak. Could you also share the CAS .idc file used not generate the syscalls table?

<< just have a black screen when it reboots >>
Even with Yifan's trick? http://www.unitedti.org/forum/index.php?showtopic=9491&view=findpost&p=142373
Back to top
Levak


Advanced Newbie


Joined: 11 Nov 2009
Posts: 94

Posted: 03 Oct 2010 07:20:27 am    Post subject:

I have found an other location to update in Ndless 1.7 source code for CAS OS.

Here it is :

./arm/loader.c line 51

Code:
static unsigned const ld_currentdocdir_addr[] = {0x10669A9C, 0x1069BD64};


By the way, here is my actual IDC file.
It is not a complete conversion, it may misses all the WIFI support (adresses > 0x1077C0000)
[attachment=3286:OS_cas-1.7.idc.txt]


edit : Found another adress that I have forgotten.

./arm/loader.c line 30

Code:
static unsigned const ld_hook_alloc_patch_addrs[][3] = {
   {0x107957B0, 0x100002C0, 0x10000088}, // 1.7 non-CAS
   {0x107597A0, 0x100002C0, 0x10000088} // 1.7 CAS
};


Last edited by Guest on 03 Oct 2010 12:34:55 pm; edited 1 time in total
Back to top
Levak


Advanced Newbie


Joined: 11 Nov 2009
Posts: 94

Posted: 03 Oct 2010 03:07:53 pm    Post subject:

Sorry for double posting but I have fixed some fails in adresses : some identical adresses were defined many and many times whereas it was not the same routine.

[attachment=3287:OS_cas-1.7.idc.txt]
Back to top
AHBAD_ALVIN


Advanced Newbie


Joined: 18 Sep 2010
Posts: 74

Posted: 03 Oct 2010 03:36:50 pm    Post subject:

Hey, I was wondering if I get an Nspire...

How good is NDLESS for programming it, or is it very incomplete?
Back to top
Levak


Advanced Newbie


Joined: 11 Nov 2009
Posts: 94

Posted: 03 Oct 2010 04:10:25 pm    Post subject:

ASHBAD_ALVIN wrote:

Hey, I was wondering if I get an Nspire...

How good is NDLESS for programming it, or is it very incomplete?


Ndless 1.1 is fully stable on OS 1.1 and we can do anything we want. Really.
On a other hand, Ndless 1.7 that works with OS 1.7 is on beta state and is instable for the moment.
Back to top
AHBAD_ALVIN


Advanced Newbie


Joined: 18 Sep 2010
Posts: 74

Posted: 03 Oct 2010 06:31:46 pm    Post subject:

hmm...

sounds cool, but I'll wait a bit longer before making rash decisions. Maybe once ndless 1.7 is stable, I might huy a normal nspire with a 84+ keypad or something.
Back to top
calc84maniac


Elite


Joined: 22 Jan 2007
Posts: 770

Posted: 03 Oct 2010 06:34:43 pm    Post subject:

Though, you should be aware that if you wait, TI might release an OS that blocks downgrades to OS 1.7
Back to top
bsl


Advanced Newbie


Joined: 09 Jan 2010
Posts: 94

Posted: 04 Oct 2010 04:04:25 pm    Post subject:

Levak wrote:

Sorry for double posting but I have fixed some fails in adresses : some identical adresses were defined many and many times whereas it was not the same routine.


Simple binary searches aren't fool proof and here is an example of one: fread and fwrite.
Edit OS_cas-1.7.idc.txt for these corrections:

Code:

MakeName   (0X102A6EC0,    "fread");  => MakeName   (0X102A6EC0,    "fread"); // nochange
MakeName   (0X102A6EC0,    "fwrite"); => MakeName   (0X102a7274,    "fwrite");

Notice fread and fwrite have the same address, origially.
This is important if your are updating syscalls_cas-1.7.c
A "smarter" binary search skips the bl ?????? instruction to the next one for a unique match.
Back to top
AHBAD_ALVIN


Advanced Newbie


Joined: 18 Sep 2010
Posts: 74

Posted: 04 Oct 2010 04:22:49 pm    Post subject:

calc84maniac wrote:

Though, you should be aware that if you wait, TI might release an OS that blocks downgrades to OS 1.7

I found out my friend is selling his Nspire for $50, and I might buy it. Good thing is, it's a really old one too!
Back to top
Levak


Advanced Newbie


Joined: 11 Nov 2009
Posts: 94

Posted: 04 Oct 2010 04:25:47 pm    Post subject:

Thank you for your notice. I know that the script I used to migrate is not perfect.
I'll try to find other of thoses mistakes.
Back to top
bsl


Advanced Newbie


Joined: 09 Jan 2010
Posts: 94

Posted: 04 Oct 2010 06:13:45 pm    Post subject:

Put this in syscalls-light_cas-1.7.c

Code:

     0x102A6CCC
   , 0x102A6EC0
   , 0x102A481C
   , 0x102A475C
   , 0x102AC2DC
   , 0x102A74D4

and in syscalls_cas-1.7.c

Code:

     0X102A6CCC
   , 0X102A6EC0
   , 0X102a7274
   , 0X102A66C4
   , 0x102A6A24
   , 0x102A31D8
   , 0x102A31CC
   , 0x102A82E4
   , 0x102A812C
   , 0x102A80EC
   , 0x102A475C
   , 0x102A481C
   , 0x102A46D0
   , 0x101740B4
   , 0x10213C18
   , 0x102AA874
   , 0x102AC140
   , 0x102A99AC
   , 0x102AC2DC
   , 0x102AC5B8
   , 0x102ABEEC
   , 0x10079814
   , 0x102A74D4
   , 0x102ad7d8
   , 0x102AD870
   , 0x102AD8E8
   , 0x102A83BC
   , 0x102A83FC
   , 0x102A8474
   , 0x102A844C
   , 0x1001D434
   , 0x102A85B4

Compile and run on the emulator with a CAS flash.
UPDATE: I compiled it myself and the NONCAS installs on the emulator, while the CAS
almost installs - I get a "Ndless installed!" , but does not take.
UPDATE: change in /arm/install.c line 30 from:

Code:

static unsigned const ins_ploader_hook_addrs[] = {0x1000921C, 0x1000091E8};

to:

Code:

static unsigned const ins_ploader_hook_addrs[] = {0x1000921C, 0x100091f0};

Now runs on both CAS-NONCAS flashes. Not tested on calculators, . I will probably post the binaries as "betas" -
The installer will look for ndless_res__beta.tns instead of ndless_resources.tns so it wont be confused later with
a stable release.


Last edited by Guest on 05 Oct 2010 11:54:23 am; edited 1 time in total
Back to top
Levak


Advanced Newbie


Joined: 11 Nov 2009
Posts: 94

Posted: 05 Oct 2010 01:08:30 pm    Post subject:

Thanks for sharing but I still can't install Ndless 1.7 on a CAS flash.
I always have the message "This document format is not supported" after the supposed installation, when I want to launch a C prog that works with Ndless 1.7 on nonCAS flash.
I checked all your adresses, that let me see that there were an other mistake in IDC (I have also seen a big couple). Whitch revision of Ndless do you use (I use rev 256)? Where do you get the message "Ndless Installed" ?


Last edited by Guest on 05 Oct 2010 01:09:43 pm; edited 1 time in total
Back to top
ExtendeD


Advanced Newbie


Joined: 30 Aug 2009
Posts: 91

Posted: 05 Oct 2010 01:47:25 pm    Post subject:

Levak wrote:

Where do you get the message "Ndless Installed" ?

It should be in nspire_emu's console (RS232 output).
Back to top
Levak


Advanced Newbie


Joined: 11 Nov 2009
Posts: 94

Posted: 05 Oct 2010 02:00:40 pm    Post subject:

ExtendeD wrote:

Levak wrote:

Where do you get the message "Ndless Installed" ?

It should be in nspire_emu's console (RS232 output).


w00t, the Goplat 0.26 gtk Nspire emulator doesn't display that (I know that we are at v0.31 but I liked the shinny gtk mod that xspire made for the v0.26 ).
I'll try with the new version with the patch.


Last edited by Guest on 05 Oct 2010 02:01:37 pm; edited 1 time in total
Back to top
Levak


Advanced Newbie


Joined: 11 Nov 2009
Posts: 94

Posted: 05 Oct 2010 04:12:08 pm    Post subject:

I get it works on an hardware CAS !!
Thank bsl, I missed the over last 0 :D

So, here all the modifications to do :

./arm/utils.c line 52


Code:
// addresses of OS global variables which must be reinitialized for proper OS reboot
static unsigned const ut_os_reboot_reset_addrs[][3] = {
   {0x106DAFC4, 0x106F2A0C, 0x106F2AF0},  // 1.7 non-CAS
   {0x1070D28C, 0x10725314, 0x107253F8} // 1.7 CAS
};


/arm/install.c line 30


Code:

static unsigned const ins_ploader_hook_addrs[] = {0x1000921C, 0x100091F0};


./arm/loader.c line 30

Code:
static unsigned const ld_hook_alloc_patch_addrs[][3] = {
   {0x107957B0, 0x100002C0, 0x10000088}, // 1.7 non-CAS
   {0x107597A0, 0x100002C0, 0x10000088} // 1.7 CAS
};


./arm/loader.c line 51

Code:
static unsigned const ld_currentdocdir_addr[] = {0x10669A9C, 0x1069BD64};


My actual IDC (all lines suffixed by a // have to be reviewed because there are wrong)
[attachment=3290:OS_cas-1.7.idc.txt]


By the way, Ndless 1.7 can be installed without the previous random (I think it is an ExtendeD modification) on an Hardware Nspire (without the tip to do, permanent link also works)

I thnik on the way of the installation, Ndless 1.7 is stable. On the other hand, the bug of the teta is still there.

\o/

(I am so happy you can't imagine how much Razz )


Last edited by Guest on 05 Oct 2010 04:14:26 pm; edited 1 time in total
Back to top
critor


Member


Joined: 04 Feb 2009
Posts: 132

Posted: 05 Oct 2010 04:15:04 pm    Post subject:

You did great Levak!
I'm not sure you even took the time to sleep for the last 5 days! Neutral
Back to top
bsl


Advanced Newbie


Joined: 09 Jan 2010
Posts: 94

Posted: 05 Oct 2010 04:24:00 pm    Post subject:

Good !!!
Here are my release beta binaries !!!! Smile
They are marked such that they wont be confused
with a stable release .
contents:
hello_beta.tns
particles_beta.tns
ndless_res_beta1.tns
ndless_ins_beta1.tns

[attachment=3291:ndless1.7-beta1.zip]
Back to top
Levak


Advanced Newbie


Joined: 11 Nov 2009
Posts: 94

Posted: 05 Oct 2010 04:31:54 pm    Post subject:

particules_beta works fine but hello_beta make the calc reboot. Razz
Back to top
bsl


Advanced Newbie


Joined: 09 Jan 2010
Posts: 94

Posted: 05 Oct 2010 04:48:17 pm    Post subject:

Hello_beta.tns might be better for the emulator.
See if Goplat's NES emulator works.
Back to top
Levak


Advanced Newbie


Joined: 11 Nov 2009
Posts: 94

Posted: 05 Oct 2010 05:10:21 pm    Post subject:

bsl wrote:

Hello_beta.tns might be better for the emulator.
See if Goplat's NES emulator works.


Oh yes it works perfectly (some ROMs doesn't want to run like Tetris or FF3) but in general it is awesome (like Ndless 1.1)
Back to top
Display posts from previous:   
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
    » Goto page Previous  1, 2, 3, 4  Next
» View previous topic :: View next topic  
Page 3 of 4 » All times are UTC - 5 Hours

 

Advertisement