From nobody@FreeBSD.org  Fri May  9 13:30:38 2014
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTPS id EE6ECA98
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  9 May 2014 13:30:38 +0000 (UTC)
Received: from cgiserv.freebsd.org (cgiserv.freebsd.org [IPv6:2001:1900:2254:206a::50:4])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client did not present a certificate)
	by mx1.freebsd.org (Postfix) with ESMTPS id DC2D364A
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  9 May 2014 13:30:38 +0000 (UTC)
Received: from cgiserv.freebsd.org ([127.0.1.6])
	by cgiserv.freebsd.org (8.14.8/8.14.8) with ESMTP id s49DUci6028300
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 9 May 2014 13:30:38 GMT
	(envelope-from nobody@cgiserv.freebsd.org)
Received: (from nobody@localhost)
	by cgiserv.freebsd.org (8.14.8/8.14.8/Submit) id s49DUcUF028297;
	Fri, 9 May 2014 13:30:38 GMT
	(envelope-from nobody)
Message-Id: <201405091330.s49DUcUF028297@cgiserv.freebsd.org>
Date: Fri, 9 May 2014 13:30:38 GMT
From: Bertram Scharpf <software@bertram-scharpf.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: bsdlabel fails
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         189513
>Category:       bin
>Synopsis:       bsdlabel fails
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 09 13:40:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Bertram Scharpf
>Release:        10.0 stable
>Organization:
>Environment:
FreeBSD hostname 10.0-STABLE FreeBSD 10.0-STABLE #0 r265337: Mon May  5 00:55:49 CEST 2014     root@buildhost:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
On a ~5 year old netbook, "bsdlabel" writes this to dmesg:

ahcich0: Timeout on slot 0 port 0
ahcich0: is 00000000 cs 00000001 ss 00000001 rs 00000001 tfd 50 serr 00000000 cmd 0000e017
(ada0:ahcich0:0:0:0): WRITE_FPDMA_QUEUED. ACB: 61 10 3f 00 00 40 00 00 00 00 00 00
(ada0:ahcich0:0:0:0): CAM status: Command timeout
(ada0:ahcich0:0:0:0): Retrying command
ahcich0: Timeout on slot 0 port 0
ahcich0: is 00000000 cs 00000001 ss 00000000 rs 00000001 tfd 50 serr 00000000 cmd 0000e017
(ada0:ahcich0:0:0:0): FLUSHCACHE48. ACB: ea 00 00 00 00 40 00 00 00 00 00 00
(ada0:ahcich0:0:0:0): CAM status: Command timeout
(ada0:ahcich0:0:0:0): Retrying command


After restarting the machine, the boot code will not be executed.

This is really annoying because when I used the old 8.4 everything was fine.

>How-To-Repeat:
This is what I did:

I built me a USB stick with 10.0 stable. Then I booted it
on my Acer Aspire one. There I wrote:

fdisk -BI ada0
boot0cfg -B ada0
bsdlabel -B -w ada0s1
# -> dmesg contains now the above error messages

newfs -U /dev/ada0s1a
mount /dev/ada0s1a /mnt/install

mount -t nfs server:/usr/src /usr/src
mount -t nfs server:/usr/obj /usr/obj
cd /usr/usrc
make DESTDIR=/mnt/install installkernel installworld
cp /root/etc.new/{fstab,rc.conf,resolve.conf} /mnt/install/etc
shutdown -r now

>Fix:
I downloaded an old 8.4 memstick image, booted from that and
executed the steps until "bsdlabel". Then I booted my own 10.0 stable
and did the rest there.



>Release-Note:
>Audit-Trail:
>Unformatted:
