Author Topic: Knight Filesystem Specification  (Read 13508 times)

0 Members and 1 Guest are viewing this topic.

SirCmpwn

  • Guest
Knight Filesystem Specification
« on: September 27, 2010, 10:52:34 pm »
Attached is the specification for KFS, please review this if you have time and let me know what kind of feedback you can give.  Garbage collection is not fully thought out at the moment, so I know this portion of the document is inaccurate.  In addition, one error in this version is the page byte, this should be added so that the file entry looks as follows:
Code: (File) [Select]
Type ID (11111110b for file) Byte
Directory ID Word ; The directory containing the file
Name (0 delimited)
Page byte ; The flash page the file starts on
Offset Word ; The offset from the start of that page (+4000h) the file is on

Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: Knight Filesystem Specification
« Reply #1 on: September 27, 2010, 11:06:56 pm »
Will read when I have the chance. Good luck on figuring out garbage collection!
(On an unrelated note, I'm done with the main planning and will begin coding (my OS :P) :))
"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: Knight Filesystem Specification
« Reply #2 on: September 27, 2010, 11:15:16 pm »
Yay ^_^

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Knight Filesystem Specification
« Reply #3 on: September 27, 2010, 11:27:44 pm »
I'll check this when I have a minute and nice to hear Calcdude84se :D
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline LordConiupiter

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 339
  • Rating: +3/-0
  • Just one of the thousands of Axe-fans...
    • View Profile
Re: Knight Filesystem Specification
« Reply #4 on: September 28, 2010, 05:18:45 pm »
wow nice! Those things really are the most beautifull things to make in life IMO :D Your own working data storage system. Won't this have compatibility issues with the TIOS files? And will it be possible to send data to your calc when KnightOS is installed on it using TIconnect/TiLP? When this won't be possible, which I guess being true, will you write your own data transferring program?
« Last Edit: September 28, 2010, 05:19:20 pm by LordConiupiter »
everytime that I was down, you would always come around, and get my feedback on the ground. (modified part from 'Seasons in the sun')

No matter how many errors are bothering you, always try to stay rel-Axe!

The HoMM project will be resumed as soon Axe 1.0.0 will be released!
Projects:
Code: [Select]
HoMM:   [==--------]    Project 'resumed': I'm suffering overwhelming new ideas being popped up in my dreams :P
tiDE:   [----------]    Explored and understood the main part of the code: just started writing a Tokenizer.



password of the week: uvanapererubupa (Any pronunciation is the right one ;) )   :D click me, and you'll be raided :D

Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: Knight Filesystem Specification
« Reply #5 on: September 28, 2010, 05:30:09 pm »
To answer your question to the best of my knowledge, yes, the TI-OS file system is wholly incompatible with the KFS. However, he plans a feature that, on first setup, allows you to do a special reformatting. (I don't know if that will be done.)
Providing he implements the protocol, it will be possible to transfer data via TI-Connect or TiLP. (I presume files will be "wrapped" into TI-OS formats for linking programs/TI-OS based calcs.)
"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: Knight Filesystem Specification
« Reply #6 on: September 28, 2010, 06:15:54 pm »
First question, I plan on having the installer move all of your TIOS files into a directory in KFS when it is reformatted.  The VAT (TIOS Filesystem) is completely incompatible (the main reason dual boot is out of the question).  I will possibly write my own linking program, but TI Connect support is also planned.

Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: Knight Filesystem Specification
« Reply #7 on: September 28, 2010, 06:17:38 pm »
Thanks for clarifying. It also appears I forgot to explicitly state the effects/purpose of the special reformatting. :P
« Last Edit: September 28, 2010, 06:18:21 pm by calcdude84se »
"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.

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Knight Filesystem Specification
« Reply #8 on: September 28, 2010, 09:17:18 pm »
Yay, does this mean you're done working on the KFS? :D

Also, a random question (I probably don't know what I'm talking about): How would you tell the difference between garbage entries and simply nonexistent ones?

And would 2ND+[OFF] actually turn the calc completely off in the OS?




Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: Knight Filesystem Specification
« Reply #9 on: September 28, 2010, 09:22:07 pm »
Sadly, there's no way to turn the calc completely off without removing all the batteries. That's just the hardware.
And that random question is confusing me. (Not that I am confused about the FS, but rather the question itself) ???
"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.

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Knight Filesystem Specification
« Reply #10 on: September 28, 2010, 09:32:31 pm »
Well, it says that 0000000b is for "garbage" entries, but what if it's already deleted?

EDIT: Oh, wait, they're all in flash. Never mind.
« Last Edit: September 28, 2010, 09:32:57 pm by Deep Thought »




Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: Knight Filesystem Specification
« Reply #11 on: September 28, 2010, 09:35:33 pm »
Oh, you thought it was RAM. Okay, that makes more sense.
Glad to know you've figured it out. :)
"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.

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Knight Filesystem Specification
« Reply #12 on: September 28, 2010, 09:37:42 pm »
Yeah. Well, about that, if you can't turn the calc completely off, why keep everything in flash? Is it just to protect against mem clears?
« Last Edit: September 28, 2010, 09:37:59 pm by Deep Thought »




Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: Knight Filesystem Specification
« Reply #13 on: September 28, 2010, 09:39:21 pm »
Pretty much, not to mention flash has so much more storage space. (Or in case you have to change the batteries.)
Rather important also if the system can be brought down in two bytes.
Code: [Select]
di
halt
« Last Edit: September 28, 2010, 09:39:42 pm by calcdude84se »
"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.

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Knight Filesystem Specification
« Reply #14 on: September 28, 2010, 09:41:57 pm »
Oh, okay. And just wondering: If it were to delete vars instead of marking them for garbage, would that be more damaging to the flash chip? Meaning does each write to it do just as much wearing no matter how small it is?