Bug 105514

Summary: [boot] FreeBSD/amd64 - Fails to boot on HP Pavilion dv8000 Laptop: BTX
Product: Base System Reporter: Scot Hetzel <swhetzel>
Component: amd64Assignee: freebsd-amd64 (Nobody) <amd64>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 7.0-CURRENT   
Hardware: Any   
OS: Any   

Description Scot Hetzel 2006-11-14 09:10:01 UTC
It's a strange little bug, that I originally found when when setting up
a HP Pavilion dv8000 laptop to run FreeBSD/amd64 6.1-beta4.  The boot
loader(?) would continuously dump these hex characters on the screen
causing it to scroll at an unreadable rate.

This same problem is still occurring with the FreeBSD/amd64 6.2-Beta2 CD
(tested bootonly CD).  My solution to the problem was to hit the space
bar until the speakers beeped for a couple of seconds (when you see
/boot/kernel/kernel you can release the space bar), then it loads and
executes the kernel and proceeds to sysinstall.

http://lists.freebsd.org/pipermail/freebsd-amd64/2006-March/007883.html

Once sysinstall has finished the install of FreeBSD/amd64, the system
has no problems booting from the hard drive.
Comment 1 csp.dev.init 2006-12-29 08:30:34 UTC
When i boot from the FreeBSD/AMD64 6.2-RC1 it continuously dumps the regiser
content in the screen.
when in the kernel is loaded in after the bootloader it happens.

System Configuration.
HP Compaq V3149AU Laptop
AMD Turion64 X2.
nVidia Board



C.S.Prakash
Comment 2 Mark Linimon freebsd_committer freebsd_triage 2007-05-26 08:21:14 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-amd64

This may be amd64-specific.
Comment 3 Remko Lodder freebsd_committer freebsd_triage 2007-09-24 09:39:02 UTC
State Changed
From-To: open->closed

I asked for feedback in december last year but never got a reply; clsoe 
the ticket.
Comment 4 Scot Hetzel 2007-09-24 15:40:48 UTC
On 9/24/07, remko@freebsd.org <remko@freebsd.org> wrote:
> Synopsis: FreeBSD/amd64 - Fails to boot on HP Pavilion dv8000 Laptop
>
> State-Changed-From-To: open->closed
> State-Changed-By: remko
> State-Changed-When: Mon Sep 24 08:39:02 UTC 2007
> State-Changed-Why:
> I asked for feedback in december last year but never got a reply; close
> the ticket.
>
> http://www.freebsd.org/cgi/query-pr.cgi?pr=105514
>
I never received the request for feed back, or any
tips on how to further debug this CD booting problem.

Scot
Comment 5 Remko Lodder freebsd_committer freebsd_triage 2007-09-24 16:40:23 UTC
State Changed
From-To: closed->feedback

It seems that I closed this PR a bit too early, I followed the 
incorrect history that I had left of this PR. Reopen and 
set for feedback (I asked that on the list and to Scot some 
seconds agon through email).
Comment 6 Remko Lodder freebsd_committer freebsd_triage 2007-09-24 16:41:00 UTC
Scot Hetzel wrote:
> On 9/24/07, remko@freebsd.org <remko@freebsd.org> wrote:
>> Synopsis: FreeBSD/amd64 - Fails to boot on HP Pavilion dv8000 Laptop
>>
>> State-Changed-From-To: open->closed
>> State-Changed-By: remko
>> State-Changed-When: Mon Sep 24 08:39:02 UTC 2007
>> State-Changed-Why:
>> I asked for feedback in december last year but never got a reply; close
>> the ticket.
>>
>> http://www.freebsd.org/cgi/query-pr.cgi?pr=105514
>>
> I never received the request for feed back, or any
> tips on how to further debug this CD booting problem.
> 
> Scot

Hmm I only had the emails from Prakash in my history
which I used as a reference, I emailed back to him and
the bugs@ list asking for more feedback.

Sadly that seemed to have missed the impact (my fault).

So, I will reopen the ticket and ask you for feedback
then ;-)

Does this occur with recent 7-CURRENT ISO images as well?
Does this occur with other images then the AMD64 one? e.g.
the I386 one?

Would it be possible for you to see what is going on there?

Thanks and my apologies for closing the ticket based on the
wrong information!

cheers
remko

-- 
Kind regards,

     Remko Lodder               ** remko@elvandar.org
     FreeBSD                    ** remko@FreeBSD.org

     /* Quis custodiet ipsos custodes */
