Author Topic: KnightOS  (Read 204343 times)

0 Members and 1 Guest are viewing this topic.

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: KnightOS
« Reply #735 on: January 10, 2011, 06:02:21 pm »
Are thos OS files distributable freely as well? Or do they have to get them from TI?

SirCmpwn

  • Guest
Re: KnightOS
« Reply #736 on: January 10, 2011, 06:05:00 pm »
The KnightOS files are distributable, but the official files aren't.
Spoiler For Spoiler:
Not that anyone in the community actually cares about distributing OSes/ROMs

Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: KnightOS
« Reply #737 on: January 10, 2011, 09:40:05 pm »
Sir, not necessarily. Wabbit is able to build a ROM based off of a 3rd-party boot page clone, not to mention that if KnightOS doesn't use any boot code routines, you don't even need the boot code; you can put a "jp $0000" at $4000 on page $1F/$3F/$7F.
"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Spoiler For "PartesOS links":
I'll put it online when it does something.

SirCmpwn

  • Guest
Re: KnightOS
« Reply #738 on: January 10, 2011, 09:42:16 pm »
Sir, not necessarily. Wabbit is able to build a ROM based off of a 3rd-party boot page clone, not to mention that if KnightOS doesn't use any boot code routines, you don't even need the boot code; you can put a "jp $0000" at $4000 on page $1F/$3F/$7F.
I'm aware of this, and this is how I would create a distributable ROM.  However, ROMs dumped from a calculator contain TI's boot code and are not redistributable, which is what I'm getting at.

Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: KnightOS
« Reply #739 on: January 10, 2011, 09:44:11 pm »
Ah, okay. Perhaps someone could write a program to strip a ROM of TI's boot code? I might be able to hack together a C utility to do this.
"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Spoiler For "PartesOS links":
I'll put it online when it does something.

SirCmpwn

  • Guest
Re: KnightOS
« Reply #740 on: January 10, 2011, 09:45:00 pm »
That's what I was going to do, and I know how to do it.  I already have a program to patch in a boot page for testing, because Hex2Rom does not do so.

Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: KnightOS
« Reply #741 on: January 10, 2011, 09:46:19 pm »
Ah, okay. I might write one anyway for the practice :D
"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Spoiler For "PartesOS links":
I'll put it online when it does something.

SirCmpwn

  • Guest
Re: KnightOS
« Reply #742 on: January 10, 2011, 09:53:12 pm »
Go for it :)
How about writing a ROM utility that allows you to swap in/out different pages in the ROM file?
« Last Edit: January 10, 2011, 09:53:35 pm by SirCmpwn »

Offline jnesselr

  • King Graphmastur
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2270
  • Rating: +81/-20
  • TAO == epic
    • View Profile
Re: KnightOS
« Reply #743 on: January 11, 2011, 12:46:58 pm »
Go for it :)
How about writing a ROM utility that allows you to swap in/out different pages in the ROM file?
That is a good idea.  So you would go through to page 1F/3F/7F and replace it with just jp $0000. That is pretty simple, actually.  Maybe have KOS have a rom-dumper built inside it that does that. I believe you should be able to (This is if KOS connects to the computer as a flash drive) have a file on there called "KOSRom.rom" that when you try and do anything with it (open, move, etc.) will actually figure out the rom file and send it.  But that is kinda complex, IMHO. Will there be some sort of call for backup/rom?

SirCmpwn

  • Guest
Re: KnightOS
« Reply #744 on: January 11, 2011, 04:52:28 pm »
Well, KnightOS has a ROM-dumper built directly into the kernel boot code, so if there are issues with your calculator, you can easily dump the ROM for diagnostic purposes while executing as little of the possibly corrupted code as possible.  In fact, the boot sequence is:
Turn on.
Initialize basic hardware (LCD, Keyboard)
Test for kernel access key combination
If not pressed, continue with boot.
Otherwise, show kernel maintenance menu (Dump ROM, Format filesystem, Format OS)

Offline jnesselr

  • King Graphmastur
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2270
  • Rating: +81/-20
  • TAO == epic
    • View Profile
Re: KnightOS
« Reply #745 on: January 11, 2011, 04:56:20 pm »
What does kernel access do? Is this like being root or something?

SirCmpwn

  • Guest
Re: KnightOS
« Reply #746 on: January 11, 2011, 04:57:43 pm »
No, it gives you supreme control over your calculator, before the actual OS is booted.  There about 60 lines of code separating you from 0x0000.

Offline Michael_Lee

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1019
  • Rating: +124/-9
    • View Profile
Re: KnightOS
« Reply #747 on: January 11, 2011, 06:37:56 pm »
Out of curiosity, is 0x0000 a euphemism for death?  Or does it have an actual meaning?  /random

Also, what are the chances that the code for kernel maintenance being corrupted?
« Last Edit: January 11, 2011, 06:38:06 pm by Michael_Lee »
My website: Currently boring.

Projects:
Axe Interpreter
   > Core: Done
   > Memory: Need write code to add constants.
   > Graphics: Rewritten.  Needs to integrate sprites with constants.
   > IO: GetKey done.  Need to add mostly homescreen IO stuff.
Croquette:
   > Stomping bugs
   > Internet version: On hold until I can make my website less boring/broken.

SirCmpwn

  • Guest
Re: KnightOS
« Reply #748 on: January 11, 2011, 06:39:17 pm »
0x0000 is the start of the kernel, the very first line of code that is executed in KnightOS (not technically true, but it's a good lie).
And kernel maintenance code has a chance of being corrupted, but in an accident, the kernel maintenance code is so small and so close to the boot that if anything is corrupted, it still has a good chance of running.

SirCmpwn

  • Guest
Re: KnightOS
« Reply #749 on: January 15, 2011, 01:05:58 am »
Update
It's been a while, due to some life issues, but this is on track for a developer preview on February 1st.  I got TI-84+ (SE) compatibility working (it previously was not), and started converting the filesystem to KFS.  Due to the complex nature of the KFS (it has been optimized for Flash), I have made an external program that will patch the filesystem into a ROM/8xu file.  I have also extended the KFS specification to include the garbage collection procedure.  Just a bit longer guys, and you'll have a copy to play with.
« Last Edit: January 15, 2011, 03:04:44 am by Eeems »