LisaList2

Advanced search  

News:

2022.06.03 added links to LisaList1 and LisaFAQ to the General Category

Pages: [1]   Go Down

Author Topic: Output of the Init Spare Table ProFile Command  (Read 10620 times)

AlexTheCat123

  • Sr. Member
  • ****
  • Karma: +68/-1
  • Online Online
  • Posts: 228
Output of the Init Spare Table ProFile Command
« on: May 14, 2023, 02:44:53 pm »

I'm in the middle of making some upgrades to the ArduinoFile's ProFile tester mode and I'm having a bit of trouble interpreting the results of the Init Spare Table command for the 5MB ProFile when fitted with the LLF Z8 ROM. I know that, upon completion of the command, the data buffer will contain a byte giving info about each bad sector (if any) that was found while creating the spare table, but how is this list terminated? The Format and Scan commands terminate their lists of bad blocks with FF FF FF FF, but I'm not quite sure how Init Spare Table terminates things. Does anyone have any insight here?
Logged

sigma7

  • Administrator
  • Sr. Member
  • *****
  • Karma: +150/-1
  • Offline Offline
  • Posts: 398
  • Warning: Memory errors found. Verify comments.
Re: Output of the Init Spare Table ProFile Command
« Reply #1 on: May 14, 2023, 04:35:49 pm »

... I'm having a bit of trouble interpreting the results of the Init Spare Table command for the 5MB ProFile.... Does anyone have any insight here?

I think Patrick is possibly the only expert.

semi-related: I think it was Patrick that suggested BLU be modified to make a larger spare table when circumstances required it, but I haven't tried to figure out how that is done. Any pointers?
Logged
Warning: Memory errors found. ECC non-functional. Verify comments if accuracy is important to you.

AlexTheCat123

  • Sr. Member
  • ****
  • Karma: +68/-1
  • Online Online
  • Posts: 228
Re: Output of the Init Spare Table ProFile Command
« Reply #2 on: May 15, 2023, 09:21:37 am »

Quote
I think Patrick is possibly the only expert.

Yeah, that's kind of what I was expecting. Hopefully he can give me some advice!

Quote
I think it was Patrick that suggested BLU be modified to make a larger spare table when circumstances required it, but I haven't tried to figure out how that is done. Any pointers?

That's a good question! I'm not quite sure how that would be done because it would probably require modifications to the drive's firmware to make it recognize and utilize a larger spare table and the host OS would probably also need to be modified in order to utilize this change. So, unless I'm missing something obvious, I think it would be a pretty complicated modification!
Logged

patrick

  • Sr. Member
  • ****
  • Karma: +88/-0
  • Offline Offline
  • Posts: 106
    • Patrick's Hardware Page
Re: Output of the Init Spare Table ProFile Command
« Reply #3 on: May 21, 2023, 10:15:35 am »

Init Spare Table returns the number of bad spare table copies in the last status byte. There are 32 of them, which means two full tracks are used for duplicates of the spare table! A bit paranoid, the much more fragile Widget maintains only two spare table copies.

Status is all zero if no errors occurred.

The RAM buffer contains the adresses of the faulty blocks with the head in the upper nibble and the sector in the lower nibble. Head number is modulo 1, i.e the first spares track on surface 2 is reported as $0x and the second on surface 3 as $0y. There is no delimiter, so you have to use the drive status to get the number of bytes to be evaluated.
« Last Edit: May 21, 2023, 10:20:43 am by patrick »
Logged

AlexTheCat123

  • Sr. Member
  • ****
  • Karma: +68/-1
  • Online Online
  • Posts: 228
Re: Output of the Init Spare Table ProFile Command
« Reply #4 on: May 25, 2023, 03:45:40 pm »

Thanks Patrick! That's just what I needed!
Logged
Pages: [1]   Go Up