Re: [9fans] usbohci in pccpuf

2008-06-10 Thread lejatorn
On Mon, Jun 09, 2008 at 01:56:07PM -0400, erik quanstrom wrote:
  Hello 9fans,
  
  Jsyk, I had to comment out usbohci in /sys/src/9/pc/pccpuf for the usb
  keyboard to work with a freshly built 9pccpuf. (there's only usb ports
  on the eserver 325). System pulled last friday (06/06/08).
  
  Cheers,
  Mathieu.
 
 likely if you turn off usb legacy in bios, you will be able to use
 the standard kernel.

I've just tried, it doesn't seem to change anything on that matter.
Well, it's not blocking for me in that case anyway, I can live without
usbohci.

Mathieu.




Re: [9fans] usbohci in pccpuf

2008-06-10 Thread lejatorn
On Tue, Jun 10, 2008 at 10:17:20AM -0400, erik quanstrom wrote:
   Jsyk, I had to comment out usbohci in /sys/src/9/pc/pccpuf for the usb
   keyboard to work with a freshly built 9pccpuf. (there's only usb ports
   on the eserver 325). System pulled last friday (06/06/08).
   
   Cheers,
   Mathieu.
  
  likely if you turn off usb legacy in bios, you will be able to use
  the standard kernel.
  
  I've just tried, it doesn't seem to change anything on that matter.
  Well, it's not blocking for me in that case anyway, I can live without
  usbohci.
 
 you also need to start usb/usbd and usb/kb, at least.

yes, but if you need the keyboard to enter stuff during boot time, like
the authid, or the path to the filesystem, then it's not possible
because I think those choices happen before the point where those
commands can be issued, right? Unless there is some place other than
cpurc where I could set those commands?




Re: [9fans] usbohci in pccpuf

2008-06-10 Thread Uriel
There is no support for usb keyboards.

Well, nemo implemented it some billions of years ago, and the code is
bittrotting somewhere in sources (which incidentally is down, as
usual). So, lets just pretend usb keyboards don't exist (or that all
bioses support the 'emulate ancient keyboards' switch and will do so
for the rest of eternity).

uriel

On Tue, Jun 10, 2008 at 5:15 PM,  [EMAIL PROTECTED] wrote:
 On Tue, Jun 10, 2008 at 10:17:20AM -0400, erik quanstrom wrote:
   Jsyk, I had to comment out usbohci in /sys/src/9/pc/pccpuf for the usb
   keyboard to work with a freshly built 9pccpuf. (there's only usb ports
   on the eserver 325). System pulled last friday (06/06/08).
  
   Cheers,
   Mathieu.
 
  likely if you turn off usb legacy in bios, you will be able to use
  the standard kernel.
 
  I've just tried, it doesn't seem to change anything on that matter.
  Well, it's not blocking for me in that case anyway, I can live without
  usbohci.

 you also need to start usb/usbd and usb/kb, at least.

 yes, but if you need the keyboard to enter stuff during boot time, like
 the authid, or the path to the filesystem, then it's not possible
 because I think those choices happen before the point where those
 commands can be issued, right? Unless there is some place other than
 cpurc where I could set those commands?






Re: [9fans] usbohci in pccpuf

2008-06-10 Thread erik quanstrom
 yes, but if you need the keyboard to enter stuff during boot time, like
 the authid, or the path to the filesystem, then it's not possible
 because I think those choices happen before the point where those
 commands can be issued, right? Unless there is some place other than
 cpurc where I could set those commands?

yes, if that is the case, you're in a pickle.

however, if you have a place for local nvram and you make sure
your plan9.ini file (or pxe version thereof) specifies the path to
the fs, you can still boot to a native usb kbd.

if you can't resolve one of those issues, you will likely need to add
some code to the init process and link usb/usbd and usb/kb into
the kernel.

- or - if you have working ethernet, the cec patches that i submitted
a year or so ago will allow you to enter very early boot information
using cec(8).  i also have a prototype 9load that will also interact
via cec.

an older version of cec is part of the distribution.  my current
version is in /n/sources/contrib/quanstro/src/cec.  i'd be happy to
put the kernel patches somewhere if folks would find it useful.

- erik




Re: [9fans] usbohci in pccpuf

2008-06-10 Thread sqweek
On Tue, Jun 10, 2008 at 11:25 PM, Uriel [EMAIL PROTECTED] wrote:
[top-posting fixed]
 On Tue, Jun 10, 2008 at 5:15 PM,  [EMAIL PROTECTED] wrote:
 On Tue, Jun 10, 2008 at 10:17:20AM -0400, erik quanstrom wrote:
 you also need to start usb/usbd and usb/kb, at least.

 yes, but if you need the keyboard to enter stuff during boot time, like
 the authid, or the path to the filesystem, then it's not possible
 because I think those choices happen before the point where those
 commands can be issued, right?

 Pretty sure you're right. This situation looks to me like one that
could be avoided by replacing 9load with a proper kernel - otherwise
we'd have to teach 9load about usb, no?

 There is no support for usb keyboards.

 Well, nemo implemented it some billions of years ago, and the code is
 bittrotting somewhere in sources (which incidentally is down, as
 usual).

 I understand your frustration uriel, but if you read carefully you'll
notice erik's message here makes a reference to usb/kb. Which suggests
to me that usb keyboards have some support nowadays. Some things
change for the better :)

-sqweek



Re: [9fans] usbohci in pccpuf

2008-06-10 Thread David Leimbach
On Tue, Jun 10, 2008 at 8:48 AM, Charles Forsyth [EMAIL PROTECTED]
wrote:

  or that all
   bioses support the 'emulate ancient keyboards' switch and will do so
   for the rest of eternity).

 probably. it's needed for DOS


 I used to need it for FreeBSD too... cuz their USB support pretty well
sucked too for a long time.  (USB printers could crash the whole OS back in
the day... not sure how 7 is.)


Re: [9fans] usbohci in pccpuf

2008-06-09 Thread erik quanstrom
 Hello 9fans,
 
 Jsyk, I had to comment out usbohci in /sys/src/9/pc/pccpuf for the usb
 keyboard to work with a freshly built 9pccpuf. (there's only usb ports
 on the eserver 325). System pulled last friday (06/06/08).
 
 Cheers,
 Mathieu.

likely if you turn off usb legacy in bios, you will be able to use
the standard kernel.

- erik