Page 1 of 2

Booting From USB

Posted: Thu Feb 01, 2007 4:19 am
by JMD
Hi,

I have been attempting to boot menuet/kolibri from my USB device using harddrive emulation. See these messages... http://menuet.2.forumer.com/index.php?s ... #entry7259

I was wondering if anyone has had any success booting from a USB Flash Memory using harddrive emulation. Perhaps someone with more experience in file systems can help.

Jason

Posted: Thu Feb 01, 2007 8:23 am
by Mario79
Try my experience:
http://www.kolibri.hut1.ru/l_usb_e.htm
Good luck!

Posted: Thu Feb 01, 2007 6:39 pm
by JMD
Hi

Thank You Mario79 for your responce. It is a little difficult to fully understand your guide but please let me know if i understand correctly:

1. You are using floppy drive emulation from bios (bios uses Int 0x13 ah=2 dl=0)

2. In order to use complete memory capacity you are first booting into DOS with bootsector on flash memory, then using a custom program to copy the menuet files to memory above 1MB.

3. You are using Fat16 file system because DOS versions < 7 do not support Fat32.

Unfortunetly my motherboard bios does not support floppy emulation, it only emulates as a harddrive.... (bios interrupt 0x13, AH=2, DL=0x80). One of me flash drives seems to scramble the memory, or perhaps the CHS settings in the bootsector header are not correct?

more to come later

Jason

Posted: Fri Feb 02, 2007 8:22 am
by Mario79
JMD
1. I do not know that emulates BIOS, in principle no person of the difference - a main to was started boot in 0 sectors. Further all do meosload through services DOS.
2. Yes meosload was доработан me to copy IMG file.
3. Fat16.
You must not write boot themselves on Flash, all do format.com in Win98.
On some computer Kolibri this way is not started, but DOS is started practically on all computer.

Posted: Fri Feb 02, 2007 6:59 pm
by JMD
Hi

Ahh i see Mario79. That is a very clever way of loading the kernel. Although i would like to attempt to load kernel without using DOS if for anything just to learn how to do it.

I believe the problems that most people are having is that the Sector and Head counts in the partition header (in the data area of bootsector) are not correctly set by the format program. I found a bios call (int 0x13, ah= 8) which gives correct Cylinder, Head, and Sector counts and seems like it will allow me to create my own bootsector to load the kernel directly from a fat16 formatted USB Flash device.

Please check my updated posts here.... http://menuet.2.forumer.com/index.php?s ... #entry7271

Hopefully i will have time to finalize this project later tonight while most of you will be sleeping. At this point i have implemented the new bios call and it made it possible to navigate to root directory entry. but i did not have enough time to create code to search root directory for file and load file into memory.

Posted: Thu Jun 07, 2007 9:21 am
by JMD
Hi All,

Well after many months of inactivity, i finally got back to the USB bootsector and i have great news for all of you. I have created a bootsector which allows me to boot into KolibriOS from my USB stick. I cannot boot into official current release of MenuetOS just yet as the option to boot to a Previously loaded image no longer exists, hopefully this option can be add back to boot menu so we can enjoy the official release of Menuet from a USB Memory stick.

Check here for the file.... http://board.flatassembler.net/topic.php?p=51973#51973

JMD

Posted: Thu Jun 07, 2007 10:37 am
by Serial
JMD, thank you! It's a very good news.
But where I can find download link?

Posted: Thu Jun 07, 2007 12:42 pm
by JMD
Thats strange i suppose i had teh wrong url...... try this one.... http://board.flatassembler.net/topic.php?t=6602

PS its soo difficult for me to submit messages to the forum, i dont understand cyrillic :(

Posted: Thu Jun 07, 2007 12:49 pm
by Mario79

USB

Posted: Thu Jun 07, 2007 1:05 pm
by JMD
Ahh i see. You must be logged in at FASM in order to see the files. you can also get to it by going to the main menu on the forum and goto category "OS Development" and in there you will see a "Test Boot Sector" thread.

Posted: Thu Jun 07, 2007 1:14 pm
by Mario79
Bad. Earlier not it is necessary was be authorized user that download files.

USB Bootsector

Posted: Fri Jun 08, 2007 4:08 am
by JMD
hi

any feedback, good or bad is appreciated. Im interested in knowing if anyone else had success with the boot sector for booting from USB or other devices. Please let me know if you find any bugs in it or anything like that.

JMD

Posted: Fri Jun 08, 2007 7:16 am
by Mario79
JMD
Give the direct link to file, then I shall be able to check.

USB Bootsector

Posted: Fri Jun 08, 2007 8:25 am
by JMD
Ok heres a direct link to the USB bootloader.... http://www.geocities.com/cordata51/File ... olibri.zip

Posted: Wed Jun 13, 2007 4:53 pm
by Mario79
JMD
This does not work at my Flash - Kingston Data Traveler 512 Mb.
I all did, as it is written.