atom feed29 messages in org.freebsd.freebsd-currentRe: Fresh installed Freebsd 9 don't b...
FromSent OnAttachments
Pavel TimofeevOct 20, 2011 12:27 am 
Dennis KoegelOct 21, 2011 1:58 am 
Pavel TimofeevOct 21, 2011 2:44 am 
Lars EngelsOct 21, 2011 4:08 am 
Pavel TimofeevOct 21, 2011 4:12 am 
Gunnar SchaeferOct 21, 2011 12:19 pm 
John BaldwinOct 21, 2011 1:33 pm 
Andriy GaponOct 21, 2011 2:27 pm 
Andriy GaponOct 21, 2011 2:36 pm 
Gunnar SchaeferOct 21, 2011 3:22 pm 
Andriy GaponOct 23, 2011 5:50 am 
Dennis KoegelOct 23, 2011 8:27 am 
Andriy GaponOct 23, 2011 10:57 am 
Dennis KoegelOct 23, 2011 12:55 pm 
Dimitry AndricOct 23, 2011 1:08 pm 
John BaldwinOct 24, 2011 5:18 am 
John BaldwinOct 24, 2011 6:40 am 
Andriy GaponOct 24, 2011 6:47 am 
John BaldwinOct 24, 2011 8:33 am 
Andriy GaponOct 24, 2011 9:24 am 
John BaldwinOct 24, 2011 11:23 am 
Dennis KoegelOct 24, 2011 2:39 pm 
Gunnar SchaeferOct 24, 2011 4:20 pm 
Pavel TimofeevOct 25, 2011 12:13 am 
Andriy GaponOct 25, 2011 4:26 am 
John BaldwinOct 25, 2011 12:55 pm 
Pavel TimofeevNov 8, 2011 11:10 am 
John BaldwinNov 8, 2011 11:31 am 
Pavel TimofeevNov 9, 2011 10:48 pm 
Subject:Re: Fresh installed Freebsd 9 don't boot from hd
From:Andriy Gapon (av@FreeBSD.org)
Date:Oct 21, 2011 2:36:53 pm
List:org.freebsd.freebsd-current

on 22/10/2011 00:27 Andriy Gapon said the following:

on 21/10/2011 23:33 John Baldwin said the following:

On Friday, October 21, 2011 4:58:51 am Dennis Koegel wrote:

On Thu, Oct 20, 2011 at 11:28:08AM +0400, Pavel Timofeev wrote:

I used FreeBSD 9 amd64 on my HP Proliant DL360 G5 (smart array p400i mirror) as test. [...] It was fresh install and I choose guided partitioning (GPT) But after reboot my server don't boot from hd.

We have the same issue on a DL580 G7. Install runs fine, but when it's time for the first boot, the bootcode emits a single '-' (where usually it would be "spinning" for a moment while loading), hangs for about two seconds, and then reboots.

Working offline with Dennis, we found that changing the CFLAGS in sys/boot/i386/gptboot/Makefile from "-O1" to "-Os -mrtd" (partially reverting an earlier commit) fixed gptboot. The next test for someone to do would be to try just adding "-mrtd" and leaving "-O1" as-is to see if that fixes it.

Hmm, this is quite unexpected... Do you have a hypothesis why not using -mrtd could cause a problem (a miscompilation?) ?

I've just got one: maybe the trouble is caused by the sio_putc procedure in sys/boot/i386/btx/btx/btx.S. It seems to be the only place in the boot code where 'ret <number>' instruction is explicitly used.

A litmus question: do those experiencing the trouble all have BTX_SERIAL
defined?

P.S. BTW, is BTX_SERIAL documented anywhere?