OSDev.org
http://forum.osdev.org/

MKBT: Error 0x57: The parameter is incorrect.
http://forum.osdev.org/viewtopic.php?f=13&t=31536
Page 1 of 1

Author:  TimothyWilliams [ Thu Apr 13, 2017 1:52 pm ]
Post subject:  MKBT: Error 0x57: The parameter is incorrect.

G'day mates,
Tim here,
I am currently rewriting my bootloader for Thunder (since I have fixed the bugs in the kernel) and I get this:
ERROR CODE 0x57: The parameter is incorrect. Note that my bootloader is not yet complete, but here you go, my bootloader:
Any suggestions?
Sincerely, Tim from Moscow

Attachments:
File comment: Boot loader v0.1 Alpha
boot.asm [4.67 KiB]
Downloaded 8 times

Author:  Brendan [ Thu Apr 13, 2017 2:12 pm ]
Post subject:  Re: MKBT: Error 0x57: The parameter is incorrect.

Hi,

TimothyWilliams wrote:
I am currently rewriting my bootloader for Thunder (since I have fixed the bugs in the kernel) and I get this:
ERROR CODE 0x57: The parameter is incorrect. Note that my bootloader is not yet complete, but here you go, my bootloader:


Are you sure you get "ERROR CODE 0x57: The parameter is incorrect"? The code you posted has no such error message; and (after a quick look) I think it should display "ERROR: INVALID PARTITION TABLE. SYSTEM HALTED.".


Cheers,

Brendan

Author:  TimothyWilliams [ Thu Apr 13, 2017 2:28 pm ]
Post subject:  Re: MKBT: Error 0x57: The parameter is incorrect.

Brendan wrote:
Hi,

TimothyWilliams wrote:
I am currently rewriting my bootloader for Thunder (since I have fixed the bugs in the kernel) and I get this:
ERROR CODE 0x57: The parameter is incorrect. Note that my bootloader is not yet complete, but here you go, my bootloader:


Are you sure you get "ERROR CODE 0x57: The parameter is incorrect"? The code you posted has no such error message; and (after a quick look) I think it should display "ERROR: INVALID PARTITION TABLE. SYSTEM HALTED.".


Cheers,

Brendan


I had this while mkbting boot.bin.

Author:  Brendan [ Thu Apr 13, 2017 2:53 pm ]
Post subject:  Re: MKBT: Error 0x57: The parameter is incorrect.

Hi,

TimothyWilliams wrote:
I had this while mkbting boot.bin.


Ah - I think I understand now.

I have no idea what command or parameters you used to start "mkbt", but if I did know it probably would help because I can't find the source code or the manual for the "mkbt". As far as I can tell, "mkbt" is a windows/DOS thing that only supports floppy and was abandoned by its developer in 2003.

I'd suggest just switching to a different tool, like (maybe - I don't use them) Rawwrite or WinDD.


Cheers,

Brendan

Author:  TimothyWilliams [ Thu Apr 13, 2017 3:15 pm ]
Post subject:  Re: MKBT: Error 0x57: The parameter is incorrect.

Brendan wrote:
Hi,

TimothyWilliams wrote:
I had this while mkbting boot.bin.


Ah - I think I understand now.

I have no idea what command or parameters you used to start "mkbt", but if I did know it probably would help because I can't find the source code or the manual for the "mkbt". As far as I can tell, "mkbt" is a windows/DOS thing that only supports floppy and was abandoned by its developer in 2003.

I'd suggest just switching to a different tool, like (maybe - I don't use them) Rawwrite or WinDD.


Cheers,

Brendan

Rawrite is kind of strange, but WinDD is just a disc dump.

Author:  Brendan [ Thu Apr 13, 2017 3:24 pm ]
Post subject:  Re: MKBT: Error 0x57: The parameter is incorrect.

Hi,

TimothyWilliams wrote:
Brendan wrote:
I'd suggest just switching to a different tool, like (maybe - I don't use them) Rawwrite or WinDD.

Rawrite is kind of strange, but WinDD is just a disc dump.


WinDD should be a port of the (Unix) "dd" utility, which is a very powerful/flexible tool that allows you to (e.g.) copy bytes from anywhere to anywhere (e.g. copy 446 bytes from "boot.bin" to a device).


Cheers,

Brendan

Author:  TimothyWilliams [ Thu Apr 13, 2017 4:35 pm ]
Post subject:  Re: MKBT: Error 0x57: The parameter is incorrect.

A-ha! Found out that I should have first coded the VBR, then the MBR.

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/