OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 6:42 am

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
User avatar

Joined: Sat Sep 17, 2016 2:14 am
Posts: 83
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 41 times

_________________
Coffee is not airplane fuel.
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: 8561
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
User avatar

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

_________________
Coffee is not airplane fuel.


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: 8561
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
User avatar

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

_________________
Coffee is not airplane fuel.


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: 8561
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
User avatar

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

_________________
Coffee is not airplane fuel.


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

Joined: Sat Sep 17, 2016 2:14 am
Posts: 83
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?

_________________
Coffee is not airplane fuel.


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: 1074
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: LIB/OBJ file support
"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
User avatar

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

_________________
Coffee is not airplane fuel.


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: 4591
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: 1925
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
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.


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: 4591
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: 1925
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
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.


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: 4591
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: Bing [Bot], DotBot [Bot] and 32 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