Re: printing boot probe messages

2007-12-22 Thread Bernd Walter
On Fri, Dec 21, 2007 at 10:33:52PM -0500, Chuck Robey wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Bernd Walter wrote:
  On Thu, Dec 20, 2007 at 05:48:18PM -0500, Chuck Robey wrote:
  -BEGIN PGP SIGNED MESSAGE-
  Hash: SHA1
 
  I've lost the printing of all of th e messages you normally see, when you 
  are
  booting yoiur machine (you know, mostly probe messages.  I used to see 
  them on
  this box. When I made my first kernel, I had begun (obviously, as we all 
  do)
  with GENERIC as a base, but changing the first loaders.hints and the 
  kernel,
  that's the last I saw of booting messages.
 
  To illustrate what I *do* see, I watch the first character of that little
  spiller, but only the very first char, because that's when it stops 
  working,
  right after sicking the first char.  Thbe nest thing I see, maybe 30 
  seconds
  later, is a Login: request.
  
  Sounds like your console is configured to a different device.
  Maybe it is configured to serial while you are waiting on vga.
  
  Any notion what I could do to get my booting messages back?
  
  Switch the console to the device you are looking at.
  You can easily check the configured console by running conscontrol.
  Maybe you've lost the device hint for your console device to flag
  it as beeing a possible console candidate.
 
 OK, when I run conscontrol, it tells me I am using the dcons console.  I
 looked at the man page for concontrol (and I've been gone from FreeBSD so
 long, I wasn't even awaare of conscontrol at all) and it informed me I am
 using the dcons device.  I am not aware of any others, I was hoping that if
 there were such, there would be references to them in either the dcons or
 conscontrol man pages, but no lock.  Is dcons good enough?  You understand I
 would be ecstatic if it wasn't 9and if I could set it to something else, and
 thereby get my booting  messages back.)  I checked my kernel config file, it
 does indeed list the dcons device.

dcons has no output as such, it depends on further support.
dcons for example allows console access over firewire.
You likely want consolectl as your configured console device.
I can just repeat myself: you must have missing some device hints,
since the device as such works fine but is not used as console.
See if conscontrol lists consolectl as available console devices,
if not than you are surely missing a hint if yes then you have
explicitly configured you console to be on dcons.

 Have any other ideas, I'm really listening here.
 
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v2.0.4 (FreeBSD)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
 iD8DBQFHbIWgz62J6PPcoOkRAigoAJ99PTNEEeK8LsBEXAtQS8Sc4tan2ACdESgM
 oBKqPU4TripnypwtKckxt6A=
 =r7GD
 -END PGP SIGNATURE-
 ___
 freebsd-hackers@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
 To unsubscribe, send any mail to [EMAIL PROTECTED]

-- 
B.Walterhttp://www.bwct.de  http://www.fizon.de
[EMAIL PROTECTED]   [EMAIL PROTECTED][EMAIL PROTECTED]
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: printing boot probe messages

2007-12-22 Thread Chuck Robey
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Bernd Walter wrote:
 OK, when I run conscontrol, it tells me I am using the dcons console.  I
 looked at the man page for concontrol (and I've been gone from FreeBSD so
 long, I wasn't even awaare of conscontrol at all) and it informed me I am
 using the dcons device.  I am not aware of any others, I was hoping that if
 there were such, there would be references to them in either the dcons or
 conscontrol man pages, but no lock.  Is dcons good enough?  You understand I
 would be ecstatic if it wasn't 9and if I could set it to something else, and
 thereby get my booting  messages back.)  I checked my kernel config file, it
 does indeed list the dcons device.
 
 dcons has no output as such, it depends on further support.
 dcons for example allows console access over firewire.
 You likely want consolectl as your configured console device.
 I can just repeat myself: you must have missing some device hints,
 since the device as such works fine but is not used as console.
 See if conscontrol lists consolectl as available console devices,
 if not than you are surely missing a hint if yes then you have
 explicitly configured you console to be on dcons.

I wish you'd given more examples, because the concontrol man page is extremely
unhelpful, but I will see if I can prompt you into it, by providing what comes
out of my running conscontrol:


TCSH-april:root:/home/chuckr:#105-12:23conscontrol
Configured: dcons
 Available: dcons,gdb
Muting: off

If you use the list parameter to conscontrol, the same printout results.  I
*think* you might be saying that I should see something dealing with
consolectl, nothing resu;ting even from man -k consolectl.  I did find the
file /dev/consolectl, but I can't figure out the use of it.

Hmmm, I found a hint on an old email, hinting that the command conscontrol
should have been used to add a console.  I just tried using the ctl-alt-f1
combo to get onto ttyv0.  I did a tty, this proved I was in fact on ttyv0, so
i tried to do a conscontrol add /dev/ttyv0, but what came back was device
not configured.  I think I'm close here, so what should my console device be?

 
 Have any other ideas, I'm really listening here.
 
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.4 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHbU41z62J6PPcoOkRAhYiAJ0WMob4kfBZFautZJLbbrOm6HVdzQCgjRJ3
+BYHMNjaRLrYjANPsizWeck=
=aUxK
-END PGP SIGNATURE-
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: printing boot probe messages

2007-12-22 Thread Jeremy Chadwick
On Sat, Dec 22, 2007 at 12:49:41PM -0500, Chuck Robey wrote:
 TCSH-april:root:/home/chuckr:#105-12:23conscontrol
 Configured: dcons
  Available: dcons,gdb
 Muting: off
 
 If you use the list parameter to conscontrol, the same printout results.  I
 *think* you might be saying that I should see something dealing with
 consolectl, nothing resu;ting even from man -k consolectl.  I did find the
 file /dev/consolectl, but I can't figure out the use of it.

conscontrol(8) output of configured/available devices simply parses the
kern.console sysctl variable.  Everything after the / is considered an
available device for console output, and everything prior is considered
a working/used console.

So, based on the output of the command you ran, I'd say all of your
console messages (the ones you're looking for) are going to dcons.

I had absolutely no idea what dcons was until I man'd it.  It appears
to be a basic I/O driver that allows other drivers (or busses) to attach
to it.  When used as a console device, all kernel messages end up going
into that buffer.

Therefore, you appear to have some settings in your kernel configuration
which are inducing the behaviour you're experiencing.

A RELENG_6 box with serial console enabled (/boot.config contains -Dh)
and options GDB (but no dcons device) enabled in the kernel shows
this:

eos# conscontrol
Configured: ttyd0,consolectl
 Available: ttyd0,consolectl
Muting: off
eos# sysctl kern.console
kern.console: ttyd0,consolectl,/ttyd0,consolectl,

A RELENG_7 box without serial console (just VGA), and options GDB in
the kernel shows this:

icarus# conscontrol
Configured: consolectl
 Available: consolectl,gdb,ttyd0
Muting: off
icarus# sysctl kern.console
kern.console: consolectl,/consolectl,gdb,ttyd0,

 Hmmm, I found a hint on an old email, hinting that the command conscontrol
 should have been used to add a console.

conscontrol(8) lets you adjust which devices kernel messages go to.  You
can't just pick any device in /dev.  It doesn't work that way.

 I just tried using the ctl-alt-f1
 combo to get onto ttyv0.  I did a tty, this proved I was in fact on ttyv0, so
 i tried to do a conscontrol add /dev/ttyv0, but what came back was device
 not configured.  I think I'm close here, so what should my console device be?

No, you can't do this.  Your available console devices are listed when
you do `conscontrol' from the command line.  In your case right now,
your available consoles are either dcons (which you're already using) or
gdb.

Based on what I can figure out, your kernel configuration is very likely
missing the inclusion of the syscons(4) driver, which is what drives VGA
output.  Although, the fact that you can switch virtual VGA consoles via
Control-Alt-Fx seems to indicate you have a working VGA console somehow.

I think it would be benefitial to see your kernel configuration, the
contents of /boot/loader.conf, and /boot.config if you have one.

-- 
| Jeremy Chadwickjdc at parodius.com |
| Parodius Networking   http://www.parodius.com/ |
| UNIX Systems Administrator  Mountain View, CA, USA |
| Making life hard for others since 1977.  PGP: 4BD6C0CB |

___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: printing boot probe messages

2007-12-22 Thread Jeremy Chadwick
On Sat, Dec 22, 2007 at 02:19:30PM -0800, Jeremy Chadwick wrote:
 I think it would be benefitial to see your kernel configuration, the
 contents of /boot/loader.conf, and /boot.config if you have one.

I forgot another one: /boot/device.hints.

-- 
| Jeremy Chadwickjdc at parodius.com |
| Parodius Networking   http://www.parodius.com/ |
| UNIX Systems Administrator  Mountain View, CA, USA |
| Making life hard for others since 1977.  PGP: 4BD6C0CB |

___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How would I make this work in RELENG_7

2007-12-22 Thread Alexander Motin

Hi.

Sam Fourman Jr. wrote:

I have a PDA smart phone that I would like to use as a wireless modem
on my laptop

someone from OpenBSD helped me get it committed to OpenBSD 's Tree

would someone help me with a similar patch for FreeBSD

here is an old post that I made
http://www.nabble.com/Alltel-PPC6700-Wireless-Modem-td12491547.html


I have added my HTC Prophet PDA some time ago unto uipaq driver and it 
seems like working except there is no WM6 support in palm/synce version 
present in ports, so I had to build recent version by myself.


I have made a patch adding your device ID into uipaq driver alike 
OpenBSD one. But I am not sure should this device be supported with 
uipaq or umodem driver. umodem driver looks much more powerful, but I 
have nothing to test it, as my WM6 does not provides USB modem support. 
Could you try it also?


--
Alexander Motin
--- usbdevs.prev2007-12-11 08:41:38.0 +0200
+++ usbdevs 2007-12-23 01:13:13.0 +0200
@@ -1382,6 +1382,7 @@
 product HP2 C500   0x6002  PhotoSmart C500
 
 /* HTC products */
+product HTC MODEM  0x00cf  USB Modem 
 product HTC SMARTPHONE 0x0a51  SmartPhone USB Sync
 
 /* HUAWEI products */
--- uipaq.c.prev2007-10-22 11:28:24.0 +0300
+++ uipaq.c 2007-12-23 01:12:51.0 +0200
@@ -123,6 +123,7 @@
{{ USB_VENDOR_HP, USB_PRODUCT_HP_2215 }, 0 },
{{ USB_VENDOR_HP, USB_PRODUCT_HP_568J }, 0},
{{ USB_VENDOR_HTC, USB_PRODUCT_HTC_SMARTPHONE }, 0},
+   {{ USB_VENDOR_HTC, USB_PRODUCT_HTC_MODEM }, 0},
{{ USB_VENDOR_COMPAQ, USB_PRODUCT_COMPAQ_IPAQPOCKETPC } , 0},
{{ USB_VENDOR_CASIO, USB_PRODUCT_CASIO_BE300 } , 0},
{{ USB_VENDOR_SHARP, USB_PRODUCT_SHARP_WZERO3ES }, 0},
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]