Author Topic: Rooted Nspire document browser  (Read 10417 times)

0 Members and 1 Guest are viewing this topic.

Offline alberthrocks

  • Moderator
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 876
  • Rating: +103/-10
    • View Profile
Re: Rooted Nspire document browser
« Reply #30 on: April 22, 2011, 08:11:42 pm »
I'm playing around with this on an emulator, and I see tons of "document" in an hex editor of a 2.0 ROM,
like "documents/MyLib/numtheory.tns", "documents/SD", etc. Which one is it?
Does OSLauncher work for you in the emulator? The "Documents" you need to remove is at 0x6807F8
I'm using a 2.0 ROM (basically created from a TNO file and installed), so that offset is incorrect for me. :P
« Last Edit: April 22, 2011, 08:12:05 pm by alberthrocks »
Withgusto Networks Founder and Administrator
Main Server Status: http://withg.org/status/
Backup Server Status: Not available
Backup 2/MC Server Status: http://mc.withg.org/status/


Proud member of ClrHome!

Miss my old signature? Here it is!
Spoiler For Signature:
Alternate "New" IRC post notification bot (Newy) down? Go here to reset it! http://withg.org/albert/cpuhero/

Withgusto Networks Founder and Administrator
Main Server Status: http://withg.org/status/
Backup Server Status: Not available
Backup 2/MC Server Status: http://mc.withg.org/status/

Activity remains limited due to busyness from school et al. Sorry! :( Feel free to PM, email, or if you know me well enough, FB me if you have a question/concern. :)

Don't expect me to be online 24/7 until summer. Contact me via FB if you feel it's urgent.


Proud member of ClrHome!

Spoiler For "My Projects! :D":
Projects:

Computer/Web/IRC Projects:
C______c: 0% done (Doing planning and trying to not forget it :P)
A_____m: 40% done (Need to develop a sophisticated process queue, and a pretty web GUI)
AtomBot v3.0: 0% done (Planning stage, may do a litmus test of developer wants in the future)
IdeaFrenzy: 0% done (Planning and trying to not forget it :P)
wxWabbitemu: 40% done (NEED MOAR FEATURES :P)

Calculator Projects:
M__ C_____ (an A____ _____ clone): 0% done (Need to figure out physics and Axe)
C2I: 0% done (planning, checking the demand for it, and dreaming :P)

Offline mikehill2003

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 279
  • Rating: +13/-4
    • View Profile
Re: Rooted Nspire document browser
« Reply #31 on: April 22, 2011, 08:13:42 pm »
I'm playing around with this on an emulator, and I see tons of "document" in an hex editor of a 2.0 ROM,
like "documents/MyLib/numtheory.tns", "documents/SD", etc. Which one is it?
Does OSLauncher work for you in the emulator? The "Documents" you need to remove is at 0x6807F8
I'm using a 2.0 ROM (basically created from a TNO file and installed), so that offset is incorrect for me. :P

I don't quite understand what you need. What file are you editing?

EDIT: Can someone please confirm that these files are correct:
ndless_installer_os-2.0.1.tns--115,151 bytes--CRC-32:1DF117C2
ndless_resources.tns--7,160 bytes--CRC-32:70D37DC5
oslauncher.tns--1,712 bytes--CRC-32:D6A57DA8
DummyOS's .zip.tns--550 bytes--CRC-32:6F4FC1D7

I'm unable to launch DummyOS on either my calc or the emulator, and I have a feeling my build of ndless is too old. (I downloaded it from the build server today, but I can't compile ndless to test it myself as the latest update somehow killed my build system)

Nevermind, I've got other projects to work on. Any chance of a Prizm Emu sometime soon?
« Last Edit: April 23, 2011, 12:12:17 am by mikehill2003 »

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55930
  • Rating: +3152/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • DJ Omnimaga Music
Re: Rooted Nspire document browser
« Reply #32 on: April 22, 2011, 09:01:21 pm »
Nice stuff! I like how you can browse directly from the root directory. Just make sure to warn people to be careful to not delete anything precious if this can brick the calc.

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: Rooted Nspire document browser
« Reply #33 on: April 22, 2011, 09:04:50 pm »
Nah, DJ, worst case scenario is an OS corruption, in which case the boot2 is quite capable of reinstalling a new one, perhaps even without loss of files!

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55930
  • Rating: +3152/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • DJ Omnimaga Music
Re: Rooted Nspire document browser
« Reply #34 on: April 22, 2011, 10:12:30 pm »
Ah ok, so this cannot access Boot2, right?

Offline mikehill2003

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 279
  • Rating: +13/-4
    • View Profile
Re: Rooted Nspire document browser
« Reply #35 on: April 22, 2011, 10:25:34 pm »
Ah ok, so this cannot access Boot2, right?
No, boot2 is safe from this.
« Last Edit: April 22, 2011, 10:26:07 pm by mikehill2003 »

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55930
  • Rating: +3152/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • DJ Omnimaga Music
Re: Rooted Nspire document browser
« Reply #36 on: April 22, 2011, 10:36:41 pm »
Ok good. If anyone ever managed to make it accessible with this, it would be best that such feature comes with some sort of giant key combination to access with a warning prior that that it could be dangerous.

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: Rooted Nspire document browser
« Reply #37 on: April 26, 2011, 03:31:53 am »
A patcher program, whether on-calc (where it can be combined with OSLauncher, but doesn't need to be) or computer-based, would be the only "easy enough" way to distribute OS modifications :)

In the computer-based (as I wrote, it was hard, slow and more unsafe to make it an on-calc patcher, so I didn't) tiosmod, I used two layers of I/O functions that can be built upon: read/write/search from/to current file position, read/write/search from/to absolute address.
But for an on-calc patcher fiddling with the host or launched OS (when all interrupts are disabled, of course :D), or a computer-based patcher modifying the file in a memory-mapped way, only one layer is needed: read/write/search from/to absolute address.

For maximum ease of use, a computer-based patcher needs to:
* perform the extraction+decryption+decompression of the OS file from TI-Nspire.img;
* apply the patch;
* recompress (deflate) the OS file.
Since it has a UI and it performs decompression and recompression, IMO, the TNOC code base would be a good starting point for a computer-based patcher. extraction+decryption was made by the latest version of imgdump. And the computer-based patching code can be adapted from tiosmod. IOW, we have all the pieces we need ;)


EDIT: I think I'm going to tackle an on-calc patcher code myself.
« Last Edit: April 27, 2011, 07:06:45 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: Rooted Nspire document browser
« Reply #38 on: April 26, 2011, 05:19:35 am »
A computer patcher might be useful, but in this case, I have to write only at two addresses and I think this could be better done with an on-calc patcher. Modifying an OS Image and loading it with OSLauncher would waste around 3,5MB of space on the calc.

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: Rooted Nspire document browser
« Reply #39 on: April 26, 2011, 05:43:36 am »
Definitely :)

Please send me the addresses, I've made the building blocks for an on-calc patcher+patchset, and I'd like to test them. TIA ;)
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.