MKBT: Error 0x57: The parameter is incorrect.
- Thunderbirds747
- Member
- Posts: 83
- Joined: Sat Sep 17, 2016 2:14 am
- Location: Moscow, Russia
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
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
-
- boot.asm
- Boot loader v0.1 Alpha
- (4.67 KiB) Downloaded 110 times
Coffee is not airplane fuel.
Re: MKBT: Error 0x57: The parameter is incorrect.
Hi,
Cheers,
Brendan
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.".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:
Cheers,
Brendan
For all things; perfection is, and will always remain, impossible to achieve in practice. However; by striving for perfection we create things that are as perfect as practically possible. Let the pursuit of perfection be our guide.
- Thunderbirds747
- Member
- Posts: 83
- Joined: Sat Sep 17, 2016 2:14 am
- Location: Moscow, Russia
Re: MKBT: Error 0x57: The parameter is incorrect.
I had this while mkbting boot.bin.Brendan wrote:Hi,
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.".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:
Cheers,
Brendan
Coffee is not airplane fuel.
Re: MKBT: Error 0x57: The parameter is incorrect.
Hi,
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
Ah - I think I understand now.TimothyWilliams wrote:I had this while mkbting boot.bin.
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
For all things; perfection is, and will always remain, impossible to achieve in practice. However; by striving for perfection we create things that are as perfect as practically possible. Let the pursuit of perfection be our guide.
- Thunderbirds747
- Member
- Posts: 83
- Joined: Sat Sep 17, 2016 2:14 am
- Location: Moscow, Russia
Re: MKBT: Error 0x57: The parameter is incorrect.
Rawrite is kind of strange, but WinDD is just a disc dump.Brendan wrote:Hi,
Ah - I think I understand now.TimothyWilliams wrote:I had this while mkbting boot.bin.
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
Coffee is not airplane fuel.
Re: MKBT: Error 0x57: The parameter is incorrect.
Hi,
Cheers,
Brendan
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).TimothyWilliams wrote:Rawrite is kind of strange, but WinDD is just a disc dump.Brendan wrote:I'd suggest just switching to a different tool, like (maybe - I don't use them) Rawwrite or WinDD.
Cheers,
Brendan
For all things; perfection is, and will always remain, impossible to achieve in practice. However; by striving for perfection we create things that are as perfect as practically possible. Let the pursuit of perfection be our guide.
- Thunderbirds747
- Member
- Posts: 83
- Joined: Sat Sep 17, 2016 2:14 am
- Location: Moscow, Russia
Re: MKBT: Error 0x57: The parameter is incorrect.
A-ha! Found out that I should have first coded the VBR, then the MBR.
Coffee is not airplane fuel.
- Thunderbirds747
- Member
- Posts: 83
- Joined: Sat Sep 17, 2016 2:14 am
- Location: Moscow, Russia
Re: MKBT: Error 0x57: The parameter is incorrect.
What else could I use for copying the bootloader than RawWrite or WinDD?Brendan wrote:Hi,
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).TimothyWilliams wrote:Rawrite is kind of strange, but WinDD is just a disc dump.Brendan wrote:I'd suggest just switching to a different tool, like (maybe - I don't use them) Rawwrite or WinDD.
Cheers,
Brendan
Coffee is not airplane fuel.
Re: MKBT: Error 0x57: The parameter is incorrect.
I wrote my own utility as part of my build process. It's not terribly difficult. Just read from a file, and write to a "device" file.TimothyWilliams wrote:What else could I use for copying the bootloader than RawWrite or WinDD?
Just be careful that you pass the correct device path, or else you'll turn your PC into a paperweight
Don't ask how I know that...
Project: OZone
Source: GitHub
Current Task: LIB/OBJ file support
"The more they overthink the plumbing, the easier it is to stop up the drain." - Montgomery Scott
Source: GitHub
Current Task: LIB/OBJ file support
"The more they overthink the plumbing, the easier it is to stop up the drain." - Montgomery Scott
- Thunderbirds747
- Member
- Posts: 83
- Joined: Sat Sep 17, 2016 2:14 am
- Location: Moscow, Russia
Re: MKBT: Error 0x57: The parameter is incorrect.
Oh mate, that's cool, but I can't get it from you due to privacy reasons.SpyderTL wrote:I wrote my own utility as part of my build process. It's not terribly difficult. Just read from a file, and write to a "device" file.TimothyWilliams wrote:What else could I use for copying the bootloader than RawWrite or WinDD?
Just be careful that you pass the correct device path, or else you'll turn your PC into a paperweight
Don't ask how I know that...
Coffee is not airplane fuel.
Re: MKBT: Error 0x57: The parameter is incorrect.
Just use a hex editor and enter it byte by byte.TimothyWilliams wrote:What else could I use for copying the bootloader than RawWrite or WinDD?
In the early days they had to enter programs by setting switches to represent each byte, entering the instructions by pressing another switch, and so on. And I'm sure many of us remember doing the equivalent on a hex keypad. Compared to that, building a disk image byte by byte with a hex editor is a doddle.
- Schol-R-LEA
- Member
- Posts: 1925
- Joined: Fri Oct 27, 2006 9:42 am
- Location: Athens, GA, USA
Re: MKBT: Error 0x57: The parameter is incorrect.
I'm not sure what you mean by this (what privacy concerns on your end could possibly affect you copying a program's source code from his public repo?), but it really isn't relevant; what he was really saying is, "you know, you could just write it yourself in less time than it is taking you to post these messages and get a reply..."TimothyWilliams wrote:Oh mate, that's cool, but I can't get it from you due to privacy reasons.SpyderTL wrote:I wrote my own utility as part of my build process. It's not terribly difficult. Just read from a file, and write to a "device" file.TimothyWilliams wrote:What else could I use for copying the bootloader than RawWrite or WinDD?
Just be careful that you pass the correct device path, or else you'll turn your PC into a paperweight
Don't ask how I know that...
Which is pretty much true. Try it, and if you need help doing that, then ask here again with details of what you had tried.
Rev. First Speaker Schol-R-LEA;2 LCF ELF JAM POEE KoR KCO PPWMTF
Ordo OS Project
Lisp programmers tend to seem very odd to outsiders, just like anyone else who has had a religious experience they can't quite explain to others.
Ordo OS Project
Lisp programmers tend to seem very odd to outsiders, just like anyone else who has had a religious experience they can't quite explain to others.
Re: MKBT: Error 0x57: The parameter is incorrect.
I suspect that it is pretty much not true.Schol-R-LEA wrote: what he was really saying is, "you know, you could just write it yourself in less time than it is taking you to post these messages and get a reply..."
Which is pretty much true.
- Schol-R-LEA
- Member
- Posts: 1925
- Joined: Fri Oct 27, 2006 9:42 am
- Location: Athens, GA, USA
Re: MKBT: Error 0x57: The parameter is incorrect.
For the OP, or in general? Those would be two very different assertions, if only because, well, it involves precisely the same kind of disk operations you'd need to be able to implement for the OS eventually anyway... though you would, of course, be using the dev host OS's library rather than your own.iansjack wrote:I suspect that it is pretty much not true.Schol-R-LEA wrote: what he was really saying is, "you know, you could just write it yourself in less time than it is taking you to post these messages and get a reply..."
Which is pretty much true.
But if you are just talking about your own assessment of TimothyWilliams' expertise at low-level coding, then I would say, Insufficient Data. I haven't really been taking specific note of his posts up until now.
Rev. First Speaker Schol-R-LEA;2 LCF ELF JAM POEE KoR KCO PPWMTF
Ordo OS Project
Lisp programmers tend to seem very odd to outsiders, just like anyone else who has had a religious experience they can't quite explain to others.
Ordo OS Project
Lisp programmers tend to seem very odd to outsiders, just like anyone else who has had a religious experience they can't quite explain to others.
Re: MKBT: Error 0x57: The parameter is incorrect.
For the OP.
Just judging from posts to date.
A complete aside but don't you love the trend for people with usernames that say, in effect, "I am a clever bastard" asking really simple questions.
Just judging from posts to date.
A complete aside but don't you love the trend for people with usernames that say, in effect, "I am a clever bastard" asking really simple questions.