OSDev.org

The Place to Start for Operating System Developers
It is currently Fri May 26, 2017 1:12 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 17 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: MKBT: Error 0x57: The parameter is incorrect.
PostPosted: Thu Apr 13, 2017 1:52 pm 
Offline
Member
Member

Joined: Sat Sep 17, 2016 2:14 am
Posts: 57
Location: Moscow, Russia
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 10 times

_________________
I will be back... - Arnold Schwarzenegger
Code:
if tired = no then
code = yes
sleep = no
else
code = no
sleep = yes
Top
 Profile  
 
 Post subject: Re: MKBT: Error 0x57: The parameter is incorrect.
PostPosted: Thu Apr 13, 2017 2:12 pm 
Offline
Member
Member
User avatar

Joined: Sat Jan 15, 2005 12:00 am
Posts: 7897
Location: At his keyboard!
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

_________________
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.


Top
 Profile  
 
 Post subject: Re: MKBT: Error 0x57: The parameter is incorrect.
PostPosted: Thu Apr 13, 2017 2:28 pm 
Offline
Member
Member

Joined: Sat Sep 17, 2016 2:14 am
Posts: 57
Location: Moscow, Russia
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.

_________________
I will be back... - Arnold Schwarzenegger
Code:
if tired = no then
code = yes
sleep = no
else
code = no
sleep = yes


Top
 Profile  
 
 Post subject: Re: MKBT: Error 0x57: The parameter is incorrect.
PostPosted: Thu Apr 13, 2017 2:53 pm 
Offline
Member
Member
User avatar

Joined: Sat Jan 15, 2005 12:00 am
Posts: 7897
Location: At his keyboard!
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

_________________
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.


Top
 Profile  
 
 Post subject: Re: MKBT: Error 0x57: The parameter is incorrect.
PostPosted: Thu Apr 13, 2017 3:15 pm 
Offline
Member
Member

Joined: Sat Sep 17, 2016 2:14 am
Posts: 57
Location: Moscow, Russia
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.

_________________
I will be back... - Arnold Schwarzenegger
Code:
if tired = no then
code = yes
sleep = no
else
code = no
sleep = yes


Top
 Profile  
 
 Post subject: Re: MKBT: Error 0x57: The parameter is incorrect.
PostPosted: Thu Apr 13, 2017 3:24 pm 
Offline
Member
Member
User avatar

Joined: Sat Jan 15, 2005 12:00 am
Posts: 7897
Location: At his keyboard!
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

_________________
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.


Top
 Profile  
 
 Post subject: Re: MKBT: Error 0x57: The parameter is incorrect.
PostPosted: Thu Apr 13, 2017 4:35 pm 
Offline
Member
Member

Joined: Sat Sep 17, 2016 2:14 am
Posts: 57
Location: Moscow, Russia
A-ha! Found out that I should have first coded the VBR, then the MBR.

_________________
I will be back... - Arnold Schwarzenegger
Code:
if tired = no then
code = yes
sleep = no
else
code = no
sleep = yes


Top
 Profile  
 
 Post subject: Re: MKBT: Error 0x57: The parameter is incorrect.
PostPosted: Thu May 04, 2017 2:42 pm 
Offline
Member
Member

Joined: Sat Sep 17, 2016 2:14 am
Posts: 57
Location: Moscow, Russia
Brendan wrote:
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


What else could I use for copying the bootloader than RawWrite or WinDD?

_________________
I will be back... - Arnold Schwarzenegger
Code:
if tired = no then
code = yes
sleep = no
else
code = no
sleep = yes


Top
 Profile  
 
 Post subject: Re: MKBT: Error 0x57: The parameter is incorrect.
PostPosted: Thu May 04, 2017 2:47 pm 
Offline
Member
Member
User avatar

Joined: Sun Sep 19, 2010 10:05 pm
Posts: 994
TimothyWilliams wrote:
What else could I use for copying the bootloader than RawWrite or WinDD?

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.

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: VGA Mode 13h

"The more they overthink the plumbing, the easier it is to stop up the drain." - Montgomery Scott


Top
 Profile  
 
 Post subject: Re: MKBT: Error 0x57: The parameter is incorrect.
PostPosted: Thu May 04, 2017 2:50 pm 
Offline
Member
Member

Joined: Sat Sep 17, 2016 2:14 am
Posts: 57
Location: Moscow, Russia
SpyderTL wrote:
TimothyWilliams wrote:
What else could I use for copying the bootloader than RawWrite or WinDD?

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.

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...


Oh mate, that's cool, but I can't get it from you due to privacy reasons.

_________________
I will be back... - Arnold Schwarzenegger
Code:
if tired = no then
code = yes
sleep = no
else
code = no
sleep = yes


Top
 Profile  
 
 Post subject: Re: MKBT: Error 0x57: The parameter is incorrect.
PostPosted: Thu May 04, 2017 3:09 pm 
Offline
Member
Member
User avatar

Joined: Sat Mar 31, 2012 3:07 am
Posts: 2796
Location: Chichester, UK
TimothyWilliams wrote:
What else could I use for copying the bootloader than RawWrite or WinDD?
Just use a hex editor and enter it byte by byte.

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.


Top
 Profile  
 
 Post subject: Re: MKBT: Error 0x57: The parameter is incorrect.
PostPosted: Thu May 04, 2017 9:22 pm 
Offline
Member
Member
User avatar

Joined: Fri Oct 27, 2006 9:42 am
Posts: 839
Location: Athens, GA, USA
TimothyWilliams wrote:
SpyderTL wrote:
TimothyWilliams wrote:
What else could I use for copying the bootloader than RawWrite or WinDD?

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.

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...


Oh mate, that's cool, but I can't get it from you due to privacy reasons.


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..."

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
μή εἶναι βασιλικήν ἀτραπόν ἐπί γεωμετρίαν
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.


Top
 Profile  
 
 Post subject: Re: MKBT: Error 0x57: The parameter is incorrect.
PostPosted: Fri May 05, 2017 12:46 am 
Offline
Member
Member
User avatar

Joined: Sat Mar 31, 2012 3:07 am
Posts: 2796
Location: Chichester, UK
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.

I suspect that it is pretty much not true.


Top
 Profile  
 
 Post subject: Re: MKBT: Error 0x57: The parameter is incorrect.
PostPosted: Sat May 06, 2017 3:41 pm 
Offline
Member
Member
User avatar

Joined: Fri Oct 27, 2006 9:42 am
Posts: 839
Location: Athens, GA, USA
iansjack wrote:
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.

I suspect that it is pretty much not true.


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.

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
μή εἶναι βασιλικήν ἀτραπόν ἐπί γεωμετρίαν
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.


Top
 Profile  
 
 Post subject: Re: MKBT: Error 0x57: The parameter is incorrect.
PostPosted: Sun May 07, 2017 10:45 am 
Offline
Member
Member
User avatar

Joined: Sat Mar 31, 2012 3:07 am
Posts: 2796
Location: Chichester, UK
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 17 posts ]  Go to page 1, 2  Next

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group