Comment 7 Scot Hetzel 2007-10-06 20:38:59 UTC
On 9/24/07, Remko Lodder <remko@freebsd.org> wrote:
> Does this occur with recent 7-CURRENT ISO images as well?
> Does this occur with other images then the AMD64 one? e.g.
> the I386 one?
> 
> Would it be possible for you to see what is going on there?
> 
I finally had a chance to retest, and so far FreeBSD is failing to boot with the i386 ISO also.  I have tested several versions:

6.1-RELEASE-i386-bootonly.iso
6.2-RELEASE-i386-disc1.iso
7.0-20070928-SNAP-i386-bootonly.iso

And they all give me the same error:

corrupt symbol?
<loader menu>
/boot/kernel/acpi.ko text=0x53a80 data=0x23a0+0x184c syms=[0x4+0x8590+0x4+0xb030]
loading required module 'pci'
ACPI auto load failed - no such file or directory

int=00000006  err=00000000  efl=00010086  eip=00459b43
eax=00459bc9  ebx=00459640  ecx=a0000075  edx=000488a0
esi=00066254  edi=0005bf7c  ebp=00094484  esp=0009e440
cs=0008  ds=0010  es=0010  fs=0010  gs=0010  ss=0010
cs:eip= f0 e8 57 ff ff ff 89 c2-83 f8 ff 75 d8 83 c7 34
             81 ff e8 38 b8 c0 75 c3-8b 15 b8 0d bb c0 89 d0
ss:esp= 40 9b 45 00 90 95 00 00-00 00 00 80 75 00 00 a0
              00 00 00 00 00 00 00 00-00 00 00 00 a0 88 04 00
BTX Halted

This was the output of the 7.0-20070928-SNAP-i386-bootonly CD.

I still get the crash with the FreeBSD/amd64 CD, but the output is unreadable due to it constantly scrolling on the screen.  If I hold hold down the space bar as detailed in the PR, it will boot into sysinstall (7.0-20070928-SNAP-amd64-bootonly.iso)

I used the 7.0 SNAPs from:
http://snapshots.us.freebsd.org/snapshots/

Scot
Comment 8 Scot Hetzel 2007-10-06 20:38:59 UTC
On 9/24/07, Remko Lodder <remko@freebsd.org> wrote:
> Does this occur with recent 7-CURRENT ISO images as well?
> Does this occur with other images then the AMD64 one? e.g.
> the I386 one?
> 
> Would it be possible for you to see what is going on there?
> 
I finally had a chance to retest, and so far FreeBSD is failing to boot with the i386 ISO also.  I have tested several versions:

6.1-RELEASE-i386-bootonly.iso
6.2-RELEASE-i386-disc1.iso
7.0-20070928-SNAP-i386-bootonly.iso

And they all give me the same error:

corrupt symbol?
<loader menu>
/boot/kernel/acpi.ko text=0x53a80 data=0x23a0+0x184c syms=[0x4+0x8590+0x4+0xb030]
loading required module 'pci'
ACPI auto load failed - no such file or directory

int=00000006  err=00000000  efl=00010086  eip=00459b43
eax=00459bc9  ebx=00459640  ecx=a0000075  edx=000488a0
esi=00066254  edi=0005bf7c  ebp=00094484  esp=0009e440
cs=0008  ds=0010  es=0010  fs=0010  gs=0010  ss=0010
cs:eip= f0 e8 57 ff ff ff 89 c2-83 f8 ff 75 d8 83 c7 34
             81 ff e8 38 b8 c0 75 c3-8b 15 b8 0d bb c0 89 d0
ss:esp= 40 9b 45 00 90 95 00 00-00 00 00 80 75 00 00 a0
              00 00 00 00 00 00 00 00-00 00 00 00 a0 88 04 00
BTX Halted

This was the output of the 7.0-20070928-SNAP-i386-bootonly CD.

I still get the crash with the FreeBSD/amd64 CD, but the output is unreadable due to it constantly scrolling on the screen.  If I hold hold down the space bar as detailed in the PR, it will boot into sysinstall (7.0-20070928-SNAP-amd64-bootonly.iso)

I used the 7.0 SNAPs from:
http://snapshots.us.freebsd.org/snapshots/

