DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 17th September 2009
hansivers hansivers is offline
Real Name: Hans Ivers
Port Guard
 
Join Date: Jun 2008
Location: Victoria, BC, Canada
Posts: 20
Default Beep or visual signal after booting OpenBSD/sparc64

Hi everybody,

I've setup a firewall/router on a SunFire v100 using OpenBSD/sparc64.

Since it's a headless system (all management done via serial port), is there a way to play a "signal" when the system has finished its booting sequence, to inform the admin that services are up and running? Ideally, it would be a beep sound, but basically any audible or visible signal is ok for me.

Until now, I've tried various "hacks" :

- shell script ( "/a" in C)
- access to audio system (but the v100 does not seem to have an internal "speaker" like those I'm more familiar for PC)
- visual signal (there are two alarms linked to green lights in the front case that can be set in LOM but I understand they are not accessible within OpenBSD).

Any ideas or suggestions will be most welcome! Thanks in advance,

Hans.
Reply With Quote
  #2   (View Single Post)  
Old 17th September 2009
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Banned
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Default

I don't know much about the SPARC architecture, but presumably you have a CD-ROM drive?

One method might be to open and close the tray to indicate the boot has completed.

# eject cd0; sleep 5; eject -t cd0

Kind of silly, but it should work.
Reply With Quote
  #3   (View Single Post)  
Old 17th September 2009
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Banned
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Default

Just searched for your model.. it has a laptop (..slim) CD-ROM drive, you can only open those via eject(1).. not close.

It might not be very noticeable either.

Sorry for the noise.
Reply With Quote
  #4   (View Single Post)  
Old 17th September 2009
hansivers hansivers is offline
Real Name: Hans Ivers
Port Guard
 
Join Date: Jun 2008
Location: Victoria, BC, Canada
Posts: 20
Default

Quote:
Originally Posted by BSDfan666 View Post
One method might be to open and close the tray to indicate the boot has completed.

# eject cd0; sleep 5; eject -t cd0

Kind of silly, but it should work.
In fact, I just got this very same suggestion from somebody on the openbsd-sparc list!

It may not be "standard"... but it will certainly work!

Thanks for your inspiration!
Reply With Quote
  #5   (View Single Post)  
Old 17th September 2009
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by hansivers View Post
Until now, I've tried various "hacks" :

- shell script ( "/a" in C)
I don't know if this was a typographic error or otherwise, but you may want to try the following:

$ echo $'\a'
Reply With Quote
  #6   (View Single Post)  
Old 17th September 2009
hansivers hansivers is offline
Real Name: Hans Ivers
Port Guard
 
Join Date: Jun 2008
Location: Victoria, BC, Canada
Posts: 20
Default

Quote:
Originally Posted by ocicat View Post
I don't know if this was a typographic error or otherwise, but you may want to try the following:

$ echo $'\a'
Sorry my mistake! It was a typo in my OP. I've tried this shell command without success.

My understanding is that there is no "sound/speaker" device in Sunfire v100 (I didn't find any in the motherboard schematics or after visual exam).
Reply With Quote
  #7   (View Single Post)  
Old 17th September 2009
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Banned
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Default

Does the suggestion offered by Jameel Akari work?

http://marc.info/?l=openbsd-sparc&m=125321697728702&w=2
Reply With Quote
  #8   (View Single Post)  
Old 17th September 2009
hansivers hansivers is offline
Real Name: Hans Ivers
Port Guard
 
Join Date: Jun 2008
Location: Victoria, BC, Canada
Posts: 20
Default

Quote:
Originally Posted by BSDfan666 View Post
Does the suggestion offered by Jameel Akari work?

http://marc.info/?l=openbsd-sparc&m=125321697728702&w=2
I will try it tonight (no access to the firewall currently) but it seems promising!
Reply With Quote
  #9   (View Single Post)  
Old 17th September 2009
hansivers hansivers is offline
Real Name: Hans Ivers
Port Guard
 
Join Date: Jun 2008
Location: Victoria, BC, Canada
Posts: 20
Default

I got time tonight to try both suggestions :

a) eject /dev/rcd0c

it's working perfectly

b) machdep.led_blink=1

no way to make it work. I've enabled this option in /etc/sysctl.conf or within the root shell (sysctl -w machdep.led_blink=1) without any visible result.

There is two leds in the front panel of the 1U Sunfire v100 : green (when poweron) and orange (when faulton is enable in LOM). Both leds are unresponsive to changes in machdep.led_blink.

Many thanks everybody for your helpful suggestions.
Reply With Quote
Old 19th September 2009
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Banned
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Default

It looks like someone is working to support some of the LOM devices on your system.

http://marc.info/?l=openbsd-cvs&m=125338930526913&w=2

So perhaps the lights will become supported eventually.
Reply With Quote
Old 20th September 2009
hansivers hansivers is offline
Real Name: Hans Ivers
Port Guard
 
Join Date: Jun 2008
Location: Victoria, BC, Canada
Posts: 20
Default

Yop! I saw Mark's message on openbsd/sparc mailing list.

I'm very grateful to him for his work.. and all of you for your helpful suggestions.

Great forum!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Beep Beep! DrJ FreeBSD General 8 24th March 2009 12:51 PM
Beep on startup? matt Programming 1 16th July 2008 08:33 AM
different booting bsd.rd & bsd Hihihi OpenBSD General 3 15th July 2008 10:34 PM
sablevm on sparc64 foxi Programming 0 15th June 2008 09:42 AM
jdk for sparc64 nippysaurus FreeBSD Ports and Packages 6 1st June 2008 04:32 PM


All times are GMT. The time now is 11:19 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick