Author Topic: Ndless 2.0 for TI-Nspire Clickpad/Touchpad  (Read 178542 times)

0 Members and 2 Guests are viewing this topic.

Offline ExtendeD

  • Project Author
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #60 on: December 20, 2010, 03:09:18 pm »
Excellent, thanks bsl!

The program "idcmigrate" I have made to look automatically for the symbols of a new OS image is based on heuristics and sometimes takes a symbol for another. The address of realloc was wrong.

CAS support for OS v2.0.1 is fixed, all the tests now pass.

Levak: strange. Are you testing on real HW or on nspire_emu?
Ndless.me with the finest TI-Nspire programs

Offline Levak

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +208/-39
    • View Profile
    • My website
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #61 on: December 20, 2010, 03:23:31 pm »
Levak: strange. Are you testing on real HW or on nspire_emu?
HW :
TI-Nspire CAS ClickPad
OS 2.0.1.60
Boot2 : 1.4

Tested connected from computer, and disconnected from the computer.
I've tried at least my "workaround" with USB 3.0, it doesn't work better.
« Last Edit: December 20, 2010, 03:26:49 pm by Levak »
I do not get mad at people, I just want them to learn the way I learnt.
My website - TI-Planet - iNspired-Lua

Offline ExtendeD

  • Project Author
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #62 on: December 20, 2010, 05:04:37 pm »
How many bars of pixels can you count on the screen just before the reboot, and how many dotted lines at the bottom of the screen?
Ndless.me with the finest TI-Nspire programs

Offline Levak

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +208/-39
    • View Profile
    • My website
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #63 on: December 20, 2010, 05:23:49 pm »
Here it is : an high framed shoot.

EDIT : OH MY GOD... stupid bug : The folder contains a dot. When I removed it, Ndless installs perfectly \o/
« Last Edit: December 20, 2010, 05:30:16 pm by Levak »
I do not get mad at people, I just want them to learn the way I learnt.
My website - TI-Planet - iNspired-Lua

Offline bsl

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 157
  • Rating: +14/-0
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #64 on: December 20, 2010, 05:53:48 pm »
The missing call isalnum should be:

cas2.0: 0x102f30e8   
ncas2.0: 0x102f2818

I didnt test it ,but looks convincing ....
« Last Edit: December 20, 2010, 06:09:58 pm by bsl »

Offline Goplat

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 289
  • Rating: +82/-0
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #65 on: December 20, 2010, 06:04:53 pm »
That's isalpha actually. TI's implementation of these functions is basically
Code: [Select]
int isalnum(int c) { return isdigit(c) || isalpha(c); }
int isalpha(int c) { return islower(c) || isupper(c); }
so it's very easy to confuse them if you're looking at a disassembly without symbols.

It's common practice for the standard C library to be implemented with one function per file, so the linker can omit any unused functions. That's probably what happened - whatever code used to use isalnum back in 1.7, got changed in 2.0.
Numquam te deseram; numquam te deficiam; numquam circa curram et te desolabo
Numquam te plorare faciam; numquam valedicam; numquam mendacium dicam et te vulnerabo

Offline bsl

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 157
  • Rating: +14/-0
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #66 on: December 20, 2010, 06:08:55 pm »
Yes I just caught it , just now - sometimes they change register usage , making it harder to track.

Offline ExtendeD

  • Project Author
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #67 on: December 20, 2010, 06:16:43 pm »
Does anybody confirm the reboot Levak gets on real CAS hardware (i.e. it doesn't depend directly on the calculator state)?
« Last Edit: December 20, 2010, 06:18:13 pm by ExtendeD »
Ndless.me with the finest TI-Nspire programs

Offline ExtendeD

  • Project Author
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #68 on: December 20, 2010, 06:27:18 pm »
Levak, according to your screenshot, the issue happens somewhere in stage1.c, and most probably in fopen since you don't have the third bar created by the fread. Either there is not enough memory to (f)open ndless_resources, or it simply cannot be found.

Could you please try the installation with much less files on the calculator, if it's not a problem for you to delete them?
« Last Edit: December 20, 2010, 06:27:42 pm by ExtendeD »
Ndless.me with the finest TI-Nspire programs

Offline Levak

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +208/-39
    • View Profile
    • My website
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #69 on: December 20, 2010, 06:30:58 pm »
Levak, according to your screenshot, the issue happens somewhere in stage1.c, and most probably in fopen since you don't have the third bar created by the fread. Either there is not enough memory to (f)open ndless_resources, or it simply cannot be found.

Could you please try the installation with much less files on the calculator, if it's not a problem for you to delete them?

I've said, by editing my post, that I managed to intall Ndless 2.0 on Hardware by removing the dot contained in the folder name.
=)
I do not get mad at people, I just want them to learn the way I learnt.
My website - TI-Planet - iNspired-Lua

Offline ExtendeD

  • Project Author
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #70 on: December 20, 2010, 06:56:18 pm »
ut_currentdocdir_addr points to ndless_installer's folder... but with special characters removed :(
I have no other choice than to add a note to the ReadMe file.
« Last Edit: December 21, 2010, 04:08:05 am by ExtendeD »
Ndless.me with the finest TI-Nspire programs

Offline bsl

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 157
  • Rating: +14/-0
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #71 on: December 20, 2010, 07:10:03 pm »
I get exactly the same screen on the emulator when I create a folder
named Ndless2.0 and put the Ndless files in there to run.

Offline ExtendeD

  • Project Author
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #72 on: December 21, 2010, 04:45:21 am »
Goplat: ok, I see. I hope this won't happen to often with the next OS upgrades (if we ever get Ndless to work on them...).

isalnum is now part of the default static library libndls instead of being a syscall.
Ndless.me with the finest TI-Nspire programs

Offline Tuxpp

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 6
  • Rating: +0/-0
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #73 on: December 21, 2010, 09:07:31 am »
I tried the alpha version on my CAS Touchpad (OS 2.0.1, Boot2 1.4), and i got some issues :
  - when trying to install ndless, the installation often doesn't work : the calculator reboot most of the time.
  - All programs started, so no problem for that.
  - In all programs i tried, the touchpad  and a lot of keys didn't work at all.

Offline ExtendeD

  • Project Author
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #74 on: December 21, 2010, 10:04:57 am »
Thank you Tuxpp for the report.

1) Make sure to disconnect the calculator from the computer before running ndless_installer. What is your average success rate with this condition? It should be around 2/3.
3) Yes, the key remapping is the last step before a full support of the Touchpad.
Ndless.me with the finest TI-Nspire programs