Scot
Comment 9 Kostik Belousov 2007-10-08 17:29:12 UTC
On Sat, Oct 06, 2007 at 02:38:59PM -0500, Scot Hetzel wrote:
> On 9/24/07, Remko Lodder <remko@freebsd.org> wrote:
> > Does this occur with recent 7-CURRENT ISO images as well?
> > Does this occur with other images then the AMD64 one? e.g.
> > the I386 one?
> > 
> > Would it be possible for you to see what is going on there?
> > 
> I finally had a chance to retest, and so far FreeBSD is failing to boot with the i386 ISO also.  I have tested several versions:
> 
> 6.1-RELEASE-i386-bootonly.iso
> 6.2-RELEASE-i386-disc1.iso
> 7.0-20070928-SNAP-i386-bootonly.iso
> 
> And they all give me the same error:
> 
> corrupt symbol?
> <loader menu>
> /boot/kernel/acpi.ko text=0x53a80 data=0x23a0+0x184c syms=[0x4+0x8590+0x4+0xb030]
> loading required module 'pci'
> ACPI auto load failed - no such file or directory
> 
> int=00000006  err=00000000  efl=00010086  eip=00459b43
> eax=00459bc9  ebx=00459640  ecx=a0000075  edx=000488a0
> esi=00066254  edi=0005bf7c  ebp=00094484  esp=0009e440
> cs=0008  ds=0010  es=0010  fs=0010  gs=0010  ss=0010
> cs:eip= f0 e8 57 ff ff ff 89 c2-83 f8 ff 75 d8 83 c7 34
>              81 ff e8 38 b8 c0 75 c3-8b 15 b8 0d bb c0 89 d0
> ss:esp= 40 9b 45 00 90 95 00 00-00 00 00 80 75 00 00 a0
>               00 00 00 00 00 00 00 00-00 00 00 00 a0 88 04 00
> BTX Halted
> 
> This was the output of the 7.0-20070928-SNAP-i386-bootonly CD.
> 
> I still get the crash with the FreeBSD/amd64 CD, but the output is unreadable due to it constantly scrolling on the screen.  If I hold hold down the space bar as detailed in the PR, it will boot into sysinstall (7.0-20070928-SNAP-amd64-bootonly.iso)
> 
> I used the 7.0 SNAPs from:
> http://snapshots.us.freebsd.org/snapshots/


I downloaded that image and looked what is located at the eip=00459b43 in
the kernel image. Since low mapping + 0xc0000000 = virt mapping, we shall
be at the 0xc0459b43. It appears that this is the following fragment
of i386/i386/locore.s:

	movl	%cr0,%eax		/* get control word */
	orl	$CR0_PE|CR0_PG,%eax	/* enable paging */
	movl	%eax,%cr0		/* and let's page NOW! */

;;;; IT IS THERE
	pushl	$begin			/* jump to high virtualized address */
	ret

It faults immediately after enabling the paging. Instead of the pushl $begin,
it points to the wrong opcode
	lock call something

Might be, the initial page tables are corrupted somehow ?
As a wild guess, might be A20 line is not turned on properly ?
Comment 10 John Merryweather Cooper 2007-12-12 05:10:16 UTC
I have identical issues on my HP Pavillion dv9420us with FreeBSD 7.  
However, the latest stable version of Debian amd64 boots just fine.

jmc
Comment 11 Mark Linimon freebsd_committer freebsd_triage 2008-03-02 06:29:32 UTC
State Changed
From-To: feedback->open

Note that feedback was received.  It sounds as though this is still 
a problem.
Comment 12 jeffh 2008-03-19 02:14:42 UTC
Dell T105

Same problem with BTX Halted and scrolling screen.

Booting from USB CDROM
Space bar trick does not work for me.

Affects:

FBSD-6.3-AMD64-Boot-Only
FBSD-6.3-AMD64-Disc1
FBSD-7.0-AMD64-Disc1
FBSD-7.0-i386-Disc1



ouch.

-- 
Jeff Hinrichs
Dundee Media & Technology, Inc
jeffh@dundeemt.com
402.218.1473
Comment 13 Volker Werth freebsd_committer freebsd_triage 2008-05-02 11:23:38 UTC
State Changed
From-To: open->feedback


Can you please try if the same happens with a snapshot iso created 
after 2008-03-08? There's been a BTX fix committed which should fix this.
Comment 14 Jaakko Heinonen freebsd_committer freebsd_triage 2010-09-01 14:11:44 UTC
State Changed
From-To: feedback->closed

Feedback timeout.