Need help with pure64 / baremetal

244 views
Skip to first unread message

Spandex Yfronts

unread,
Oct 2, 2013, 10:05:30 AM10/2/13
to bareme...@googlegroups.com
Hi.. i'm new to pure64 / baremetal and was wondering if anyone knows exactly what i need to do to get either happening on my computer

Ian Seyler

unread,
Oct 2, 2013, 12:41:56 PM10/2/13
to bareme...@googlegroups.com
What stage are you currently at? Have you compiled from source? Do you want to run it in a VM or on physical hardware?

-Ian

Spandex Yfronts

unread,
Oct 2, 2013, 5:21:44 PM10/2/13
to bareme...@googlegroups.com

Well... i have the latest version of nasm but haven't compiled anything yet ...that side of things won't be a problem so long as i know what to do
 
On the second point, I'd love to run it all on physical hardware ... that side of things could be a problem...i'm clueless about mbr's and anything else that might need doing there
 
-Spandex
 

Ian Seyler

unread,
Oct 3, 2013, 11:27:09 AM10/3/13
to bareme...@googlegroups.com
The easiest way to get started is on a Linux machine (or VM).

The BareMetal build scripts make it all very easy. https://github.com/ReturnInfinity/BareMetal

-Ian

Spandex Yfronts

unread,
Oct 3, 2013, 11:58:46 AM10/3/13
to bareme...@googlegroups.com
Unfortunately, 'Linux' isn't an option for me, the download with the mobile connection i have would be impossible.

Ian Seyler

unread,
Oct 4, 2013, 11:58:14 AM10/4/13
to bareme...@googlegroups.com
What OS are you using?

-Ian

Spandex Yfronts

unread,
Oct 4, 2013, 6:40:13 PM10/4/13
to bareme...@googlegroups.com
Windows7. I've got as far as compiling the bmfs_mbr and pure64 but i'm not too sure about how to write the mbr to the bootsector or how to write pure64 to sector 8 like it says in the notes in the mbr file

harald...@gmail.com

unread,
Oct 11, 2013, 5:31:25 PM10/11/13
to bareme...@googlegroups.com
On Saturday, October 5, 2013 12:40:13 AM UTC+2, Spandex Yfronts wrote:
Windows7. I've got as far as compiling the bmfs_mbr and pure64 but i'm not too sure about how to write the mbr to the bootsector or how to write pure64 to sector 8 like it says in the notes in the mbr file

Hi Spandex,

Don't know if it is still actual, but that's very ease. Btw: you don't need GNU/Linux at all, you can just use any other virtualization software for windows like VirtualBox, bochs, VMware, whatever you already have installed. But I guess you don't have any of those already, do you?

Just download the dd tool for windows first: http://www.chrysocome.net/downloads/dd-0.6beta3.zip

Do you want to install the mbr and pure64 as the only system on your PC or as a dual boot option? You don't want to kill your Windows7, right? :)

dd --list prints out the volumes in your PC, but be careful to choose the correct one!

Then you dump the bmfs_mbr onto the volume at sector 0, which resembles the PBR.or into sector 0 of the disk itself, which is the MBR. If you are using the PBR you need to config your bootloader(Windows bootloader or GRUB or whatever bootloader you are using) to bot the bmfs_mbr:
The volume number used here is only an example, not your actual one.
dd if=bmfs_mbr.sys of=\\.\Volume{c18588c0-02e9-11d8-853f-00902758442b} bs=512

This will dump the mbfs_mbr into the MBR/PBR.

Then you have to write pure64 into sector 8 of your volume:
dd if=pure64.sys of=\\.\Volume{c18588c0-02e9-11d8-853f-00902758442b} bs=512 seek=16

bs * seek = sector offset -> 512 bytes * 16 = 8192 bytes(sector 8)

If you wrote this stuff into your MBR it will load load the mbfs_mbr and that will start pure64 for you. Nothing else. Actually you can't do anything with it, unless you aditonally write your kernel or the baremetal one to the volume.

But remember, writing that stuff to the volume/disk your Win7 resides in, will kill it! So better post what you have exactly in mind :)
baremetal only, dual boot with Win7, win bootloader, grub bootloader and so on.

Best,
H


Reply all
Reply to author
Forward
0 new messages