Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Ultra 1E: serial console and power off
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc
View previous topic :: View next topic  
Author Message
zappa_the_great
n00b
n00b


Joined: 30 Dec 2003
Posts: 17
Location: Konstanz, Germany

PostPosted: Tue Dec 30, 2003 8:54 pm    Post subject: Ultra 1E: serial console and power off Reply with quote

Hello together,

I just got an Ultra 1E clone (170MHz, 450 MB RAM, 18GB HDD) and installed Gentoo on it. Took a couple of days, but now it is working really fine (Thanks, guys). However, I cannot do a power-off from the serial console: the machine shuts down and returns to the OBP prompt, forcing me to type "power-off" manually :( . It doesn't matter if I specify halt or halt -p. When I connect kbd and monitor, powering down works fine. A quick google search didn't help either.

Has anyone else run into this problem?

TIA

JM
_________________
"I haven't lost my mind -- it's backed up on tape somewhere."
Back to top
View user's profile Send private message
clanger9
n00b
n00b


Joined: 03 Dec 2003
Posts: 5

PostPosted: Fri Jan 02, 2004 3:19 pm    Post subject: Ultra 1E: serial console and power off Reply with quote

Exact same problem here (Ultra 1e 170MHz).

Powers off fine with keyboard+monitor attached, but requires a manual power off when headless.
Back to top
View user's profile Send private message
clanger9
n00b
n00b


Joined: 03 Dec 2003
Posts: 5

PostPosted: Mon Jan 05, 2004 1:03 pm    Post subject: Ultra 1E: serial console and power off Reply with quote

Apparently this is the intended behaviour.

If the machine is headless, it is assumed that you are nowhere near the power switch - therefore the *last* thing you want is for the thing to power off.

Here's a patch:
http://www.geocrawler.com/mail/msg.php3?msg_id=10528133&list=71

Will give it a try next time I recompile.
Back to top
View user's profile Send private message
zappa_the_great
n00b
n00b


Joined: 30 Dec 2003
Posts: 17
Location: Konstanz, Germany

PostPosted: Mon Jan 05, 2004 2:00 pm    Post subject: Reply with quote

Hi,

well, I'm not near the power switch, but I want it to power down during the weekend, but only after a successful backup and if no other computer is alive at home.


Quote:
Here's a patch:
http://www.geocrawler.com/mail/msg.php3?msg_id=10528133&list=71


I think this patch can be applied, but it seems to be intended only for sparc32, not for sparc64. Won't hurt to try, though.
_________________
"I haven't lost my mind -- it's backed up on tape somewhere."
Back to top
View user's profile Send private message
clanger9
n00b
n00b


Joined: 03 Dec 2003
Posts: 5

PostPosted: Mon Jan 12, 2004 5:56 pm    Post subject: Reply with quote

Oops. Of course you're right - that patch is for 32 bit only...

Here's one for sparc64 to remove the check for a serial console. I just tried it and it worked fine
Code:
diff -urN linux-2.4.23-sparc-r1/arch/sparc64/kernel/power.c.orig linux-2.4.23-sparc-r1/arch/sparc64/kernel/power.c
--- linux-2.4.23-sparc-r1/arch/sparc64/kernel/power.c.orig      2003-12-20 14:18:53.000000000 +0100
+++ linux-2.4.23-sparc-r1/arch/sparc64/kernel/power.c   2004-01-12 18:52:17.000000000 +0100
@@ -40,7 +40,6 @@

 void machine_power_off(void)
 {
-       if (!serial_console) {
 #ifdef CONFIG_PCI
                if (power_reg != 0UL) {
                        /* Both register bits seem to have the
@@ -54,7 +53,6 @@
                                poweroff_method();
                                /* not reached */
                        }
-       }
        machine_halt();
 }

Enjoy!
Back to top
View user's profile Send private message
zappa_the_great
n00b
n00b


Joined: 30 Dec 2003
Posts: 17
Location: Konstanz, Germany

PostPosted: Mon Jan 12, 2004 6:05 pm    Post subject: Reply with quote

Juppie!

Why didn't I grep for serial_console? Will try it ASAP!

Thanks a lot

JM
_________________
"I haven't lost my mind -- it's backed up on tape somewhere."
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum