Reading sectors off flash drive in protected mode

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
User avatar
BMW
Member
Member
Posts: 286
Joined: Mon Nov 05, 2012 8:31 pm
Location: New Zealand

Re: Reading sectors off flash drive in protected mode

Post by BMW »

sorry guys
Currently developing Lithium OS (LiOS).

Recursive paging saves lives.
"I want to change the world, but they won't give me the source code."
User avatar
ehenkes
Member
Member
Posts: 124
Joined: Mon Mar 23, 2009 3:15 am
Location: Germany
Contact:

Re: Reading sectors off flash drive in protected mode

Post by ehenkes »

http://prettos.de

We have UHCI, OHCI, EHCI with a common interface to usb1/usb2, and we are adding xHCI now. xHCI specification is really good (EHCI is a terrible one).
h0bby1
Member
Member
Posts: 240
Joined: Wed Aug 21, 2013 7:08 am

Re: Reading sectors off flash drive in protected mode

Post by h0bby1 »

BMW wrote:
Combuster wrote:use int 0x13. Otherwise, no.
Hi,

If you bothered to read the title, you would have noticed that I am doing this in protected mode. I hope you know that interrupts are not available in protected mode.
i wrote a thread about using bios function in protected mode, it can be doable in several way, but either not very reliable safe or either not efficient, but it can be done , specially if it's during early stage of kernel initialization

otherwise you can check grub source code, it contain all you need to initialize an usb flash disk in protected mode
Kortath
Member
Member
Posts: 57
Joined: Sat Sep 07, 2013 11:23 am

Re: Reading sectors off flash drive in protected mode

Post by Kortath »

h0bby1 wrote:otherwise you can check grub source code, it contain all you need to initialize an usb flash disk in protected mode

I was wondering about that. Glad you posted that tip. :)
ehenkes wrote:http://prettos.de

We have UHCI, OHCI, EHCI with a common interface to usb1/usb2, and we are adding xHCI now. xHCI specification is really good (EHCI is a terrible one).
The link doesn't work. :(

EDIT UPDATE :
@ ehenkes

Found it here : http://sourceforge.net/p/prettyos/code/ ... l/storage/

Nice. :)
Kortath
Member
Member
Posts: 57
Joined: Sat Sep 07, 2013 11:23 am

Re: Reading sectors off flash drive in protected mode

Post by Kortath »

ehenkes wrote:http://prettyos.de sorry :)

Thank you. Although I can't read that language, it is a nice looking site.
Post Reply