flat assembler
Message board for the users of flat assembler.

Index > OS Construction > WRITING A USB DRIVER - continued into thumb drives

Author
Thread Post new topic Reply to topic
Redragon



Joined: 27 Nov 2004
Posts: 101
Location: U.S.
Redragon 10 Jun 2005, 18:33
as you know there is many names for a usb storage device such as, pen drive, thumb drive, flash drive, thumb stick, etc. i was wondering though, you know how the when reading from the hard drive you have to calculate the number of hears, tracks, sectors, etc. - What does a thumb drive have? i have no idea where to start in the development of a thumb drive viewer driver, like how you can access and read files from teh hard drive, ( like how you can in SolarOS ) anything that will help in any way would be greatly appreciated.. thanks everyone!






Redragon
Post 10 Jun 2005, 18:33
View user's profile Send private message Reply with quote
Dex4u



Joined: 08 Feb 2005
Posts: 1601
Location: web
Dex4u 10 Jun 2005, 19:07
Try this link http://www.weethet.nl/english/hardware_bootfromusbstick.php

But lets say i want to boot Dex4u form a usb key fob, i would do this :

1. make shore the usb key fob is bootable.
2. make shore my PC bios could boot a usb device
3. if the key fob could be formated as a fat12, i would format it as a fat12, put the "bootprog.bin" boot sector on the key fob , there are many program available on the net to do this.
put "Dex4u.exe" on the key fob and reboot with the key fob in the usb hub.

This should then boot "Dex4u" , but once in pmode i could not load any thing from the key fob unless i made a USB driver.
Post 10 Jun 2005, 19:07
View user's profile Send private message Reply with quote
f0dder



Joined: 19 Feb 2004
Posts: 3175
Location: Denmark
f0dder 11 Jun 2005, 15:47
Quote:

But once in pmode i could not load any thing from the key fob unless i made a USB driver.

Or use V86 (or pm->rm->pm) to access int13 Smile
Post 11 Jun 2005, 15:47
View user's profile Send private message Visit poster's website Reply with quote
Dex4u



Joined: 08 Feb 2005
Posts: 1601
Location: web
Dex4u 11 Jun 2005, 16:14
Your right f0dder, once you found what the bios defines the usb fob has, also i can switch pm->rm->pm in "Dex4u" and do int 10h etc, and it works fine, but if if i try the same with int 13h it crashers thats maybe because i remapp pic's.

Maybe i should restore rm pic setting, but since i have made a pmode floppy driver now, i have not got round to it Wink .
Post 11 Jun 2005, 16:14
View user's profile Send private message Reply with quote
f0dder



Joined: 19 Feb 2004
Posts: 3175
Location: Denmark
f0dder 11 Jun 2005, 19:37
remapping the PIQ sounds likely to be causing troubles Smile - v86 mode should be safer, but more work... hope to get some work done on my toy kernel in the summer vacation and implement v86 Smile
Post 11 Jun 2005, 19:37
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
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 vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.