public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* NAND behind INT13 BIOS interface
@ 2006-07-19  9:34 Indrek Kruusa
  2006-07-19 15:09 ` David Woodhouse
  0 siblings, 1 reply; 3+ messages in thread
From: Indrek Kruusa @ 2006-07-19  9:34 UTC (permalink / raw)
  To: linux-mtd

Hi!

I have board with NAND and BIOS seems to have built-in driver for that. 
BIOS provides INT 13 interface for the NAND too.

Is there a solution to access such NAND (with the help of INT 13) as a 
usual block device from Linux?

Best regards,
Indrek

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: NAND behind INT13 BIOS interface
  2006-07-19  9:34 NAND behind INT13 BIOS interface Indrek Kruusa
@ 2006-07-19 15:09 ` David Woodhouse
  2006-07-20 10:32   ` Indrek Kruusa
  0 siblings, 1 reply; 3+ messages in thread
From: David Woodhouse @ 2006-07-19 15:09 UTC (permalink / raw)
  To: Indrek Kruusa; +Cc: linux-mtd

On Wed, 2006-07-19 at 12:34 +0300, Indrek Kruusa wrote:
> I have board with NAND and BIOS seems to have built-in driver for that. 
> BIOS provides INT 13 interface for the NAND too.
> 
> Is there a solution to access such NAND (with the help of INT 13) as a 
> usual block device from Linux?

There used to be such a hack -- it's quite evil and fragile though. You
have to switch back into real mode to invoke the BIOS call, and you need
to preserve enough of the pre-boot environment that it can still work.
Running it in vm86 mode might also work, if you're lucky.

Seriously though, I wouldn't bother -- just implement a translation
layer in Linux which is compatible.

-- 
dwmw2

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: NAND behind INT13 BIOS interface
  2006-07-19 15:09 ` David Woodhouse
@ 2006-07-20 10:32   ` Indrek Kruusa
  0 siblings, 0 replies; 3+ messages in thread
From: Indrek Kruusa @ 2006-07-20 10:32 UTC (permalink / raw)
  To: David Woodhouse; +Cc: linux-mtd

David Woodhouse wrote:
> On Wed, 2006-07-19 at 12:34 +0300, Indrek Kruusa wrote:
>> I have board with NAND and BIOS seems to have built-in driver for that. 
>> BIOS provides INT 13 interface for the NAND too.
>>
>> Is there a solution to access such NAND (with the help of INT 13) as a 
>> usual block device from Linux?
>
> There used to be such a hack -- it's quite evil and fragile though. You
> have to switch back into real mode to invoke the BIOS call, and you need
> to preserve enough of the pre-boot environment that it can still work.
> Running it in vm86 mode might also work, if you're lucky.
>
> Seriously though, I wouldn't bother -- just implement a translation
> layer in Linux which is compatible.

Thanks for the advice.
It may be that I switch to LinuxBIOS and then there could be more 
options to cope with that.

Indrek

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-07-20 10:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-19  9:34 NAND behind INT13 BIOS interface Indrek Kruusa
2006-07-19 15:09 ` David Woodhouse
2006-07-20 10:32   ` Indrek Kruusa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox