All of lore.kernel.org
 help / color / mirror / Atom feed
* USB kernel driver
@ 2005-10-18 13:38 jochen
  2005-10-18 16:03 ` Marco Gerards
  0 siblings, 1 reply; 6+ messages in thread
From: jochen @ 2005-10-18 13:38 UTC (permalink / raw)
  To: grub-devel

Hi,

can somebody tell me if it is possible to integrate an USB kernel driver
(f. ex. linux-2.6.0\drivers\usb) into GRUB2 to access USB devices?

If possible, it would be great if somebody could tell me what basic steps
I have to do.

Thanks a lot,
Jochen



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

* Re: USB kernel driver
  2005-10-18 13:38 USB kernel driver jochen
@ 2005-10-18 16:03 ` Marco Gerards
  2005-10-18 16:17   ` Jonas Smedegaard
  0 siblings, 1 reply; 6+ messages in thread
From: Marco Gerards @ 2005-10-18 16:03 UTC (permalink / raw)
  To: The development of GRUB 2

jochen@mades.net writes:

Hi,

> can somebody tell me if it is possible to integrate an USB kernel driver
> (f. ex. linux-2.6.0\drivers\usb) into GRUB2 to access USB devices?
>
> If possible, it would be great if somebody could tell me what basic steps
> I have to do.

I don't think it is possible.  Linux has multitasking, interrupt
handing, a drive framework including the required bus drives, etc.

For GRUB we have to write our own drivers, I think.  And besides that,
I don't think it is nice to maintain the glue code.

--
Marco




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

* Re: USB kernel driver
  2005-10-18 16:03 ` Marco Gerards
@ 2005-10-18 16:17   ` Jonas Smedegaard
  2005-10-18 16:25     ` Marco Gerards
  0 siblings, 1 reply; 6+ messages in thread
From: Jonas Smedegaard @ 2005-10-18 16:17 UTC (permalink / raw)
  To: The development of GRUB 2

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, 18 Oct 2005 18:03:08 +0200
Marco Gerards <metgerards@student.han.nl> wrote:

> jochen@mades.net writes:
> 
> Hi,
> 
> > can somebody tell me if it is possible to integrate an USB kernel
> > driver (f. ex. linux-2.6.0\drivers\usb) into GRUB2 to access USB
> > devices?
> >
> > If possible, it would be great if somebody could tell me what basic
> > steps I have to do.
> 
> I don't think it is possible.  Linux has multitasking, interrupt
> handing, a drive framework including the required bus drives, etc.
> 
> For GRUB we have to write our own drivers, I think.  And besides that,
> I don't think it is nice to maintain the glue code.

How about borrowing from etherboot?

NIC drivers were borrowed from there in the past - is that (gonna be)
the case with v2 as well?

Perhaps it would be relevant to share some of their work on getting USB
NICs to work as well?


 - Jonas

- -- 
* Jonas Smedegaard - idealist og Internet-arkitekt
* Tlf.: +45 40843136  Website: http://dr.jones.dk/

 - Enden er nær: http://www.shibumi.org/eoti.htm
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFDVSAin7DbMsAkQLgRAutLAJwP6TOt1IXko+Wwpbgq6JJkWQUcyQCeJbwt
c4JSgl+lZlSrIy7CEr7NWeE=
=j+0y
-----END PGP SIGNATURE-----



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

* Re: USB kernel driver
  2005-10-18 16:17   ` Jonas Smedegaard
@ 2005-10-18 16:25     ` Marco Gerards
  2005-10-18 16:40       ` Jonas Smedegaard
  0 siblings, 1 reply; 6+ messages in thread
From: Marco Gerards @ 2005-10-18 16:25 UTC (permalink / raw)
  To: The development of GRUB 2

Jonas Smedegaard <dr@jones.dk> writes:

> How about borrowing from etherboot?
>
> NIC drivers were borrowed from there in the past - is that (gonna be)
> the case with v2 as well?
>
> Perhaps it would be relevant to share some of their work on getting USB
> NICs to work as well?

Etherboot has USB drivers?  Etherboot is easier because it has to
function in about the same circumstances as GRUB does.  So that would
be possible.

I wonder how portable the etherboot drivers are to architectures like
the PPC and sparc.

--
Marco




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

* Re: USB kernel driver
  2005-10-18 16:25     ` Marco Gerards
@ 2005-10-18 16:40       ` Jonas Smedegaard
  0 siblings, 0 replies; 6+ messages in thread
From: Jonas Smedegaard @ 2005-10-18 16:40 UTC (permalink / raw)
  To: The development of GRUB 2

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, 18 Oct 2005 18:25:45 +0200
Marco Gerards <metgerards@student.han.nl> wrote:

> Jonas Smedegaard <dr@jones.dk> writes:
> 
> > How about borrowing from etherboot?
> >
> > NIC drivers were borrowed from there in the past - is that (gonna
> > be) the case with v2 as well?
> >
> > Perhaps it would be relevant to share some of their work on getting
> > USB NICs to work as well?
> 
> Etherboot has USB drivers?  Etherboot is easier because it has to
> function in about the same circumstances as GRUB does.  So that would
> be possible.

Arrh - had a quick look just before but looking again it shows that USB
is only mentioned in a header file of a wireless driver. No support for
USB busses :-(


> I wonder how portable the etherboot drivers are to architectures like
> the PPC and sparc.

Oh yes - that's right :-)


 - Jonas


- -- 
* Jonas Smedegaard - idealist og Internet-arkitekt
* Tlf.: +45 40843136  Website: http://dr.jones.dk/

 - Enden er nær: http://www.shibumi.org/eoti.htm
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFDVSWXn7DbMsAkQLgRAlE1AJ4n/SW/xFJRJkUBChDkv7OgqH8XYQCggLVG
deLqPtqtrTM/puF+YUeTyyM=
=2NdX
-----END PGP SIGNATURE-----



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

* Re: USB kernel driver
  2005-10-21  6:09 AW: " jochen
@ 2005-10-23  3:06 ` Hollis Blanchard
  0 siblings, 0 replies; 6+ messages in thread
From: Hollis Blanchard @ 2005-10-23  3:06 UTC (permalink / raw)
  To: The development of GRUB 2

On Oct 21, 2005, at 1:09 AM, jochen@mades.net wrote:
>
> because of not knowing the GRUB 2 architecture very well so far, it 
> would
> be nice if you could give me some tipps about
> - what does the GRUB development enviroment looks like (means how does
> your test PCs look like, how to put updates on the test PC an so on)

There is some information in the wiki: 
http://grub.enbug.org/TestingOnX86 . If you have more specific 
questions, please ask on the list and then update the wiki with the 
answers. :)

> - ways to debug my code

grub_printf, pretty much exclusively. Also, please consider using 
grub_dprintf for generally useful debug messages. Consider when 
somebody runs your code on different hardware and it doesn't work: you 
can then "set debug=usb" and the debug messages you've left in will be 
displayed.

I've been thinking about a memory dumping and editing command, but 
haven't needed it enough to implement it so far.

If you have other suggestions, feel free to make them here...

> - where in source code should I place my test driver

There is a top-level "video" directory, so I guess you could make a new 
directory like "usb". Or we may want to move things into a "drivers" 
directory, but that should be a small matter compared to getting the 
code working. :)

-Hollis




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

end of thread, other threads:[~2005-10-23  3:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-18 13:38 USB kernel driver jochen
2005-10-18 16:03 ` Marco Gerards
2005-10-18 16:17   ` Jonas Smedegaard
2005-10-18 16:25     ` Marco Gerards
2005-10-18 16:40       ` Jonas Smedegaard
  -- strict thread matches above, loose matches on Subject: below --
2005-10-21  6:09 AW: " jochen
2005-10-23  3:06 ` Hollis Blanchard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.